:root {
    /* Slightly tinted deep blue/purple backgrounds to complement pastels */
    --bg-dark: #070913; 
    --bg-surface: #0E121E; 
    
    /* New Pastel Palette */
    --accent-primary: #F9A1D1; /* Pastel Pink */
    --accent-secondary: #A1C4F0; /* Pastel Blue */
    
    /* Glows based on the new primary (Pink) */
    --accent-glow: rgba(249, 161, 209, 0.4);
    
    --text-main: #FFFFFF;
    --text-muted: #8FA0B5; /* Tinted muted text to match the blue base */
    --font-head: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- ACCESSIBILITY FOCUS STATES --- */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(249, 161, 209, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* --- LIGHT MODE VARIABLES & OVERRIDES --- */
body.light-mode {
    --bg-dark: #F4F7FB;
    --bg-surface: #FFFFFF;
    --text-main: #0A1120;
    --text-muted: #5C6E8A;
    
    /* ⬇️ NEW: Deeper, saturated accents for better contrast ⬇️ */
    --accent-primary: #D81B60; /* A punchy, vibrant magenta/pink */
    --accent-secondary: #1976D2; /* A crisp, bold royal blue */
    
    /* Update the glow to match the new primary color */
    --accent-glow: rgba(216, 27, 96, 0.4); 
}

body.light-mode .premium-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(216, 27, 96, 0.2);
}
body.light-mode .portal-card, body.light-mode .phase-card, body.light-mode .faq-question {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(161, 196, 240, 0.15); /* Soft blue shadow */
    border: 1px solid rgba(161, 196, 240, 0.3);
}
body.light-mode .nav-menu a { color: var(--text-main); }
body.light-mode .modal-content { background: #fff; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; background: var(--bg-dark);
    z-index: 10000; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 1s, visibility 1s;
}
.loader-text { font-family: var(--font-head); letter-spacing: 4px; color: var(--accent-primary); margin-bottom: 20px; animation: pulse 1.5s infinite; }
.progress-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); overflow: hidden; border-radius: 2px; }
.progress { width: 0%; height: 100%; background: var(--accent-primary); animation: load 2s forwards; }

/* Aurora Background */
.aurora-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; filter: blur(90px); border-radius: 50%; opacity: 0.4; animation: float 15s infinite alternate ease-in-out; }
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--accent-secondary); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: var(--accent-primary); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; width: 40vw; height: 40vw; background: #C8B6FF; animation-delay: -10s; } /* Soft purple bridge */

/* Navbar */
.premium-nav {
    position: fixed; top: 0; width: 100%; padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100000; transition: all 0.4s ease;
}
.premium-nav.scrolled {
    background: rgba(7, 9, 19, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-brand { font-family: var(--font-head); font-size: 2rem; font-weight: 700; z-index: 2; }
.nav-brand span { color: var(--accent-primary); font-size: 1rem; vertical-align: top; }
.nav-menu { display: flex; gap: 3rem; align-items: center; z-index: 2; }
.nav-menu a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent-primary); }
.theme-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; transition: transform 0.3s; }
.theme-btn:hover { transform: scale(1.2); }

/* Magnetic Button Base */
.btn-glow {
    padding: 12px 24px; border: 1px solid var(--accent-primary);
    color: var(--accent-primary) !important; position: relative; overflow: hidden;
    cursor: pointer; display: inline-block; text-decoration: none; border-radius: 8px;
}
.btn-glow:hover { background: var(--accent-primary); color: var(--bg-dark) !important; box-shadow: 0 0 20px var(--accent-glow); }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-content { position: relative; z-index: 2; text-align: center; }
.eyebrow { color: var(--accent-secondary); letter-spacing: 5px; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600;}
.glitch-title { font-family: var(--font-head); font-size: 8vw; line-height: 1; text-transform: uppercase; }
.outline-title { font-family: var(--font-head); font-size: 8vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--text-muted); }

