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

:root[data-theme="dark"] {
    --bg-color: #03080f;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --primary-white: #e2e8f0;
    --ieee-blue: #00629b;
    --neon-blue: #00bfff;
    --glass-bg: rgba(5, 10, 20, 0.55);
    --glass-border: rgba(0, 191, 255, 0.15);
    --card-bg: rgba(10, 15, 25, 0.65);
    --nav-bg: rgba(3, 8, 15, 0.85);
    --shadow-glow: 0 0 25px rgba(0, 191, 255, 0.2);
    --toast-success-bg: rgba(0, 230, 118, 0.12);
    --toast-error-bg: rgba(239, 68, 68, 0.12);
}

:root[data-theme="light"] {
    --bg-color: #f0f4f8;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-white: #0f172a;
    --ieee-blue: #00629b;
    --neon-blue: #0088cc;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 98, 155, 0.2);
    --card-bg: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(240, 244, 248, 0.9);
    --shadow-glow: 0 10px 30px rgba(0, 98, 155, 0.15);
    --toast-success-bg: rgba(0, 180, 90, 0.15);
    --toast-error-bg: rgba(239, 68, 68, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 4px;
}
/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.content-loading {
    grid-column: 1 / -1;
    width: 100%;
    padding: 30px 20px;
    color: var(--text-secondary);
    text-align: center;
}

/* Logo loading animation — pulsing logo with a spinning ring, shown briefly
   while a section's content is being fetched. */
.logo-loader { position: relative; width: 70px; height: 70px; margin: 0 auto 14px auto; display: flex; align-items: center; justify-content: center; }
.logo-loader-img { width: 38px; height: 38px; object-fit: contain; position: relative; z-index: 2; animation: logoPulse 1.8s ease-in-out infinite; }
.logo-loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--neon-blue); border-right-color: var(--neon-blue); animation: logoSpin 1s linear infinite; }
@keyframes logoPulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes logoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Background Canvas */
#galaxy-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-color) 0%, #000 100%);
    opacity: 0.8;
}
:root[data-theme="light"] #galaxy-bg {
    background: radial-gradient(circle at 50% 50%, var(--bg-color) 0%, #dbeafe 100%);
    opacity: 0.6;
}

/* Glassmorphism & Panel Base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    transition: all 0.4s ease;
}

/* Snap Scrolling Setup */
#page-wrapper {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
}
#page-wrapper::-webkit-scrollbar {
    width: 6px;
}
#page-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
#page-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.4);
    border-radius: 3px;
}
#page-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}
.section-snap {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 5%;
    position: relative;
}
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding: 80px 5% 0;
    position: relative;
    overflow: hidden;
}

/* Slowly crossfading event photos behind the hero text — subtle, no controls,
   low opacity so text stays fully legible. Deliberately not a slideshow
   people are meant to watch; it's ambient background motion only. */
.hero-photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-photo-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    filter: grayscale(40%);
}
.hero-photo-bg img.active { opacity: 0.18; }
.hero-photo-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, var(--bg-color) 0%, var(--bg-color) 15%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
}

/* Navbar */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100% !important;
    padding: 0 20px !important;
}
.logo { display: flex; align-items: center; }
.nav-logo { height: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background: var(--neon-blue);
    transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--neon-blue); }

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

