﻿/* Responsive styles for ANSR APRS Flight Visuals */
#flight-visuals-section {
    padding-bottom: 2rem;
}
#flight-visuals-section h2, #flight-visuals-section h3 {
    text-align: center;
}
#aprs-map {
    width: 100%;
    min-height: 220px;
    max-height: 400px;
    height: 40vw;
    border-radius: 12px;
    margin-bottom: 2em;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
#altitude-chart {
    width: 100% !important;
    height: 40vw !important;
    max-height: 320px;
    min-height: 180px;
    display: block;
    margin: 0 auto;
}
@media (max-width: 600px) {
    #flight-visuals-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    #aprs-map {
        min-height: 160px;
        max-height: 220px;
        height: 48vw;
    }
    #altitude-chart {
        min-height: 120px;
        max-height: 180px;
        height: 48vw !important;
    }
}

/* Prevent number animation jitter in stat blocks */
.stat-number {
    transition: none !important;
    will-change: auto !important;
}
/* NASA-Inspired Stylesheet for ASCEND Website - Official NASA Space Grant Program */
/* ═══════════════════════════════════════════════════════════════════════════════
   VISUAL EXCELLENCE SYSTEM — Professional Aerospace Design
   NASA ASCEND Website · Premium Visual Enhancement Layer
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --nasa-red: #FC3D21;
    --nasa-blue: #0B3D91;
    --nasa-dark: #060D1A;
    --nasa-glow: rgba(0, 229, 255, 0.5);
    --nasa-active: #FFFFFF;
    --terminal-font: 'Space Mono', monospace;
    --heading-font: 'Orbitron', sans-serif;

    /* Premium Visual Palette */
    --bg-page: #9fa3aa;
    --bg-page-alt: #EDF0F5;
    --header-bg: #060D1A;
    --header-text: #FFFFFF;
    --panel-glass-bg: rgba(255, 255, 255, 0.35);
    --panel-solid-bg: rgba(255, 255, 255, 0.30);

    --space-dark: #0B3D91;
    --space-darker: #060D1A;
    --space-light: #E8ECF2;

    --bg-video-blur: 0px;
    --bg-video-opacity: 0.30;
    --space-element-opacity: 0;

    --text-main: #060D1A;
    --text-accent: #0B3D91;
    --text-muted: #a3a9b4;
    --text-dim: #718096;

    --overlay-top: rgba(245, 247, 250, 0.92);
    --overlay-mid: rgba(245, 247, 250, 0.75);
    --overlay-bottom: rgba(245, 247, 250, 0.92);

    --accent-gold: #FFD700;
    --accent-cyan: #00E5FF;
    --mission-control-green: #00FF88;
    --hud-cyan: #00E5FF;
    --text-cyan: #00E5FF;

    /* Premium Gradients */
    --gradient-space: linear-gradient(180deg, #060D1A 0%, #0B3D91 50%, #1a237e 100%);
    --gradient-worm: linear-gradient(135deg, #FC3D21 0%, #FF6B4A 50%, #0B3D91 100%);
    --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(252,61,33,0.1) 0%, rgba(11,61,145,0.15) 100%);
    
    --panel-bg: rgba(11, 61, 145, 0.05);
    --panel-border: rgba(11, 61, 145, 0.2);
    --panel-hover-bg: rgba(11, 61, 145, 0.12);

    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Segmented Nav Tokens */
    --nav-block-bg: #E8ECF2;
    --nav-block-active: #0B3D91;
    --nav-block-text: #060D1A;
}

/* Dark mode overrides */
body.theme-dark {
    --bg-page: #060D1A;
    --header-bg: #020408;
    --header-text: #FFFFFF;
    --space-dark: #060D1A;
    --space-darker: #020408;
    --space-light: #0A1628;

    --bg-video-blur: 2px;
    --bg-video-opacity: 0.55;
    --space-element-opacity: 1;

    --text-main: #FFFFFF;
    --text-accent: #00E5FF;
    --text-muted: #ccd6e4;
    --text-dim: #8390a5;

    --overlay-top: rgba(6, 13, 26, 0.85);
    --overlay-mid: rgba(6, 13, 26, 0.5);
    --overlay-bottom: rgba(6, 13, 26, 0.85);

    --accent-gold: #FFD700;
    --accent-cyan: #00E5FF;
    --mission-control-green: #00FF88;

    --panel-bg: rgba(0, 243, 255, 0.05);
    --panel-border: rgba(0, 243, 255, 0.15);
    --panel-hover-bg: rgba(0, 243, 255, 0.1);

    --shadow-premium: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 243, 255, 0.05);

    /* Segmented Nav Tokens Dark */
    --nav-block-bg: rgba(255, 255, 255, 0.05);
    --nav-block-active: var(--nasa-red);
    --nav-block-text: #FFFFFF;
}

body {
    font-family: 'Exo 2', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-page);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Site Background System */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    overflow: hidden;
    background: var(--space-dark);
}

.site-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: var(--bg-video-opacity);
    /* Dynamic opacity based on theme */
    /* No filter â€” clean video in background */
    pointer-events: none;
}

@media (max-width: 768px) {
    .site-video-bg {
        opacity: 0.1;
        /* Even lighter on mobile to save battery/reduce clutter */
    }
}

.site-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--overlay-top) 0%,
            var(--overlay-mid) 50%,
            var(--overlay-bottom) 100%);
    z-index: 2;
}

/* Terminal Framework */
.mission-monitor {
    background: var(--panel-glass-bg);
    /* Glass panel uses theme surface */
    border: 1px solid var(--panel-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(232, 73, 29, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Glass HUD Theme for Portal */
.glass-hud {
    background: rgba(6, 13, 26, 0.65);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* HUD Top Utility Bar */
.hud-top-bar {
    background: #000;
    color: var(--mission-control-green);
    font-family: var(--terminal-font);
    font-size: 0.65rem;
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1100;
}

.hud-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--mission-control-green);
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 10px var(--mission-control-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.mission-monitor::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

.hud-label {
    font-family: var(--terminal-font);
    font-size: 0.85rem;
    color: var(--nasa-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Hero mission overview panel: advanced glass effect */
.mission-overview-panel {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: linear-gradient(
        145deg,
        rgba(6, 13, 26, 0.95) 0%,
        rgba(6, 13, 26, 0.85) 100%
    );
    border-radius: 16px;
    position: relative;
}

body.theme-light .mission-overview-panel {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(240, 245, 255, 0.95) 100%
    );
    border: 1px solid rgba(11, 61, 145, 0.15);
}

/* Telemetry Stream */
.telemetry-stream {
    background: rgba(6, 13, 26, 0.5);
    border-top: 1px solid var(--nasa-blue);
    border-bottom: 1px solid var(--nasa-blue);
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.stream-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--terminal-font);
    color: var(--nasa-active);
    font-size: 0.85rem;
}

.stream-item {
    display: inline-block;
    padding: 0 40px;
    border-right: 1px solid rgba(255, 200, 87, 0.2);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Galaxy Background Animation */
.galaxy-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--space-element-opacity);
    transition: opacity 0.4s ease-in-out;
}

.nebula {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(232, 73, 29, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 73, 29, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(8, 25, 61, 0.2) 0%, transparent 50%);
    filter: blur(calc(60px + var(--bg-galaxy-blur, 0px)));
    animation: nebula-drift 60s ease-in-out infinite alternate;
    opacity: var(--space-element-opacity);
    transition: opacity 0.4s ease-in-out;
}

@keyframes nebula-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* Starfield Overlay */
.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 10% 80%, rgba(255, 255, 255, 0.8), transparent);
    background-size: 400px 400px;
    opacity: var(--space-element-opacity);
    transition: opacity 0.4s ease-in-out;
    animation: stars-twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes stars-twinkle {
    0% {
        opacity: calc(var(--space-element-opacity) * 0.3);
    }

    100% {
        opacity: calc(var(--space-element-opacity) * 0.6);
    }
}

/* Light Animated Background - Simple Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--space-dark);
    z-index: 1;
    pointer-events: none;
}

.stars::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 55% 80%, rgba(255, 255, 255, 0.5), transparent);
    background-repeat: repeat;
    background-size: 200% 200%;
    animation: twinkle 20s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NASA Header - Unified with Footer */
.nasa-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--nasa-red);
    position: relative;
    z-index: 1050;
    padding: 0.1rem 0;
    /* Tightest spacing */
    color: var(--header-text);
}

.nasa-logo {
    color: var(--header-text) !important;
    font-weight: 700;
}

.subtitle-text {
    color: var(--header-text) !important;
    opacity: 0.7;
    font-weight: 500;
}

.btn-header {
    border: 1px solid var(--header-text);
    color: var(--header-text);
    background: transparent;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-header:hover {
    background: var(--nasa-red);
    color: #fff;
    border-color: var(--nasa-red);
}

/* Primary NASA Action Button */
/* Primary NASA Action Button - 2026 Retro Red/Blue */
.nasa-btn {
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--nasa-blue) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 25px;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nasa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
    filter: brightness(1.2);
    color: #FFFFFF !important;
}

.nasa-btn i {
    margin-right: 8px;
}

.nasa-header::after {
    display: none;
    /* Removed gradient line */
}

/* 2026 Expanded Header */
.nasa-header {
    background: var(--header-bg);
    min-height: 120px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--nasa-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1010;
}

.header-logo {
    height: 70px;
    /* Larger logo */
    margin-right: 25px;
    filter: drop-shadow(0 0 10px var(--nasa-glow));
}

.nasa-logo {
    font-size: 2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 15px var(--nasa-glow);
}

.subtitle-text {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--hud-cyan) !important;
}

/* 2026 Segmented Navigation */
.nasa-nav {
    background: var(--header-bg);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
}

.nav-container {
    padding: 0;
}

.navbar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0;
}

.nav-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--nav-block-bg);
    transition: all 0.3s ease;
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nav-block-text) !important;
    padding: 1.2rem 0.5rem !important;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}

.nav-link.active,
.nav-item:hover {
    background: var(--nav-block-active) !important;
}

.nav-link.active,
.nav-item:hover .nav-link {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar::before {
    display: none;
    /* Removed gradient from nav */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: 2px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a,
.navbar-nav .nav-link {
    color: var(--header-text) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    padding: 5px 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nasa-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--nasa-red);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section with CAD Video Background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding-top: 100px;
    overflow: hidden;
    z-index: 2;
}

/* Premium Hero Enhancement */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(252, 61, 33, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(11, 61, 145, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0.2;
    filter: brightness(1.3) contrast(1.1);
    pointer-events: none;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(6, 13, 26, 0.3) 0%, 
        rgba(11, 61, 145, 0.2) 50%,
        rgba(6, 13, 26, 0.5) 100%
    );
    z-index: -1;
}

/* NASA Mission Patch */
.nasa-mission-patch {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.patch-inner {
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(232, 73, 29, 0.2) 0%, rgba(232, 73, 29, 0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    box-shadow:
        0 0 30px rgba(244, 160, 36, 0.3),
        inset 0 0 30px rgba(232, 73, 29, 0.2);
}

.patch-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--nasa-red), var(--nasa-blue), var(--accent-gold));
    z-index: -1;
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.patch-nasa-worm {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-worm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.patch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.3rem;
}

.patch-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.patch-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    letter-spacing: 10px;
}

/* NASA Approval Badge */
.nasa-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 200, 87, 0.15);
    border: 1px solid var(--mission-control-green);
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--mission-control-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mission-control-green);
    color: var(--space-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}


.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--nasa-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 4s ease-in-out infinite;
}

@keyframes title-shimmer {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(252, 61, 33, 0.5));
    }
}

body.theme-light .hero-title {
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--nasa-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nasa-red) 0%, #FF6B4A 100%);
    color: #FFFFFF;
    border-color: var(--nasa-red);
    box-shadow: 0 4px 15px rgba(252, 61, 33, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF6B4A 0%, var(--nasa-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(252, 61, 33, 0.5);
    color: #FFFFFF;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: var(--nasa-blue);
}

.btn-secondary:hover {
    background: var(--nasa-blue);
    border-color: var(--nasa-blue);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 61, 145, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--nasa-blue);
    border-color: var(--nasa-blue);
}

