:root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --white: #ffffff;
    --font-main: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    color: var(--white);
    font-family: var(--font-secondary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: moveParticles 20s linear infinite;
}

@keyframes moveParticles {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default center alignment */
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Specific alignment for stats pages */
#stats-page-1,
#stats-page-2,
#stats-page-3 {
    justify-content: flex-end;
    /* Align to right */
    padding-right: 10%;
    /* Spacing from right edge */
    align-items: center;
}

.page.active {
    display: flex;
    opacity: 1;
}

.content {
    z-index: 10;
}

/* Launch Button */
#launch-btn {
    padding: 20px 60px;
    font-size: 2rem;
    font-family: var(--font-main);
    color: var(--white);
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-blue);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--neon-blue);
}

.fest-name {
    font-family: var(--font-main);
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--neon-purple);
}

#countdown {
    font-family: var(--font-main);
    font-size: 15rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 0 30px var(--neon-blue);
}

/* Logo Reveal */
#fest-logo {
    max-width: 80%;
    max-height: 60vh;
    animation: zoomIn 10s ease-out forwards, shine 3s infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        filter: drop-shadow(0 0 10px var(--neon-blue));
    }

    100% {
        filter: drop-shadow(0 0 30px var(--neon-purple));
    }
}

/* Stats Cinematic Redesign */
.stat-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Right align text */
    /* Entrance Animation */
    animation: cinematicReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Breathing Glow Animation Wrapper */
.stat-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: breathingGlow 3s ease-in-out infinite 1.2s;
    /* Start after entrance */
}

.stat-number {
    font-family: var(--font-main);
    font-size: 15rem;
    /* Large but balanced */
    line-height: 1;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    /* Soft glowing edge */
}

.stat-label {
    font-family: var(--font-secondary);
    font-size: 5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Cinematic Entrance: Zoom 0.7 -> 1.0, Fade 0 -> 100 */
@keyframes cinematicReveal {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Breathing Glow: Pulse + Scale */
@keyframes breathingGlow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9));
    }
}

/* Link Reveal */
.website-link {
    font-family: var(--font-main);
    font-size: 4rem;
    color: var(--neon-blue);
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px var(--neon-blue);
}

.website-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -10px;
    left: 50%;
    background: var(--neon-purple);
    transition: all 0.5s ease;
    transform: translateX(-50%);
}

.page.active .website-link::after {
    width: 100%;
}

/* QR Code */
.qr-code {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--neon-blue);
    margin-bottom: 30px;
}

.scan-text {
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--neon-blue);
}

/* Utilities */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        color: var(--neon-blue);
    }

    .fest-name {
        font-family: var(--font-main);
        font-size: 4rem;
        margin-bottom: 30px;
        text-shadow: 0 0 20px var(--neon-purple);
    }

    #countdown {
        font-family: var(--font-main);
        font-size: 15rem;
        font-weight: 900;
        color: var(--white);
        text-shadow: 0 0 30px var(--neon-blue);
    }

    /* Logo Reveal */
    #fest-logo {
        max-width: 80%;
        max-height: 60vh;
        animation: zoomIn 10s ease-out forwards, shine 3s infinite alternate;
    }

    @keyframes zoomIn {
        0% {
            transform: scale(0.5);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes shine {
        0% {
            filter: drop-shadow(0 0 10px var(--neon-blue));
        }

        100% {
            filter: drop-shadow(0 0 30px var(--neon-purple));
        }
    }

    /* Stats Cinematic Redesign */
    .stat-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        /* Right align text */
        /* Entrance Animation */
        animation: cinematicReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Breathing Glow Animation Wrapper */
    .stat-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        animation: breathingGlow 3s ease-in-out infinite 1.2s;
        /* Start after entrance */
    }

    .stat-number {
        font-family: var(--font-main);
        font-size: 15rem;
        /* Large but balanced */
        line-height: 1;
        font-weight: 900;
        color: var(--white);
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
        /* Soft glowing edge */
    }

    .stat-label {
        font-family: var(--font-secondary);
        font-size: 5rem;
        color: var(--white);
        text-transform: uppercase;
        letter-spacing: 8px;
        font-weight: 700;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }

    /* Cinematic Entrance: Zoom 0.7 -> 1.0, Fade 0 -> 100 */
    @keyframes cinematicReveal {
        0% {
            transform: scale(0.7);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Breathing Glow: Pulse + Scale */
    @keyframes breathingGlow {

        0%,
        100% {
            transform: scale(1);
            filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
        }

        50% {
            transform: scale(1.05);
            filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9));
        }
    }

    /* Link Reveal */
    .website-link {
        font-family: var(--font-main);
        font-size: 4rem;
        color: var(--neon-blue);
        text-decoration: none;
        position: relative;
        display: inline-block;
        text-shadow: 0 0 20px var(--neon-blue);
    }

    .website-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 4px;
        bottom: -10px;
        left: 50%;
        background: var(--neon-purple);
        transition: all 0.5s ease;
        transform: translateX(-50%);
    }

    .page.active .website-link::after {
        width: 100%;
    }

    /* QR Code */
    .qr-code {
        width: 400px;
        height: 400px;
        border-radius: 20px;
        box-shadow: 0 0 40px var(--neon-blue);
        margin-bottom: 30px;
    }

    .scan-text {
        font-size: 2rem;
        letter-spacing: 4px;
        color: var(--neon-blue);
    }

    /* Utilities */
    .fade-in {
        animation: fadeIn 1s ease-in forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .glow-text {
        animation: glowPulse 2s infinite alternate;
    }

    @keyframes glowPulse {
        from {
            text-shadow: 0 0 10px var(--neon-blue);
        }

        to {
            text-shadow: 0 0 30px var(--neon-blue), 0 0 10px var(--white);
        }
    }

    /* Launch Page Title */
    .launch-title {
        font-family: var(--font-main);
        font-size: 5rem;
        font-weight: 900;
        color: var(--white);
        text-align: center;
        margin-bottom: 50px;
        text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
        opacity: 0;
        animation: titleReveal 1.2s ease-out forwards;
    }

    @keyframes titleReveal {
        0% {
            transform: scale(0.8);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }