
/* ==========================================
   1. BASE & MAIN PAGE STYLES
   ========================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #050a1f; 
    color: #e0e0e0;
    overflow-x: hidden; 
    cursor: auto;
}

/* --- noticeability & Responsive Scaling --- */

/* 1. The Menu Button */
#menu-btn {
    width: 64px;  /* Larger on Desktop */
    height: 64px;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(12px);
    border: none;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#menu-btn svg {
    width: 50px;
    height: 50px;
}

/* 2. The Logo Containers */
.logo-container {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: none;
    transition: all 0.3s ease;
}

.responsive-logo {
    height: 80px; /* Noticeable height on Desktop */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

/* --- SMALLER SCREENS (Mobile/Tablet) --- */
@media (max-width: 1024px) {
    /* Shrink Menu Button */
    #menu-btn {
        width: 48px;
        height: 48px;
        top: 1rem;
        left: 1rem;
    }
    
    #menu-btn svg {
        width: 30px;
        height: 30px;
    }

    /* Shrink Logo Suite */
    #top-right-suite {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .logo-container {
        padding: 6px;
        border-radius: 10px;
    }

    .responsive-logo {
        height: 50px; /* Reduced height on Mobile */
    }
}

/* Hover effects to increase prominence */
#menu-btn:hover, .logo-container:hover {
    border: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}


/* --- 2. Modal Specific Tweaks --- */
#modal-content-wrapper {
    will-change: transform, opacity; /* Hints the browser to optimize */
    backface-visibility: hidden;    /* Prevents flickering */
    -webkit-font-smoothing: antialiased;
}

/* Specific button update for "Register Now" */
.cosmic-btn {
    background: linear-gradient(90deg, #1e40af, #0891b2);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

.cosmic-btn:hover {
    box-shadow: 0 0 40px rgba(8, 145, 178, 0.5);
    transform: translateY(-2px);
}

/* Main Background */
#nebula-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, #2e0936 0%, #0f172a 40%, #000810 100%);
}

.glow-background {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120vw; height: 120vw; z-index: 0; pointer-events: none;
    mix-blend-mode: screen; opacity: 0.6;
    background: radial-gradient(ellipse 60% 50% at 40% 40%, rgba(76, 116, 250, 0.3), transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(120, 80, 255, 0.25), transparent 50%);
    filter: blur(40px);
}

/* Typography */
.tech-font { font-family: 'Share Tech Mono', monospace; }
.orbitron { font-family: 'Orbitron', sans-serif; }
.font-montserrat { font-family: 'Montserrat', sans-serif; }

/* HUD Elements */
.hud-corner {
    position: fixed; width: 30px; height: 30px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    z-index: 50; pointer-events: none;
}
.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.scan-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(96, 165, 250, 0.2);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    animation: scan 6s linear infinite; z-index: 40; pointer-events: none;
}
@keyframes scan { 0% { top: -10%; opacity: 0; } 50% { opacity: 1; } 100% { top: 110%; opacity: 0; } }

/* ==========================================
   2. CARD STYLES
   ========================================== */
.event-card {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 120px; 
    overflow: hidden; 
    background-color: rgba(5, 10, 31, 0.4); 
    border-radius: 20px;
    transition: opacity 0.5s, box-shadow 0.3s;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: none;
}
.event-card:hover { z-index: 10; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.event-card::before { content: ''; position: absolute; inset: 0; z-index: 0; transition: opacity 0.4s ease; opacity: 0.8; }
.event-card.tilt-card:hover { transition: box-shadow 0.3s, opacity 0.5s !important; }

/* Card Theme Colors */
.card-workshop::before { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, transparent 40%, transparent 60%, rgba(14, 165, 233, 0.15) 100%); }
.card-workshop:hover::before { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, transparent 40%, transparent 60%, rgba(14, 165, 233, 0.3) 100%); }

.card-tech::before { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, transparent 40%, transparent 60%, rgba(59, 130, 246, 0.15) 100%); }
.card-tech:hover::before { background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, transparent 40%, transparent 60%, rgba(59, 130, 246, 0.3) 100%); }

.card-non-tech::before { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, transparent 40%, transparent 60%, rgba(139, 92, 246, 0.15) 100%); }
.card-non-tech:hover::before { background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, transparent 40%, transparent 60%, rgba(139, 92, 246, 0.3) 100%); }

