/* ============================================
   INFINITY AI PHOTONICS ENGINEERING ACADEMY
   ============================================
   Theme: Futuristic Photonics Campus
   Colors: Sapphire (#00d4ff) & Violet (#7c3aed)
   Features: Glassmorphism, Holographic Effects,
             Animated Optical Circuits, Premium UI
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES & RESET
   ============================================ */

:root {
    /* Core Colors */
    --sapphire: #00d4ff;
    --sapphire-glow: rgba(0, 212, 255, 0.4);
    --violet: #7c3aed;
    --violet-glow: rgba(124, 58, 237, 0.4);
    --deep-space: #0a0a1a;
    --void: #050510;
    --nebula: #12122a;
    --stardust: #1a1a3e;
    --cosmic: #252550;
    
    /* Text Colors */
    --text-primary: #e8e8ff;
    --text-secondary: #a0a0c8;
    --text-muted: #6b6b9b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--sapphire), var(--violet));
    --gradient-glow: linear-gradient(135deg, var(--sapphire-glow), var(--violet-glow));
    --gradient-dark: linear-gradient(180deg, var(--deep-space), var(--void));
    
    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 26, 0.7);
    --glass-border: rgba(0, 212, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    /* 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;
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-slower: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-glow-sapphire: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
    --shadow-glow-violet: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
    
    /* Z-index layers */
    --z-canvas: -1;
    --z-base: 1;
    --z-nav: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

/* Reset & Base */
*, *::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);
    background: var(--void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Selection */
::selection {
    background: var(--sapphire-glow);
    color: var(--text-primary);
}

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

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

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

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

/* ============================================
   2. ANIMATED BACKGROUND CANVAS
   ============================================ */

#optical-circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   3. NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: var(--space-sm) var(--space-lg);
    transition: all var(--transition-slow);
}

.main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
}

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

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

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

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

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

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

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-slow);
}

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

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

.nav-cta {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--void);
    background: var(--gradient-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow-sapphire);
    transform: translateY(-2px);
}

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

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

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

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

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

/* ============================================
   4. HERO SECTION
   ============================================ */

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

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

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 0 0 var(--sapphire-glow); 
    }
    50% { 
        box-shadow: 0 0 0 8px transparent; 
    }
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.headline-line {
    display: block;
}

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

.headline-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.6;
}

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

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

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

.btn-primary {
    color: var(--void);
    background: var(--gradient-primary);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.btn-primary:hover {
    box-shadow: var(--shadow-glow-sapphire), var(--shadow-glow-violet);
    transform: translateY(-3px);
}

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

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

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--sapphire);
    box-shadow: var(--shadow-glow-sapphire);
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual - Hologram */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    border-color: transparent;
    border-top-color: var(--sapphire);
    border-right-color: var(--violet);
    animation: ring-rotate var(--duration, 10s) linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    --duration: 12s;
    opacity: 0.3;
}

.ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    --duration: 8s;
    animation-direction: reverse;
    opacity: 0.5;
}

.ring-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    --duration: 6s;
    opacity: 0.7;
}

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

.hologram-core {
    position: absolute;
    top: 35%;
    left: 35%;
    width: 30%;
    height: 30%;
    animation: core-float 4s ease-in-out infinite;
}

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

.core-svg {
    width: 100%;
    height: 100%;
    animation: core-pulse 3s ease-in-out infinite;
}

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

.laser-beam {
    position: absolute;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    animation: beam-fire 3s ease-in-out infinite;
}

.beam-1 {
    width: 60%;
    top: 20%;
    left: -10%;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.beam-2 {
    width: 50%;
    bottom: 25%;
    right: -5%;
    transform: rotate(25deg);
    animation-delay: 1s;
}

.beam-3 {
    width: 40%;
    top: 50%;
    left: 30%;
    transform: rotate(90deg);
    animation-delay: 2s;
}

@keyframes beam-fire {
    0% { opacity: 0; width: 0; }
    20% { opacity: 0.8; }
    60% { opacity: 0.8; }
    80% { opacity: 0; width: var(--final-width, 60%); }
    100% { opacity: 0; width: 0; }
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
}

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

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

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

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

.scroll-text {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   5. SECTION UTILITIES
   ============================================ */

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sapphire);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--sapphire);
    opacity: 0.4;
}

.section-tag::before {
    right: calc(100% + var(--space-sm));
}

.section-tag::after {
    left: calc(100% + var(--space-sm));
}

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

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

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

/* ============================================
   6. ABOUT SECTION
   ============================================ */

.about {
    background: var(--gradient-dark);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

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

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    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;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--void);
}

