/* ============================================
   INFINITY AI OCEAN ROBOTICS ACADEMY
   Main Stylesheet
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Core Colors - Deep Ocean Palette */
    --deep-black: #020617;
    --abyss-blue: #0a1628;
    --ocean-mid: #0f2847;
    --ocean-surface: #1a5276;
    --cyan-primary: #00d4ff;
    --cyan-glow: #00f0ff;
    --cyan-dim: #0891b2;
    --teal-accent: #14b8a6;
    --electric-blue: #3b82f6;
    --purple-deep: #7c3aed;
    
    /* Neutral Tones */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    
    /* Glassmorphism */
    --glass-bg: rgba(10, 22, 40, 0.6);
    --glass-border: rgba(0, 212, 255, 0.15);
    --glass-highlight: rgba(0, 212, 255, 0.08);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-background: -1;
    --z-content: 1;
    --z-navbar: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-200);
    background-color: var(--deep-black);
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--white);
}

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

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--ocean-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-dim);
}

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

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--teal-accent) 50%, var(--electric-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1), 0 0 60px rgba(0, 212, 255, 0.05);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-primary), transparent);
    opacity: 0.6;
}

/* ============================================
   BUTTON COMPONENTS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-primary), var(--electric-blue));
    color: var(--deep-black);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan-primary);
    border: 1px solid var(--cyan-dim);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

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

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 0;
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--cyan-primary);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.7)); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-accent {
    color: var(--cyan-primary);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-300);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cyan-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: var(--z-content);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan-primary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--cyan-primary);
    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(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease both;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 520px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

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

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

/* Hero Visual - Drone Hologram */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.drone-container {
    position: relative;
    width: 400px;
    height: 300px;
}

.drone-hologram {
    position: relative;
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

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

.drone-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.propeller {
    animation: spin 0.5s linear infinite;
    transform-origin: center;
}

.prop-1 { animation-duration: 0.3s; }
.prop-2 { animation-duration: 0.35s; animation-direction: reverse; }
.prop-3 { animation-duration: 0.4s; }
.prop-4 { animation-duration: 0.25s; animation-direction: reverse; }

@keyframes spin {
    from { transform: rotateX(0deg); }
    to { transform: rotateX(360deg); }
}

.sonar-wave {
    animation: sonarPulse 2s ease-out infinite;
    opacity: 0;
}

.sonar-wave:nth-child(2) { animation-delay: 0.5s; }
.sonar-wave:nth-child(3) { animation-delay: 1s; }
.sonar-wave:nth-child(4) { animation-delay: 1.5s; }

@keyframes sonarPulse {
    0% { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.5); }
}

.hologram-grid {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: 
        linear-gradient(90deg, var(--cyan-primary) 1px, transparent 1px),
        linear-gradient(var(--cyan-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    transform: translateX(-50%) perspective(200px) rotateX(60deg);
    animation: gridMove 3s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

.hologram-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 212, 255, 0.1) 50%);
    background-size: 100% 4px;
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.drone-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.2), transparent);
    border-radius: 50%;
    animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 0.15; }
}

/* 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);
    animation: fadeIn 1s ease 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--gray-600);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scrollWheel {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan-primary);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-bottom: var(--space-lg);
    background: rgba(0, 212, 255, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.about-card {
    padding: var(--space-2xl);
    text-align: center;
}

.about-card.featured {
    border-color: var(--cyan-primary);
    transform: scale(1.02);
}

.about-card.featured::after {
    content: 'Featured';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-primary);
    padding: 2px 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--cyan-primary);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.about-card:hover .card-glow {
    opacity: 1;
}

/* Mission Section */
.about-mission {
    margin-top: var(--space-3xl);
}

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

.mission-text h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.mission-text p {
    font-size: 1rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

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

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

.m-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan-primary);
}

.m-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

/* Depth Gauge */
.depth-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-ring {
    position: relative;
    width: 220px;
    height: 220px;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--cyan-primary);
    border-right-color: var(--cyan-primary);
    animation: gaugeSpin 3s linear infinite;
}

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

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cyan-primary);
    line-height: 1;
}

.gauge-unit {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gauge-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

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

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.program-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan-primary);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.1);
}

.program-card.featured {
    border-color: var(--cyan-primary);
}

.program-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--deep-black);
    background: var(--cyan-primary);
    padding: 4px 12px;
    border-radius: 100px;
    z-index: 2;
}

.program-visual {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--ocean-mid), var(--abyss-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.program-icon {
    width: 80px;
    height: 80px;
    color: var(--cyan-primary);
    z-index: 1;
}

.program-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.program-info {
    padding: var(--space-xl);
}

.program-duration {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan-primary);
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.program-info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.program-info p {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.program-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.program-features li {
    position: relative;
    padding-left: var(--space-lg);
    font-size: 0.875rem;
    color: var(--gray-300);
    margin-bottom: var(--space-sm);
}

.program-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan-primary);
    font-weight: 700;
}

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