.btn-outline:hover {
    background: var(--nasa-blue);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 61, 145, 0.35);
}

.btn-large {
    padding: 22px 55px;
    font-size: 1.15rem;
}

.mission-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
    position: relative;
    padding: 1rem;
    min-width: 150px;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--nasa-red);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(244, 160, 36, 0.5);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-code {
    font-size: 0.7rem;
    color: var(--mission-control-green);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    padding: 4px 8px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
}

/* Section Styles */
section {
    padding: 30px 0;
    /* Reduced from 60px */
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    padding-bottom: 20px;
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--nasa-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-dark .section-title {
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
}

.section-title::before {
    content: '';
    position: absolute;
    left: calc(50% - 80px);
    top: 0;
    color: var(--nasa-red);
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    right: calc(50% - 80px);
    top: 0;
    color: var(--nasa-red);
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nasa-red), var(--accent-cyan), var(--nasa-red), transparent);
    box-shadow: 0 0 15px rgba(252, 61, 33, 0.5);
}

/* NASA Section Header */
.nasa-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.nasa-section-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(232, 73, 29, 0.1);
    border: 1px solid rgba(232, 73, 29, 0.3);
    color: var(--nasa-active);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0 0, 95% 0, 100% 30%, 100% 100%, 5% 100%, 0 70%);
}

.nasa-mission-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1rem;
    padding: 10px 20px;
    background: var(--panel-bg);
    border-left: 3px solid var(--nasa-red);
    display: inline-block;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* NASA Legal Disclaimer */
.nasa-legal-disclaimer {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--nasa-blue);
    margin: 2rem auto;
    max-width: 800px;
}

.nasa-legal-disclaimer p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.nasa-legal-disclaimer strong {
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: var(--space-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    /* Reduced from 30px */
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

.feature-card {
    background: var(--panel-bg);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-red);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.feature-card p {
    color: var(--text-light-gray);
    line-height: 1.6;
}

.pillars-section {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    position: relative;
}

.pillars-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nasa-red), var(--accent-gold), var(--nasa-blue));
}

.pillars-header {
    margin-bottom: 1.5rem;
}

.pillars-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nasa-process-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(232, 73, 29, 0.15);
    border: 1px solid var(--nasa-red);
    border-radius: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--nasa-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.pillars-section>p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Program History Section */
.program-history {
    margin: 4rem 0;
    padding: 2.5rem;
    background: var(--panel-bg);
    border-radius: 15px;
    border: 1px solid var(--panel-border);
}

.program-history h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--panel-bg);
    border-radius: 10px;
    border-left: 4px solid var(--nasa-red);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent-gold);
}

.history-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 120px;
    text-align: center;
    padding: 0.5rem;
    background: var(--panel-bg);
    border-radius: 5px;
}

.history-content {
    flex: 1;
}

.history-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.history-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Curriculum Section */
.curriculum-section {
    margin: 4rem 0;
    padding: 2.5rem;
    background: var(--panel-bg);
    border-radius: 15px;
    border: 1px solid var(--panel-border);
}

.curriculum-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
}

.curriculum-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.curriculum-card {
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    transition: all 0.3s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-red);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.2);
}

.curriculum-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.curriculum-card ul {
    list-style: none;
    padding: 0;
}

.curriculum-card li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.curriculum-card li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-weight: bold;
}

/* Publication Journals */
.publication-journals {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--panel-bg);
    border-radius: 10px;
    border: 1px solid var(--panel-border);
}

.publication-journals h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.publication-journals p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-gray);
    padding: 12px;
    background: var(--panel-bg);
    border-radius: 8px;
    border-left: 2px solid var(--nasa-blue);
    transition: all 0.3s ease;
}

.pillar-item:hover {
    background: var(--panel-bg);
    border-left-color: var(--nasa-red);
    transform: translateX(5px);
}

.pillar-icon {
    color: var(--mission-control-green);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-shadow: 0 0 5px rgba(255, 200, 87, 0.5);
}

.pillar-item strong {
    color: var(--accent-gold);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.3rem;
}

/* Missions Section */
.missions {
    background: var(--space-dark);
}

.missions-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Reduced from 30px */
    margin-bottom: 2rem;
    /* Reduced from 4rem */
}

.mission-card {
    background: var(--panel-bg);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    border-left: 4px solid var(--nasa-blue);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    transition: all 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.mission-card:hover::before {
    transform: scale(1.5);
    opacity: 0.8;
}

.mission-card.active {
    border-left-color: var(--nasa-red);
    box-shadow: 0 8px 35px rgba(252, 61, 33, 0.25);
    border: 1px solid var(--nasa-red);
    background: linear-gradient(135deg, rgba(252, 61, 33, 0.05) 0%, var(--panel-bg) 100%);
}

.mission-card.active::before {
    background: radial-gradient(circle, rgba(252, 61, 33, 0.15) 0%, transparent 70%);
}

/* Mission Patch Small */
.mission-patch-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 1rem 0;
    padding: 15px;
    background: var(--panel-bg);
    border-radius: 8px;
    border: 2px solid rgba(232, 73, 29, 0.3);
    position: relative;
}

.mission-patch-small::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--nasa-red), var(--nasa-blue), var(--accent-gold));
    z-index: -1;
    opacity: 0.3;
}

.mission-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 2px;
}

.mission-designation {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nasa-patch-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--nasa-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(232, 73, 29, 0.3);
}

.mission-status-official {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mission-control-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
}

.nasa-mission-approval {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--mission-control-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.approval-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mission-control-green);
    color: var(--space-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.approval-date {
    font-size: 0.75rem;
    color: var(--text-light-gray);
    font-weight: 400;
    margin-left: auto;
}

.nasa-mission-classification {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
    padding: 10px;
    background: rgba(178, 31, 36, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
}

.classification-badge,
.mission-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    background: var(--panel-bg);
    border-radius: 4px;
}

.classification-badge {
    color: var(--mission-control-green);
    border: 1px solid var(--hud-cyan);
}

.mission-type {
    color: var(--accent-gold);
    border: 1px solid var(--hud-cyan);
}

.mission-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.mission-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--nasa-red);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-badge.completed {
    background: var(--accent-gold);
    color: var(--space-dark);
}

.mission-badge.review {
    background: var(--nasa-blue);
}

.mission-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.mission-card>p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.mission-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.mission-specs li {
    color: var(--text-light-gray);
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.mission-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-size: 0.8rem;
}

.mission-objectives {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid rgba(178, 31, 36, 0.5);
    border-left: 3px solid var(--nasa-blue);
    position: relative;
}

.mission-objectives::before {
    content: 'OBJECTIVES';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    color: var(--nasa-blue);
    background: var(--space-dark);
    padding: 0 8px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.objectives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(232, 73, 29, 0.5);
}

.mission-objectives strong {
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.objectives-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
    text-transform: uppercase;
}

.mission-objectives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-objectives li {
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.mission-objectives li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-weight: bold;
}

.mission-scientific-data {
    background: rgba(232, 73, 29, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--nasa-red);
}

.mission-scientific-data strong {
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-scientific-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-scientific-data li {
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.mission-scientific-data li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1.5rem;
    line-height: 0.8;
}

.mission-team {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-team strong {
    color: var(--text-white);
}

.launch-timeline {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.launch-timeline h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-white);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.timeline-item {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
}

.timeline-phase {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: none;
    color: var(--text-gray);
}

.timeline-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.timeline-item li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-size: 1.5rem;
    line-height: 1;
}

/* NASA Process Timeline */
.nasa-process-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

.process-step {
    padding: 15px;
    background: var(--panel-bg);
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    background: rgba(6, 13, 26, 0.4);
    border-left-color: var(--nasa-red);
    transform: translateX(5px);
}

.process-step.highlight {
    border-left-color: var(--accent-gold);
    background: rgba(244, 160, 36, 0.1);
    box-shadow: 0 0 15px rgba(244, 160, 36, 0.2);
}

.process-step.highlight::before {
    content: 'â˜…';
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.process-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
    padding: 4px 8px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.process-step strong {
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.process-step {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.timeline-item li strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Atmospheric Layers */
.atmospheric-layers {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.atmospheric-layers h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.atmospheric-layers>p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.layer-card {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--nasa-blue);
    transition: all 0.3s ease;
}

.layer-card.troposphere {
    border-left-color: #4CAF50;
}

.layer-card.tropopause {
    border-left-color: #FFC107;
}

.layer-card.stratosphere {
    border-left-color: #2196F3;
}

.layer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.3);
}

.layer-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.layer-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layer-card li {
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.layer-card li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-weight: bold;
}

.layer-card li strong {
    color: var(--text-white);
}

/* Telemetry & Data Section */
.telemetry {
    background: var(--space-dark);
    padding: 100px 0;
}

.telemetry-dashboard {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    /* Reduced from 3rem */
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(232, 73, 29, 0.3);
    position: relative;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mission-control-green), transparent);
    opacity: 0.5;
}

/* NASA Mission Control Header */
.nasa-mission-control-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.mission-control-title {
    flex: 1;
    min-width: 300px;
}

.mc-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--mission-control-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 200, 87, 0.5);
}

.dashboard-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(232, 73, 29, 0.5);
}

.mission-designator {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(244, 160, 36, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.mission-control-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.mission-status-badge.operational {
    background: var(--mission-control-green);
    color: var(--space-dark);
    animation: pulse-badge 2s ease-in-out infinite;
}

.mission-control-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 15px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 5px;
    text-shadow: 0 0 10px rgba(255, 200, 87, 0.5);
}

.mission-status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-status-badge.live {
    background: var(--nasa-red);
    color: var(--text-white);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(232, 73, 29, 0.5);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(232, 73, 29, 0.8);
    }
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.data-card {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(178, 31, 36, 0.5);
    border-left: 3px solid var(--nasa-blue);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mission-control-green), transparent);
    opacity: 0.3;
}

.data-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--nasa-red);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.2);
    border-color: var(--nasa-red);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.data-icon {
    font-size: 2.5rem;
}

.data-code {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 8px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
    text-transform: uppercase;
}

.data-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-trend {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.data-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--mission-control-green);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    padding: 4px 8px;
    background: rgba(255, 200, 87, 0.1);
    border: 1px solid var(--hud-cyan);
    border-radius: 4px;
    display: inline-block;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.chart-container {
    background: var(--panel-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-container h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background: var(--panel-bg);
    border-radius: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.chart-placeholder canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-note {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-style: italic;
    margin: 0;
}

/* Payload Specifications */
.payload-specs {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.payload-specs h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

.payload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.payload-card {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 10px;
    border-left: 3px solid var(--nasa-blue);
}

.payload-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payload-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payload-card li {
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payload-card li:last-child {
    border-bottom: none;
}

.payload-card li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-weight: bold;
}

/* Historical Data */
.historical-data {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.historical-data h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(178, 31, 36, 0.5);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-red);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-style: italic;
}

/* Mission Comparison Table */
.mission-comparison {
    margin-top: 3rem;
}

.mission-comparison h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.comparison-table {
    overflow-x: auto;
    background: var(--panel-bg);
    border-radius: 10px;
    padding: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table thead {
    background: rgba(232, 73, 29, 0.3);
}

.comparison-table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-gold);
    padding: 1rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--nasa-red);
}

.comparison-table td {
    padding: 1rem;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table tr:hover {
    background: rgba(232, 73, 29, 0.1);
}

.comparison-table tr.active-row {
    background: rgba(232, 73, 29, 0.15);
    border-left: 3px solid var(--nasa-red);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.live {
    background: var(--nasa-red);
    color: var(--text-white);
}

.status-badge.completed {
    background: var(--accent-gold);
    color: var(--space-dark);
}

.status-badge.review {
    background: var(--nasa-blue);
    color: var(--text-white);
}

/* Data Access Section */
.data-access {
    background: rgba(232, 73, 29, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(232, 73, 29, 0.3);
    text-align: center;
}

.data-access h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.data-access p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Research & Publications Section */
.research {
    background: var(--space-light);
    padding: 100px 0;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.publication-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.publication-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-red);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.2);
}

.publication-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.publication-badge.peer-reviewed {
    background: var(--accent-gold);
    color: var(--space-dark);
}

.publication-badge.conference {
    background: var(--nasa-blue);
    color: var(--text-white);
}

.publication-badge.symposium {
    background: var(--nasa-red);
    color: var(--text-white);
}

.publication-badge.white-paper {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.publication-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light-gray);
}