.card-flagship::before { background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, transparent 40%, transparent 60%, rgba(255, 69, 0, 0.15) 100%); }
.card-flagship:hover::before { background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, transparent 40%, transparent 60%, rgba(255, 69, 0, 0.3) 100%); }

.card-content { position: relative; z-index: 10; transform: translateZ(20px); }

/* ==========================================
   3. HEADER & ANIMATIONS
   ========================================== */
header {
    min-height: 90vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; padding: 2rem; z-index: 10;
}
.crisp-title {
    background: linear-gradient(to bottom, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(59,130,246,0.5));
}
.anim-title { opacity: 0; animation: cinematicTitle 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards; }
@keyframes cinematicTitle {
    from { opacity: 0; letter-spacing: -0.2em; filter: blur(20px); transform: scale(1.1); }
    to { opacity: 1; letter-spacing: -0.05em; filter: blur(0); transform: scale(1); }
}
.anim-text-slide { opacity: 0; animation: textSlideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards; }
@keyframes textSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim-btn { opacity: 0; animation: simpleFade 1s ease 2s forwards; }
@keyframes simpleFade { to { opacity: 1; } }

.filter-btn {
    background: transparent; border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.filter-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: #2563eb; z-index: -1; transition: width 0.3s ease;
}
.filter-btn:hover::before, .filter-btn.active::before { width: 100%; }
.filter-btn:hover, .filter-btn.active { color: white; border-color: #60a5fa; box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); letter-spacing: 1px;}

.animate-fade-in { animation: fadeInScale 0.4s ease-out forwards; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Reveal Logic */
/* --- Enhanced Reveal Animations --- */
.reveal-child {
    opacity: 0;
    transform: translateY(30px) scale(0.95); /* Start slightly smaller and lower */
    filter: blur(10px); /* Cinematic blur start */
    transition: 
        opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
        filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity, filter;
}

/* When the container becomes visible via JS observer */
.reveal-container.visible .reveal-child {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered delays for a sequential "wave" effect */
.reveal-container.visible .reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-container.visible .reveal-child:nth-child(2) { transition-delay: 0.25s; }
.reveal-container.visible .reveal-child:nth-child(3) { transition-delay: 0.4s; }
.reveal-container.visible .reveal-child:nth-child(4) { transition-delay: 0.55s; }


/* ==========================================
   4. MODAL & DYNAMIC BACKGROUNDS (CRITICAL FOR TEAM)
   ========================================== */

#modal-content-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; }
.animate-scale-up { animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; border-radius: 10px; }

.modal-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 50; }
.loader-ring { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Enhanced Modal Glow */
#modal-content-wrapper {
    box-shadow: 0 0 100px rgba(59, 130, 246, 0.3), inset 0 0 100px rgba(59, 130, 246, 0.1);
    transition: box-shadow 0.5s ease;
}
#event-modal.theme-tech #modal-content-wrapper {
    box-shadow: 0 0 120px rgba(6, 182, 212, 0.4), inset 0 0 120px rgba(6, 182, 212, 0.1);
}
#event-modal.theme-non-tech #modal-content-wrapper {
    box-shadow: 0 0 120px rgba(56, 189, 248, 0.4), inset 0 0 120px rgba(56, 189, 248, 0.1);
}
#event-modal.theme-flagship #modal-content-wrapper {
    box-shadow: 0 0 140px rgba(0, 128, 0, 0.6), inset 0 0 140px rgba(34, 139, 34, 0.3);
}