.feature-info h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

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

.visual-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-main {
    width: 80%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 2;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(5, 5, 16, 0.9));
}

.overlay-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sapphire);
}

.card-floating {
    width: 45%;
    height: 35%;
    z-index: 3;
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    bottom: 10%;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 15%;
    right: 5%;
    animation-delay: -3s;
    z-index: 1;
}

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

/* ============================================
   7. SYSTEMS SECTION
   ============================================ */

.systems {
    position: relative;
}

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

.system-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-slow);
}

.system-card:hover {
    border-color: var(--sapphire);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow-sapphire);
}

.card-hologram {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
    overflow: hidden;
}

.system-card:hover .card-hologram {
    opacity: 1;
}

.holo-grid {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--sapphire) 1px, transparent 1px),
        linear-gradient(90deg, var(--sapphire) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    animation: holo-scan 8s linear infinite;
}

@keyframes holo-scan {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.card-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-lg);
}

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

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

.system-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

.system-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.spec-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sapphire);
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ============================================
   8. PROGRAMS SECTION
   ============================================ */

.programs {
    background: var(--gradient-dark);
    position: relative;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

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

.program-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-slow);
}

.program-card:nth-child(even) .program-visual {
    order: 2;
}

.program-card:nth-child(even) .program-content {
    order: 1;
}

.program-card:hover {
    border-color: var(--violet);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), var(--shadow-glow-violet);
}

.program-visual {
    position: relative;
    min-height: 350px;
}

.program-image {
    position: absolute;
    inset: 0;
}

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

.program-number {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--sapphire);
    opacity: 0.3;
    line-height: 1;
}

.program-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.meta-duration,
.meta-level {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
}

.meta-duration {
    color: var(--sapphire);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.meta-level {
    color: var(--violet);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.program-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.program-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

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

.program-modules li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.module-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--sapphire);
    text-decoration: none;
    transition: all var(--transition-base);
}

.program-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.program-link:hover {
    color: var(--text-primary);
}

.program-link:hover svg {
    transform: translateX(6px);
}

/* ============================================
   9. PHOTONICS LAB SECTION
   ============================================ */

.lab {
    position: relative;
}

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

.lab-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-slow);
}

.lab-card:hover {
    border-color: var(--sapphire);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow-sapphire);
}

.lab-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.lab-status {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 5, 16, 0.8);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.active {
    background: #00ff88;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-indicator.complete {
    background: var(--sapphire);
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

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

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

.lab-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet);
    background: rgba(124, 58, 237, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
}

.lab-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.lab-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.lab-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--void);
    background: var(--gradient-primary);
    border: 2px solid var(--deep-space);
    margin-left: -8px;
}

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

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

/* ============================================
   10. CONTACT SECTION
   ============================================ */

.contact {
    background: var(--gradient-dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

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

.contact-intro {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    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);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
}

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

.method-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.method-icon svg {
    width: 22px;
    height: 22px;
    color: var(--void);
}

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

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

.method-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--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(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

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

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

/* Contact Form */
.contact-form-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-xl);
    backdrop-filter: blur(20px);
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-base);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--sapphire);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-slow);
}

.form-input:focus ~ .form-line,
.form-select:focus ~ .form-line,
.form-textarea:focus ~ .form-line {
    width: 100%;
}

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

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

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

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

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

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--void);
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.success-text {
    color: var(--text-secondary);
}

/* ============================================
   11. FOOTER
   ============================================ */

.footer {
    background: var(--void);
    border-top: 1px solid var(--glass-border);
}

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

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

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

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

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

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

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

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

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

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

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

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

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

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

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

/* ============================================
   12. ANIMATIONS & SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slower);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
        height: 400px;
    }
    
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-card {
        grid-template-columns: 1fr;
    }
    
    .program-card:nth-child(even) .program-visual,
    .program-card:nth-child(even) .program-content {
        order: unset;
    }
    
    .program-visual {
        min-height: 250px;
    }
    
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background: var(--deep-space);
        padding: calc(80px + var(--space-xl)) var(--space-lg);
        gap: var(--space-md);
        transition: right var(--transition-slow);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--space-2xl) + 60px);
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
    }
    
    .program-number {
        font-size: 3rem;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .hologram-container {
        width: 280px;
        height: 280px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .about-visual {
        height: 300px;
    }
    
    .card-floating {
        display: none;
    }
    
    .program-meta {
        flex-wrap: wrap;
    }
}

/* ============================================
   14. ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #optical-circuit-canvas {
        display: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sapphire);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(10, 10, 26, 0.95);
        --glass-border: rgba(0, 212, 255, 0.3);
    }
}