/* ============================================
   INFINITY AI ARCTIC ENGINEERING ACADEMY
   Complete Stylesheet
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Core Colors */
    --color-ice-white: #F0F4F8;
    --color-pure-white: #FFFFFF;
    --color-sapphire: #2563EB;
    --color-sapphire-light: #3B82F6;
    --color-sapphire-dark: #1D4ED8;
    --color-navy: #0F172A;
    --color-navy-light: #1E293B;
    --color-navy-lighter: #334155;
    
    /* Accent Colors */
    --color-cyan: #06B6D4;
    --color-cyan-light: #67E8F9;
    --color-aurora-green: #34D399;
    --color-aurora-purple: #A78BFA;
    --color-aurora-pink: #F472B6;
    
    /* Functional Colors */
    --color-text-primary: #F8FAFC;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;
    --color-border: rgba(148, 163, 184, 0.15);
    --color-border-strong: rgba(148, 163, 184, 0.25);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-sapphire: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --gradient-aurora: linear-gradient(90deg, #34D399, #06B6D4, #A78BFA, #F472B6);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms ease;
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Z-index layers */
    --z-canvas: -1;
    --z-background: 0;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 200;
    --z-top: 300;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-navy);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Selection styling */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: var(--color-pure-white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-sapphire);
}

/* ============================================
   ANIMATED BACKGROUND CANVAS
   ============================================ */
#aurora-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
}

.main-nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-sapphire-light);
    transition: color var(--transition-base);
}

.logo:hover .logo-icon {
    color: var(--color-cyan-light);
}

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

.logo-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.625rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav-link {
    position: relative;
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pure-white);
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--transition-slow);
}

.nav-link:hover,
.nav-link.active {
    color: transparent;
    background: rgba(37, 99, 235, 0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
    clip-path: inset(0 0 0 0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-3xl) + 60px) var(--space-lg) var(--space-2xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: var(--z-background);
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-cyan-light);
    margin-bottom: var(--space-lg);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-aurora-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
    margin-bottom: var(--space-lg);
}

.headline-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-line.highlight {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-sapphire);
    color: var(--color-pure-white);
    box-shadow: var(--shadow-glow);
}

.cta-button.primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cta-button.primary:hover .cta-glow {
    opacity: 1;
}

.cta-arrow {
    transition: transform var(--transition-base);
}

.cta-button.primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-strong);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-sapphire-light);
}

.cta-play {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-sapphire);
    border-radius: 50%;
    font-size: 0.75rem;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cyan-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* Hero Visual Elements */
.hero-visual {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: var(--z-content);
    pointer-events: none;
}

.holographic-glacier {
    position: relative;
    width: 100%;
    height: 100%;
}

.glacier-layer {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: glacier-rotate 20s linear infinite;
}

.glacier-layer.layer-1 {
    width: 400px;
    height: 400px;
    top: 100px;
    left: 100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    animation-duration: 25s;
}

.glacier-layer.layer-2 {
    width: 300px;
    height: 300px;
    top: 150px;
    left: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    animation-duration: 20s;
    animation-direction: reverse;
}

.glacier-layer.layer-3 {
    width: 200px;
    height: 200px;
    top: 200px;
    left: 200px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    animation-duration: 15s;
}

.glacier-core {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 240px;
    left: 240px;
    background: var(--gradient-sapphire);
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(20px);
    animation: core-pulse 4s ease-in-out infinite;
}

@keyframes glacier-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Floating Robot */
.floating-robot {
    position: absolute;
    top: 80px;
    right: 120px;
    width: 60px;
    height: 60px;
    animation: robot-float 6s ease-in-out infinite;
}

.robot-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(200,220,255,0.7));
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.robot-eye {
    position: absolute;
    width: 24px;
    height: 12px;
    top: 18px;
    left: 18px;
    background: var(--color-sapphire);
    border-radius: 6px;
    animation: robot-blink 3s ease-in-out infinite;
}

.robot-antenna {
    position: absolute;
    width: 3px;
    height: 16px;
    top: -12px;
    left: 28px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

.robot-antenna::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: -6px;
    left: -2.5px;
    background: var(--color-cyan);
    border-radius: 50%;
    animation: antenna-glow 2s ease-in-out infinite;
}