/* --- TECH BACKGROUND (From tech.html) --- */
.bg-mesh-tech {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.4), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.25), transparent 25%);
}
.blob-tech {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; z-index: -1;
    animation: blob-bounce 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-tech-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #4c1d95; animation-delay: 0s; }
.blob-tech-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #0891b2; animation-delay: 2s; }
.blob-tech-3 { top: 40%; left: 40%; width: 400px; height: 400px; background: #be185d; animation-delay: 4s; opacity: 0.3; }

@keyframes blob-bounce {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* --- NON-TECH BACKGROUND (From non-tech.html) --- */
.stars-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #bae6fd, transparent),
        radial-gradient(1px 1px at 20% 20%, white, transparent),
        radial-gradient(2px 2px at 30% 30%, #7dd3fc, transparent),
        radial-gradient(1px 1px at 40% 40%, white, transparent),
        radial-gradient(2px 2px at 50% 50%, #bae6fd, transparent),
        radial-gradient(1px 1px at 60% 60%, white, transparent),
        radial-gradient(2px 2px at 70% 70%, #7dd3fc, transparent),
        radial-gradient(1px 1px at 80% 80%, white, transparent),
        radial-gradient(1px 1px at 90% 90%, #bae6fd, transparent);
    background-size: 550px 550px; opacity: 0.8;
    animation: twinkle 6s infinite ease-in-out alternate;
}

.blob-nebula {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: -1;
    animation: float-nebula 12s infinite ease-in-out; mix-blend-mode: screen;
}
.blob-nebula-1 { top: -20%; left: 10%; width: 700px; height: 700px; background: #172554; animation-delay: 0s; opacity: 0.6; } 
.blob-nebula-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #0ea5e9; animation-delay: 3s; } 
.blob-nebula-3 { top: 40%; left: 30%; width: 500px; height: 500px; background: #2563eb; animation-delay: 6s; opacity: 0.3; } 

@keyframes float-nebula {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* --- THEME OVERRIDES --- */

/* Tech Theme: Slate/Steel Blue */
#event-modal .theme-tech .accent-text { color: #7dd3fc; } 
#event-modal .theme-tech .accent-bg { background-color: rgba(15, 23, 42, 0.8); }
#event-modal .theme-tech .accent-border { border-color: rgba(56, 189, 248, 0.2); }
#event-modal .theme-tech .loader-ring { border-left-color: #38bdf8; }
#event-modal .theme-tech .glass-panel { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(148, 163, 184, 0.1); }
#event-modal .theme-tech .gradient-btn { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
#event-modal .theme-tech .gradient-btn:hover { background: #334155; color: #f1f5f9; border-color: #475569; }

/* Non-Tech Theme: Deep Blue Nebula */
#event-modal .theme-non-tech .accent-text { color: #06b6d4; }
#event-modal .theme-non-tech .accent-bg { background-color: rgba(2, 6, 23, 0.6); }
#event-modal .theme-non-tech .accent-border { border-color: rgba(6, 182, 212, 0.2); }
#event-modal .theme-non-tech .loader-ring { border-left-color: #06b6d4; }
#event-modal .theme-non-tech .glass-panel { background: rgba(10, 25, 47, 0.5); border: 1px solid rgba(56, 189, 248, 0.1); }
#event-modal .theme-non-tech .gradient-btn { background: linear-gradient(90deg, #2563eb, #06b6d4); color: white; border: 1px solid rgba(147, 197, 253, 0.2); }
#event-modal .theme-non-tech .gradient-btn:hover { background: linear-gradient(90deg, #1d4ed8, #0891b2); box-shadow: 0 0 15px rgba(6, 182, 212, 0.6); }

/* Flagship Theme: Emerald Prestige */
#event-modal .theme-flagship .accent-text { color: #ffd700; }
#event-modal .theme-flagship .accent-bg { background-color: rgba(0, 20, 0, 0.8); }
#event-modal .theme-flagship .accent-border { border-color: rgba(0, 128, 0, 0.4); }
#event-modal .theme-flagship .loader-ring { border-left-color: #ffd700; }
#event-modal .theme-flagship .glass-panel { background: rgba(0, 30, 0, 0.7); border: 1px solid rgba(34, 139, 34, 0.3); }
#event-modal .theme-flagship .gradient-btn { background: linear-gradient(90deg, #008000, #ffd700); color: #fff; border: 1px solid rgba(0, 128, 0, 0.4); }
#event-modal .theme-flagship .gradient-btn:hover { background: linear-gradient(90deg, #228b22, #ffed4e); box-shadow: 0 0 20px rgba(0, 128, 0, 0.8); }
/* ==========================================
   5. DYNAMIC MODAL BACKGROUNDS
   ========================================== */

/* --- TECH THEME (From tech.html) --- */
.modal-bg-mesh-tech {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.4), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.25), transparent 25%);
    opacity: 0.8;
}

.modal-blob-tech {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; z-index: 0;
    animation: blob-bounce 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-blob-tech-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #4c1d95; animation-delay: 0s; }
.modal-blob-tech-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #0891b2; animation-delay: 2s; }
.modal-blob-tech-3 { top: 40%; left: 40%; width: 400px; height: 400px; background: #be185d; animation-delay: 4s; opacity: 0.3; }

@keyframes blob-bounce {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* --- NON-TECH THEME (From non-tech.html) --- */
.modal-stars-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, #bae6fd, transparent),
        radial-gradient(1px 1px at 20% 20%, white, transparent),
        radial-gradient(2px 2px at 30% 30%, #7dd3fc, transparent),
        radial-gradient(1px 1px at 40% 40%, white, transparent),
        radial-gradient(2px 2px at 50% 50%, #bae6fd, transparent),
        radial-gradient(1px 1px at 60% 60%, white, transparent),
        radial-gradient(2px 2px at 70% 70%, #7dd3fc, transparent),
        radial-gradient(1px 1px at 80% 80%, white, transparent),
        radial-gradient(1px 1px at 90% 90%, #bae6fd, transparent);
    background-size: 550px 550px; opacity: 0.8;
    animation: twinkle 6s infinite ease-in-out alternate;
}

.modal-blob-nebula {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: 0;
    animation: float-nebula 12s infinite ease-in-out; mix-blend-mode: screen;
}
.modal-blob-nebula-1 { top: -20%; left: 10%; width: 700px; height: 700px; background: #172554; animation-delay: 0s; opacity: 0.6; } 
.modal-blob-nebula-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #0ea5e9; animation-delay: 3s; } 
.modal-blob-nebula-3 { top: 40%; left: 30%; width: 500px; height: 500px; background: #2563eb; animation-delay: 6s; opacity: 0.3; } 

@keyframes float-nebula {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* --- FLAGSHIP THEME --- */
.modal-bg-flagship {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 128, 0, 0.5), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.4), transparent 35%),
        linear-gradient(135deg, rgba(34, 139, 34, 0.3) 0%, rgba(0, 100, 0, 0.3) 100%);
    opacity: 0.9;
}

.modal-blob-flagship {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5; z-index: 0;
    animation: flagship-float 15s infinite ease-in-out;
}
.modal-blob-flagship-1 { top: -15%; left: 5%; width: 600px; height: 600px; background: #008000; animation-delay: 0s; }
.modal-blob-flagship-2 { bottom: -10%; right: 5%; width: 550px; height: 550px; background: #ffd700; animation-delay: 5s; }
.modal-blob-flagship-3 { top: 50%; left: 50%; width: 400px; height: 400px; background: #228b22; animation-delay: 10s; opacity: 0.4; }

@keyframes flagship-float {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-30px) scale(1.1) rotate(5deg); }
}

/* --- Cosmic Blue Button --- */
.cosmic-btn {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.cosmic-btn:hover {
    background: linear-gradient(90deg, #1d4ed8, #0891b2);
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
}
/* Background Layers: Firmly Fixed behind content */
.modal-bg-mesh, 
.modal-bg-stars, 
.modal-bg-flagship, 
.modal-blob-tech, 
.modal-blob-nebula, 
.modal-blob-flagship {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5 !important; /* Above black overlay, below content */
    pointer-events: none;
}

#modal-content-wrapper {
    position: relative;
    z-index: 20; /* Content on top */
}

/* Ensure glass panels show background */
#event-modal .glass-panel {
    background: rgba(15, 20, 35, 0.5) !important;
    backdrop-filter: blur(10px);
}

/* Mobile Scrollbar fix */
@media (max-width: 1023px) {
    .custom-scrollbar::-webkit-scrollbar { display: none; }
    .custom-scrollbar { scrollbar-width: none; }
}

/* Make image stick correctly */
@media (min-width: 1024px) {
    aside.lg\:sticky {
        align-self: flex-start;
        top: 20px;
    }
}
#close-modal {
    position: fixed !important;
    z-index: 100 !important; /* Higher than everything else */
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    /* Add a subtle shadow so it's visible on light parts of the image */
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Adjust button position for very small screens if needed */
@media (max-width: 640px) {
    #close-modal {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }
}
/* style.css */
#combo-verify-modal .glass-panel {
    background: rgba(5, 10, 31, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
}

#combo-verify-modal.hidden {
    display: none;
}

/* Re-using your existing scale animation */
#combo-verify-modal:not(.hidden) .glass-panel {
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   6. SPONSOR TICKER & TIMELINE STYLES
   ========================================== */
/* --- Seamless Sponsor Ticker (No Box) --- */
.sponsor-slider-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    /* Background box removed - now transparent */
    overflow: hidden;
}



.sponsor-track {
    display: flex;
    /* Adjust width: (Logo Width + Gap) * Total Logos */
    /* If Logo is 200px and Gap is 80px, that's 280px per item */
    width: calc(280px * 12); 
    animation: infiniteScroll 25s linear infinite;
}

.sponsor-logo {
    width: 280px; /* Uniform spacing */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.sponsor-logo img {
    height: 60px; /* Consistent height */
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.sponsor-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}


.timeline-filter-btn {
    background: rgba(15, 23, 42, 0.6);
    color: #64748b;
    transition: all 0.3s ease;
}

.timeline-filter-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    border-color: #60a5fa;
}

/* Ensure the glass panel content is always centered */
.timeline-item .glass-panel {
    display: flex;
    flex-direction: column;
    align-items: center;   /* Horizontal centering */
    justify-content: center; /* Vertical centering */
    text-align: center;    /* Text alignment centering */
    width: 100%;
}

/* Mobile Refinement */
@media (max-width: 768px) {
    .timeline-item {
        display: flex;
        justify-content: center; /* Centers the box itself on mobile */
    }
    
    .timeline-item.md\:w-1\/2:not(.md\:ml-auto),
    .timeline-item.md\:ml-auto {
        text-align: center !important; /* Force center text on mobile */
    }
}
.timeline-item.hidden-node {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.time-pointer {
    z-index: 5;
    border: 3px solid #050a1f;
}
/* Add this to your style.css */
.hidden-node {
    display: none !important;
}

/* --- Enhanced Mobile Timeline (Double Sided) --- */
@media (max-width: 768px) {
    /* Force the center line to the middle */
    #timeline-container .absolute.left-0 {
        left: 50% !important;
        transform: translateX(-50%);
    }

    /* Reset padding/margins for mobile */
    #timeline-container {
        padding-left: 0 !important;
    }

    /* Force timeline items to behave like desktop (alternating sides) */
    .timeline-item {
        width: 50% !important;
        padding: 0 15px !important;
        margin-bottom: 2rem !important;
    }

    /* Items on the left */
    .timeline-item.md\:w-1\/2:not(.md\:ml-auto) {
        text-align: right;
        margin-right: auto;
    }

    /* Items on the right */
    .timeline-item.md\:ml-auto {
        text-align: left;
        margin-left: 50% !important;
    }

    /* Show the connecting dots on mobile too */
    .time-pointer {
        display: block !important;
        top: 25px !important;
    }

    /* Position dots correctly based on side */
    .timeline-item.md\:w-1\/2:not(.md\:ml-auto) .time-pointer {
        right: -8px !important;
        left: auto !important;
    }

    .timeline-item.md\:ml-auto .time-pointer {
        left: -8px !important;
        right: auto !important;
    }

    /* Adjust font sizes for cramped mobile cards */
    .timeline-item h4 {
        font-size: 0.9rem !important;
    }
    .timeline-item span {
        font-size: 0.7rem !important;
    }
}

/* Fix for hidden nodes to ensure they don't take up space */
.hidden-node {
    display: none !important;
    visibility: hidden;
}

/* Card Style */
.card-combo::before { 
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, transparent 60%, rgba(129, 140, 248, 0.2) 100%); 
}
.card-combo:hover::before { 
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4) 0%, transparent 60%, rgba(129, 140, 248, 0.4) 100%); 
}

/* Combo Modal Theme */
#event-modal.theme-combo #modal-content-wrapper {
    box-shadow: 0 0 120px rgba(79, 70, 229, 0.5), inset 0 0 120px rgba(79, 70, 229, 0.1);
}

#event-modal.theme-combo .cosmic-btn {
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.6);
}
/* Unique glow for Combo Cards in the grid */
.card-combo {
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(0, 0, 0, 0.4)) !important;
}

.card-combo:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4) !important;
    border-color: rgba(99, 102, 241, 1) !important;
}


/* Unique Purple/Indigo Pulse for Combo Buttons */
#event-modal.theme-combo .cosmic-btn {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    border: 1px solid rgba(196, 181, 253, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

#event-modal.theme-combo .cosmic-btn:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
    transform: translateY(-3px) scale(1.02);
}
/* style.css additions */