/* Liquid Dark/Light Mode Button */
.liquid-button {
    background: transparent;
    border: 1px solid var(--neon-blue);
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    outline: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: transform 0.3s;
}
.liquid-button:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--neon-blue); }
.liquid-button i { z-index: 2; font-size: 1.2rem; transition: transform 0.5s, opacity 0.5s; position: absolute; }
:root[data-theme="dark"] .icon-dark { transform: scale(0) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .icon-light { transform: scale(1) rotate(0); opacity: 1; }
:root[data-theme="light"] .icon-light { transform: scale(0) rotate(90deg); opacity: 0; }
:root[data-theme="light"] .icon-dark { transform: scale(1) rotate(0); opacity: 1; }

/* Mobile theme toggle — lives inside the hamburger dropdown instead of
   sitting next to the menu button, since two icon-only buttons crowded
   together in a small mobile header felt cluttered. */
.mobile-theme-item { display: none; }
.mobile-theme-toggle {
    display: flex; align-items: center; gap: 10px; background: none; border: none;
    color: var(--text-primary); font-size: 1rem; cursor: pointer; padding: 10px 20px;
    font-family: inherit;
}
.mobile-theme-toggle i { position: static; font-size: 1.1rem; }
:root[data-theme="dark"] .theme-toggle-label::after { content: "Light Mode"; }
:root[data-theme="light"] .theme-toggle-label::after { content: "Dark Mode"; }

.menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* Hero Section */
.float-container { display: flex; align-items: center; justify-content: center; }
.hero-content { max-width: 760px; text-align: center; }
.glitch { font-size: 4rem; margin-bottom: 5px; color: var(--text-primary); line-height: 1.1; }
.glitch span {
    background: linear-gradient(90deg, var(--ieee-blue), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.2rem; color: var(--text-secondary); margin: 20px 0 40px; }

.event-countdown-banner {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px 22px;
    background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 30px;
    backdrop-filter: blur(10px); color: var(--text-primary); font-size: 0.95rem;
}
.event-countdown-banner i { color: var(--neon-blue); }
.event-countdown-banner strong { color: var(--neon-blue); }

/* Liquid Call to Action */
.liquid-btn {
    display: inline-block;
    padding: 16px 40px;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    border: none;
    cursor: pointer;
    background: var(--ieee-blue);
    box-shadow: 0 8px 25px rgba(0, 98, 155, 0.4);
    transition: all 0.3s;
}
.liquid-btn span { position: relative; z-index: 2; }
.liquid-btn .liquid {
    position: absolute; top: -50px; left: 0; width: 200px; height: 200px;
    background: var(--neon-blue);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}
.liquid-btn .liquid::after, .liquid-btn .liquid::before {
    content: ''; width: 200%; height: 200%;
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -75%);
    background: #000;
}
.liquid-btn .liquid::before { border-radius: 45%; background: var(--ieee-blue); animation: animate 5s linear infinite; }
.liquid-btn .liquid::after { border-radius: 40%; background: rgba(0,0,0,0.5); animation: animate 10s linear infinite; }
.liquid-btn:hover { box-shadow: 0 10px 30px var(--neon-blue); transform: translateY(-5px); }
@keyframes animate { 0% { transform: translate(-50%, -75%) rotate(0deg); } 100% { transform: translate(-50%, -75%) rotate(360deg); } }

/* Animations & 3D Motion */
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.float-elem { animation: floatAnim 6s ease-in-out infinite; }

/* Titles */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}
/* Animated underline that draws in when section appears */
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--ieee-blue), var(--neon-blue));
    border-radius: 2px;
    transition: width 0.6s ease 0.3s;
}
.fade-in.appear .section-title h2::after { width: 60%; }
.section-title p { color: var(--neon-blue); letter-spacing: 1px; margin-top: 6px; }

/* Grid Sections (About, Team) */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Accent top-border that expands on hover */
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--ieee-blue), var(--neon-blue));
    border-radius: 0 0 3px 3px;
    transition: width 0.4s ease;
}
.about-card:hover::before { width: 60%; }
.about-card .icon-wrap { font-size: 3rem; color: var(--neon-blue); margin-bottom: 20px; text-shadow: 0 0 20px rgba(0, 191, 255, 0.5); }
.about-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.about-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.hover-3d:hover { transform: translateY(-15px) scale(1.05); border-color: var(--neon-blue); }

.about-story h3 { font-size: 2rem; margin-bottom: 20px; color: var(--text-primary); }
.about-story p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 18px; }