.robot-trail {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    animation: trail-pulse 2s ease-in-out infinite;
}

@keyframes robot-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes robot-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes antenna-glow {
    0%, 100% { box-shadow: 0 0 5px var(--color-cyan); }
    50% { box-shadow: 0 0 20px var(--color-cyan), 0 0 40px var(--color-cyan); }
}

@keyframes trail-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

/* Data Streams */
.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-cyan-light), transparent);
    opacity: 0.4;
    animation: stream-fall var(--duration, 3s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.data-stream:nth-child(1) { left: 20%; }
.data-stream:nth-child(2) { left: 40%; }
.data-stream:nth-child(3) { left: 60%; }
.data-stream:nth-child(4) { left: 80%; }

@keyframes stream-fall {
    0% { transform: translateY(-100px); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(700px); opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    width: 4px;
    height: 8px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text-muted);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-sapphire-light);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--color-sapphire);
    transform: translateX(8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-sapphire-light);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* About Visual */
.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.6) 100%);
}

/* Glass Cards */
.glass-card {
    position: absolute;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
}

.about-card {
    bottom: -30px;
    left: -30px;
}

.card-secondary {
    top: 60px;
    right: -40px;
    width: 180px;
}

.card-metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cyan-light);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-sm) 0;
}

.card-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-bottom: var(--space-sm);
}

.chart-bar {
    flex: 1;
    background: var(--gradient-sapphire);
    border-radius: 2px;
    height: var(--height, 50%);
    animation: chart-grow 1s ease-out backwards;
    animation-delay: var(--delay, 0s);
}

@keyframes chart-grow {
    from { height: 0; }
}

.card-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

/* ============================================
   SYSTEMS SECTION
   ============================================ */
.systems {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 50%, transparent 100%);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.system-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-sapphire);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.system-card:hover {
    border-color: var(--color-sapphire);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.system-card:hover::before {
    transform: scaleX(1);
}

.system-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    color: var(--color-sapphire-light);
}

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

.system-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.system-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.system-metrics {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.metric {
    font-size: 0.75rem;
    color: var(--color-cyan-light);
    font-weight: 500;
}

.metric-dot {
    width: 4px;
    height: 4px;
    background: var(--color-text-muted);
    border-radius: 50%;
}

.system-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: var(--progress, 0%);
    background: var(--gradient-sapphire);
    border-radius: 2px;
    transition: width 1s ease-out;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
    padding: var(--space-3xl) 0;
}

.programs-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Program Tabs */
.program-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-pure-white);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Program Panels */
.program-panels {
    position: relative;
    min-height: 600px;
}

.program-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all var(--transition-slow);
}

.program-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.panel-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 100px;
    color: var(--color-aurora-purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.panel-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.panel-curriculum {
    margin-bottom: var(--space-xl);
}

.panel-curriculum h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.curriculum-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.curriculum-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.check {
    color: var(--color-aurora-green);
    font-weight: 700;
    flex-shrink: 0;
}

.panel-meta {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
}

.panel-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-sapphire-light);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.panel-cta:hover {
    color: var(--color-cyan-light);
    gap: var(--space-md);
}

/* Panel Visual */
.panel-visual {
    position: relative;
}

.visual-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.panel-image {
    width: 100%;
    height: auto;
    display: block;
}

.frame-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--color-cyan-light);
    opacity: 0.6;
}

