:root {
    --bg-dark: #1E1433;
    /* Primary Background */
    --bg-deep: #0a0518;
    /* Deep Navy-Purple for layers */
    --bg-card: rgba(15, 10, 35, 0.4);
    /* More transparent, ethereal glass */
    --border-color: rgba(0, 243, 255, 0.25);
    /* Subtler Cyan Border */

    --primary-cyan: #00f3ff;
    --primary-pink: #ff0099;
    --accent-purple: #bc13fe;
    /* Eclipse Purple */

    --accent-glow: #00f3ff;

    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    /* Slate blue-grey for softer deep-space feel */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Glassmorphism System */
    --glass-bg: rgba(15, 10, 35, 0.45);
    --glass-border: rgba(0, 243, 255, 0.15);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Deep Space Gradients */
    --gradient-btn: linear-gradient(135deg, #bc13fe 0%, #00f3ff 100%);
    --gradient-text: linear-gradient(to right, #00f3ff, #bc13fe);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Performance */
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Fluid Typography */
    --font-size-base: 16px;
    --font-h1: clamp(2.5rem, 5vw, 4.5rem);
    --font-h2: clamp(2rem, 4vw, 3.5rem);
    --font-h3: clamp(1.5rem, 3vw, 2.5rem);
}

html {
    font-size: var(--font-size-base);
}

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

/* Touch-First UI */
a,
button,
input,
select,
textarea {
    min-width: 48px;
    /* Accessibility Standard */
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Override for specific small links if needed, or rely on flex centering */
.nav-link {
    width: auto;
    /* Allow text width but maintain min height */
}

/* Blur-Up Image Loading */
.blur-load {
    filter: blur(20px);
    transition: filter 0.5s ease-out;
}

.blur-load.loaded {
    filter: blur(0);
}

body {
    background: #0a0518;
    background-image:
        linear-gradient(rgba(13, 2, 33, 0.4), rgba(13, 2, 33, 0.4)),
        url('galaxy-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #0d0221;
    /* Match background deep purple */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    overflow: hidden;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.loader-rocket {
    font-size: 4rem;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary-cyan));
    animation: loaderRocket 2s infinite ease-in-out;
}

@keyframes loaderRocket {

    0%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    50% {
        transform: translateY(-30px) rotate(-45deg);
        filter: drop-shadow(0 0 40px var(--primary-cyan));
    }
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
}

/* Glitch Effect for Loading Text */
.loader-text::before,
.loader-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.loader-text::before {
    color: var(--primary-cyan);
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.loader-text::after {
    color: var(--primary-pink);
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.loader-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-btn);
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: loaderProgress 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loaderProgress {
    0% {
        width: 0;
    }

    20% {
        width: 30%;
    }

    50% {
        width: 45%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

.loader-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

body.loading {
    overflow: hidden;
}

/* Base Performance Hints - Removed excessive will-change */
.reveal,
.hero-canvas,
.hero-content,
.info-card,
.team-card,
.event-card,
.legacy-card,
.rocket-icon {
    backface-visibility: hidden;
}

/* Hide performance-heavy glow orbs that create 'borders' */
.purple-glow-1,
.purple-glow-2 {
    display: none;
}

.stars {
    /* Keep stars but ensure they are subtle performance-wise */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.script-tutorials.com/demos/360/images/stars.png') repeat;
    z-index: -2;
    opacity: 0.25;
    /* More subtle stars against galaxy */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(13, 2, 33, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-cyan);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Restored Logo Styles */
.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.logo i {
    display: none;
}

h1,
h2,
h3,
h4,
.section-title {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.logo-img {
    width: 45px;
    height: auto;
    object-fit: contain;
    /* Invert to black BG, colorize to bright purple, Screen to blend */
    filter: invert(1) brightness(1.5) sepia(1) saturate(500%) hue-rotate(220deg) contrast(1.2);
    mix-blend-mode: screen;
    transition: transform 0.3s;
}

.logo:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    position: relative;
    /* Context for indicator */
}

/* Active Nav Indicator (Sliding Oval) */
#nav-indicator {
    position: absolute;
    height: 34px;
    /* Flatter/Sleeker */
    background: rgba(168, 85, 247, 0.25);
    border-radius: 9999px;
    /* Max pill shape */
    border: 1px solid rgba(216, 180, 254, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(216, 180, 254, 0.5);
    /* Brighter border */
    /* Brighter border */
    box-shadow: 0 0 20px var(--primary-cyan);
    z-index: -1;
    /* Behind text */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

/* Removed old progress bar styles */
/*
.progress-container { ... }
#progress-indicator (old) { ... }
*/

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Navbar Button - Sleeker */
.btn-nav {
    background: var(--gradient-btn);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    /* Pillow shape for sleekness */
    font-weight: 500;
    /* Reduced from 600 */
    /* Reduced from 600 */
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    /* Glow */
    transition: all 0.3s ease;
}

.btn-nav:hover {
    box-shadow: 0 0 25px var(--primary-pink);
    transform: translateY(-1px);
}

/* Join Us Button */
.btn-join {
    background: var(--primary-cyan);
    color: #0a0518 !important;
    padding: 0.6rem 1.6rem;
    /* Slightly wider */
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth premium ease */
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.btn-join:hover {
    background: #66fcf1;
    /* Lighter, fresher cyan */
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6),
        0 0 10px rgba(255, 255, 255, 0.4) inset;
    /* Inner glow + Outer glow */
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Hero Section - Scroll Architecture */
/* Hero Section - Scroll Architecture */
.hero-scroll-container {
    height: 250vh;
    position: relative;
    background: var(--bg-dark);
}

/* Smooth Transition Gradient Overlay */
.hero-scroll-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 5;
    pointer-events: none;
}

/* Mobile Portrait Fix & Logo Highlight */


/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smooth "easeOutQuint"ish */
    visibility: hidden;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.highlight-text {
    color: var(--accent-glow);
    font-weight: 800;
    letter-spacing: 1px;
    margin-left: 0.3rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Past Events Spacing */


/* Header for Past Events (Pseudo-element or JS? Use CSS for simplicity if header exists, else this spacing helps) */


/* Hero Sticky Wrapper */
.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    z-index: 10;
    background: var(--bg-dark);
}

/* Static background removed as requested */

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    opacity: 1 !important;
}

/* Make Navbar blended/transparent */
.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

/* --- Welcome Section (Vibrant) --- */
.welcome-section {
    min-height: 80vh;
    /* Takes up most of the view, commanding attention */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 6rem 2rem;
}

.welcome-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Typography */
.welcome-title {
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text-animate {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #00f3ff, #bc13fe, #ff0099, #00f3ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

/* Welcome Label - Animated Gradient */
.welcome-label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #00f3ff, #ff0099, #00f3ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    margin-bottom: 1rem;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.giant-glow-text {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    /* Simplified shadow */
}

/* Legacy Globe styles removed - functionality moved to 3D Three.js implementation */


/* Glass Card - Optimized to remove backdrop-filter lag */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.5rem;
    /* backdrop-filter: blur(12px); REMOVED for performance */
    /* -webkit-backdrop-filter: blur(12px); REMOVED for performance */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.dashboard-column.left {
    align-items: flex-start;
    max-width: 450px;
    /* Strictly constrain width to original size */
    flex: 0 0 450px;
    /* Prevent growing or shrinking */
}

.dashboard-column.right {
    align-items: flex-end;
}



/* Sleek Notched Frame */
.sleek-frame {
    background: rgba(15, 10, 35, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    /* Small radius, notched look via clip-path */
    position: relative;
    padding: 1.5rem;
    width: 100%;
    min-height: 380px;
    clip-path: polygon(0% 15px, 15px 0%,
            calc(100% - 15px) 0%, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%,
            15px 100%, 0% calc(100% - 15px));
}

.sleek-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 243, 255, 0.2);
    pointer-events: none;
    clip-path: inherit;
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown Timer */
.countdown-timer {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
}

/* Sky Tonight Info */
.sky-tonight {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sky-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.sky-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.sky-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Intelligence Feed Sub-Panel */
.intel-feed-container {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.intel-feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--primary-cyan);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.intel-ticker-content {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.4;
    min-height: 3em;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.intel-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 243, 255, 0.05) 51%,
            transparent 51%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlineScroll 10s linear infinite;
}

@keyframes scanlineScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

/* Flicker effect for cyberpunk feel - DISABLED to prevent flashing */
.flicker-text {
    /* animation: textFlicker 3s linear infinite; */
    /* Animation removed to prevent constant flashing */
    opacity: 1;
    /* Maintain visibility without flicker */
}

@keyframes textFlicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 0.99;
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* Mini Stat Boxes below Panels */
.panel-bottom-stats {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.mini-stat-box {
    background: rgba(15, 10, 35, 0.6);
    border: 1px solid rgba(188, 19, 254, 0.2);
    padding: 1rem;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.purple-icon {
    color: var(--accent-purple);
    font-size: 1.2rem;
}

.all-systems-go {
    color: #00ffaa;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

/* Center Bottom Chips */
.dashboard-footer-chips {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.footer-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    min-width: 250px;
}

.chip-pink {
    background: rgba(255, 0, 153, 0.05);
    border: 1px solid rgba(255, 0, 153, 0.2);
    color: var(--primary-pink);
    box-shadow: 0 0 30px rgba(255, 0, 153, 0.15);
}

.chip-purple {
    background: rgba(188, 19, 254, 0.05);
    border: 1px solid rgba(188, 19, 254, 0.2);
    color: #df99ff;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.15);
}

.chip-text {
    display: flex;
    flex-direction: column;
}

.chip-label {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* Radar Visual Refinement */
.radar-scope-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.radar-visual {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
}

.radar-rings {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle, transparent 0, transparent 30px, rgba(0, 243, 255, 0.1) 30px, rgba(0, 243, 255, 0.1) 31px);
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 243, 255, 0.3) 0%, transparent 20%);
    border-radius: 50%;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    to {
        transform: rotate(360deg);
    }
}

/* Globe Container (Right) */
.globe-container {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#earth-globe-canvas {
    width: 100%;
    height: 100%;
}

/* CSS Orbital rings removed */

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-value {
    color: #fff;
    font-weight: 500;
}

.highlight-cyan {
    color: var(--primary-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Radar Display Styles */
.radar-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.radar-scope {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle, rgba(0, 243, 255, 0.03) 0%, transparent 70%),
        repeating-radial-gradient(circle, transparent 0, transparent 40px, rgba(0, 243, 255, 0.05) 40px, rgba(0, 243, 255, 0.05) 41px);
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.3), transparent);
    transform-origin: bottom left;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.radar-ping {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    top: 35%;
    left: 42%;
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.flight-status-footer {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-confirmed {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-confirmed i {
    color: #4ade80;
    font-size: 1.1rem;
}

.glow-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: flashStatus 2s infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
    opacity: 0.5;
    animation: scanDown 4s linear infinite;
}

@keyframes flashStatus {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes scanDown {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Mobile Adjustments */


/* Background Decoration */
.orb {
    display: none;
    /* Hidden to remove clipped border lines */
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: floatOrb 10s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b2df2, #d946ef);
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a855f7, #9333ea);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



/* Mobile Adjustments */



.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.5);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    /* Subtle glow */
}

.hero-title {
    font-size: 5rem;
    /* Slightly larger */
    line-height: 1.1;
    font-weight: 600;
    /* Reduced from 700 */
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Shadow for legibility */
}

.gradient-text {
    /* Solid light purple color */
    /* Solid light purple color */
    color: var(--primary-cyan);
    /* Removed gradients */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    /* Greyer as requested */
    font-weight: 300;
    /* Thinner/Less bold */
    max-width: 600px;
    margin: 0 auto 3rem;
    letter-spacing: 0.5px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-btn);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Full pill */
    font-weight: 600;
    transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    /* Vibrant Glow */
}

/* Events Headers to Segregate Lists */
.events-section-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    /* Space before header */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-glow);
}

.events-section-header i {
    color: var(--accent-glow);
}

/* Extra spacing for Past Events Container specifically if needed */
#past-events-container {
    margin-top: 2rem;
    position: relative;
    /* Spacing handled by header now, but keeping some margin */
}





.btn-hero:hover {
    transform: translateY(-2px);
}



/* Sections */
.section-container {
    padding: 6rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title .highlight {
    color: var(--primary-cyan);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Info Card - Sleek Glass Look */
.info-card {
    background: rgba(15, 10, 35, 0.75);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Vivid Hover Effect */
.info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 243, 255, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    /* Lighter background for icon */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-box i {
    font-size: 1.8rem;
    color: white;
    /* White icon for better contrast on vibrant bg */
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
    /* Whiter text for readability on purple */
    font-size: 1.05rem;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 2rem 0;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
}

/* Research */
.research-card-large {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.research-content-center {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flask-icon-glow {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 0, 153, 0.6);
}

.pill-coming-soon {
    margin-bottom: 1.5rem;
}

/* Team Grid - Uniform */
.team-grid-uniform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: rgba(15, 10, 35, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    /* Mobile GPU acceleration for smooth transitions */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.team-card:hover,
.team-card:active {
    transform: translateY(-8px) translateZ(0);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.avatar-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure image stays in circle */
}

.linkedin-link {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
    /* Override global touch target rule for visual balance */
    min-height: 36px;
    background: var(--gradient-btn);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-link:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--primary-cyan);
}

.avatar-circle.has-image {
    padding: 0;
    border: none;
    /* Highlight for photo */
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    transform: scale(1.1);
    object-position: center;
    /* Default: Show face and blazer (Roshan's perfect zoom) */
}

/* Members needing extra zoom to hide borders/background artifacts */
.photo-rian-mallik,
.photo-parthiv-prasanth,
.photo-disha-rout,
.photo-ahan-matthew,
.photo-vaibhav-seshadri,
.photo-ishanth-chandra,
.photo-divyesh-srivastava {
    transform: scale(1.7) !important;
    object-position: center !important;
}

.team-card:hover .team-photo {
    transform: scale(1.35);
    /* Gentle zoom on hover */
}

.avatar-circle i {
    font-size: 2.5rem;
    color: var(--accent-glow);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--accent-glow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 0 10px;
}

/* Events Specifics */
.events-section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.empty-events-box {
    background: rgba(15, 10, 35, 0.75);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.empty-events-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}

/* Progress Indicator (Oval Bar) */
.progress-container {
    position: fixed;
    top: 85px;
    /* Below navbar */
    right: 30px;
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    z-index: 999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#progress-indicator {
    height: 100%;
    background: var(--gradient-text);
    width: 0%;
    /* JS updates this */
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transition: width 0.1s ease-out;
}



/* Forms & Contact */
.join-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 10, 35, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.contact-info-left {
    padding-top: 0;
    /* Reduced */
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced from 1rem */
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    align-items: center;
}

.info-icon {
    width: 40px;
    /* Smaller */
    height: 40px;
    /* Smaller */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    /* Circle looks better for centered */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Slightly smaller */
    color: var(--accent-glow);
    margin-bottom: 0.2rem;
}

.info-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text p,
.teacher-box p {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
}

.teacher-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0.5rem;
}

.role-label {
    font-size: 1.1rem;
    color: var(--primary-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.teacher-name {
    color: #fff;
    /* White for better visibility */
    font-weight: 600;
    font-size: 1.4rem;
}

/* Reusing form-box styling but refining inputs */
.form-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-btn);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 4rem 5%;
    background: #03010a;
    /* Near black cosmos */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-left,
.footer-right,
.footer-center {
    display: flex;
    align-items: center;
}

.footer-center {
    gap: 2rem;
}

.footer-center a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-center a:hover {
    color: white;
}

.footer-right {
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 0.5rem;
}

/* Legacy Section */
.legacy-wrapper {
    position: relative;
    padding: 2rem 0;
    width: 100%;
}

.legacy-scroll-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force side-by-side */
    gap: 2rem;
    padding: 1rem 5%;
    width: 100%;
    max-width: 1400px;
    /* Prevent becoming too massive on huge screens */
    margin: 0 auto;
}

/* Hide scrollbar styles since we aren't scrolling */
.legacy-scroll-container::-webkit-scrollbar {
    display: none;
}

.legacy-card {
    width: 100%;
    /* Fill the grid column */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease;
}


@media (max-width: 768px) {
    body {
        background-image: url('mobile_starfield_ultra_hd.png');
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        min-height: 100vh;
    }

    .legacy-scroll-container {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        transition: none !important;
    }

    /* Glassmorphic Hamburger Menu */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 5, 24, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

.legacy-image-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legacy-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-align: center;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Hide rocket in legacy section as requested */
#legacy .rocket-progress-container {
    display: none;
}

/* Rocket Progress Bar */
.rocket-progress-container {
    margin: 3rem auto 0;
    max-width: 600px;
    width: 90%;
}

.rocket-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.rocket-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 8px var(--primary-cyan));
    transition: transform 0.1s linear;
    will-change: left;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.rocket-icon:active {
    cursor: grabbing;
}

/* Draggable Utility: Disable smooth scroll and transitions during active drag */
.is-dragging {
    scroll-behavior: auto !important;
}

.is-dragging .rocket-icon {
    transition: none !important;
}

.rocket-icon svg {
    width: 100%;
    height: 100%;
}

/* Events Scroll Carousel */
.events-scroll-wrapper {
    position: relative;
    padding: 1rem 0;
    width: 100%;
}

.events-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 2%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

.events-scroll-container::-webkit-scrollbar {
    display: none;
}

.event-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    width: 300px;
    background: rgba(15, 10, 35, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.4);
}

.event-card:hover .event-image-box img {
    transform: scale(1.05);
}

.event-image-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.event-card h4 {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.event-rocket-progress {
    max-width: 400px;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Consolidated Mobile Portrait Fixes */
@media (max-width: 768px) {

    /* Better mobile spacing and readability */
    body {
        font-size: 16px;
        line-height: 1.7;
        /* Optimize background for mobile - use scroll instead of fixed */
        background-attachment: scroll;
        background-position: center top;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Optimized text sizes for mobile */
    .giant-glow-text {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .welcome-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .gradient-text-animate {
        font-size: 1.4rem;
    }

    .globe-wrapper {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }

    .quote-text {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Section titles more readable on mobile */
    .section-title {
        font-size: 2.2rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
        /* Larger touch target */
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(13, 2, 33, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(0, 243, 255, 0.1);
        display: flex;
        padding: 2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem;
        /* Better touch targets */
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links.nav-active {
        right: 0;
    }

    #nav-indicator {
        display: none;
    }

    /* Mobile-optimized cards */
    .team-grid-uniform {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .team-card {
        padding: 2rem;
        /* Slightly reduced for mobile */
    }

    .legacy-card,
    .event-card {
        flex: 0 0 280px;
        /* Slightly smaller for mobile */
    }

    /* Better mobile scrolling experience */
    .legacy-scroll-container,
    .events-scroll-container {
        padding: 1rem 1rem;
        gap: 1.2rem;
    }

    /* Info cards stack better on mobile */
    .info-card {
        padding: 2rem 1.5rem;
    }

    /* Contact section mobile optimization */
    .contact-layout {
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    /* Mission control mobile sizing */
    .mission-control {
        padding: 2rem 1.5rem;
        margin: 2rem auto 0;
    }

    .dashboard-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 1rem;
    }

    .dashboard-column {
        width: 100%;
        max-width: 100%;
    }

    .dashboard-center {
        order: -1;
        width: 100%;
        margin: 2rem 0;
    }

    .globe-wrapper {
        width: 250px;
        height: 250px;
    }

    .dashboard-footer-chips {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .footer-chip {
        width: 100%;
        min-width: unset;
    }

    .countdown-timer {
        font-size: 2rem;
    }
}

/* --- Interactive HUD Styles --- */
.hud-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Tabs */
.hud-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.hud-tab {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-tab:hover {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
}

.hud-tab.active {
    background: var(--primary-cyan);
    color: #0a0518;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    font-weight: 700;
    border-color: var(--primary-cyan);
}

/* Panels */
.hud-panel {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeGrid 0.4s ease-out;
}

.hud-panel.active {
    display: flex;
}

@keyframes fadeGrid {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Metrics Row */
.hud-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.hud-metric {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 4px;
    flex: 1;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.hud-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-family: 'Orbitron', sans-serif;
}

.hud-value {
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: 700;
}

.hud-value.highlight-cyan {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.hud-value.highlight-pink {
    color: var(--primary-pink);
    text-shadow: 0 0 8px rgba(255, 0, 153, 0.3);
}

/* Bars */
.hud-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.hud-fill {
    height: 100%;
    background: var(--primary-cyan);
    width: 50%;
    transition: width 0.5s ease;
    box-shadow: 0 0 5px var(--primary-cyan);
}

/* Radar Box */
.hud-radar-box {
    position: relative;
    width: 100%;
    height: 140px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 4px;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.radar-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.radar-scan {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 243, 255, 0.1) 60deg, rgba(0, 243, 255, 0.4) 90deg, transparent 91deg);
    border-radius: 50%;
    animation: radarSpin 4s linear infinite;
    top: -50%;
    transform-origin: 50% 100%;

    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3) 95%, rgba(0, 243, 255, 0.8));
    width: 20%;
    animation: radarSweep 3s linear infinite;
    transform: none;
    border-radius: 0;
    left: -20%;
}

@keyframes radarSweep {
    0% {
        left: -20%;
    }

    100% {
        left: 100%;
    }
}

.radar-target {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    animation: pulseTarget 2s infinite;
}

@keyframes pulseTarget {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hud-label-overlay {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    opacity: 0.7;
}

/* Astro Coords */
.hud-coords-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.coord-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.coord-status {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.status-ok {
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    font-weight: bold;
}

/* --- Orbital Ascent Mini-Game Styles --- */

.game-container {
    position: relative;
    width: 100%;
    /* Fill remaining height in panel-content above intel-feed */
    /* panel-content is flex column, so we want this to grow */
    flex: 1;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* Canvas resolution handled in JS */
}

/* Overlays (Start / Game Over) */
.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 5, 24, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.game-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Game Buttons */
.btn-game-primary {
    position: relative;
    padding: 0.8rem 2rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-game-primary:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.btn-game-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-game-secondary:hover {
    border-color: var(--primary-cyan);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* In-Game UI */
.game-ui {
    position: absolute;
    top: 10px;
    right: 15px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-ui.active {
    opacity: 1;
}

.score-box {
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

.score-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.score-value {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.score-unit {
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

/* Game Over Specifics */
.signal-lost {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-pink);
    text-shadow: 2px 0 var(--primary-cyan), -2px 0 var(--accent-purple);
    margin-bottom: 1rem;
    animation: glitchText 0.4s infinite;
}

.final-score-box {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

#final-score {
    color: var(--primary-cyan);
    font-weight: 700;
}

@keyframes glitchText {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Ensure Panel Content flexes */
.panel-content.intel-display {
    display: flex;
    flex-direction: column;
    height: 100%;
}