/* Impact statistics */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
    gap: 30px;
}
.home-impact-grid {
    margin: 42px auto 0;
}
.impact-card {
    min-height: 180px;
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.impact-card strong {
    color: var(--neon-blue);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 18px;
}
.impact-card span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Events */
.major-events-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: start; }
.event-tab { display: flex; flex-direction: column; text-align: center; padding: 0; gap: 0; cursor: pointer; overflow: hidden; width: 340px; }
.event-tab-poster { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: rgba(255,255,255,0.03); }
.event-tab-poster img { width: 100%; height: 100%; object-fit: cover; }
.event-tab-poster-fallback { display: flex; align-items: center; justify-content: center; }
.event-tab-poster-fallback i { font-size: 2.5rem; color: var(--neon-blue); }
.event-tab-body { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.event-tab h3 { font-size: 1.25rem; }
.event-tab p { color: var(--text-secondary); font-size: 0.85rem; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; border: none; background: transparent; color: var(--text-primary); cursor: pointer; border-radius: 8px; border: 1px solid var(--neon-blue); transition: all 0.3s; }
.btn-small:hover { background: var(--neon-blue); color: #000; }

/* Gallery Stack 3D */
.gallery-container-3d { perspective: 1200px; transform-style: preserve-3d; }
.gallery-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }
.gallery-stack { height: 280px; position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform 0.5s ease; }
.gallery-stack:hover { transform: rotateX(10deg) rotateY(-5deg) translateZ(30px); }
.stack-card { position: absolute; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.5s; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stack .stack-card:nth-child(1) { z-index: 3; transform: translateZ(20px); }
.gallery-stack .stack-card:nth-child(2) { z-index: 2; transform: translateZ(10px) translateY(10px) rotate(-3deg); opacity: 0.8; }
.gallery-stack .stack-card:nth-child(3) { z-index: 1; transform: translateZ(0) translateY(20px) rotate(3deg); opacity: 0.6; }
.gallery-stack:hover .stack-card:nth-child(2) { transform: translateZ(10px) translateY(-5px) rotate(-8deg); }
.gallery-stack:hover .stack-card:nth-child(3) { transform: translateZ(0) translateY(-10px) rotate(8deg); }
.stack-info { position: absolute; bottom: 0; padding: 20px; width: 100%; z-index: 5; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }

/* Expanded Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.3s; position: relative; border: 1px solid var(--glass-border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; filter: brightness(0.8); }
.gallery-item:hover { transform: scale(1.05); z-index: 2; box-shadow: 0 0 20px var(--neon-blue); }
.gallery-item:hover img { filter: brightness(1.2); transform: scale(1.1); }
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 12px; border: 2px solid var(--neon-blue); box-shadow: 0 0 30px rgba(0, 191, 255, 0.4); transform: scale(0.9); transition: transform 0.3s; }
.lightbox.active img { transform: scale(1); }

/* Videos (shown inside the Gallery section, not a standalone nav item) */
.gallery-videos-subhead { margin-top: 50px; margin-bottom: 24px; text-align: center; border-top: 1px solid var(--glass-border); padding-top: 40px; }
.gallery-videos-subhead h3 { font-size: 1.4rem; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.video-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--card-bg); backdrop-filter: blur(10px); }
.video-embed-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-item h3 { padding: 14px 16px; font-size: 1rem; color: var(--text-primary); }

/* Team Section */
.team-year-filter-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.team-year-filter-wrap select {
    padding: 10px 36px 10px 18px; background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 30px; color: var(--text-primary); font-size: 0.95rem; cursor: pointer;
    -webkit-appearance: none; appearance: none; backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2300BFFF' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
:root[data-theme="dark"] .team-year-filter-wrap select option { background: #0a0a0a; color: #ffffff; }
:root[data-theme="light"] .team-year-filter-wrap select option { background: #ffffff; color: #0f172a; }
.team-leader-grid { display: flex; justify-content: center; margin-bottom: 50px; }
.team-container-fluid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.member-card { width: 260px; background: var(--card-bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); transition: 0.4s; }
.member-img {
    height: 320px;
    overflow: hidden;
    position: relative; /* FIX: member-info is position:absolute — parent must be relative */
}
.member-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.5s, filter 0.5s; }
.member-card:hover { transform: translateY(-10px); border-color: var(--neon-blue); box-shadow: 0 10px 25px rgba(0,191,255,0.2); }
.member-card:hover img { filter: grayscale(0%); transform: scale(1.08); }
.member-info { padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0)); position: absolute; bottom: 0; width: 100%; transition: 0.3s; }
.member-info h3 { color: #fff; font-size: 1.25rem; font-family: 'Inter', sans-serif; }
.member-info p { color: var(--neon-blue); font-size: 0.9rem; font-weight: 500; }

/* Contact Section & Footer */
.contact-container { display: flex; flex-direction: column; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1000px; padding: 50px; gap: 50px; }
.contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.contact-map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border); margin-top: 10px; }
.contact-map-wrap iframe { display: block; filter: grayscale(15%) contrast(1.05); }
:root[data-theme="dark"] .contact-map-wrap iframe { filter: grayscale(40%) invert(90%) contrast(0.9) hue-rotate(180deg); }
.icon-glow i { font-size: 2rem; color: var(--neon-blue); text-shadow: 0 0 15px rgba(0,191,255,0.5); }
.futuristic-form { display: flex; flex-direction: column; gap: 30px; }
.contact-input-group { position: relative; width: 100%; }
.contact-input-group input, .contact-input-group textarea { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 2px solid var(--text-secondary); color: var(--text-primary); font-size: 1rem; outline: none; transition: 0.3s; resize: none; }
.contact-input-group label { position: absolute; top: 15px; left: 0; color: var(--text-secondary); pointer-events: none; transition: 0.3s; font-size: 1rem; }
.focus-border { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--neon-blue); transition: 0.4s; }
.contact-input-group input:focus ~ .focus-border, .contact-input-group textarea:focus ~ .focus-border, .contact-input-group input:not(:placeholder-shown) ~ .focus-border, .contact-input-group textarea:not(:placeholder-shown) ~ .focus-border { width: 100%; }
.contact-input-group input:focus ~ label, .contact-input-group textarea:focus ~ label, .contact-input-group input:not(:placeholder-shown) ~ label, .contact-input-group textarea:not(:placeholder-shown) ~ label { top: -10px; font-size: 0.8rem; color: var(--neon-blue); }