.hud-corner.top-left {
    top: 16px;
    left: 16px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hud-corner.top-right {
    top: 16px;
    right: 16px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.hud-corner.bottom-left {
    bottom: 16px;
    left: 16px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.hud-corner.bottom-right {
    bottom: 16px;
    right: 16px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

.hud-data {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    color: var(--color-cyan-light);
}

/* ============================================
   ARCTIC LAB / PROJECTS SECTION
   ============================================ */
.arctic-lab {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-sapphire);
    box-shadow: var(--shadow-glow);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-status.active {
    background: rgba(52, 211, 153, 0.15);
    color: var(--color-aurora-green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.project-status.testing {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.project-status.prototype {
    background: rgba(167, 139, 250, 0.15);
    color: var(--color-aurora-purple);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.project-content {
    padding: var(--space-lg);
}

.project-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tag {
    padding: 2px 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    font-size: 0.6875rem;
    color: var(--color-sapphire-light);
    font-weight: 500;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.project-team {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.team-avatars {
    display: flex;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-pure-white);
    margin-left: -8px;
    border: 2px solid var(--color-navy);
}

.avatar:first-child {
    margin-left: 0;
}

.team-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.project-metrics {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.p-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p-value {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-cyan-light);
}

.p-label {
    font-size: 0.625rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.contact-method:hover {
    border-color: var(--color-sapphire);
    transform: translateX(8px);
}

.method-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-sapphire-light);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.contact-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--color-sapphire);
    color: var(--color-sapphire-light);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.contact-form-container {
    position: relative;
}

.contact-form {
    background: var(--gradient-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
}

.form-header {
    margin-bottom: var(--space-xl);
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.form-header p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sapphire);
    background: rgba(37, 99, 235, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--color-navy);
    color: var(--color-text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-error {
    display: none;
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: var(--space-xs);
}

.form-group.error input,
.form-group.error select {
    border-color: #EF4444;
}

.form-group.error .form-error {
    display: block;
}

.form-submit {
    position: relative;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-sapphire);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-pure-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
}

.form-submit:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-loading,
.submit-success {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.submit-loading svg {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.form-submit.loading .submit-text {
    opacity: 0;
}

.form-submit.loading .submit-loading {
    display: flex;
}

.form-submit.success {
    background: var(--color-aurora-green);
}

.form-submit.success .submit-text,
.form-submit.success .submit-loading {
    display: none;
}

.form-submit.success .submit-success {
    display: flex;
}

.form-success-message {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
}

.form-success-message.show {
    display: flex;
    animation: fade-in-up 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.15);
    border: 2px solid var(--color-aurora-green);
    border-radius: 50%;
    color: var(--color-aurora-green);
    font-size: 2rem;
}

.form-success-message h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.form-success-message p {
    color: var(--color-text-secondary);
    max-width: 320px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-logo .logo-title {
    font-size: 1rem;
}

.footer-logo .logo-subtitle {
    font-size: 0.5625rem;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--color-sapphire-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--color-sapphire-light);
}

.footer-legal .divider {
    color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.visible > * {
    animation: stagger-fade-in 0.5s ease forwards;
}

.stagger-children.visible > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero-visual {
        width: 400px;
        height: 400px;
        right: -10%;
    }
    
    .glacier-layer.layer-1 {
        width: 280px;
        height: 280px;
        top: 60px;
        left: 60px;
    }
    
    .glacier-layer.layer-2 {
        width: 200px;
        height: 200px;
        top: 100px;
        left: 100px;
    }
    
    .glacier-layer.layer-3 {
        width: 140px;
        height: 140px;
        top: 130px;
        left: 130px;
    }
    
    .glacier-core {
        width: 80px;
        height: 80px;
        top: 160px;
        left: 160px;
    }
}

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .glass-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        margin-top: var(--space-md);
    }
    
    .card-secondary {
        width: auto;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-content {
        grid-template-columns: 1fr;
    }
    
    .panel-visual {
        order: -1;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: calc(var(--space-3xl) + 20px) var(--space-lg) var(--space-lg);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        transition: right var(--transition-slow);
        border-left: 1px solid var(--color-border);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }
    
    .nav-link::before {
        justify-content: flex-start;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: calc(var(--z-nav) + 1);
    }
    
    .hero {
        padding-top: calc(var(--space-2xl) + 60px);
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-button {
        justify-content: center;
    }
    
    .program-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .program-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .headline-line {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .system-card,
    .project-card,
    .contact-form {
        padding: var(--space-md);
    }
    
    .panel-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hud-data {
        flex-wrap: wrap;
        gap: var(--space-xs);
        font-size: 0.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-visual,
    #aurora-canvas,
    .scroll-indicator,
    .mobile-menu-toggle,
    .floating-robot,
    .data-streams {
        display: none !important;
    }
    
    .main-nav {
        position: relative;
        background: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}