.publication-date {
    color: var(--nasa-red);
    font-weight: 600;
}

.publication-authors {
    color: var(--text-gray);
}

.publication-abstract {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.publication-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(178, 31, 36, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.publication-stats span strong {
    color: var(--accent-gold);
}

.publication-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.publication-note {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-style: italic;
}

.publications-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.publications-summary h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.impact-stat {
    text-align: center;
}

.impact-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.impact-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Awards & Recognition Section */
.awards {
    background: var(--space-dark);
    padding: 100px 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.award-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.award-card.highlight {
    border-color: var(--accent-gold);
    background: rgba(244, 160, 36, 0.1);
    box-shadow: 0 0 30px rgba(244, 160, 36, 0.2);
}

.award-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-red);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.3);
}

.award-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.award-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.award-org {
    color: var(--nasa-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.award-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.award-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem;
    background: rgba(178, 31, 36, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light-gray);
}

.award-metrics span {
    color: var(--text-gray);
}

/* News & Updates Section */
.news {
    background: var(--space-light);
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-card.featured {
    border-color: var(--nasa-red);
    background: rgba(232, 73, 29, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-blue);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.2);
}

.news-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--nasa-red);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--nasa-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.news-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 12px;
    background: rgba(232, 73, 29, 0.3);
    color: var(--text-gray);
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(178, 31, 36, 0.5);
}

/* Videos Section */
.videos {
    background: var(--space-dark);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.3);
    border-color: var(--nasa-red);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    padding: 1.5rem;
    margin: 0;
    color: var(--text-white);
}

.video-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light-gray);
    line-height: 1.6;
}

.video-alt-link {
    padding: 0 1.5rem 1.5rem;
}

.btn-link {
    color: var(--nasa-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Restricted Video Styles */
.restricted-video {
    position: relative;
    cursor: pointer;
}

.restricted-video:hover .restricted-overlay {
    background: rgba(6, 13, 26, 0.98);
    border: 2px solid var(--nasa-red);
}

.restricted-video:hover .restricted-icon {
    transform: scale(1.1);
}

.restricted-container {
    position: relative;
    background: var(--space-darker);
    overflow: hidden;
}

.restricted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 13, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    text-align: center;
}

.restricted-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.restricted-overlay h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.restricted-overlay>p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

.restricted-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-style: italic;
}

.video-preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #060D1A 0%, #0A1628 100%);
    opacity: 0.3;
}

.restricted-overlay button {
    cursor: pointer;
    z-index: 11;
    position: relative;
}

/* Student Portal Section */
.student-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 13, 26, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.student-portal.active {
    display: flex;
}

.portal-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.portal-content {
    background: var(--gradient-space);
    border: 2px solid var(--nasa-red);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 50px rgba(232, 73, 29, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.portal-close:hover {
    background: var(--nasa-red);
    border-color: var(--nasa-red);
    transform: rotate(90deg);
}

.portal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(232, 73, 29, 0.3);
}

.portal-header .section-title {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.portal-header .section-title::after {
    display: none;
}

.portal-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

.portal-body {
    text-align: center;
}

.portal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.portal-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.portal-body>p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.access-option {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(178, 31, 36, 0.5);
    text-align: left;
}

.access-option h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.access-option>p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.access-option .btn {
    width: 100%;
    margin-top: 1rem;
}

.access-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light-gray);
    font-style: italic;
    text-align: center;
}

.portal-info {
    background: rgba(232, 73, 29, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--nasa-red);
    margin-bottom: 1.5rem;
    text-align: left;
}

.portal-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.portal-info ul {
    list-style: none;
    color: var(--text-gray);
    padding: 0;
}

.portal-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.portal-info li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
    font-weight: bold;
}

.portal-info code {
    background: var(--panel-bg);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.portal-info a {
    color: var(--nasa-red);
    text-decoration: none;
}

.portal-info a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.security-notice {
    background: rgba(232, 73, 29, 0.15);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(232, 73, 29, 0.3);
    text-align: left;
}

.security-notice p {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.security-notice strong {
    color: var(--nasa-red);
}

/* Portal Scrollbar Styling */
.portal-modal::-webkit-scrollbar {
    width: 10px;
}

.portal-modal::-webkit-scrollbar-track {
    background: var(--space-darker);
    border-radius: 5px;
}

.portal-modal::-webkit-scrollbar-thumb {
    background: var(--nasa-red);
    border-radius: 5px;
}

.portal-modal::-webkit-scrollbar-thumb:hover {
    background: #FF7849;
}

.video-links {
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Teams Section */
.teams {
    background: var(--space-dark);
}

.team-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-section.current-team {
    border-color: var(--nasa-red);
    box-shadow: 0 0 30px rgba(232, 73, 29, 0.2);
    background: rgba(232, 73, 29, 0.1);
}

.team-section:hover {
    transform: translateY(-3px);
    border-color: var(--nasa-blue);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.team-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin: 0;
}

.team-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--nasa-red);
    color: var(--text-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legacy-badge {
    background: var(--accent-gold);
    color: var(--space-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-category {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
}

.team-category h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-category ul {
    list-style: none;
    color: var(--text-gray);
}

.team-category li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.team-category li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--nasa-red);
}

.legacy-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light-gray);
    font-style: italic;
}

/* Apply Section */
.apply {
    background: linear-gradient(135deg, var(--nasa-blue) 0%, var(--space-dark) 100%);
    text-align: center;
}

.apply-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.apply-content>p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--accent-gold);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Mission Statistics Overview */
.mission-stats-overview {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.overview-card {
    background: rgba(178, 31, 36, 0.2);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid var(--nasa-blue);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--nasa-red);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.2);
}

.overview-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.overview-card p {
    color: var(--text-light-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Section */
.faq {
    background: var(--space-dark);
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--nasa-blue);
}

.faq-item.active {
    border-color: var(--nasa-red);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

.faq-item.active .faq-question {
    color: var(--accent-gold);
    background: rgba(232, 73, 29, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--nasa-red);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* Partnerships & Sponsors Section */
.partners {
    background: var(--space-dark);
    padding: 100px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-card.primary {
    border-color: var(--nasa-red);
    background: rgba(232, 73, 29, 0.1);
    box-shadow: 0 0 30px rgba(232, 73, 29, 0.2);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--nasa-blue);
    box-shadow: 0 10px 30px rgba(232, 73, 29, 0.3);
}

.partner-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.partner-role {
    color: var(--nasa-red);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-card>p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

.partner-contributions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-contributions span {
    padding: 5px 12px;
    background: rgba(232, 73, 29, 0.3);
    color: var(--text-gray);
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(178, 31, 36, 0.5);
}

.sponsors-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.sponsors-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    text-align: center;
}

.sponsors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sponsor-item {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
    color: var(--text-gray);
    line-height: 1.6;
}

.sponsor-item strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

/* Mission Timeline History Section */
.timeline-history {
    background: var(--space-light);
    padding: 100px 0;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--nasa-red) 0%, var(--nasa-blue) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 150px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: var(--space-dark);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--nasa-red);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--nasa-blue);
    box-shadow: 0 5px 20px rgba(232, 73, 29, 0.2);
}

.timeline-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-content strong {
    color: var(--accent-gold);
}

/* Contact Section */
.contact {
    background: var(--space-dark);
}