.contact-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-select-group { display: flex; flex-direction: column; gap: 8px; }
.contact-select-group label { color: var(--text-secondary); font-size: 0.85rem; }
.contact-select-group select {
    width: 100%; padding: 12px 0; background: transparent; border: none; border-bottom: 2px solid var(--text-secondary);
    color: var(--text-primary); font-size: 1rem; outline: none; transition: 0.3s; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2300BFFF' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right center;
}
/* Native <option> popups ignore most CSS and render using the OS theme unless
   color-scheme tells the browser which palette to use — must track the site's
   active theme, not be hardcoded, since this site supports both. */
:root[data-theme="dark"] .contact-select-group select { color-scheme: dark; }
:root[data-theme="light"] .contact-select-group select { color-scheme: light; }
.contact-select-group select:focus { border-color: var(--neon-blue); }
:root[data-theme="dark"] .contact-select-group select option { background: #0a0a0a; color: #ffffff; }
:root[data-theme="light"] .contact-select-group select option { background: #ffffff; color: #0f172a; }
.glass-footer { padding: 15px 0; font-size: 0.9rem; color: var(--text-secondary); border-top: 1px solid var(--glass-border); width: 100%; background: var(--nav-bg); }
.glass-footer .container { display: flex; justify-content: space-between; align-items: center; max-width: 100% !important; padding: 0 20px !important; flex-wrap: wrap; gap: 8px; text-align: center; }

/* Full site footer (brand / navigation / quick links / contact) */
.site-footer { width: 100%; background: var(--nav-bg); border-top: 1px solid var(--glass-border); padding: 60px 0 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; text-align: left; padding-bottom: 40px; }
.footer-brand-col p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 18px; max-width: 320px; }
.footer-socials { display: flex; gap: 14px; }
.footer-socials a { color: var(--text-secondary); font-size: 1.15rem; transition: color 0.2s; }
.footer-socials a:hover { color: var(--neon-blue); }
.footer-links-col h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-links-col a:hover { color: var(--neon-blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 5%; border-top: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-secondary); }

/* Animations - Reveal */
.fade-in { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Gallery filter info bar */
.gallery-filter-info { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 12px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; }

/* ── Hero CTA pulse on page load ── */
@keyframes heroPulse {
    0%   { box-shadow: 0 8px 25px rgba(0, 98, 155, 0.4); }
    50%  { box-shadow: 0 12px 40px rgba(0, 191, 255, 0.55); }
    100% { box-shadow: 0 8px 25px rgba(0, 98, 155, 0.4); }
}
.hero .liquid-btn { animation: heroPulse 2.5s ease-in-out 1.2s 3; }

/* ── Toast Notification System ── */
.toast-container {
    position: fixed;
    bottom: 32px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    max-width: 340px;
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.toast-success { background: var(--toast-success-bg); color: #00e676; border-color: rgba(0,230,118,0.25); }
.toast.toast-error   { background: var(--toast-error-bg);   color: #ff5252; border-color: rgba(239,68,68,0.25); }
.toast.toast-info    { background: var(--glass-bg);         color: var(--neon-blue); border-color: var(--glass-border); }
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); }        to { opacity: 0; transform: translateY(10px) scale(0.95); } }

/* ── Share Row (event detail page) ── */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.share-row span { font-size: 0.9rem; color: var(--text-secondary); }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.share-btn:hover { border-color: var(--neon-blue); color: var(--neon-blue); background: rgba(0,191,255,0.08); }
.share-btn.copied { color: #00e676; border-color: rgba(0,230,118,0.3); }

/* ── Mobile Nav Backdrop ── */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-backdrop.active { display: block; }

/* Mobile menu button: uses data attribute to switch icon */
.menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary);
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 8px; transition: background 0.2s;
}
.menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ── Responsive: Tablet (≤900px) ── */
@media (max-width: 900px) {
    .menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 80px; left: -100%;
        width: 100%; height: calc(100vh - 80px); height: calc(100dvh - 80px);
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
        z-index: 99;
        gap: 10px;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.1rem; padding: 10px 20px; }
    #theme-toggle.liquid-button { display: none; } /* moved into the mobile menu below instead */
    .mobile-theme-item { display: block; margin-top: 10px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-input-row { grid-template-columns: 1fr; gap: 20px; }
    .impact-grid { grid-template-columns: minmax(0, 1fr); }
    .glitch { font-size: 2.5rem; }
    .float-container { flex-direction: column; text-align: center; }
    .hero-content { margin-top: 50px; }
}

/* ── Responsive: Mobile (≤600px) ── */
@media (max-width: 600px) {
    .section-snap { min-height: unset; padding: 60px 5%; } /* let content set the height on mobile — forcing a full screen per section made short sections (Achievements, etc.) leave a lot of empty space before the next one */
    .hero { padding: 70px 5% 30px; } /* hero stays full-height — it's the landing view, meant to fill the screen */
    .section-title h2 { font-size: 2rem; }
    .section-title { margin-bottom: 36px; }
    .glitch { font-size: 2rem; }
    .hero-desc { font-size: 1rem; margin: 15px 0 30px; }
    .liquid-btn { padding: 14px 28px; font-size: 0.9rem; }
    .nav-logo { height: 38px; }
    .about-card { padding: 25px 20px; }
    .major-events-grid { gap: 20px; }
    .event-tab { width: 100%; max-width: 360px; }
    .gallery-stack-grid { grid-template-columns: 1fr; }
    .gallery-stack { height: 220px; } /* reduced height on phones */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .video-grid { grid-template-columns: 1fr; gap: 20px; }
    .team-container-fluid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .team-container-fluid .member-card { width: 100%; max-width: none; }
    .team-leader-grid .member-card { width: 100%; max-width: 280px; } /* the solo Staff Coordinator card stays capped and centered, not stretched by the grid rule above */
    .member-img { height: 200px; } /* shorter than desktop's 320px — cards are much narrower in a 2-column mobile grid, so the original height looked stretched */
    .contact-grid { padding: 20px; gap: 30px; }
    .glass-footer .container { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; text-align: left; }
    .footer-brand-col { grid-column: 1 / -1; text-align: center; }
    .footer-brand-col p { margin: 0 auto 18px auto; }
    .footer-socials { justify-content: center; }
    .footer-contact-col { grid-column: 1 / -1; text-align: center; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .toast-container { bottom: 16px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
    #back-to-top { bottom: 16px; left: 16px; width: 42px; height: 42px; font-size: 1rem; }
}

/* ── 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;
    }
    .float-elem { animation: none; }
    .hero .liquid-btn { animation: none; }
    #galaxy-bg { opacity: 0.3; }
}