/* Expand the hitbox and add transition */
#close-modal {
    position: fixed !important;
    z-index: 100 !important;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease; /* */
    padding: 20px; /* Expands the internal scope */
}

/* Invisible Hitbox Expansion */
#close-modal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px; /* Large invisible touch/click area */
    height: 80px;
    transform: translate(-50%, -50%);
}

/* Zoom effect when executable (hovered) */
#close-modal:hover {
    transform: scale(1.4); /* Significant zoom for visual feedback */
    color: #ef4444; /* Turns red to indicate close action */
}

/* Adjust position for mobile to ensure it's in the thumb-zone */
@media (max-width: 640px) {
    #close-modal {
        top: 20px;
        right: 20px;
        font-size: 3rem;
    }
}
/* Add this to your style.css */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves exactly half of the track's total width */
        /* (280px per logo * 6 unique logos) = 1680px */
        transform: translateX(-1680px);
    }
}
.sponsor-track {
    display: flex;
    width: calc(280px * 12); 
    animation: infiniteScroll 25s linear infinite; /* Change 25s to 15s to go faster */
}

.sponsor-logo img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7; /* Increased from 0.5 for better visibility on dark backgrounds */
    transition: all 0.4s ease;
}
/* Mobile Refinements for 2-Column Layout */
@media (max-width: 768px) {
    /* Reduce padding inside the cards to give text more room */
    .event-card .p-6 {
        padding: 1rem !important;
    }

    /* Shrink the event titles so they don't wrap awkwardly */
    .event-card h3 {
        font-size: 1.1rem !important; /* Smaller but legible */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    /* Shrink the descriptions or hide them if it feels too cluttered */
    .event-card p {
        font-size: 0.75rem !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limits description to 2 lines to keep card height consistent */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Adjust the category badge size */
    .event-card span.text-\[10px\] {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }

    /* Reduce the icon size */
    .event-card i {
        font-size: 1rem !important;
    }
    
    /* Minimize the "View Details" footer */
    .event-card .mt-auto {
        padding-top: 0.5rem !important;
    }
}
/* style.css */

.event-card {
    display: flex;
    flex-direction: column;
}

/* Ensure the wrapper inside the card takes up the full height */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    flex: 1; /* Forces the content wrapper to fill the card */
}

/* Ensure descriptions push the footer down */
.event-card p {
    flex-grow: 1;
}


/* Center the grid items on all screens while keeping text left-aligned */
#contact .grid-cols-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    justify-content: center !important;
}

