/* ==========================================================================
   BIOFEST 1.0 — Department of Applied Biology & Bio-Technology, USTM
   Biotechnology & Life Sciences Festival Design System
   ========================================================================== */

:root {
    /* Primary Biotechnology Brand Accents */
    --primary-cyan: #00f2fe;
    --primary-emerald: #00ff87;
    --primary-mint: #10b981;
    --primary-indigo: #6366f1;
    --primary-violet: #8b5cf6;
    --primary-rose: #f43f5e;
    --primary-amber: #f59e0b;
    --bio-glow-green: rgba(0, 255, 135, 0.45);
    --bio-glow-cyan: rgba(0, 242, 254, 0.35);

    /* Arena Color Themes */
    --sports-color: #ff6b35;
    --sports-glow: rgba(255, 107, 53, 0.35);
    --sports-bg: rgba(255, 107, 53, 0.06);

    --esports-color: #8b5cf6;
    --esports-glow: rgba(139, 92, 246, 0.35);
    --esports-bg: rgba(139, 92, 246, 0.06);

    --science-color: #00ff87;
    --science-glow: rgba(0, 255, 135, 0.45);
    --science-bg: rgba(0, 255, 135, 0.08);

    --cultural-color: #f43f5e;
    --cultural-glow: rgba(244, 63, 94, 0.35);
    --cultural-bg: rgba(244, 63, 94, 0.06);

    --alumni-color: #00f2fe;
    --alumni-glow: rgba(0, 242, 254, 0.35);

    --stalls-color: #f59e0b;
    --stalls-glow: rgba(245, 158, 11, 0.35);

    /* Deep Cellular Bio-Tech Backgrounds & Surfaces */
    --bg-dark: #04090e;
    --bg-surface: #07131b;
    --bg-card: rgba(8, 22, 33, 0.74);
    --bg-card-hover: rgba(12, 32, 48, 0.88);

    --border-subtle: rgba(0, 255, 135, 0.08);
    --border-light: rgba(0, 242, 254, 0.15);
    --border-highlight: rgba(0, 255, 135, 0.35);

    --text-primary: #f0fdf4;
    --text-secondary: #99f6e4;
    --text-muted: #64748b;
    --text-faint: #475569;

    /* Restored Original Typography */
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows & Transitions */
    --shadow-card: 0 20px 50px -15px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(0, 255, 135, 0.12);
    --shadow-card-hover: 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 135, 0.18), inset 0 1px 1px rgba(0, 242, 254, 0.25);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #07090e;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   CANVAS ATMOSPHERE
   ========================================================================== */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* ==========================================================================
   FLOATING NAVBAR
   ========================================================================== */

.navbar-wrapper {
    position: sticky;
    top: 16px;
    z-index: 1000;
    width: min(1140px, 92%);
    margin: 0 auto;
    padding-top: 4px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    background: rgba(7, 19, 27, 0.84);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 255, 135, 0.18);
    border-top: 1px solid rgba(0, 255, 135, 0.38);
    border-radius: 100px;
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 135, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 255, 135, 0.18);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.brand-pulse {
    width: 9px;
    height: 9px;
    background: var(--primary-emerald);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--primary-emerald);
    animation: liveDotPulse 2s infinite;
}

.brand-logo-glow {
    color: var(--primary-emerald);
    text-shadow: 0 0 14px rgba(0, 255, 135, 0.65);
}

.brand-year {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: 1px;
    margin-left: 2px;
    background: rgba(0, 242, 254, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #04090e;
    background: linear-gradient(90deg, #00ff87 0%, #00f2fe 100%);
    box-shadow: 0 0 22px rgba(0, 255, 135, 0.35);
    transition: all 0.25s var(--ease-spring);
}

.nav-cta:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.55);
}

.nav-cta .cta-arrow {
    transition: transform 0.2s ease;
}