/* Utility Text Gradient for Hero */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Countdown Timer */
.countdown-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.time-box { background: rgba(0,0,0,0.4); border: 1px solid rgba(161, 196, 240, 0.3); padding: 15px 25px; border-radius: 8px; min-width: 100px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.time-box span { font-family: var(--font-head); font-size: 2.5rem; color: var(--text-main); display: block; }
.time-box p { color: var(--accent-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }
.colon { font-size: 2rem; color: var(--accent-primary); font-weight: bold; }

/* Marquee */
.marquee-container { background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); color: var(--bg-dark); padding: 20px 0; overflow: hidden; white-space: nowrap; }
.marquee { display: inline-block; animation: marqueeScroll 20s linear infinite; font-family: var(--font-head); font-size: 2rem; font-weight: 600; }

/* General Section Formatting */
.section-title { font-family: var(--font-head); font-size: 3.5rem; text-align: center; color: var(--accent-primary); margin-bottom: 2rem; }
.philosophy-section, .phases-section, .portals-section, .venue-section, .secretariat-section, .faq-section { padding: 100px 10%; background: var(--bg-dark); }
.portals-section, .venue-section { background: var(--bg-surface); }

/* Committees */
.committees-showcase { padding: 150px 10%; background: var(--bg-surface); }
.committee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; margin-top: 4rem; }
.comm-card { height: 400px; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: 0.6s; filter: grayscale(80%) brightness(0.4); }
.comm-card:hover .card-bg { transform: scale(1.08); filter: grayscale(0%) brightness(0.6); }
.card-content { position: absolute; bottom: 0; padding: 30px; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.card-content h3 { font-family: var(--font-head); font-size: 2rem; color: var(--accent-primary); margin-bottom: 10px; transform: translateY(20px); opacity: 0.8; transition: 0.4s; }
.comm-card:hover h3 { transform: translateY(0); opacity: 1; }

/* Secretariat Showcase */
.team-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.team-card { width: 300px; height: 400px; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(249, 161, 209, 0.2); }
.team-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: 0.5s ease; filter: grayscale(50%); }
.team-card:hover .team-img { transform: scale(1.1); filter: grayscale(0%); }
.team-overlay { position: absolute; bottom: -100px; left: 0; width: 100%; padding: 30px 20px; background: rgba(7, 9, 19, 0.9); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: 0.4s ease; border-top: 1px solid var(--accent-primary); }
.team-card:hover .team-overlay { bottom: 0; }
.team-overlay h3 { font-family: var(--font-head); color: var(--text-main); font-size: 1.5rem; margin-bottom: 5px; }
.team-overlay h4 { color: var(--accent-secondary); font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.team-overlay p { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); border: none; color: var(--text-main); font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: background 0.3s; }
.faq-question:hover { background: rgba(249, 161, 209, 0.05); }
.faq-icon { transition: transform 0.3s ease; color: var(--accent-primary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: rgba(0,0,0,0.2); }
.faq-answer p { padding: 20px 25px; color: var(--text-muted); line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.05); }

/* Portals & Map */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.portal-card { display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px 30px; border-radius: 12px; transition: border-color 0.4s; text-align: center; height: 100%; }
.portal-card p { color: var(--text-muted); margin-bottom: 35px; flex-grow: 1; }
.block-btn { width: 100%; margin-top: auto; padding: 14px 24px; }
.portal-icon { width: 48px; height: 48px; color: var(--accent-secondary); margin-bottom: 20px; stroke-width: 1.5; }
.map-container { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); border: 1px solid rgba(161, 196, 240, 0.3); }

/* Phases */
.phases-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.phase-card { background: var(--bg-surface); border: 1px solid rgba(249, 161, 209, 0.2); padding: 40px 30px; border-radius: 12px; width: 300px; transition: 0.3s; }
.active-phase { border: 2px solid var(--accent-primary); transform: scale(1.05); }

/* Modal */
.modal { display: none; position: fixed; z-index: 100000; inset: 0; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; align-items: center; justify-content: center; }
.modal.show { opacity: 1; }
.modal-content { background-color: var(--bg-surface); padding: 50px; border: 1px solid var(--accent-primary); border-radius: 12px; width: 90%; max-width: 600px; position: relative; transform: translateY(30px); transition: transform 0.3s ease; }
.modal.show .modal-content { transform: translateY(0); }
.close-btn { color: var(--text-muted); position: absolute; top: 15px; right: 25px; cursor: pointer; z-index: 10; transition: 0.2s; background: none; border: none;}
.close-btn:hover { color: var(--accent-primary); }