.contact-details {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(178, 31, 36, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-details a {
    color: var(--nasa-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-gold);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.social-links {
    text-align: center;
}

.social-links h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.social-links p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    font-size: 2.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Moon-style theme toggle button */
.theme-toggle-moon {
    width: 30px;
    /* Miniaturized */
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle-moon .moon-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    /* Simplified flat look */
    position: relative;
}

.theme-toggle-moon .moon-icon::before,
.theme-toggle-moon .moon-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(163, 171, 210, 0.9);
    opacity: 0.7;
}

.theme-toggle-moon .moon-icon::before {
    width: 5px;
    height: 5px;
    top: 3px;
    left: 3px;
}

.theme-toggle-moon .moon-icon::after {
    width: 4px;
    height: 4px;
    bottom: 3px;
    right: 2px;
}

body.theme-dark .theme-toggle-moon {
    background: #222;
    border-color: #444;
}

body.theme-dark .theme-toggle-moon .moon-icon {
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.partner-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.partner-links a {
    color: var(--nasa-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--nasa-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.partner-links a:hover {
    background: var(--nasa-blue);
    color: var(--text-white);
}

.quick-links h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}

.quick-links a:hover {
    color: var(--nasa-red);
    padding-left: 10px;
}

/* Footer */
.footer {
    background: var(--space-darker);
    border-top: 3px solid var(--nasa-red);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-nasa-official {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(232, 73, 29, 0.3);
}

.footer-nasa-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.2);
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-worm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-light-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nasa-official-statement {
    background: rgba(178, 31, 36, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--nasa-blue);
}

.nasa-official-statement p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.nasa-official-statement p:last-child {
    margin-bottom: 0;
}

.nasa-official-statement strong {
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.footer-legal {
    background: var(--panel-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--nasa-red);
}

.footer-legal p {
    color: var(--text-light-gray);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-legal strong {
    color: var(--nasa-red);
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem !important;
    color: var(--text-light-gray) !important;
    text-align: center;
}

.footer-partners {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.partner-logos {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-logos span:first-child {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.partner-logos span:nth-child(n+3) {
    color: var(--text-gray);
}

.footer p {
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle:hover span {
    background: var(--nasa-red);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 0;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(6, 13, 26, 0.98);
        border-top: 2px solid rgba(232, 73, 29, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .mission-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
section {
    animation: fadeInUp 0.8s ease-out;
}

/* --- ENHANCED ANIMATIONS & GALLERY STYLES --- */

/* Subtle Logo Glow */
.nav-logo:hover .logo-text {
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(232, 73, 29, 0.5), 0 0 20px rgba(232, 73, 29, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(232, 73, 29, 0.8), 0 0 40px rgba(232, 73, 29, 0.4);
    }
}

/* Hero Stars Drift Enhancement */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff 100%, transparent),
        radial-gradient(1px 1px at 20% 40%, #fff 100%, transparent),
        radial-gradient(2px 2px at 50% 50%, #fff 100%, transparent),
        radial-gradient(1px 1px at 80% 30%, #fff 100%, transparent),
        radial-gradient(1px 1px at 90% 80%, #fff 100%, transparent);
    background-size: 300px 300px;
    opacity: 0.1;
    z-index: 1;
    animation: stars-drift 120s linear infinite;
    pointer-events: none;
}

@keyframes stars-drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(150px, 150px);
    }
}

/* Mission Gallery Styles */
.gallery-grid {
    margin-top: 2rem;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel-glass-bg);
    border: 1px solid var(--panel-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 61, 33, 0.1) 0%, transparent 50%, rgba(0, 229, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(6, 13, 26, 0.95) 0%, rgba(6, 13, 26, 0.7) 70%, transparent 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.25), 0 0 30px rgba(0, 229, 255, 0.1);
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.15);
}

.gallery-card:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h5 {
    color: #FFFFFF;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.gallery-overlay p {
    color: var(--nasa-red);
    margin-bottom: 0;
    font-weight: 600;
}

/* Section Fade-In Enhancements */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Loading and Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
    .gallery-item {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .gallery-item.visible {
        opacity: 1 !important;
        transform: translateY(0);
    }
}

/* Advanced Resource Cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.resource-card {
    background: var(--panel-glass-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.resource-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nasa-red), var(--nasa-blue), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 0 25px rgba(0, 229, 255, 0.1);
}

.resource-card:hover::after {
    transform: scaleX(1);
}

.resource-card-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.resource-card-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--nasa-red) 0%, #FF6B4A 100%);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(252, 61, 33, 0.4);
}

.resource-card-body {
    padding: 1.75rem;
    flex-grow: 1;
}

.resource-card h4 {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    color: var(--text-accent);
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.resource-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body:not(.theme-dark) .btn.btn-outline-light {
    color: #050816 !important;
    border-color: rgba(5, 8, 22, 0.2) !important;
}

body:not(.theme-dark) .btn.btn-outline-light:hover {
    background-color: #050816 !important;
    color: #f5f7ff !important;
}

/* HUD & Mission Control Utilities */
.nasa-red-text {
    color: var(--nasa-red) !important;
}

.nasa-blue-text {
    color: var(--nasa-blue) !important;
}

.nasa-active-text {
    color: var(--nasa-active) !important;
}

.border-nasa-left {
    border-left: 4px solid var(--nasa-red);
}

.extra-small {
    font-size: 0.75rem;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.fw-black {
    font-weight: 900;
}

/* Enhanced Gallery */
.gallery-card {
    border: 1px solid var(--panel-border);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    background: var(--panel-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.gallery-card:hover {
    border-color: var(--nasa-red);
    box-shadow: 0 0 20px rgba(232, 73, 29, 0.2);
    transform: translateY(-5px);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(6, 13, 26, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

/* Shooting Star Animation */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: shoot 2s linear forwards;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shoot {
    0% {
        transform: rotate(-15deg) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: rotate(-15deg) translateX(-50px) scale(1);
    }

    100% {
        transform: rotate(-15deg) translateX(-600px) scale(0.5);
        opacity: 0;
    }
}

/* Global Theme-Aware Shadow */
.mission-monitor,
.card,
.nasa-card {
    box-shadow: var(--shadow-premium);
}

/* Refined Typography */
.hero-title {
    color: var(--text-main);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.theme-dark .hero-title {
    text-shadow: 0 0 20px rgba(232, 73, 29, 0.4);
}

.section-title {
    color: var(--text-main);
}

.lead,
.hero-description,
.text-white-50 {
    color: var(--text-muted) !important;
}

body.theme-dark .hero-description,
body.theme-dark .lead,
body.theme-dark .text-white-50 {
    color: var(--text-muted) !important;
}

/* Redundant removal */
body:not(.theme-dark) .text-white,
body:not(.theme-dark) .nasa-header .text-white,
body:not(.theme-dark) .nasa-footer .text-white {
    color: var(--text-main) !important;
}

body.theme-dark .text-white-50,
body.theme-dark .lead,
body.theme-dark .hero-description {
    color: var(--text-muted) !important;
}

/* 2050 Live Ops Surface */
.live-ops-section {
    position: relative;
    overflow: hidden;
}

.live-ops-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(0, 243, 255, 0.16), transparent 45%),
        radial-gradient(circle at 88% 78%, rgba(252, 61, 33, 0.18), transparent 48%),
        linear-gradient(145deg, rgba(6, 13, 26, 0.65), rgba(6, 13, 26, 0.25));
    pointer-events: none;
}

.live-chip-stack {
    display: grid;
    gap: 10px;
    align-content: center;
}

.live-chip {
    font-family: var(--terminal-font);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 243, 255, 0.35);
    color: #d7fbff;
    background: rgba(0, 243, 255, 0.08);
    padding: 9px 12px;
}

.dot-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    background: #ff4040;
    box-shadow: 0 0 12px #ff4040;
    animation: pulse 1.4s ease-in-out infinite;
}

.media-wall-card {
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.25);
}

.media-wall-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 243, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mix-blend-mode: screen;
}

.media-wall-header {
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(6, 13, 26, 0.55);
}

.render-hub-card {
    border: 1px solid rgba(252, 61, 33, 0.3);
}

.render-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.render-link-card {
    display: block;
    padding: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 22, 40, 0.7);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.render-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 243, 255, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.render-link-card .render-label {
    display: block;
    color: #b7c4d9;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.render-link-card strong {
    color: #ffffff;
    font-family: var(--heading-font);
    font-size: 0.92rem;
    letter-spacing: 0.6px;
}

.fall-update-card,
.tech-matrix-card,
.nasa-news-card,
.nasa-source-card {
    border: 1px solid rgba(0, 243, 255, 0.22);
}

.fall-update-list,
.nasa-news-list {
    padding-left: 16px;
    display: grid;
    gap: 10px;
}

.fall-update-list li,
.nasa-news-list li {
    line-height: 1.45;
}

.nasa-news-list a {
    color: #d8f8ff;
    text-decoration: none;
}

.nasa-news-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.matrix-grid>div {
    background: rgba(6, 13, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
}

.matrix-grid span {
    display: block;
    color: #9db1cf;
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.matrix-grid strong {
    color: #ffffff;
    font-size: 0.88rem;
    font-family: var(--heading-font);
}

.source-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.source-link-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.source-link-wrapper:focus {
    outline: none;
}

.source-link-wrapper:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.source-link-wrapper > div {
    background: rgba(6, 13, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
}

@media (max-width: 992px) {
    .render-links-grid,
    .matrix-grid {
        grid-template-columns: 1fr;
    }

    .live-ops-section .section-title {
        text-align: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2050 ADVANCED PARTICLE EFFECTS & FUTURISTIC ANIMATIONS
   NASA ASCEND Website Enhancement Layer
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Floating Particles Container */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--hud-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s infinite ease-in-out;
    box-shadow: 0 0 6px var(--hud-cyan), 0 0 12px var(--hud-cyan);
}

@keyframes particle-float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* Scanning Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--hud-cyan) 30%, 
        var(--hud-cyan) 70%, 
        transparent 100%);
    opacity: 0.15;
    z-index: 9999;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Grid Overlay for Futuristic HUD Feel */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: var(--space-element-opacity);
    transition: opacity 0.4s;
}

/* Holographic Card Effect */
.mission-monitor.holo-card {
    position: relative;
    overflow: hidden;
}

.mission-monitor.holo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 243, 255, 0.08) 50%,
        transparent 70%
    );
    animation: holo-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holo-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Glowing Text Effect */
.glow-text {
    text-shadow: 
        0 0 5px var(--hud-cyan),
        0 0 10px var(--hud-cyan),
        0 0 20px var(--hud-cyan),
        0 0 40px var(--hud-cyan);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

/* Circuit Board Pattern Background */
.circuit-pattern {
    position: relative;
}

.circuit-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, var(--hud-cyan) 1px, transparent 1px),
        radial-gradient(circle at 75px 75px, var(--nasa-red) 0.5px, transparent 0.5px);
    background-size: 100px 100px;
    opacity: 0.05;
    pointer-events: none;
}

/* Data Stream Animation */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '01001010 10110101 00101010 11010110 01010101';
    position: absolute;
    top: 0;
    left: -100%;
    font-family: var(--terminal-font);
    font-size: 10px;
    color: var(--hud-cyan);
    opacity: 0.1;
    white-space: nowrap;
    animation: data-flow 20s linear infinite;
    pointer-events: none;
}

@keyframes data-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

/* Pulsing Border Effect */
.pulse-border {
    position: relative;
}

.pulse-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--hud-cyan);
    border-radius: inherit;
    animation: border-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.01); }
}

/* Radar Sweep Effect */
.radar-sweep {
    position: relative;
    overflow: hidden;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 243, 255, 0.15) 20deg,
        transparent 40deg
    );
    transform-origin: center;
    animation: radar 4s linear infinite;
    pointer-events: none;
}

@keyframes radar {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #060D1A;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-logo {
    width: 120px;
    height: 120px;
    border: 3px solid var(--hud-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--hud-cyan);
    position: relative;
    animation: logo-pulse 1.5s ease-in-out infinite;
}

.loading-logo::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid transparent;
    border-top-color: var(--nasa-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--hud-cyan); }
    50% { box-shadow: 0 0 50px var(--hud-cyan), 0 0 80px var(--hud-cyan); }
}

.loading-text {
    margin-top: 30px;
    font-family: var(--terminal-font);
    font-size: 0.9rem;
    color: var(--hud-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--nasa-red), var(--hud-cyan));
    animation: loading-progress 2s ease-in-out forwards;
    border-radius: 2px;
}

@keyframes loading-progress {
    0% { width: 0%; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 70%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--hud-cyan);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--hud-cyan);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

.scroll-indicator-text {
    font-family: var(--terminal-font);
    font-size: 0.65rem;
    color: var(--hud-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Enhanced Card Hover Effects */
.mission-monitor {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.mission-monitor:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                0 0 40px rgba(0, 243, 255, 0.1);
}

/* Typing Effect for HUD Elements */
.type-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--hud-cyan);
    animation: typing 3s steps(40), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--hud-cyan); }
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: width 0.4s, height 0.4s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Corner Brackets Decoration */
.corner-brackets {
    position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--hud-cyan);
    border-style: solid;
    border-width: 0;
    opacity: 0.6;
}

.corner-brackets::before {
    top: -5px;
    left: -5px;
    border-top-width: 2px;
    border-left-width: 2px;
}

.corner-brackets::after {
    bottom: -5px;
    right: -5px;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

/* Hexagon Grid Pattern */
.hex-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300f3ff' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Energy Line Effect on Section Borders */
.energy-border {
    position: relative;
}

.energy-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--hud-cyan), 
        var(--nasa-red), 
        var(--hud-cyan), 
        transparent);
    background-size: 200% 100%;
    animation: energy-flow 3s linear infinite;
}

@keyframes energy-flow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Aurora Background Effect */
.aurora-bg {
    position: relative;
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 243, 255, 0.05) 45%,
        rgba(178, 31, 36, 0.05) 50%,
        transparent 55%
    );
    animation: aurora 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aurora {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

/* Responsive Adjustments for Effects */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .scan-line,
    .hud-grid-overlay,
    .particle-field {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .loading-logo {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
    }
    
    .loading-logo::before {
        width: 100px;
        height: 100px;
    }
}

/* Scroll-Triggered Animations */
section,
.mission-monitor,
.resource-card,
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

section.animate-in,
.mission-monitor.animate-in,
.resource-card.animate-in,
.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure immediate visibility for important elements */
.hero,
.nasa-header,
.nasa-nav,
.hud-top-bar {
    opacity: 1 !important;
    transform: none !important;
}

/* Loading screen - only force visible when NOT hidden */
.loading-screen:not(.hidden) {
    opacity: 1;
    transform: none;
}

/* Telemetry Stream should be visible */
.telemetry-stream {
    opacity: 1;
    transform: none;
}

/* Link Hover Glow */
a:not(.btn):hover {
    text-shadow: 0 0 8px currentColor;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--hud-cyan);
    outline-offset: 3px;
}

/* Active Button State */
.btn:active,
.nasa-btn:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AEROSPACE-GRADE PRECISION ENGINEERING SYSTEMS — 2050 NASA STANDARD
   Mission Control Interface · Professional Telemetry Visualization Layer
   CLASSIFIED: ENGINEERING SPECIFICATION DOCUMENT
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── CORE ENGINEERING VARIABLES ─── */
:root {
    /* Aerospace Color Standards (MIL-STD-1472) */
    --aero-caution: #FFB800;
    --aero-advisory: #00B4FF;
    --aero-nominal: #00FF88;
    --aero-critical: #FF3D3D;
    --aero-standby: #808080;
    
    /* Telemetry Display Colors */
    --telemetry-primary: #00E5FF;
    --telemetry-secondary: #7B68EE;
    --telemetry-accent: #39FF14;
    --telemetry-grid: rgba(0, 229, 255, 0.06);
    
    /* Precision Timing */
    --transition-instant: 0.08s;
    --transition-fast: 0.15s;
    --transition-standard: 0.25s;
    --transition-smooth: 0.4s;
    
    /* Engineering Easing (Physics-Based) */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
}

/* ─── TELEMETRY GRID OVERLAY (AVIATION STANDARD) ─── */
.hud-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        /* Primary grid - 100px spacing */
        linear-gradient(var(--telemetry-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--telemetry-grid) 1px, transparent 1px),
        /* Secondary grid - 20px spacing */
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    opacity: 0.5;
}

