@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --background-color: #1a1a1a;
    --container-color: #2c2c2c;
    --text-color: #ffffff;
    --accent-color: #00ffab;
    --shadow-color: rgba(0, 255, 171, 0.4);
    --font-family: 'Poppins', sans-serif;
    --number-bg: #3e3e3e;
}

body.light-mode {
    --background-color: #f0f2f5;
    --container-color: #ffffff;
    --text-color: #333333;
    --accent-color: #4361ee;
    --shadow-color: rgba(67, 97, 238, 0.3);
    --number-bg: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/%3E%3C/svg%3E');
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--container-color);
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.container {
    text-align: center;
    background-color: var(--container-color);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--shadow-color);
    max-width: 90%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 span {
  background: linear-gradient(90deg, var(--accent-color), #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--number-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, background-color 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
}

.number.visible {
    opacity: 1;
    transform: scale(1);
}

#generate {
    font-family: var(--font-family);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: var(--background-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 15px var(--shadow-color);
    text-transform: uppercase;
}

#generate:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px var(--shadow-color);
}

#generate:active {
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }
    h1 {
        font-size: 2rem;
    }
    .numbers {
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    .number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}