/* Footer */
.footer { background: var(--bg-dark); padding: 80px 10% 30px; border-top: 1px solid rgba(249, 161, 209, 0.3); }

/* Animations */
@keyframes load { 100% { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reveal-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.scroll-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }

/* --- VISION & STATS GRID --- */
.philosophy-text { font-size: 1.5rem; line-height: 1.8; color: var(--text-muted); max-width: 800px; margin: 0 auto 4rem; font-weight: 300; text-align: center; }
.stats-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 4rem; }
.stat-item { text-align: center; }
.stat-item h3 { font-family: var(--font-head); font-size: 4rem; color: var(--accent-secondary); line-height: 1; }
.stat-item p { color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-top: 10px; }

/* --- FOOTER LINKS --- */
.footer .contact-info a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer .contact-info a:hover { color: var(--accent-primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.9rem; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.light-mode .footer .contact-info a { color: var(--text-main); }
body.light-mode .footer .contact-info a:hover { color: var(--accent-primary); }

/* --- MEGA MODAL UPGRADES --- */
.mega-modal { max-width: 900px !important; width: 95% !important; max-height: 90vh; padding: 0 !important; overflow: hidden !important; display: flex; flex-direction: column; }
.modal-sticky-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 40px 40px 20px 40px; background: var(--bg-surface); border-bottom: 1px solid rgba(249, 161, 209, 0.2); z-index: 10; }
body.light-mode .modal-sticky-header { background: #fff; }
.modal-sticky-header .close-btn { position: static; margin-top: -10px; }
.modal-scroll-content { padding: 30px 40px 40px 40px; overflow-y: auto; max-height: 75vh; }
.modal-body-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.modal-main h3, .modal-sidebar h3 { color: var(--accent-primary); font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 15px; }
.resource-box { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 20px; border-radius: 8px; border: 1px solid rgba(161, 196, 240, 0.2); }
.btn-secondary { background: transparent; border: 1px solid var(--accent-secondary); color: var(--accent-secondary); padding: 8px 16px; border-radius: 4px; text-transform: uppercase; font-size: 0.8rem; font-weight: bold; cursor: pointer; }
.eb-placeholder { text-align: center; background: rgba(0,0,0,0.3); padding: 25px 20px; border-radius: 8px; margin-bottom: 15px; border: 1px dashed rgba(249, 161, 209, 0.3); transition: transform 0.3s, border-color 0.3s; }
.eb-placeholder:hover { transform: translateY(-5px); border-color: var(--accent-primary); }

@media (max-width: 768px) {
    .modal-body-grid { grid-template-columns: 1fr; gap: 20px; }
    .resource-box { flex-direction: column; text-align: center; }
    .resource-box button { margin-left: 0 !important; margin-top: 15px; width: 100%; }
    .modal-sticky-header { padding: 30px 20px 15px 20px; }
    .modal-scroll-content { padding: 20px 20px 30px 20px; }
}

/* --- THEME TOGGLE ICON --- */
.theme-btn { background: none; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.3s, transform 0.3s; }
.theme-btn:hover { color: var(--accent-primary); transform: scale(1.1); }
.theme-icon { width: 22px; height: 22px; }
body.light-mode .theme-btn { color: var(--text-main); }

/* --- FOOTER PILL LINKS --- */
.footer-links-wrapper { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.footer-link { display: flex; align-items: center; gap: 10px; color: var(--text-main) !important; text-decoration: none; padding: 12px 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50px; font-size: 1rem; transition: all 0.3s ease; }
.footer-link i { width: 18px; height: 18px; color: var(--accent-primary); }
.footer-link:hover { background: rgba(249, 161, 209, 0.1); border-color: var(--accent-primary); transform: translateY(-3px); }
body.light-mode .footer-link { background: rgba(0, 0, 0, 0.03); border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .footer-link:hover { background: #fff; }

/* --- DEVELOPER CREDIT --- */
.developer-credit { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.5px; }
.developer-credit a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 4px; }
.developer-credit a i { width: 12px; height: 12px; transition: transform 0.3s ease; }
.developer-credit a:hover { color: var(--accent-primary); }
.developer-credit a:hover i { transform: translateY(-2px); }
body.light-mode .developer-credit { color: rgba(0, 0, 0, 0.4); }
body.light-mode .developer-credit a { color: var(--text-muted); }
body.light-mode .developer-credit a:hover { color: var(--accent-primary); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; }
body.light-mode .mobile-menu-btn { color: var(--text-main); }

::selection { background: var(--accent-primary); color: var(--bg-dark); }
::-moz-selection { background: var(--accent-primary); color: var(--bg-dark); }
img, .card-bg, .team-img, .blob { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-select: none; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .premium-nav { padding: 1.5rem 5%; }
    .premium-nav.scrolled { padding: 1rem 5%; }
    .mobile-menu-btn { display: block; position: relative; z-index: 100002; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(7, 9, 19, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-left: none; z-index: 100000; }
    body.light-mode .nav-menu { background: rgba(250, 250, 250, 0.98); }
    .nav-menu.active { right: 0; }
    .nav-menu a.nav-link:not(.btn-glow) { font-size: 1.5rem; font-weight: 600; letter-spacing: 2px; color: var(--text-main); opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
    .nav-menu.active a.nav-link:not(.btn-glow) { opacity: 1; transform: translateY(0); }
    .nav-menu.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active a:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active a:nth-child(5) { transition-delay: 0.5s; }
    .theme-btn { margin: 10px 0; transform: scale(1.2); }
    .btn-glow.nav-link { font-size: 1.1rem; padding: 15px 35px; margin-top: 1rem; opacity: 0; transition: opacity 0.5s ease 0.8s; }
    .nav-menu.active .btn-glow.nav-link { opacity: 1; }
    .glitch-title, .outline-title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .hero-desc { font-size: 1rem; padding: 0 15px; }
    .philosophy-section, .phases-section, .portals-section, .venue-section, .secretariat-section, .faq-section, .committees-showcase { padding: 60px 5%; }
    .countdown-container { gap: 8px; flex-wrap: wrap; padding: 0 10px; }
    .time-box { padding: 10px 12px; min-width: 65px; }
    .time-box span { font-size: 1.8rem; }
    .time-box p { font-size: 0.65rem; }
    .colon { font-size: 1.5rem; margin: 0 2px; }
    .marquee { font-size: 1.5rem; }
    .team-card { width: 100%; max-width: 350px; }
    .comm-card { height: 350px; }
    .stats-grid { gap: 2rem; }
    .stat-item h3 { font-size: 3rem; }
}

@media (max-width: 380px) {
    .glitch-title, .outline-title { font-size: 2.8rem; }
    .countdown-container { gap: 5px; }
    .time-box { padding: 8px 10px; min-width: 55px; }
    .time-box span { font-size: 1.5rem; }
    .nav-menu a.nav-link:not(.btn-glow) { font-size: 1.2rem; }
}

/* BOMB-PROOF MODAL TOUCH FIXES */
#committee-modal { z-index: 9999999 !important; }
.modal-sticky-header .close-btn { padding: 15px; margin: -15px -15px 0 0; cursor: pointer; position: relative; z-index: 100; }
.close-btn i, .modal-register i { pointer-events: none; }
.modal-register { display: inline-block; width: 100%; text-align: center; position: relative; z-index: 100; }
/* =========================================
   LIGHT MODE OVERRIDES: COMPONENTS
   ========================================= */

/* 1. COUNTDOWN TIMER FIX */
body.light-mode .time-box {
    background: #FFFFFF;
    border: 1px solid rgba(25, 118, 210, 0.2); /* Soft blue border */
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.1); /* Soft blue shadow */
    backdrop-filter: none;
}
body.light-mode .time-box span {
    color: var(--accent-primary); /* Magenta numbers */
}
body.light-mode .time-box p {
    color: var(--accent-secondary); /* Blue labels */
    font-weight: 700;
}
body.light-mode .colon {
    color: var(--text-muted); /* Softer colons */
}

/* 2. COMMITTEE CARDS FIX */
body.light-mode .comm-card {
    border: 1px solid rgba(25, 118, 210, 0.15);
    box-shadow: 0 15px 35px rgba(10, 17, 32, 0.05);
}
body.light-mode .card-bg {
    filter: grayscale(10%) brightness(0.9); /* Brighter base images */
}
body.light-mode .comm-card:hover .card-bg {
    filter: grayscale(0%) brightness(1.05); /* Full color on hover */
}
body.light-mode .card-content {
    /* Replace harsh black gradient with a clean white fade */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 0));
}
body.light-mode .card-content h3 {
    color: var(--accent-primary);
    text-shadow: none;
}
body.light-mode .card-content p {
    color: var(--text-main);
    font-weight: 600;
}

/* 3. FOOTER COLOR INJECTION */
body.light-mode .footer {
    background: linear-gradient(to bottom, #FFFFFF, #F4F7FB);
    border-top: 2px solid rgba(216, 27, 96, 0.2); /* Subtle magenta top border */
}
body.light-mode .footer-link {
    background: rgba(25, 118, 210, 0.05); /* Tinted blue background */
    border-color: rgba(25, 118, 210, 0.2);
    color: var(--accent-secondary) !important;
    font-weight: 600;
}
body.light-mode .footer-link i {
    color: var(--accent-primary);
}
body.light-mode .footer-link:hover {
    background: var(--accent-primary); /* Solid magenta on hover */
    color: #FFFFFF !important;
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px var(--accent-glow);
}
body.light-mode .footer-link:hover i {
    color: #FFFFFF;
}
/* =========================================
   SLOT-BASED REGISTRATION PHASES
   ========================================= */

/* Replace the old phase-date styling */
.phase-slots {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Status Badges for FOMO */
.status-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Phase 1: Sold Out State */
.sold-out {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
}
.sold-out .status-tag {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}
.sold-out h2 {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Phase 2: Active State */
.active-phase .status-tag.live {
    background: rgba(249, 161, 209, 0.15); /* Pastel pink base */
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    animation: pulse 2s infinite; /* Reusing your existing pulse animation */
}
body.light-mode .active-phase .status-tag.live {
    background: rgba(216, 27, 96, 0.1); /* Deeper magenta for light mode */
}

/* Phase 3: Locked State */
.locked-phase .status-tag {
    background: rgba(143, 160, 181, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(143, 160, 181, 0.3);
}
/* =========================================
   UPGRADED: WHY PYS SECTION (BENTO UI)
   ========================================= */
.why-pys-section {
    padding: 100px 10%;
    background: var(--bg-dark);
}

/* Intro Glass Panel */
.intro-glass-panel {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(161, 196, 240, 0.15);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}
.intro-glass-panel:hover {
    transform: translateY(-5px);
}
.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
}
.lead-text {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.sub-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Bento Layout */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.bento-title {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* Feature Chips (Left Column) */
.feature-chip-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.feat-chip {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}
.feat-chip:hover {
    background: rgba(249, 161, 209, 0.08);
    border-color: rgba(249, 161, 209, 0.3);
    transform: translateX(10px);
}
.icon-box {
    background: rgba(161, 196, 240, 0.1);
    color: var(--accent-secondary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feat-chip span {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}
.feat-chip:hover span { color: var(--text-main); }

/* Experience Cards (Right Column) */
.exp-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(161, 196, 240, 0.1);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exp-card.elevated:hover {
    transform: translateY(-5px);
    border-color: rgba(161, 196, 240, 0.3);
}
.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.pink-glow { background: rgba(249, 161, 209, 0.15); color: var(--accent-primary); }
.blue-glow { background: rgba(161, 196, 240, 0.15); color: var(--accent-secondary); }
.white-glow { background: rgba(255, 255, 255, 0.2); color: #FFF; }

.exp-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* The Grand Conclusion Card */
.highlight-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: var(--bg-dark);
}
.highlight-card p {
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

body.light-mode .intro-glass-panel {
    background: #FFFFFF;
    border: 1px solid rgba(25, 118, 210, 0.15);
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.05);
}
body.light-mode .quote-icon {
    background: #FFFFFF;
}
body.light-mode .feat-chip {
    background: #FFFFFF;
    border: 1px solid rgba(25, 118, 210, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
body.light-mode .feat-chip:hover {
    background: #FFFFFF;
    border-color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(216, 27, 96, 0.1);
}
body.light-mode .icon-box {
    background: rgba(25, 118, 210, 0.08);
}
body.light-mode .exp-card.elevated {
    background: #FFFFFF;
    border: 1px solid rgba(25, 118, 210, 0.1);
    box-shadow: 0 10px 25px rgba(25, 118, 210, 0.05);
}
body.light-mode .highlight-card p {
    color: #FFFFFF;
}
body.light-mode .highlight-card .white-glow {
    color: var(--accent-primary);
    background: #FFFFFF;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; gap: 3rem; }
    .intro-glass-panel { padding: 30px 20px; }
}

.grand-conclusion {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    padding: 40px 50px;
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.grand-conclusion .icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    flex-shrink: 0;
}

.grand-conclusion p {
    color: var(--bg-dark);
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

/* Stats Grid Restore */
.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Light Mode Overrides */
body.light-mode .grand-conclusion {
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.15);
}
body.light-mode .grand-conclusion p {
    color: #FFFFFF; /* Ensures text stays white against the vibrant light mode gradient */
}
body.light-mode .stats-grid {
    border-top: 1px solid rgba(25, 118, 210, 0.15);
}
/* The stats will automatically pull the crisp #1976D2 blue from your light mode var(--accent-secondary) */

/* Mobile Fixes for the new banner */
@media (max-width: 768px) {
    .grand-conclusion {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    .stats-grid {
        gap: 3rem;
    }
    .stat-item h3 {
        font-size: 4rem;
    }
}
/* =========================================
   EXECUTIVE BOARD MODAL AVATARS
   ========================================= */
.eb-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px auto;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(249, 161, 209, 0.2);
}
/* =========================================
   MODAL FOOTER BUTTON FIX
   ========================================= */
.modal-footer {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
}

.modal-register {
    width: auto !important; /* Overrides the previous 100% width */
    min-width: 280px; /* Gives it a solid, clickable size */
    padding: 14px 30px;
}

/* Ensure light mode border looks clean too */
body.light-mode .modal-footer {
    border-top: 1px solid rgba(25, 118, 210, 0.15) !important;
}
/* Light Mode Adjustments */
body.light-mode .team-card {
    border: 1px solid rgba(25, 118, 210, 0.3);
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.1);
    background: var(--bg-dark); /* Keeps the card background dark if an image fails to load */
}

body.light-mode .team-card:hover {
    box-shadow: -15px 15px 35px rgba(25, 118, 210, 0.15), 15px 15px 35px rgba(216, 27, 96, 0.15);
}

/* ⬇️ THE CRITICAL FIX: Lock the overlay to a dark gradient so it blends ⬇️ */
body.light-mode .team-overlay {
    background: linear-gradient(to top, rgba(7, 9, 19, 1) 0%, rgba(7, 9, 19, 0.85) 60%, transparent 100%);
}

body.light-mode .team-overlay h3 { 
    color: #FFFFFF; /* Force text to stay white */
}

body.light-mode .team-overlay h4 {
    color: var(--accent-primary); /* Force subtitle to stay magenta */
}

body.light-mode .team-overlay p {
    color: #A1C4F0; /* Force quote to stay pastel blue */
}
/* =========================================
   SECRETARIAT EXPANSION LOGIC
   ========================================= */

/* The Reveal Trigger Card */
.reveal-more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(216, 27, 96, 0.05));
    border: 2px dashed rgba(249, 161, 209, 0.3);
    cursor: pointer;
    text-align: center;
}

.reveal-more-card:hover {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(216, 27, 96, 0.1));
}

.reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.reveal-more-card:hover .reveal-content {
    transform: scale(1.05);
}

.reveal-content i {
    width: 50px;
    height: 50px;
    color: var(--accent-primary);
    background: rgba(249, 161, 209, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.reveal-content h3 {
    font-family: var(--font-head);
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0;
}

.reveal-content p {
    color: var(--accent-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* =========================================
   SECRETARIAT PLACEHOLDER FIXES
   ========================================= */
body.light-mode .cooking-placeholder div {
    background: rgba(216, 27, 96, 0.05) !important;
}
body.light-mode .cooking-placeholder h3 {
    color: var(--text-main);
}