/* ============================================
   INFINITY AI HYDROGEN TECHNOLOGIES ACADEMY
   Production-Ready CSS
   ============================================ */

/* ------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------ */
:root {
    /* Core Colors */
    --color-deep-blue: #0a1628;
    --color-midnight: #0f2240;
    --color-navy: #1a3a5c;
    --color-ocean: #0066cc;
    --color-sky: #4a9eff;
    --color-cyan: #00d4aa;
    --color-emerald: #10b981;
    --color-mint: #6ee7b7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-cyan) 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f3d3e 50%, #0a1628 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 34, 64, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Z-Index Scale */
    --z-particles: 0;
    --z-content: 1;
    --z-nav: 100;
    --z-modal: 200;
}

/* ------------------------------------------
   2. 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-primary);
    background: var(--color-deep-blue);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ------------------------------------------
   3. PARTICLE CANVAS BACKGROUND
   ------------------------------------------ */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particles);
    pointer-events: none;
}

/* ------------------------------------------
   4. UTILITY CLASSES
   ------------------------------------------ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 212, 170, 0.15);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* ------------------------------------------
   5. BUTTONS
   ------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--color-cyan);
}

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

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

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

/* ------------------------------------------
   6. NAVIGATION
   ------------------------------------------ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-sm) 0;
    transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    margin-left: var(--space-xs);
}

.nav-cta:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    z-index: calc(var(--z-nav) + 1);
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

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

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-description {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

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

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

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

.stat-number::after {
    content: '+';
    color: var(--color-cyan);
    font-size: 1.25rem;
    margin-left: 2px;
}

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

/* Hero Visual - H2 Molecule */
.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.molecule-container {
    position: relative;
    width: 400px;
    height: 400px;
    animation: float 6s ease-in-out infinite;
}

.molecule-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(0, 212, 170, 0.4);
    animation: pulse 3s ease infinite;
}

.molecule-atom {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-sky) 0%, var(--color-ocean) 100%);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.3);
}

.atom-1 { top: 20%; left: 50%; transform: translateX(-50%); animation: orbit1 8s linear infinite; }
.atom-2 { top: 50%; right: 15%; animation: orbit2 10s linear infinite; }
.atom-3 { bottom: 20%; left: 50%; transform: translateX(-50%); animation: orbit3 12s linear infinite; }
.atom-4 { top: 50%; left: 15%; animation: orbit4 9s linear infinite; }

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 { width: 200px; height: 200px; animation: rotate 20s linear infinite; }
.orbit-2 { width: 280px; height: 280px; animation: rotate 30s linear infinite reverse; }
.orbit-3 { width: 360px; height: 360px; animation: rotate 40s linear infinite; }

/* Floating Dashboards */
.floating-dashboard {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    min-width: 160px;
    animation: float 4s ease-in-out infinite;
}

.dashboard-1 {
    top: 15%;
    right: 5%;
    animation-delay: -1s;
}

.dashboard-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: -2s;
}

.dash-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.dash-status.active {
    background: var(--color-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.dash-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.dash-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.dash-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
}

/* 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: #64748b;
    font-size: 0.75rem;
    animation: fadeIn 1s 1s ease both;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

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

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

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

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    color: var(--color-cyan);
}

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

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

.card-text {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Pipeline Visualization */
.about-pipeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.pipeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-ocean) 0%, var(--color-cyan) 100%);
    transform: translateY(-50%);
    opacity: 0.3;
}

.pipeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.pipeline-node::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-deep-blue);
    border: 2px solid var(--color-navy);
    transition: all var(--transition-base);
}

.pipeline-node.active::before {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.node-label {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.pipeline-node.active .node-label {
    color: var(--color-cyan);
}

/* ------------------------------------------
   9. SYSTEMS SECTION
   ------------------------------------------ */
.systems {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 204, 0.03) 50%, transparent 100%);
}

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

.system-panel {
    padding: var(--space-xl);
    min-height: 480px;
    display: none;
}

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

.panel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.panel-description {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.panel-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: #cbd5e1;
}

.panel-features li::before {
    content: '→';
    color: var(--color-cyan);
    font-weight: 600;
}

/* System Animations */
.system-animation {
    position: relative;
    width: 280px;
    height: 280px;
}

.cell-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cell-layer {
    width: 160px;
    height: 24px;
    background: linear-gradient(90deg, var(--color-ocean) 0%, var(--color-cyan) 100%);
    border-radius: 4px;
    opacity: 0.8;
    animation: cellPulse 2s ease infinite;
}

.cell-layer:nth-child(2) { animation-delay: 0.2s; }
.cell-layer:nth-child(3) { animation-delay: 0.4s; }
.cell-layer:nth-child(4) { animation-delay: 0.6s; }
.cell-layer:nth-child(5) { animation-delay: 0.8s; }

.bubble-stream {
    position: absolute;
    top: 20%;
    right: 10%;
}

.bubble {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    border-radius: 50%;
    margin-bottom: 8px;
    animation: bubbleRise 1.5s ease infinite;
    opacity: 0;
}