/* Ensure child elements don't stretch but sit in their centered area */
#contact .reveal-child {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Specific mobile scaling for centered 2-column view */
@media (max-width: 640px) {
    #contact .grid-cols-2 {
        gap: 1.5rem !important; /* Tighter gap for mobile */
    }
    
    #contact p, #contact h4 {
        text-align: left !important;
    }
}
#event-modal {
    /* Standard and Safari Prefix */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Force GPU Acceleration */
    transform: translate3d(0, 0, 0);
    will-change: backdrop-filter;
}

/* Fallback for low-power mobile devices */
@media (max-width: 768px) {
    #event-modal {
        backdrop-filter: blur(5px); /* Even lower for better FPS */
        background: rgba(0, 0, 0, 0.85); /* Slightly darker to maintain contrast */
    }
}
#event-modal.hidden {
    display: none;
    opacity: 0;
    backdrop-filter: blur(0px);
}

/* Opening effect persistence */
footer.reveal-container.visible .reveal-child {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
/* Remove default link styling for the location anchor */
a[href*="maps"] {
    text-decoration: none;
    cursor: pointer;
}

/* Add a subtle glow effect when the user hovers over the address */
.group\/loc:hover p {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Ensure the link area is easy to tap on mobile */
@media (max-width: 640px) {
    .group\/loc {
        padding: 5px 0;
    }
}

/* Add to style.css */
.modal-info-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 400px) {
    #modal-content-wrapper .flex-wrap {
        flex-direction: column;
    }
    #modal-content-wrapper .min-w-\[130px\] {
        width: 100%;
    }
}

#modal-image {
    width: 100%;
    /* Standard height for desktop */
    height: 450px; 
    border-radius: 24px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark background for empty space */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* Shows the WHOLE poster without cropping */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    /* Increases height on desktop for posters */
    #modal-image {
        height: 675px !important; 
    }
}

@media (max-width: 768px) {
    #modal-image {
        height: 400px !important; /* Smaller height so it fits mobile screens better */
        margin-bottom: 1rem;
    }
}

#home {
    min-height: 100vh;
}

.timer-box {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.8)); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.4)); }
}

.animate-pulse-slow {
    animation: pulse-slow 1s infinite linear;
}

/* Adds a flickering "crt" effect to the timer numbers */
#countdown span {
    font-variant-numeric: tabular-nums; /* Prevents numbers from jumping when changing */
}

@media (max-width: 640px) {
    .timer-box {
        min-width: 65px;
        padding: 0.75rem !important;
    }
}