/* ─── PRECISION COORDINATE SYSTEM DISPLAY ─── */
.coordinate-display {
    font-family: var(--terminal-font);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    color: var(--telemetry-primary);
}

.coordinate-display::before {
    content: '⊕ ';
    opacity: 0.6;
}

/* ─── ALTITUDE TAPE INDICATOR (AVIATION GRADE) ─── */
.altitude-tape {
    position: relative;
    width: 60px;
    height: 200px;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 136, 0.1) 0%,
        rgba(0, 229, 255, 0.05) 50%,
        rgba(255, 184, 0, 0.1) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.2);
    overflow: hidden;
}

.altitude-tape::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--telemetry-accent);
    box-shadow: 0 0 8px var(--telemetry-accent);
}

.altitude-marker {
    position: absolute;
    right: 5px;
    font-size: 0.6rem;
    font-family: var(--terminal-font);
    color: var(--telemetry-primary);
    opacity: 0.7;
}

/* ─── VECTOR TRACKING DISPLAY ─── */
.vector-track {
    position: relative;
    background: 
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
        conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(0, 229, 255, 0.03) 10deg,
            transparent 20deg
        );
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 50%;
}

.vector-track::before {
    content: '';
    position: absolute;
    inset: 20%;
    border: 1px dashed rgba(0, 229, 255, 0.2);
    border-radius: 50%;
}

.vector-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 20%, rgba(0, 229, 255, 0.3) 50%, transparent 80%);
}

/* ─── RF SIGNAL PROPAGATION METER ─── */
.signal-meter {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    padding: 0 4px;
}

.signal-bar {
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--telemetry-primary) 0%,
        rgba(0, 229, 255, 0.3) 100%
    );
    border-radius: 1px 1px 0 0;
    transition: height var(--transition-fast) var(--ease-out-quart);
}

.signal-bar:nth-child(1) { height: 20%; }
.signal-bar:nth-child(2) { height: 40%; }
.signal-bar:nth-child(3) { height: 60%; }
.signal-bar:nth-child(4) { height: 80%; }
.signal-bar:nth-child(5) { height: 100%; }

.signal-meter.weak .signal-bar:nth-child(n+3) { opacity: 0.2; }
.signal-meter.moderate .signal-bar:nth-child(n+4) { opacity: 0.2; }
.signal-meter.strong .signal-bar { opacity: 1; }

/* ─── THERMAL GRADIENT OVERLAY ─── */
.thermal-overlay {
    position: relative;
}

.thermal-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 100, 255, 0.02) 0%,
        transparent 25%,
        rgba(0, 255, 136, 0.02) 50%,
        transparent 75%,
        rgba(255, 136, 0, 0.02) 100%
    );
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ─── ATMOSPHERIC LAYER INDICATOR ─── */
.atmosphere-layers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(43, 0, 130, 0.03) 0%,      /* Thermosphere */
        rgba(0, 50, 100, 0.02) 15%,     /* Mesosphere */
        rgba(0, 80, 120, 0.03) 35%,     /* Stratosphere */
        rgba(0, 100, 150, 0.04) 70%,    /* Troposphere */
        transparent 100%
    );
}

.layer-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
}

.layer-marker::after {
    content: attr(data-altitude);
    position: absolute;
    right: 10px;
    top: -8px;
    font-size: 0.55rem;
    font-family: var(--terminal-font);
    color: var(--telemetry-primary);
    opacity: 0.5;
}

/* ─── PRECISION DATA TABLE (ENGINEERING SPEC) ─── */
.data-table-precision {
    font-family: var(--terminal-font);
    font-variant-numeric: tabular-nums;
    border-collapse: collapse;
    width: 100%;
}

.data-table-precision th {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--telemetry-primary);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    text-align: left;
}

.data-table-precision td {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #E0E6ED;
}

.data-table-precision tr:hover td {
    background: rgba(0, 229, 255, 0.03);
}

/* ─── FLIGHT DIRECTOR ATTITUDE INDICATOR ─── */
.attitude-indicator {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: 
        linear-gradient(180deg, #0A1628 0%, #0A1628 49%, #1A3A5C 50%, #1A3A5C 100%),
        radial-gradient(circle, transparent 85%, rgba(0, 0, 0, 0.5) 100%);
    border: 2px solid rgba(0, 229, 255, 0.3);
    overflow: hidden;
}

.attitude-indicator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 2px;
    background: var(--aero-caution);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px var(--aero-caution);
}

.pitch-scale {
    position: absolute;
    inset: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.pitch-line {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* ─── HEADING INDICATOR COMPASS ─── */
.heading-indicator {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.heading-tape {
    display: flex;
    gap: 20px;
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    color: var(--telemetry-primary);
    animation: heading-scroll 60s linear infinite;
}

.heading-marker {
    padding-top: 8px;
    text-align: center;
    min-width: 30px;
}

.heading-marker::before {
    content: '';
    display: block;
    width: 1px;
    height: 6px;
    background: rgba(0, 229, 255, 0.5);
    margin: 0 auto 4px;
}

.heading-marker.cardinal::before {
    height: 10px;
    background: var(--telemetry-primary);
}

.heading-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--aero-caution);
}

/* ─── VERTICAL SPEED INDICATOR ─── */
.vsi-gauge {
    position: relative;
    width: 50px;
    height: 160px;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 136, 0.08) 0%,
        transparent 45%,
        transparent 55%,
        rgba(255, 136, 0, 0.08) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.vsi-needle {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--telemetry-accent);
    transform-origin: center;
    transition: transform var(--transition-smooth) var(--ease-out-quart);
    box-shadow: 0 0 6px var(--telemetry-accent);
}

.vsi-scale {
    position: absolute;
    left: 5px;
    width: 8px;
    top: 10%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vsi-tick {
    width: 100%;
    height: 1px;
    background: rgba(0, 229, 255, 0.3);
}

/* ─── STATUS BOARD (MISSION CONTROL SPEC) ─── */
.status-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px;
    background: rgba(0, 10, 30, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.status-cell {
    padding: 8px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color var(--transition-fast);
}

.status-cell.nominal {
    border-color: var(--aero-nominal);
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.05);
}

.status-cell.caution {
    border-color: var(--aero-caution);
    box-shadow: inset 0 0 20px rgba(255, 184, 0, 0.08);
}

.status-cell.warning {
    border-color: var(--aero-critical);
    box-shadow: inset 0 0 20px rgba(255, 61, 61, 0.08);
    animation: warning-pulse 1s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { border-color: var(--aero-critical); }
    50% { border-color: transparent; }
}

.status-label {
    font-size: 0.55rem;
    font-family: var(--terminal-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.status-value {
    font-size: 0.9rem;
    font-family: var(--terminal-font);
    font-variant-numeric: tabular-nums;
    color: #fff;
}

/* ─── TRAJECTORY PATH VISUALIZATION ─── */
.trajectory-display {
    position: relative;
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(0, 100, 200, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(0, 229, 255, 0.15);
    overflow: hidden;
}

.trajectory-path {
    fill: none;
    stroke: var(--telemetry-primary);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: trajectory-draw 3s var(--ease-out-expo) forwards;
}

@keyframes trajectory-draw {
    to { stroke-dashoffset: 0; }
}

.trajectory-marker {
    fill: var(--telemetry-accent);
    filter: drop-shadow(0 0 4px var(--telemetry-accent));
}

/* ─── MISSION ELAPSED TIME DISPLAY ─── */
.met-display {
    font-family: var(--terminal-font);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--telemetry-primary);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    text-shadow: 0 0 10px var(--telemetry-primary);
}

.met-display::before {
    content: 'MET ';
    font-size: 0.6em;
    opacity: 0.6;
}

.met-segment {
    display: inline-block;
    min-width: 2ch;
    text-align: center;
}

.met-separator {
    opacity: 0.4;
    animation: colon-blink 1s steps(1) infinite;
}

@keyframes colon-blink {
    50% { opacity: 0.1; }
}

/* ─── PRECISION LOADING STATE ─── */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #060D1A;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loading-logo {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--telemetry-primary);
    position: relative;
}

.loading-logo::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid transparent;
    border-top-color: var(--nasa-red);
    border-radius: 50%;
    animation: precision-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes precision-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 24px;
    font-family: var(--terminal-font);
    font-size: 0.75rem;
    color: var(--telemetry-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.loading-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 16px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--telemetry-primary), var(--telemetry-accent));
    animation: precision-load 2.5s var(--ease-out-quart) forwards;
}

@keyframes precision-load {
    0% { width: 0%; }
    15% { width: 15%; }
    35% { width: 35%; }
    55% { width: 60%; }
    75% { width: 80%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

/* ─── ENGINEERING CARD SYSTEM ─── */
.mission-monitor {
    transition: 
        transform var(--transition-standard) var(--ease-out-quart), 
        box-shadow var(--transition-standard) var(--ease-out-quart),
        border-color var(--transition-fast);
    will-change: transform;
}

.mission-monitor:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.25), 
        0 0 1px rgba(0, 229, 255, 0.3);
}

/* ─── PRECISION DATA READOUT ─── */
.data-readout {
    font-family: var(--terminal-font);
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: var(--telemetry-primary);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-left: 2px solid var(--telemetry-primary);
}

.data-readout.updating {
    animation: readout-flash 0.15s ease;
}

@keyframes readout-flash {
    0% { background: rgba(0, 229, 255, 0.2); }
    100% { background: rgba(0, 0, 0, 0.3); }
}

/* ─── PRECISION STATUS INDICATORS ─── */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.nominal {
    background: var(--aero-nominal);
    box-shadow: 0 0 6px var(--aero-nominal);
}

.status-indicator.standby {
    background: var(--aero-standby);
}

.status-indicator.active {
    background: var(--aero-advisory);
    box-shadow: 0 0 6px var(--aero-advisory);
    animation: indicator-pulse 2s ease-in-out infinite;
}

@keyframes indicator-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ─── ENGINEERING SCAN LINE ─── */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--telemetry-primary) 30%, 
        var(--telemetry-primary) 70%, 
        transparent 100%);
    opacity: 0.08;
    z-index: 9999;
    pointer-events: none;
    animation: precision-scan 12s linear infinite;
}

@keyframes precision-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ─── TELEMETRY GRAPH BACKGROUND ─── */
.telemetry-graph {
    background: 
        linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 229, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-color: rgba(0, 10, 30, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

/* ─── AEROSPACE SCROLL INDICATOR ─── */
.scroll-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator-mouse {
    width: 20px;
    height: 32px;
    border: 1px solid var(--telemetry-primary);
    border-radius: 10px;
    position: relative;
}

.scroll-indicator-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--telemetry-primary);
    border-radius: 1px;
    animation: scroll-track 2s var(--ease-in-out-sine) infinite;
}

@keyframes scroll-track {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

.scroll-indicator-text {
    font-family: var(--terminal-font);
    font-size: 0.6rem;
    color: var(--telemetry-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ─── PRECISION BUTTON ENGINEERING ─── */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast) var(--ease-out-quart);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    transition: width var(--transition-smooth) var(--ease-out-expo), 
                height var(--transition-smooth) var(--ease-out-expo);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ─── PRECISION TARGETING RETICLE ─── */
.targeting-reticle {
    position: relative;
    width: 40px;
    height: 40px;
}

.targeting-reticle::before,
.targeting-reticle::after {
    content: '';
    position: absolute;
    background: var(--telemetry-primary);
}

.targeting-reticle::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.targeting-reticle::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.targeting-reticle .inner-ring {
    position: absolute;
    inset: 25%;
    border: 1px solid var(--telemetry-primary);
    border-radius: 50%;
}

/* ─── DATA BANDWIDTH METER ─── */
.bandwidth-meter {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.bandwidth-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--aero-nominal) 0%,
        var(--aero-nominal) 60%,
        var(--aero-caution) 80%,
        var(--aero-critical) 95%
    );
    background-size: 200% 100%;
    transition: width var(--transition-smooth) var(--ease-out-quart);
}

/* ─── COORDINATE BRACKET SYSTEM ─── */
.corner-brackets {
    position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--telemetry-primary);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.corner-brackets::before {
    top: -4px;
    left: -4px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.corner-brackets::after {
    bottom: -4px;
    right: -4px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* ─── ENGINEERING ENERGY FLOW ─── */
.energy-border {
    position: relative;
}

.energy-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--telemetry-primary), 
        transparent);
    background-size: 200% 100%;
    animation: energy-traverse 4s linear infinite;
}

@keyframes energy-traverse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── TELEMETRY STREAM PRECISION ─── */
.telemetry-stream {
    position: relative;
    background: rgba(0, 10, 30, 0.85);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.telemetry-stream::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, rgba(0, 10, 30, 1), transparent);
    z-index: 1;
    pointer-events: none;
}

.telemetry-stream::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(-90deg, rgba(0, 10, 30, 1), transparent);
    z-index: 1;
    pointer-events: none;
}

/* ─── RESPONSIVE AEROSPACE ADJUSTMENTS ─── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .scan-line,
    .hud-grid-overlay {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 12px;
    }
    
    .loading-logo {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }
    
    .loading-logo::before {
        width: 90px;
        height: 90px;
    }
}

/* ─── SCROLL ANIMATION ENGINEERING ─── */
section,
.mission-monitor,
.resource-card,
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.5s var(--ease-out-quart), 
        transform 0.5s var(--ease-out-quart);
}

section.animate-in,
.mission-monitor.animate-in,
.resource-card.animate-in,
.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure immediate visibility for critical elements */
.hero,
.nasa-header,
.nasa-nav,
.hud-top-bar,
.telemetry-stream {
    opacity: 1 !important;
    transform: none !important;
}

/* Loading screen visibility control */
.loading-screen:not(.hidden) {
    opacity: 1;
}

/* Focus States - Engineering Precision */
a:focus-visible,
button:focus-visible {
    outline: 1px solid var(--telemetry-primary);
    outline-offset: 2px;
}

/* Active State - Precise Response */
.btn:active,
.nasa-btn:active {
    transform: scale(0.98);
}

/* ─── BREATHING GLOW (PRECISION) ─── */
.breathing-glow {
    animation: precision-breathe 6s var(--ease-in-out-sine) infinite;
}

@keyframes precision-breathe {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
        border-color: rgba(0, 229, 255, 0.2);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
        border-color: rgba(0, 229, 255, 0.4);
    }
}

/* ─── STATUS LIVE INDICATOR ─── */
.status-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--aero-nominal);
    box-shadow: 0 0 4px var(--aero-nominal);
    animation: status-active 3s ease-in-out infinite;
}

@keyframes status-active {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ─── DATA NODES (PRECISION) ─── */
.data-nodes {
    position: relative;
}

.data-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--telemetry-primary);
    border-radius: 50%;
    opacity: 0.4;
}

.data-node:nth-child(1) { top: 8%; left: 15%; }
.data-node:nth-child(2) { top: 25%; right: 12%; }
.data-node:nth-child(3) { bottom: 20%; left: 35%; }
.data-node:nth-child(4) { top: 55%; right: 25%; }

/* ─── ELECTRIC BORDER (ENGINEERING) ─── */
.electric-border {
    position: relative;
}

.electric-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--telemetry-primary) 20%,
        var(--telemetry-primary) 80%,
        transparent 100%);
    opacity: 0.5;
}

/* ─── NEON PULSE (SUBTLE) ─── */
.neon-pulse {
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
    transition: box-shadow var(--transition-smooth) var(--ease-out-quart);
}

.neon-pulse:hover {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ENGINEERING REFINEMENTS — PROFESSIONAL ANIMATION REPLACEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── FLIP CARD (DATA REFERENCE TOGGLE) ─── */
.flip-card {
    perspective: 1200px;
}

.flip-card-inner {
    transition: transform 0.5s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ─── SCANLINES (ENGINEERING DISPLAY) ─── */
.scanlines {
    position: relative;
}

.scanlines::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.01) 3px,
        rgba(0, 0, 0, 0.01) 6px
    );
    pointer-events: none;
    z-index: 10;
}

/* ─── RETRO TV (LEGACY DISPLAY MODE) ─── */
.retro-tv {
    position: relative;
}

.retro-tv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 4px,
        rgba(0, 0, 0, 0.015) 4px,
        rgba(0, 0, 0, 0.015) 8px
    );
    pointer-events: none;
    z-index: 5;
}

/* ─── PROGRESS RING (PRECISION GAUGE) ─── */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 1s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
    stroke: var(--telemetry-primary, #00E5FF);
    stroke-width: 3;
    fill: transparent;
}

.progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
    fill: transparent;
}

/* ─── HEXAGON GRID (ENGINEERING PATTERN) ─── */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hex-cell {
    width: 70px;
    height: 60px;
    background: rgba(0, 30, 60, 0.5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
}

.hex-cell:hover {
    background: rgba(0, 60, 100, 0.6);
    transform: scale(1.03);
}

/* ─── VIGNETTE (COCKPIT DISPLAY) ─── */
.vignette {
    position: relative;
}

.vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.25);
}

/* ─── CHROMATIC (OPTICAL PRECISION) ─── */
.chromatic:hover {
    animation: optical-precision 0.2s ease-out;
}

@keyframes optical-precision {
    0% { filter: none; }
    50% { filter: drop-shadow(-1px 0 rgba(252, 61, 33, 0.3)) drop-shadow(1px 0 rgba(0, 229, 255, 0.3)); }
    100% { filter: none; }
}

/* ─── RESPONSIVE ENGINEERING ─── */
@media (max-width: 768px) {
    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2050 ADVANCED VISUAL SYSTEM — NEXT-GEN AEROSPACE INTERFACE
   NASA ASCEND Website · Futuristic Design Enhancement Layer
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── HOLOGRAPHIC PANEL SYSTEM ─── */
.holographic-panel {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.08) 0%,
        rgba(6, 13, 26, 0.95) 25%,
        rgba(6, 13, 26, 0.98) 75%,
        rgba(252, 61, 33, 0.05) 100%
    ) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 
        0 0 40px rgba(0, 229, 255, 0.15),
        0 0 80px rgba(0, 229, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 229, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.holographic-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 229, 255, 0.08),
        transparent
    );
    animation: holographic-sweep 8s linear infinite;
    pointer-events: none;
}

@keyframes holographic-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ─── PANEL CORNER BRACKETS (SCI-FI FRAME) ─── */
.panel-corner-tl,
.panel-corner-tr,
.panel-corner-bl,
.panel-corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

.panel-corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.panel-corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

.panel-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--nasa-red);
    border-left: 2px solid var(--nasa-red);
}

.panel-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--nasa-red);
    border-right: 2px solid var(--nasa-red);
}

/* ─── PANEL TITLE GLOW ─── */
.panel-title {
    color: var(--accent-cyan) !important;
    text-shadow: 
        0 0 10px rgba(0, 229, 255, 0.8),
        0 0 20px rgba(0, 229, 255, 0.4),
        0 0 40px rgba(0, 229, 255, 0.2);
    letter-spacing: 3px;
    font-weight: 700;
}

.panel-title i {
    animation: broadcast-pulse 2s ease-in-out infinite;
}

@keyframes broadcast-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ─── STAT BLOCK ENHANCEMENT ─── */
.stat-block {
    position: relative;
    padding: 1rem 0.5rem !important;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-block:hover {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0.02) 100%);
    transform: translateY(-2px);
}

.stat-block .stat-number {
    font-family: 'Orbitron', var(--heading-font), sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5));
    line-height: 1.1;
}

.stat-block .hud-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.65rem !important;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ─── LIVE TELEMETRY STREAM ENHANCEMENT ─── */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: status-glow 1.5s ease-in-out infinite;
}

.status-dot.online {
    background: var(--mission-control-green);
    box-shadow: 
        0 0 8px var(--mission-control-green),
        0 0 16px var(--mission-control-green);
}

@keyframes status-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

/* ─── TELEMETRY DATA CELLS ─── */
.mission-overview-panel .row.g-2 .col-4 {
    position: relative;
}

.mission-overview-panel [data-telemetry] {
    font-family: 'Orbitron', monospace !important;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.mission-overview-panel [data-telemetry].data-updated {
    text-shadow: 0 0 10px currentColor;
    transform: scale(1.05);
}

/* ─── HERO SECTION 2050 ENHANCEMENT ─── */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 229, 255, 0.01) 2px,
            rgba(0, 229, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* ─── ADVANCED GRID LINES OVERLAY ─── */
body.theme-dark .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ─── ENHANCED HERO TITLE ─── */
.hero-title {
    position: relative;
    font-size: clamp(1.8rem, 5vw, 3.5rem) !important;
    text-align: left !important;
}

.hero-title .nasa-red-text {
    display: block;
    background: linear-gradient(90deg, var(--nasa-red) 0%, #FF6B4A 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(252, 61, 33, 0.6));
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(252, 61, 33, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(252, 61, 33, 0.9)); }
}

/* ─── HERO CONTENT ENHANCEMENT ─── */
.hero-content {
    text-align: left !important;
    max-width: none !important;
}

.hero-subtitle {
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    font-size: 1rem !important;
    opacity: 0.9;
}

body.theme-dark .hero-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ─── MISSION MONITOR ENHANCEMENT ─── */
.hero .mission-monitor.breathing-glow {
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.03) 0%,
        rgba(6, 13, 26, 0.6) 50%,
        rgba(252, 61, 33, 0.02) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-left: 3px solid var(--accent-cyan);
    position: relative;
    overflow: hidden;
}

.hero .mission-monitor.breathing-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    animation: monitor-glow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes monitor-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero .hero-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
}