.program-level {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.program-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cyan-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.program-link:hover {
    color: var(--cyan-glow);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.program-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.program-card:hover .program-glow {
    opacity: 1;
}

/* ============================================
   SYSTEMS SECTION
   ============================================ */
.systems {
    padding: var(--space-4xl) 0;
    position: relative;
}

.systems-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.system-panel {
    padding: var(--space-xl);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.panel-dots {
    display: flex;
    gap: 6px;
}

.panel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.panel-dots span:first-child {
    background: #ef4444;
}

.panel-dots span:nth-child(2) {
    background: #f59e0b;
}

.panel-dots span:nth-child(3) {
    background: #22c55e;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
}

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

.dash-widget {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-md);
}

.widget-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.widget-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan-primary);
    line-height: 1;
}

.widget-unit {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.widget-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-800);
    border-radius: 2px;
    margin-top: var(--space-sm);
    overflow: hidden;
}

.widget-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-primary), var(--teal-accent));
    border-radius: 2px;
    transition: width 0.5s ease;
}

#depth-bar { width: 0%; }
#battery-bar { width: 100%; }
#temp-bar { width: 42%; }
#pressure-bar { width: 1%; }

.sonar-display {
    position: relative;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

#sonar-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.sonar-overlay {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-family: var(--font-heading);
}

/* System Features */
.system-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.feature-item:hover {
    border-color: var(--cyan-primary);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--cyan-primary);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

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

/* ============================================
   ROBOTICS LAB SECTION
   ============================================ */
.lab {
    padding: var(--space-4xl) 0;
    position: relative;
}

.lab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.project-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--cyan-primary);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.1);
}

.project-card.featured {
    border-color: var(--purple-deep);
}

.project-card.featured:hover {
    border-color: var(--purple-deep);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.15);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--ocean-mid), var(--abyss-blue));
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    opacity: 0.6;
}

.project-placeholder svg {
    width: 120px;
    height: 90px;
}

.project-overlay {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
}

.project-status {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 100px;
}

.project-status.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status.completed {
    color: var(--cyan-primary);
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.project-status.testing {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-info {
    padding: var(--space-xl);
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cyan-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.project-info p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.project-team {
    font-size: 0.8125rem;
    color: var(--gray-300);
}

.project-year {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.project-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.project-card:hover .project-glow {
    opacity: 1;
}

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

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

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

.contact-info {
    padding: var(--space-2xl);
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.contact-info > p {
    font-size: 1rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.contact-method:hover {
    border-color: var(--cyan-primary);
    background: rgba(0, 212, 255, 0.05);
}

.method-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    color: var(--cyan-primary);
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.method-value {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
}

.contact-hours h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
}

.hours-row span:first-child {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.hours-row span:last-child {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Contact Form */
.contact-form-container {
    padding: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

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

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-300);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--white);
    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(--cyan-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--abyss-blue);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.form-success.show {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #22c55e;
    margin-bottom: var(--space-lg);
}

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

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--gray-400);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding-top: var(--space-4xl);
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.8));
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    color: var(--cyan-primary);
    border-color: var(--cyan-primary);
    transform: translateY(-2px);
}

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

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

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

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

.footer-column a:hover {
    color: var(--cyan-primary);
}

.footer-bottom {
    margin-top: var(--space-3xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

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

.footer-legal a:hover {
    color: var(--cyan-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --space-4xl: 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .mission-visual {
        order: -1;
        margin-bottom: var(--space-xl);
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .systems-showcase {
        grid-template-columns: 1fr;
    }
    
    .system-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1 1 calc(50% - var(--space-md));
    }
    
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2.5rem;
    }
    
    html {
        font-size: 14px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding-top: calc(var(--space-4xl) + 80px);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card.featured {
        transform: none;
    }
    
    .mission-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .systems-showcase {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .system-features {
        flex-direction: column;
    }
    
    .feature-item {
        flex: 1 1 100%;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.625rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .propeller {
        animation: none !important;
    }
    
    .sonar-wave {
        animation: none !important;
        opacity: 0.4 !important;
    }
    
    .drone-hologram {
        animation: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #ocean-canvas,
    .navbar,
    .hero-visual,
    .scroll-indicator,
    .hologram-scan,
    .project-glow,
    .card-glow,
    .program-glow {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card,
    .glass-panel {
        background: white !important;
        border: 1px solid #ccc !important;
        backdrop-filter: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}