.bubble:nth-child(2) { animation-delay: 0.3s; }
.bubble:nth-child(3) { animation-delay: 0.6s; }
.bubble:nth-child(4) { animation-delay: 0.9s; }
.bubble:nth-child(5) { animation-delay: 1.2s; }

/* System Tabs */
.system-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.system-tab {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #94a3b8;
    transition: all var(--transition-base);
    text-align: left;
}

.system-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.system-tab.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-color: rgba(0, 212, 170, 0.3);
    color: #fff;
}

.tab-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-sm);
}

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

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

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

.program-card {
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.program-card.featured {
    border-color: rgba(0, 212, 170, 0.3);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 212, 170, 0.05) 100%);
}

.program-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-deep-blue);
    background: var(--gradient-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.program-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.program-icon {
    width: 48px;
    height: 48px;
    color: var(--color-cyan);
}

.program-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.program-duration {
    font-size: 0.8125rem;
    color: var(--color-cyan);
    margin-bottom: var(--space-md);
}

.program-description {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.program-meta {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-cyan);
    transition: gap var(--transition-base);
}

.program-link:hover {
    gap: var(--space-md);
}

.program-link svg {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------
   11. INNOVATION LAB SECTION
   ------------------------------------------ */
.lab {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 170, 0.02) 50%, transparent 100%);
}

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

.project-card {
    overflow: hidden;
    transition: transform var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-midnight) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder.blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%);
}

.project-placeholder.emerald {
    background: linear-gradient(135deg, #064e3b 0%, #0a1628 100%);
}

.project-placeholder.purple {
    background: linear-gradient(135deg, #4c1d95 0%, #0a1628 100%);
}

.project-placeholder.amber {
    background: linear-gradient(135deg, #78350f 0%, #0a1628 100%);
}

.project-placeholder.rose {
    background: linear-gradient(135deg, #881337 0%, #0a1628 100%);
}

.placeholder-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.ph-atom {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 170, 0.3);
    animation: phOrbit 3s linear infinite;
}

.ph-atom:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
}

.ph-atom:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-duration: 2s;
    animation-direction: reverse;
}

.ph-atom:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    animation-duration: 4s;
}

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

.project-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
}

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

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

.project-author {
    font-size: 0.8125rem;
    color: var(--color-cyan);
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

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

.project-tags span {
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

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

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

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.contact-description {
    font-size: 1.0625rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-base);
}

.contact-method:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateX(4px);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

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

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

.method-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.method-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #e2e8f0;
}

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

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #94a3b8;
    transition: all var(--transition-base);
}

.social-link:hover {
    color: var(--color-cyan);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}

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

/* Contact Form */
.contact-form-wrapper {
    padding: var(--space-xl);
    position: relative;
}

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

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

.form-group label {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-primary);
    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: rgba(0, 212, 170, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #475569;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--color-deep-blue);
    color: #e2e8f0;
}

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

.form-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.form-success.visible {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.form-success p {
    color: #94a3b8;
}

/* ------------------------------------------
   13. FOOTER
   ------------------------------------------ */
.footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

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

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

.footer-tagline {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9375rem;
    color: #94a3b8;
    transition: color var(--transition-base);
}

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

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

.copyright {
    font-size: 0.8125rem;
    color: #475569;
}

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

.footer-legal a {
    font-size: 0.8125rem;
    color: #475569;
    transition: color var(--transition-base);
}

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

/* ------------------------------------------
   14. ANIMATIONS
   ------------------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit1 {
    0% { transform: translateX(-50%) rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: rotate(0deg) translateX(-100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(-100px) rotate(-360deg); }
}

@keyframes orbit3 {
    0% { transform: translateX(-50%) rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(-360deg) translateX(120px) rotate(360deg); }
}

@keyframes orbit4 {
    0% { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    100% { transform: rotate(-360deg) translateX(90px) rotate(360deg); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

@keyframes cellPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes bubbleRise {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

@keyframes phOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------------
   15. SCROLL REVEAL ANIMATIONS
   ------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ------------------------------------------
   16. RESPONSIVE DESIGN
   ------------------------------------------ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        min-height: 400px;
        margin-top: var(--space-xl);
    }
    
    .molecule-container {
        transform: scale(0.8);
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .systems-showcase {
        grid-template-columns: 1fr;
    }
    
    .system-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-deep-blue);
        flex-direction: column;
        padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-lg);
        gap: var(--space-sm);
        transition: right var(--transition-base);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: var(--space-md);
        font-size: 1rem;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-sm);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .molecule-container {
        transform: scale(0.6);
    }
    
    .floating-dashboard {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-nodes {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .pipeline-line {
        display: none;
    }
    
    .system-panel.active {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: var(--space-lg);
    }
}

/* ------------------------------------------
   17. 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;
    }
}

/* ------------------------------------------
   18. PRINT STYLES
   ------------------------------------------ */
@media print {
    .particle-canvas,
    .navbar,
    .scroll-indicator,
    .hero-visual,
    .about-pipeline,
    .system-animation,
    .project-placeholder .placeholder-animation {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .glass-card,
    .glass-panel {
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .gradient-text {
        -webkit-text-fill-color: #000;
        background: none;
    }
}