/* ─── BUTTON ENHANCEMENTS ─── */
.hero .nasa-btn {
    background: linear-gradient(135deg, var(--nasa-red) 0%, #E63520 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(252, 61, 33, 0.4),
        0 0 40px rgba(252, 61, 33, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .nasa-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(252, 61, 33, 0.6),
        0 0 60px rgba(252, 61, 33, 0.3);
}

.hero .nasa-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: btn-shine 3s linear infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ─── CURRENT VECTOR SECTION ─── */
.border-top.border-secondary {
    border-color: rgba(0, 229, 255, 0.2) !important;
}

.mission-overview-panel .font-monospace {
    font-family: 'Orbitron', monospace !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
}

/* ─── AMBIENT PARTICLES ─── */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 20s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(100vh) translateX(0); 
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { 
        transform: translateY(-10vh) translateX(20px); 
        opacity: 0;
    }
}

/* ─── RESPONSIVE 2050 ADJUSTMENTS ─── */
@media (max-width: 991px) {
    .holographic-panel {
        margin-top: 2rem;
    }
    
    .stat-block .stat-number {
        font-size: 2rem !important;
    }
    
    .hero-title {
        text-align: center !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .stat-block .stat-number {
        font-size: 1.6rem !important;
    }
    
    .panel-corner-tl,
    .panel-corner-tr,
    .panel-corner-bl,
    .panel-corner-br {
        width: 12px;
        height: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NASA ASCEND IDENTITY SYSTEM — Unified Theme Synchronization Layer
   Phoenix College Near-Space Research Program
   Last Updated: 2026-04-13
   ═══════════════════════════════════════════════════════════════════════════════
   
   Official NASA  Reference:
   - NASA Red (Worm/Meatball): #FC3D21
   - NASA Blue: #0B3D91
   - Deep Space: #060D1A
   - Signal Cyan: #00E5FF
   - The "red chevron" accent stripe is the ASCEND signature element
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. UNIFIED COLOR SYSTEM ─────────────────────────────────────────────── */
:root {
    /* Consolidate duplicate tokens */
    --ascend-red: #FC3D21;
    --ascend-blue: #0B3D91;
    --ascend-dark: #060D1A;
    --ascend-cyan: #00E5FF;
    --ascend-green: #00FF88;
    --ascend-gold: #FFD700;
    --ascend-white: #F0F4FA;
    --ascend-red-glow: rgba(252, 61, 33, 0.4);
    --ascend-blue-glow: rgba(11, 61, 145, 0.4);
    --ascend-cyan-glow: rgba(0, 229, 255, 0.35);

    /* Section separator */
    --section-divider: linear-gradient(90deg, transparent 0%, var(--ascend-red) 20%, var(--ascend-blue) 50%, var(--ascend-cyan) 80%, transparent 100%);
}

/* ── 2. DARK THEME AS PRIMARY EXPERIENCE ────────────────────────────────── */
/* Space program = dark mode. This is the canonical look. */
body.theme-dark {
    --bg-page: #040810;
    --overlay-top: rgba(4, 8, 16, 0.92);
    --overlay-mid: rgba(4, 8, 16, 0.55);
    --overlay-bottom: rgba(4, 8, 16, 0.92);
    --panel-glass-bg: rgba(6, 13, 26, 0.75);
    --panel-border: rgba(0, 229, 255, 0.12);
}

/* ── 3. NASA RED CHEVRON ACCENT STRIPE ───────────────────────────────────── */
/* The signature ASCEND element: a red-to-blue gradient stripe used as 
   section dividers, card accents, and decorative elements */

.nasa-section-badge {
    position: relative;
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ascend-cyan);
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 6px 20px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
}

.nasa-section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--ascend-red);
    border-radius: 2px 0 0 2px;
}

/* ── 4. SECTION TITLES — NASA MISSION CONTROL STYLE ─────────────────────── */
.section-title {
    font-family: var(--heading-font) !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

body.theme-dark .section-title {
    background: linear-gradient(180deg, #FFFFFF 30%, rgba(0, 229, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.25));
}

body.theme-dark .section-title i {
    -webkit-text-fill-color: var(--ascend-red);
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px var(--ascend-red-glow));
}

/* ── 5. MISSION MONITOR PANELS — UNIFIED GLASS ────────────────────────── */
body.theme-dark .mission-monitor {
    background: linear-gradient(
        160deg,
        rgba(6, 13, 26, 0.88) 0%,
        rgba(4, 8, 16, 0.95) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 40px rgba(0, 229, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-dark .mission-monitor:hover {
    border-color: rgba(0, 229, 255, 0.22);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 229, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 40px rgba(0, 229, 255, 0.03);
}

/* Red accent top-border on key panels */
body.theme-dark .mission-monitor.border-nasa-left {
    border-left: 3px solid var(--ascend-red) !important;
    border-top: none;
}

body.theme-dark .border-nasa {
    border: 1px solid rgba(0, 229, 255, 0.15) !important;
    border-top: 2px solid var(--ascend-red) !important;
}

/* ── 6. NAVIGATION — UNIFIED COMMAND BAR ─────────────────────────────── */
body.theme-dark .nasa-nav {
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.98) 0%, rgba(6, 13, 26, 0.95) 100%);
    border-bottom: 1px solid rgba(252, 61, 33, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.theme-dark .nav-item {
    background: transparent;
    border-right-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.25s ease;
    position: relative;
}

body.theme-dark .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ascend-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

body.theme-dark .nav-link:hover::after,
body.theme-dark .nav-link.active::after {
    width: 60%;
}

body.theme-dark .nav-link.active,
body.theme-dark .nav-item:hover .nav-link {
    color: #FFFFFF !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

body.theme-dark .nav-link.active,
body.theme-dark .nav-item:hover {
    background: rgba(252, 61, 33, 0.1) !important;
}

/* ── 7. HEADER — ASCEND COMMAND IDENTITY ─────────────────────────────── */
body.theme-dark .nasa-header {
    background: linear-gradient(180deg, #020408 0%, #060D1A 100%);
    border-bottom: 2px solid var(--ascend-red);
    box-shadow:
        0 2px 20px rgba(252, 61, 33, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.6);
}

.nasa-logo .ascend {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #FF6B4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

body.theme-dark .header-logo {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
    transition: filter 0.3s ease;
}

body.theme-dark .header-logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
}

/* ── 8. HUD TOP BAR — MISSION CONTROL ────────────────────────────────── */
body.theme-dark .hud-top-bar {
    background: linear-gradient(90deg, #000 0%, #020408 50%, #000 100%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    color: rgba(0, 255, 136, 0.7);
    font-size: 0.6rem;
    letter-spacing: 3px;
}

.text-cyan,
body.theme-dark .text-cyan {
    color: var(--ascend-cyan) !important;
}

/* ── 9. HERO — PRIMARY VISUAL IMPACT ─────────────────────────────────── */
body.theme-dark .hero {
    background: transparent;
}

body.theme-dark .hero-title {
    font-weight: 900 !important;
    letter-spacing: 2px;
}

.nasa-red-text {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #FF6B4A 60%, var(--ascend-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--ascend-red-glow));
}

body.theme-dark .hero-subtitle {
    color: rgba(255, 255, 255, 0.55) !important;
    font-weight: 400;
}

body.theme-dark .hero-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

/* ── 10. TELEMETRY STREAM — MISSION TICKER ─────────────────────────────── */
body.theme-dark .telemetry-stream {
    background: linear-gradient(90deg, rgba(4, 8, 16, 0.95) 0%, rgba(6, 13, 26, 0.8) 50%, rgba(4, 8, 16, 0.95) 100%);
    border-top: 1px solid rgba(252, 61, 33, 0.25);
    border-bottom: 1px solid rgba(11, 61, 145, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

body.theme-dark .stream-content {
    color: rgba(255, 255, 255, 0.8);
}

body.theme-dark .stream-item {
    border-right-color: rgba(252, 61, 33, 0.2);
}

/* ── 11. SECTION DIVIDERS — RED CHEVRON STRIPES ────────────────────────── */
/* Visual separator between major page sections */
body.theme-dark section + section::before,
body.theme-dark .py-5 + .py-5::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--section-divider);
    opacity: 0.4;
    margin-bottom: 0;
}

/* ── 12. CARDS & CONTENT PANELS ──────────────────────────────────────── */
body.theme-dark .resource-card,
body.theme-dark .publication-card,
body.theme-dark .award-card,
body.theme-dark .mission-card {
    background: linear-gradient(
        160deg,
        rgba(6, 13, 26, 0.9) 0%,
        rgba(11, 20, 40, 0.95) 100%
    );
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.theme-dark .resource-card:hover,
body.theme-dark .publication-card:hover,
body.theme-dark .award-card:hover,
body.theme-dark .mission-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 229, 255, 0.05);
}

/* Card top accent stripe */
body.theme-dark .resource-card::before,
body.theme-dark .mission-card::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--ascend-red) 0%, var(--ascend-blue) 50%, var(--ascend-cyan) 100%);
    border-radius: 8px 8px 0 0;
}

/* ── 13. BUTTONS — ASCEND ACTION SYSTEM ────────────────────────────────── */
body.theme-dark .nasa-btn {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #CC2E18 80%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow:
        0 4px 15px var(--ascend-red-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    letter-spacing: 3px;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

body.theme-dark .nasa-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

body.theme-dark .nasa-btn:hover::before {
    left: 100%;
}

body.theme-dark .nasa-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px var(--ascend-red-glow),
        0 0 40px rgba(252, 61, 33, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    filter: brightness(1.1);
}

body.theme-dark .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(4px);
}

body.theme-dark .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ascend-cyan);
    color: var(--ascend-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* ── 14. HUD LABELS — CONSISTENT TYPOGRAPHY ─────────────────────────── */
body.theme-dark .hud-label {
    font-family: var(--heading-font);
    color: var(--ascend-red);
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.theme-dark .hud-label.text-white {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-dark .hud-label .text-danger,
body.theme-dark .hud-label i.text-danger {
    color: var(--ascend-red) !important;
}

/* ── 15. LIVE OPS — COMMAND SURFACE ──────────────────────────────────── */
body.theme-dark .live-ops-section {
    background: transparent;
    position: relative;
}

body.theme-dark .live-chip {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: var(--terminal-font);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

body.theme-dark .dot-live {
    width: 8px;
    height: 8px;
    background: var(--ascend-red);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--ascend-red-glow);
    animation: pulse 2s infinite;
}

/* ── 16. VISUALIZATION SECTION — DATA COMMAND CENTER ─────────────────── */
#spring2026-visuals {
    position: relative;
}

#spring2026-visuals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: var(--section-divider);
    opacity: 0.5;
}

body.theme-dark #spring2026-visuals .mission-monitor {
    border-color: rgba(0, 229, 255, 0.08);
}

/* Map container header bars */
body.theme-dark #spring2026-visuals .mission-monitor > div[style*="border-bottom"] {
    background: rgba(0, 229, 255, 0.04) !important;
    border-bottom-color: rgba(0, 229, 255, 0.1) !important;
}

/* Chart icons */
body.theme-dark #spring2026-visuals .hud-label i {
    color: var(--ascend-cyan);
    margin-right: 6px;
}

body.theme-dark #spring2026-visuals .hud-label i.text-danger {
    color: var(--ascend-red) !important;
}

/* Video cards in telemetry section */
body.theme-dark #spring2026-visuals video {
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 8px;
}

/* ── 17. FOOTER — MISSION GROUND STATION ─────────────────────────────── */
body.theme-dark footer,
body.theme-dark .site-footer {
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.98) 0%, #000 100%) !important;
    border-top: 2px solid var(--ascend-red);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
    position: relative;
}

body.theme-dark footer::before,
body.theme-dark .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--section-divider);
    opacity: 0.6;
}

body.theme-dark footer a {
    color: var(--ascend-cyan);
    transition: all 0.2s ease;
}

body.theme-dark footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--ascend-cyan-glow);
}

/* ── 18. LOADING SCREEN — ASCEND BRANDED ─────────────────────────────── */
.loading-screen {
    background: radial-gradient(ellipse at center, #0B1A30 0%, #040810 70%, #000 100%) !important;
}

.loading-logo span {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #FF6B4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar-fill {
    background: linear-gradient(90deg, var(--ascend-red) 0%, var(--ascend-blue) 50%, var(--ascend-cyan) 100%) !important;
}

.loading-text {
    color: rgba(0, 229, 255, 0.6) !important;
    font-family: var(--heading-font) !important;
    letter-spacing: 3px;
}

/* ── 19. SCROLLBAR — ASCEND BRANDED ──────────────────────────────────── */
body.theme-dark ::-webkit-scrollbar {
    width: 8px;
}

body.theme-dark ::-webkit-scrollbar-track {
    background: #040810;
}

body.theme-dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ascend-red) 0%, var(--ascend-blue) 100%);
    border-radius: 4px;
}

body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF6B4A 0%, var(--ascend-cyan) 100%);
}

/* ── 20. SELECTION HIGHLIGHT ─────────────────────────────────────────── */
body.theme-dark ::selection {
    background: rgba(252, 61, 33, 0.3);
    color: #fff;
}

/* ── 21. MATRIX GRID (ENGINEERING / SOURCES) ────────────────────────── */
body.theme-dark .matrix-grid div,
body.theme-dark .source-grid div {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 4px;
    padding: 10px;
    transition: all 0.25s ease;
}

body.theme-dark .matrix-grid div:hover,
body.theme-dark .source-grid div:hover {
    border-color: rgba(0, 229, 255, 0.2);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-1px);
}

body.theme-dark .matrix-grid span {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--terminal-font);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-dark .matrix-grid strong {
    color: var(--ascend-cyan);
}

/* ── 22. GALLERY CARDS ─────────────────────────────────────────────── */
body.theme-dark .gallery-card {
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s ease;
}