.nav-cta:hover .cta-arrow {
    transform: translateX(3px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hamburger-bar {
    width: 17px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 18px 20px;
    background: rgba(14, 18, 28, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    animation: menuSlideDown 0.3s var(--ease-spring) forwards;
}

.mobile-menu.open {
    display: flex;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.mobile-nav-link.mobile-cta {
    background: linear-gradient(90deg, #00e5ff, #8b5cf6);
    color: #000000;
    font-weight: 800;
    text-align: center;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* ==========================================================================
   VIEW ROUTER & PAGE ANIMATIONS
   ========================================================================== */

.view {
    display: none !important;
    opacity: 0;
    transform: translateY(18px);
    position: relative;
    z-index: 1;
    min-height: 90vh;
}

.view.active {
    display: block !important;
    animation: viewEnter 0.45s var(--ease-spring) forwards;
}

.view.events-page.active,
.view.event-details-page.active,
.view.registration-page.active {
    display: flex !important;
}

@keyframes viewEnter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   THEMED ARENA BACKGROUNDS (SPORTS, ESPORTS, SCIENCE, CULTURAL)
   ========================================================================== */

/* 1. HOME VIEW BACKGROUND */
#view-home {
    background-image:
        url("gaming-bg.png.png"),
        url("gaming-bg-2.png.png"),
        linear-gradient(
            to bottom,
            #050b12 0%,
            #07151d 45%,
            #06141b 55%,
            #050b12 100%
        );

    background-size:
        100% auto,
        100% auto,
        100% 100%;

    background-position:
        center top,
        center bottom,
        center center;

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    background-attachment: scroll;
}
/* 2. SPORTS ARENA BACKGROUND (Stadium floodlights, athletic turf speed lanes & court grid) */
#view-sports {
    background-image:
        /* Stadium floodlights beam */
        radial-gradient(ellipse 1100px 480px at 50% -5%, rgba(255, 107, 53, 0.3) 0%, rgba(255, 150, 0, 0.1) 40%, transparent 70%),
        /* Left & Right stadium sideline aura */
        radial-gradient(circle 650px at 0% 30%, rgba(255, 87, 34, 0.15) 0%, transparent 60%),
        radial-gradient(circle 650px at 100% 40%, rgba(255, 170, 0, 0.12) 0%, transparent 60%),
        /* Athletic turf yard lines pattern */
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 2px, transparent 2px, transparent 38px),
        /* Stadium pitch track stripe overlay */
        linear-gradient(180deg, rgba(255, 107, 53, 0.04) 0%, transparent 60%, rgba(7, 9, 14, 0.95) 100%);
    background-attachment: fixed;
}

/* 3. ESPORTS ARENA BACKGROUND (Cyber gaming matrix, neon grid, digital scanner HUD) */
#view-esports {
    background-image:
        /* Top Cyber battle aura */
        radial-gradient(ellipse 1000px 460px at 50% -5%, rgba(139, 92, 246, 0.32) 0%, rgba(99, 102, 241, 0.12) 45%, transparent 75%),
        /* Cyan neon side lasers */
        radial-gradient(circle 600px at 90% 25%, rgba(0, 229, 255, 0.15) 0%, transparent 55%),
        radial-gradient(circle 600px at 10% 45%, rgba(168, 85, 247, 0.15) 0%, transparent 55%),
        /* Cyberpunk tactical grid */
        linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    background-attachment: fixed;
}

/* 4. SCIENCE ARENA BACKGROUND (Biotech & Applied Biology Laboratory Core) */
#view-science {
    background-image:
        /* Bioluminescent core beacon */
        radial-gradient(ellipse 1100px 520px at 50% -5%, rgba(0, 255, 135, 0.32) 0%, rgba(0, 242, 254, 0.14) 45%, transparent 75%),
        /* GFP Mint and aqua laboratory aura */
        radial-gradient(circle 650px at 15% 35%, rgba(0, 255, 135, 0.18) 0%, transparent 55%),
        radial-gradient(circle 650px at 85% 55%, rgba(0, 242, 254, 0.16) 0%, transparent 55%),
        /* Scientific precision molecular micro-grid */
        radial-gradient(rgba(0, 255, 135, 0.25) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 255, 135, 0.04) 0%, transparent 70%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 100% 100%;
    background-attachment: fixed;
}

/* 5. CULTURAL ARENA BACKGROUND (Stage theatre spotlights, velvet performance crimson & bokeh) */
#view-cultural {
    background-image:
        /* Overhead theatre spotlight cones */
        radial-gradient(ellipse 1000px 500px at 50% -5%, rgba(244, 63, 94, 0.3) 0%, rgba(255, 43, 214, 0.12) 45%, transparent 70%),
        /* Warm performance stage lights */
        radial-gradient(circle 650px at 10% 25%, rgba(244, 63, 94, 0.18) 0%, transparent 55%),
        radial-gradient(circle 650px at 90% 35%, rgba(251, 146, 60, 0.14) 0%, transparent 55%),
        /* Theatrical spotlight ray streaks */
        repeating-linear-gradient(65deg, rgba(255, 43, 214, 0.015) 0px, rgba(255, 43, 214, 0.015) 3px, transparent 3px, transparent 45px),
        linear-gradient(180deg, rgba(244, 63, 94, 0.04) 0%, transparent 70%);
    background-attachment: fixed;
}