body.theme-dark .gallery-card:hover {
    border-color: rgba(252, 61, 33, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(252, 61, 33, 0.1);
    transform: translateY(-4px);
}

/* ── 23. VIDEO SECTION ─────────────────────────────────────────────── */
body.theme-dark .video-card,
body.theme-dark .media-wall-card {
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

body.theme-dark .media-wall-header {
    background: rgba(0, 229, 255, 0.04);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

body.theme-dark .badge.bg-danger {
    background: var(--ascend-red) !important;
    box-shadow: 0 0 10px var(--ascend-red-glow);
    animation: pulse 2s infinite;
}

/* ── 24. TEAM SECTION ──────────────────────────────────────────────── */
body.theme-dark .team-card,
body.theme-dark .crew-card {
    background: rgba(6, 13, 26, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.theme-dark .team-card:hover,
body.theme-dark .crew-card:hover {
    border-color: rgba(252, 61, 33, 0.25);
    transform: translateY(-3px);
}

/* ── 25. APPLICATION / JOIN SECTION ──────────────────────────────────── */
body.theme-dark #application {
    position: relative;
}

body.theme-dark #application::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--section-divider);
    opacity: 0.4;
}

/* ── 26. RESPONSIVE REFINEMENTS ─────────────────────────────────────── */
@media (max-width: 768px) {
    .nasa-section-badge {
        font-size: 0.6rem;
        letter-spacing: 3px;
        padding: 5px 14px;
    }

    body.theme-dark .nasa-nav {
        padding: 0;
    }

    body.theme-dark .nav-link::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .nasa-logo .ascend {
        font-size: 0.85em;
    }
}

/* ── 27. LIGHT THEME REFINEMENTS ─────────────────────────────────────── */
/* Light mode: toned-down brightness, dark text for readability */
body.theme-light {
    background: #e8ecf1 !important;
    color: #1a1a2e;
}

body.theme-light .site-background {
    background: linear-gradient(135deg, #dce3ed 0%, #c9d4e3 50%, #e0e5ee 100%) !important;
    opacity: 1;
}

body.theme-light .particle-field {
    opacity: 0.15;
}

body.theme-light .hud-top-bar {
    background: rgba(11, 61, 145, 0.85);
}

body.theme-light .nasa-section-badge {
    color: var(--ascend-blue);
    background: rgba(11, 61, 145, 0.08);
    border-color: rgba(11, 61, 145, 0.25);
}

body.theme-light .nasa-section-badge::before {
    background: var(--ascend-red);
}

body.theme-light .section-title {
    color: #0b1d3a;
}

body.theme-light .section-title i {
    color: var(--ascend-red);
}

body.theme-light .nasa-red-text {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #CC2E18 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light .mission-monitor {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(11, 61, 145, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.theme-light .mission-monitor .text-white,
body.theme-light .mission-monitor .text-white-50,
body.theme-light .mission-monitor h5,
body.theme-light .mission-monitor h6,
body.theme-light .mission-monitor strong {
    color: #1a1a2e !important;
}

body.theme-light .mission-monitor .text-white-50,
body.theme-light .mission-monitor .extra-small {
    color: #3a3a5e !important;
}

body.theme-light .text-white {
    color: #0b1d3a !important;
}

body.theme-light .text-white-50 {
    color: #3a3a5e !important;
}

body.theme-light .lead.text-white-50 {
    color: #4a4a6e !important;
}

body.theme-light .hud-label {
    color: #0b3d91;
}

body.theme-light .text-info,
body.theme-light .text-cyan {
    color: #0077aa !important;
}

body.theme-light .text-success {
    color: #008844 !important;
}

body.theme-light .text-warning {
    color: #996600 !important;
}

body.theme-light .card-header,
body.theme-light .mission-card-header-cyan {
    background: rgba(11, 61, 145, 0.06);
    border-bottom-color: rgba(11, 61, 145, 0.2);
}

body.theme-light .nasa-btn {
    background: linear-gradient(135deg, var(--ascend-red) 0%, #CC2E18 100%) !important;
}

body.theme-light .btn-outline-light {
    color: #0b3d91;
    border-color: #0b3d91;
}

body.theme-light .btn-outline-light:hover {
    background: #0b3d91;
    color: #fff;
}

body.theme-light .hero {
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.08) 0%, rgba(200, 210, 230, 0.4) 100%);
}

body.theme-light .hero-title {
    background: linear-gradient(135deg, var(--nasa-red) 0%, var(--nasa-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light .telemetry-stream {
    background: rgba(11, 61, 145, 0.06);
    border-color: rgba(11, 61, 145, 0.15);
}

body.theme-light .telemetry-stream span,
body.theme-light .telemetry-stream .text-white {
    color: #0b1d3a !important;
}

body.theme-light .resource-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 61, 145, 0.1);
}

body.theme-light .resource-card-body,
body.theme-light .resource-card-footer {
    color: #2a2a4e;
}

body.theme-light table {
    color: #1a1a2e;
}

body.theme-light table th {
    color: #0b3d91;
    border-color: rgba(11, 61, 145, 0.15);
}

body.theme-light table td {
    border-color: rgba(11, 61, 145, 0.08);
}

body.theme-light .navbar {
    background: rgba(240, 244, 250, 0.95) !important;
    border-bottom: 1px solid rgba(11, 61, 145, 0.12);
}

body.theme-light .navbar .nav-link {
    color: #0b3d91 !important;
}

body.theme-light .navbar .nav-link:hover {
    color: var(--ascend-red) !important;
}

body.theme-light footer,
body.theme-light .site-footer {
    background: rgba(11, 29, 58, 0.95);
    border-top: 2px solid var(--ascend-red);
}

body.theme-light footer .text-white,
body.theme-light footer .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .social-icon {
    color: #0b3d91;
    border-color: rgba(11, 61, 145, 0.2);
}

body.theme-light .social-icon:hover {
    color: #fff;
    background: var(--ascend-red);
    border-color: var(--ascend-red);
}

body.theme-light .badge.bg-success {
    background: #008844 !important;
}

body.theme-light .scan-line,
body.theme-light .hud-grid-overlay {
    opacity: 0.03;
}

/* ── 28. MISSION CARD VARIANTS ──────────────────────────────────────── */
.mission-card-spring26 {
    border: 1px solid rgba(0, 243, 255, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.08);
    transition: all 0.3s ease;
}

.mission-card-spring26:hover {
    border-color: rgba(0, 243, 255, 0.45) !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.mission-card-fall25 {
    border: 1px solid rgba(0, 200, 130, 0.2) !important;
    box-shadow: 0 0 18px rgba(0, 200, 130, 0.06);
    transition: all 0.3s ease;
}

.mission-card-fall25:hover {
    border-color: rgba(0, 200, 130, 0.4) !important;
    box-shadow: 0 0 30px rgba(0, 200, 130, 0.12), 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.mission-card-header-cyan {
    background: rgba(0, 243, 255, 0.06);
    border-bottom: 2px solid rgba(0, 243, 255, 0.4);
}

.mission-card-header-green {
    background: rgba(0, 200, 130, 0.06);
    border-bottom: 2px solid rgba(0, 200, 130, 0.4);
}

/* ── 29. PAYLOAD IMAGE POLISH ──────────────────────────────────────── */
#about .img-fluid {
    transition: all 0.4s ease;
}

#about .img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.15), 0 0 60px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(0, 229, 255, 0.25) !important;
}

/* ── 30. PRINT STYLES ──────────────────────────────────────────────── */
@media print {
    .hud-top-bar,
    .particle-field,
    .scan-line,
    .hud-grid-overlay,
    .site-background,
    .loading-screen,
    .telemetry-stream {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .mission-monitor {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: #fff !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   CESIUM 3D GLOBE — Theme overrides
   ═══════════════════════════════════════════════════════════════════════ */
#cesium3dGlobe {
    border-radius: 8px;
    overflow: hidden;
}

#cesium3dGlobe .cesium-viewer-bottom,
#cesium3dGlobe .cesium-viewer-animationContainer,
#cesium3dGlobe .cesium-viewer-timelineContainer {
    display: none !important;
}

#cesium3dGlobe .cesium-widget-credits {
    display: none !important;
}

#cesium3dGlobe .cesium-viewer-toolbar {
    background: rgba(10, 14, 26, 0.85);
    border-radius: 6px;
    padding: 4px;
    right: 8px !important;
    top: 8px !important;
}

#cesium3dGlobe .cesium-button {
    background: rgba(0, 243, 255, 0.08) !important;
    border: 1px solid rgba(0, 243, 255, 0.25) !important;
    color: #00f3ff !important;
    border-radius: 4px !important;
}

#cesium3dGlobe .cesium-button:hover {
    background: rgba(0, 243, 255, 0.2) !important;
}

#cesium3dGlobe .cesium-infoBox {
    background: rgba(10, 14, 26, 0.95) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    border-radius: 8px !important;
}

#cesium3dGlobe .cesium-sceneModePicker-wrapper {
    position: relative;
}

#cesium3dGlobe .cesium-fullscreenButton {
    background: rgba(0, 243, 255, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Desktop-first breakpoints
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Base sizes for chart/map containers ─────────────────────────────── */
.map-container-height { height: 400px; }
.chart-container { height: 340px; min-height: 320px; max-height: 420px; }
.chart-container-tall { height: 440px; min-height: 400px; max-height: 520px; }
.globe-container-height { height: 520px; }
.cubesat-iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* ── Tablet (≤992px) ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .map-container-height { height: 340px; }
    .chart-container { height: 250px; }
    .chart-container-tall { height: 300px; }
    .globe-container-height { height: 420px; }
    .cubesat-iframe { height: 550px; }
}

/* ── Small tablet / large phone (≤768px) ─────────────────────────────── */
@media (max-width: 768px) {
    .map-container-height { height: 280px; }
    .chart-container { height: 220px; }
    .chart-container-tall { height: 250px; }
    .globe-container-height { height: 350px; }
    .cubesat-iframe { height: 450px; }

    /* Tighten section spacing on mobile */
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Mission monitor card padding */
    .mission-monitor.p-4 {
        padding: 1rem !important;
    }

    /* Hero stat blocks */
    .stat-block .stat-number {
        font-size: 1.6rem;
    }
    .stat-block .stat-label {
        font-size: 0.6rem;
    }

    /* Flight stats dashboard */
    #flightStatsPanel .col-6.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Resource cards */
    .resource-card-header {
        height: 150px;
    }

    /* Gallery cards */
    .gallery-card {
        height: 220px;
    }

    /* 3D globe fly-along button text */
    #flight3dPlayBtn {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
    }

    /* Video max heights */
    video {
        max-height: 280px !important;
    }

    /* Hero section description */
    .hero-description {
        font-size: 0.95rem;
    }
}

/* ── Phone (≤576px) ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .map-container-height { height: 240px; }
    .chart-container { height: 200px; }
    .chart-container-tall { height: 220px; }
    .globe-container-height { height: 280px; }
    .cubesat-iframe { height: 380px; }

    /* Even tighter spacing */
    section.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .row.g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }

    .mission-monitor.p-4 {
        padding: 0.75rem !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.3rem !important;
    }

    .nasa-section-badge {
        font-size: 0.6rem !important;
        padding: 4px 10px !important;
    }

    /* Hero stats */
    .stat-block .stat-number {
        font-size: 1.3rem;
    }

    /* HUD labels */
    .hud-label {
        font-size: 0.65rem;
    }

    /* Lead text */
    .lead {
        font-size: 0.9rem !important;
    }

    /* Nav grid — 2 columns on small phones */
    .navbar-nav {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2px !important;
    }
    .nav-link {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.6rem !important;
    }

    /* Telemetry stream */
    .telemetry-stream {
        font-size: 0.7rem;
    }
    .stream-item {
        padding: 0 8px;
    }

    /* Flight log table */
    .table td, .table th {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }

    /* Video containers — reduce max height */
    video {
        max-height: 200px !important;
    }

    /* Mission overview panel responsive */
    .mission-overview-panel {
        padding: 1rem !important;
        border-radius: 10px;
    }

    /* Container-xxl should be full-width on mobile */
    .container-xxl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ── Small phone (≤400px) — iPhone SE, Galaxy S8 ────────────────────── */
@media (max-width: 400px) {
    .map-container-height { height: 200px; }
    .chart-container { height: 180px; }
    .chart-container-tall { height: 200px; }
    .globe-container-height { height: 240px; }
    .cubesat-iframe { height: 320px; }

    .section-title {
        font-size: 1.1rem !important;
    }

    .stat-block .stat-number {
        font-size: 1.1rem;
    }

    .navbar-nav {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nav-link {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.55rem !important;
    }

    /* Hero title */
    .hero .display-3,
    .hero .display-4 {
        font-size: 1.5rem !important;
    }

    .hero-description {
        font-size: 0.85rem;
    }
}