/* 6. REGISTRATION VIEW BACKGROUND (Festival Pass portal & verification rings) */
#view-register {
    background-image:
        radial-gradient(ellipse 900px 450px at 50% -5%, rgba(0, 229, 255, 0.2) 0%, rgba(139, 92, 246, 0.12) 45%, transparent 70%),
        radial-gradient(circle 600px at 90% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle 600px at 10% 70%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 7. EVENT DETAILS VIEW BACKGROUND */
#view-event {
    background-image:
        radial-gradient(ellipse 900px 450px at 50% -5%, rgba(99, 102, 241, 0.22) 0%, transparent 65%);
    background-attachment: fixed;
}

/* ==========================================================================
   HERO STAGE (CLEAN FESTIVAL INTRO)
   ========================================================================== */

.hero-stage {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 60px;
    position: relative;
    text-align: center;
}

.hero-glow-aura {
    position: absolute;
    width: min(900px, 90vw);
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 135, 0.2) 0%, rgba(0, 242, 254, 0.14) 40%, rgba(16, 185, 129, 0.08) 65%, transparent 75%);
    filter: blur(85px);
    pointer-events: none;
    z-index: -1;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge-wrap {
    margin-bottom: 22px;
}

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 22px;
    border-radius: 50px;
    background: rgba(0, 255, 135, 0.09);
    border: 1px solid rgba(0, 255, 135, 0.35);
    color: #00ff87;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 0 25px rgba(0, 255, 135, 0.2);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-emerald);
    box-shadow: 0 0 8px var(--primary-emerald);
    animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: clamp(3.6rem, 10vw, 7.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-year-gradient {
    background: linear-gradient(135deg, #ffffff 10%, #00f2fe 50%, #00ff87 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(0, 255, 135, 0.4));
}

.hero-lead {
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 15%, #00f2fe 60%, #00ff87 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0, 242, 254, 0.35));
}

.hero-organizer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-org-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.hero-org-dept {
    font-size: clamp(1.15rem, 2.3vw, 1.45rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.hero-org-uni {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-org-naac {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.28);
    color: #00ff87;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.12);
}

/* ==========================================================================
   COUNTDOWN TIMER CARD
   ========================================================================== */

.countdown-card {
    padding: 18px 30px;
    border-radius: 28px;
    background: rgba(14, 19, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 229, 255, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 34px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.countdown-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.18);
}

.countdown-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: liveDotPulse 1.8s infinite;
}

.countdown-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.countdown-label.live-active {
    color: #34d399;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.countdown-card.event-live {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(52, 211, 153, 0.25);
}

.countdown-grid {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.countdown-num {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.countdown-unit {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 5px;
}

.countdown-sep {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(0, 229, 255, 0.45);
    line-height: 1;
    margin-bottom: 14px;
    animation: blinkSep 1.2s infinite ease-in-out;
}

@keyframes blinkSep {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.92);
    }
}

/* ==========================================================================
   HERO ACTIONS & METRIC STRIP
   ========================================================================== */

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-btn {
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.hero-btn.primary {
    background: linear-gradient(90deg, #00ff87 0%, #00f2fe 100%);
    color: #04090e;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.35);
}

.hero-btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 242, 254, 0.55);
}

.hero-btn.secondary {
    color: #ffffff;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.shimmer-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(60deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    animation: shimmerSlide 4.5s infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -70%;
    }

    22% {
        left: 140%;
    }

    100% {
        left: 140%;
    }
}

.hero-metric-strip {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    padding: 12px 28px;
    backdrop-filter: blur(12px);
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.metric-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.metric-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    .hero-metric-strip {
        gap: 14px;
        padding: 10px 18px;
    }

    .metric-val {
        font-size: 1.05rem;
    }

    .metric-lbl {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   CHOOSE YOUR ARENA (FOUR WORLDS. ONE FEST.)
   ========================================================================== */

.categories {
    width: min(1220px, 92%);
    margin: 0 auto;
    padding: 40px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.96rem;
    max-width: 540px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    min-height: 380px;
    padding: 32px 24px;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.015);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
}

.arena-num {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.arena-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-sports-pill {
    background: rgba(255, 107, 53, 0.12);
    color: var(--sports-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-esports-pill {
    background: rgba(139, 92, 246, 0.12);
    color: var(--esports-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-science-pill {
    background: rgba(16, 185, 129, 0.12);
    color: var(--science-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cultural-pill {
    background: rgba(244, 63, 94, 0.12);
    color: var(--cultural-color);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.category-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.icon-bubble {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--ease-spring);
}

.category-card:hover .icon-bubble {
    transform: scale(1.12) rotate(4deg);
}

.category-card .icon {
    font-size: 2.5rem;
}

.category-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 18px;
    line-height: 1.45;
}

.arena-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
}

.arena-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-link-text {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.category-card:hover .card-link-text {
    opacity: 1;
    transform: translateX(4px);
}

/* Individual Arena Hover Effects */
.category-card.sports:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 20px 45px -10px var(--sports-glow);
}

.category-card.sports:hover .card-link-text {
    color: var(--sports-color);
}

.category-card.esports:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 45px -10px var(--esports-glow);
}

.category-card.esports:hover .card-link-text {
    color: var(--esports-color);
}

.category-card.science:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 45px -10px var(--science-glow);
}

.category-card.science:hover .card-link-text {
    color: var(--science-color);
}

.category-card.cultural:hover {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 20px 45px -10px var(--cultural-glow);
}

.category-card.cultural:hover .card-link-text {
    color: var(--cultural-color);
}

/* Spotlight Layer */
.spotlight-card {
    position: relative;
}

.card-glow-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 45%);
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.spotlight-card:hover .card-glow-bg {
    opacity: 1;
}

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

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SPECIAL PORTALS (ALUMNI & STALLS)
   ========================================================================== */

.special-portals {
    width: min(1220px, 92%);
    margin: 10px auto 70px;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 768px) {
    .special-grid {
        grid-template-columns: 1fr;
    }
}

.special-card {
    padding: 30px 28px;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.35s var(--ease-spring);
}

.special-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.special-icon {
    font-size: 2.8rem;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.special-info {
    flex: 1;
}

.portal-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 4px;
}

.special-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.special-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.special-cta {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #000000;
    background: linear-gradient(90deg, #ffffff 0%, #e0f2fe 100%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.25s ease;
    text-decoration: none;
}

.special-card:hover .special-cta {
    background: linear-gradient(90deg, var(--primary-cyan) 0%, #ffffff 100%);
    transform: translateX(3px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

@media (max-width: 540px) {
    .special-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .special-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   EVENT LIST PAGES
   ========================================================================== */

.events-page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 20px 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header {
    text-align: center;
    margin-bottom: 45px;
}

.page-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.sports-badge,
.badge-sports {
    background: rgba(255, 107, 53, 0.12);
    color: var(--sports-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.esports-badge,
.badge-esports {
    background: rgba(139, 92, 246, 0.12);
    color: var(--esports-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.science-badge,
.badge-science {
    background: rgba(16, 185, 129, 0.12);
    color: var(--science-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cultural-badge,
.badge-cultural {
    background: rgba(244, 63, 94, 0.12);
    color: var(--cultural-color);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-alumni {
    background: rgba(59, 130, 246, 0.12);
    color: var(--alumni-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-stalls {
    background: rgba(245, 158, 11, 0.12);
    color: var(--stalls-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.events-page h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
}

.page-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    max-width: 580px;
}

.events-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    padding: 30px 24px;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.35s var(--ease-spring);
    animation: cardFadeIn 0.5s ease backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card:hover {
    transform: translateY(-7px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.event-card.sports-card {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.08) 0%, var(--bg-card) 75%);
}

.event-card.sports-card:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 20px 45px -10px var(--sports-glow);
}

.event-card.esports-card {
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, var(--bg-card) 75%);
}

.event-card.esports-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 45px -10px var(--esports-glow);
}

.event-card.science-card {
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 135, 0.08) 0%, var(--bg-card) 75%);
}

.event-card.science-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 45px -10px var(--science-glow);
}

.event-card.cultural-card {
    background: radial-gradient(ellipse at 50% 0%, rgba(244, 63, 94, 0.08) 0%, var(--bg-card) 75%);
}

.event-card.cultural-card:hover {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 20px 45px -10px var(--cultural-glow);
}

.event-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    transition: transform 0.4s var(--ease-spring);
}

.event-card:hover .event-icon {
    transform: scale(1.18) rotate(5deg);
}

.event-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.event-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 14px;
    line-height: 1.45;
}

.event-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.event-btn {
    margin-top: auto;
    padding: 9px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
}

.event-card:hover .event-btn {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px auto 25px;
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.25s var(--ease-spring);
    width: fit-content;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateX(-3px);
}

.back-arrow {
    transition: transform 0.2s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

/* ==========================================================================
   EVENT DETAILS VIEW
   ========================================================================== */

.event-details-page {
    width: min(860px, 92%);
    margin: 0 auto;
    padding: 20px 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-details-card {
    width: 100%;
    margin-top: 10px;
    padding: 44px 38px;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.event-icon-large {
    font-size: 3.8rem;
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.event-title-wrap {
    flex: 1;
}

.event-category-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 4px;
}

.event-title-wrap h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 6px;
}

.event-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
    margin-bottom: 32px;
}

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

    .event-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .event-info {
        grid-template-columns: 1fr;
    }
}

.info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.info-box.highlight-prize {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
}

.info-icon {
    font-size: 1.6rem;
}

.info-text strong {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-text span {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
}

.rules {
    text-align: left;
    margin-bottom: 36px;
    padding: 22px 26px;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.rules h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.rules ul {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.rules li {
    margin-bottom: 6px;
}

.event-cta-wrap {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.register-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(90deg, #00e5ff 0%, #8b5cf6 50%, #f43f5e 100%);
    background-size: 200% auto;
    color: #000000;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 0.92rem;
    transition: all 0.35s var(--ease-spring);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.register-button:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: 100% 0;
    box-shadow: 0 16px 45px rgba(0, 229, 255, 0.5);
}

.google-form-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 28px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.google-form-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   REGISTRATION VIEW & FORM PREVIEW
   ========================================================================== */

.registration-page {
    width: min(800px, 92%);
    margin: 0 auto;
    padding: 20px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration-card {
    width: 100%;
    margin-top: 10px;
    padding: 44px 36px;
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.registration-header {
    text-align: center;
    margin-bottom: 28px;
}

.registration-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    margin-bottom: 10px;
}

.registration-card h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.registration-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 6px;
}

/* Quick Filter Bar */
.reg-filter-bar {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.reg-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reg-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    text-decoration: none;
}

.reg-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.reg-chip.chip-alumni:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--alumni-color);
}

.reg-chip.chip-stalls:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--stalls-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.75;
}

.form-select {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) center;
    background-size: 12px;
    cursor: pointer;
}

.form-select option,
.form-select optgroup {
    background: #0f131d;
    color: #ffffff;
}

.form-select:focus {
    border-color: var(--primary-cyan);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* Dynamic Event Redirect Container */
.event-redirect-container {
    margin-top: 24px;
    animation: fadeInSlideUp 0.4s var(--ease-spring) forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-event-card {
    padding: 24px 26px;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 22px;
    background: rgba(0, 229, 255, 0.03);
    backdrop-filter: blur(16px);
    margin-bottom: 20px;
    text-align: left;
}

.selected-event-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.selected-event-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.selected-event-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.selected-event-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selected-event-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 540px) {
    .selected-event-meta-grid {
        grid-template-columns: 1fr;
    }
}

.selected-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
}

.selected-meta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.selected-meta-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.selected-meta-val.highlight-meta {
    color: var(--primary-emerald);
}

.selected-event-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
}

.selected-event-notice .notice-icon {
    font-size: 1.1rem;
    margin-top: 1px;
}

.selected-event-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.redirect-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.submit-registration {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    background: linear-gradient(90deg, #00ff87, #00f2fe, #10b981);
    background-size: 200% auto;
    color: #04090e;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 0.94rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.35);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.submit-registration:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 0;
    box-shadow: 0 16px 45px rgba(0, 242, 254, 0.55);
}

.redirect-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* No Event Prompt */
.no-event-prompt {
    padding: 38px 24px;
    text-align: center;
    border: 1px dashed var(--border-light);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 20px;
}

.no-event-prompt .prompt-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.no-event-prompt h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.no-event-prompt p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.quick-category-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-cat-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s var(--ease-spring);
    text-decoration: none;
}

.quick-cat-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    width: min(1140px, 92%);
    margin: 40px auto 40px;
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid var(--border-subtle);
}

.footer-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.28);
    color: #00ff87;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.footer-brand {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.footer-brand strong {
    color: #00ff87;
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-dates {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   BIOFEST — MOBILE OPTIMIZATION
   Desktop styles remain completely untouched.
   ========================================================================== */

@media (max-width: 768px) {

    /* ---------- GLOBAL MOBILE ---------- */

    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }

    /* ---------- NAVBAR ---------- */

    .navbar-wrapper {
        width: calc(100% - 24px);
        top: 10px;
        padding-top: 2px;
    }

    .navbar {
        padding: 9px 12px 9px 16px;
        border-radius: 24px;
    }

    .nav-brand {
        gap: 7px;
        font-size: 0.95rem;
    }

    .brand-year {
        font-size: 0.62rem;
        padding: 2px 5px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* ---------- HOME BACKGROUND ---------- */

    #view-home {
        background-size:
            auto 420px,
            auto 420px,
            100% 100%;

        background-position:
            center top,
            center bottom,
            center center;

        background-repeat:
            no-repeat,
            no-repeat,
            no-repeat;
    }

    /* ---------- HERO ---------- */

    .hero-stage {
        min-height: auto;
        padding: 55px 16px 55px;
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-glow-aura {
        width: 100vw;
        height: 360px;
        filter: blur(65px);
    }

    .hero-badge-wrap {
        margin-bottom: 18px;
    }

    .hero-live-pill {
        padding: 7px 16px;
        font-size: 0.66rem;
        letter-spacing: 1.1px;
    }

    .hero-title {
        font-size: clamp(3rem, 17vw, 5rem);
        letter-spacing: 1px;
        line-height: 0.98;
        margin-bottom: 16px;
    }

    .hero-lead {
        width: 100%;
        margin-bottom: 26px;
        gap: 10px;
    }

    .hero-tagline {
        font-size: clamp(0.95rem, 4vw, 1.25rem);
        letter-spacing: 1.5px;
        line-height: 1.35;
    }

    .hero-org-label {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }

    .hero-org-dept {
        font-size: 1rem;
        line-height: 1.35;
    }

    .hero-org-uni {
        font-size: 0.85rem;
    }

    .hero-org-naac {
        font-size: 0.68rem;
        padding: 4px 12px;
    }

    /* ---------- COUNTDOWN ---------- */

    .countdown-card {
        width: 100%;
        max-width: 390px;
        padding: 15px 10px;
        margin-bottom: 26px;
        border-radius: 22px;
    }

    .countdown-grid {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .countdown-item {
        min-width: 0;
        flex: 1;
        padding: 9px 5px;
        border-radius: 14px;
    }

    .countdown-num {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .countdown-unit {
        font-size: 0.52rem;
        letter-spacing: 1px;
    }

    .countdown-sep {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    /* ---------- HERO BUTTONS ---------- */

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-btn {
        width: min(100%, 340px);
        justify-content: center;
        padding: 13px 24px;
    }

    /* ---------- METRICS ---------- */

    .hero-metric-strip {
        width: 100%;
        max-width: 370px;
        justify-content: space-around;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 24px;
    }

    .metric-val {
        font-size: 0.95rem;
    }

    .metric-lbl {
        font-size: 0.56rem;
        letter-spacing: 0.8px;
    }

    .metric-sep {
        height: 20px;
    }

    /* ---------- SECTIONS ---------- */

    .categories,
    .special-portals,
    .events-page,
    .event-details-page,
    .registration-page {
        width: calc(100% - 24px);
    }

    .categories {
        padding: 30px 0 55px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .section-subtitle {
        font-size: 0.82rem;
    }

    /* ---------- CATEGORY CARDS ---------- */

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        min-height: auto;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .card-top-row {
        margin-bottom: 18px;
    }

    .icon-bubble {
        width: 64px;
        height: 64px;
        margin-bottom: 15px;
        border-radius: 18px;
    }

    .category-card .icon {
        font-size: 2.1rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .category-card p {
        font-size: 0.82rem;
    }

    /* ---------- SPECIAL PORTALS ---------- */

    .special-portals {
        margin: 0 auto 50px;
    }

    .special-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .special-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .special-info h3 {
        font-size: 1.1rem;
    }

    .special-info p {
        font-size: 0.8rem;
    }

    /* ---------- EVENT LIST ---------- */

    .events-page {
        padding: 15px 0 60px;
    }

    .page-header {
        margin-bottom: 30px;
    }

    .events-page h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .event-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    /* ---------- EVENT DETAILS ---------- */

    .event-details-page {
        padding: 15px 0 60px;
    }

    .event-details-card {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .event-header {
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 20px;
    }

    .event-icon-large {
        width: 68px;
        height: 68px;
        font-size: 3rem;
        border-radius: 18px;
    }

    .event-title-wrap h1 {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
    }

    .event-description {
        font-size: 0.86rem;
    }

    .event-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-box {
        padding: 12px 13px;
    }

    .rules {
        padding: 18px 17px;
        border-radius: 16px;
    }

    .rules ul {
        font-size: 0.82rem;
    }

    .event-cta-wrap {
        flex-direction: column;
        width: 100%;
    }

    .register-button,
    .google-form-btn {
        width: 100%;
        justify-content: center;
    }

    /* ---------- REGISTRATION ---------- */

    .registration-page {
        padding: 15px 0 70px;
    }

    .registration-card {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .registration-card h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .registration-subtitle {
        font-size: 0.8rem;
    }

    .reg-filter-chips {
        gap: 6px;
    }

    .reg-chip {
        font-size: 0.7rem;
        padding: 6px 11px;
    }

    .form-select {
        font-size: 0.9rem;
        padding: 14px 42px 14px 44px;
    }

    .selected-event-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .selected-event-head {
        gap: 12px;
    }

    .selected-event-title {
        font-size: 1.15rem;
    }

    /* ---------- FOOTER ---------- */

    .site-footer {
        width: calc(100% - 24px);
        margin: 25px auto 25px;
        padding: 26px 14px;
    }

    .footer-brand {
        font-size: 0.85rem;
    }

    .footer-sub,
    .footer-dates {
        font-size: 0.74rem;
    }
}
/* OPEN FOR ALL NEON GLOW */

.card-link-text.open-for-all {
    color: #ffffff !important;
    text-shadow:
        0 0 5px #00f2fe,
        0 0 10px #00f2fe,
        0 0 20px #00f2fe,
        0 0 35px #00ff87;

    animation: openForAllPulse 1.8s ease-in-out infinite alternate;
}

@keyframes openForAllPulse {
    0% {
        text-shadow:
            0 0 4px #00f2fe,
            0 0 8px #00f2fe,
            0 0 15px rgba(0, 242, 254, 0.7);
    }

    100% {
        text-shadow:
            0 0 5px #00f2fe,
            0 0 12px #00f2fe,
            0 0 22px #00ff87,
            0 0 35px rgba(0, 242, 254, 0.8);
    }
}
