/* ============================================
   QUANTUM AI PRECISION AGRICULTURE ACADEMY
   Modern AgriTech Campus Styles
   Emerald & Gold Theme with Glassmorphism
   ============================================ */

/* ------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------ */
:root {
    /* Primary Colors */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    /* Gold Accent Colors */
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;

    /* Neutral Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Semantic Colors */
    --bg-primary: var(--slate-950);
    --bg-secondary: var(--slate-900);
    --bg-tertiary: var(--slate-800);
    --text-primary: var(--slate-50);
    --text-secondary: var(--slate-300);
    --text-muted: var(--slate-400);
    --accent-primary: var(--emerald-500);
    --accent-secondary: var(--gold-500);

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Animation */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-top: var(--space-4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------
   4. BUTTONS
   ------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

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

.btn-primary > * {
    position: relative;
    z-index: 1;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--emerald-500);
}

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

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

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

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
    transition: width var(--transition-base);
}

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

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

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

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

/* ------------------------------------------
   6. HERO SECTION
   ------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-24) var(--space-6) var(--space-16);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--emerald-500);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--gold-500);
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--emerald-400);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--emerald-300);
    margin-bottom: var(--space-6);
}

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

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

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
}

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

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

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
}

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

.hero-visual {
    position: relative;
    z-index: 1;
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hologram-ring {
    position: absolute;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: ringRotate linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 20s;
}

.ring-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-duration: 15s;
    animation-direction: reverse;
    border-color: rgba(245, 158, 11, 0.3);
}

.ring-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-duration: 10s;
}

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

.hologram-core {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

.hologram-core svg {
    width: 100%;
    height: 100%;
    animation: coreFloat 6s ease-in-out infinite;
}

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

.data-point {
    position: absolute;
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--emerald-300);
    animation: dataFloat 4s ease-in-out infinite;
}

.dp-1 { top: 10%; right: 0; animation-delay: 0s; }
.dp-2 { bottom: 20%; left: -10%; animation-delay: -1.5s; }
.dp-3 { bottom: 5%; right: 10%; animation-delay: -3s; }

@keyframes dataFloat {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* ------------------------------------------
   7. ABOUT SECTION
   ------------------------------------------ */
.about {
    padding: var(--space-24) 0;
    position: relative;
}

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

.about-card {
    padding: var(--space-8);
    border-radius: 20px;
    transition: all var(--transition-base);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-glow);
}

.about-card.featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    color: var(--accent-primary);
    margin-bottom: var(--space-5);
}

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

.about-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.about-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.mission-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.mission-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

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

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.feature-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-400);
    border-radius: 6px;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.mission-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.field-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg);
    transform-origin: center bottom;
    border-radius: 20px;
    animation: fieldScan 4s ease-in-out infinite;
}

@keyframes fieldScan {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.tractor-icon {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    color: var(--accent-primary);
    animation: tractorMove 8s ease-in-out infinite;
}

@keyframes tractorMove {
    0%, 100% { left: 30%; }
    50% { left: 70%; }
}

/* ------------------------------------------
   8. PROGRAMS SECTION
   ------------------------------------------ */
.programs {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(16, 185, 129, 0.03) 50%, var(--bg-primary) 100%);
}

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

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

.program-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-glow);
}

.program-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 180px;
}

.program-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Precision Farming Visual */
.precision-visual {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

.zone-indicators {
    position: relative;
    width: 100%;
    height: 100%;
}

.zone {
    position: absolute;
    border-radius: 8px;
    opacity: 0.6;
    animation: zonePulse 3s ease-in-out infinite;
}

.z1 { width: 40px; height: 40px; background: var(--emerald-500); top: 20%; left: 20%; animation-delay: 0s; }
.z2 { width: 50px; height: 35px; background: var(--gold-500); top: 50%; right: 20%; animation-delay: -1s; }
.z3 { width: 35px; height: 45px; background: var(--emerald-400); bottom: 20%; left: 40%; animation-delay: -2s; }

@keyframes zonePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* AI Visual */
.ai-visual {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.2) 100%);
}

.neural-network {
    position: relative;
    width: 120px;
    height: 120px;
}

.nn-node {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--gold-400);
    border-radius: 50%;
    animation: nodeGlow 2s ease-in-out infinite;
}

.n1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.n2 { top: 35%; left: 15%; animation-delay: 0.3s; }
.n3 { top: 35%; right: 15%; animation-delay: 0.6s; }
.n4 { bottom: 0; left: 25%; animation-delay: 0.9s; }
.n5 { bottom: 0; right: 25%; animation-delay: 1.2s; }
.n6 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }

@keyframes nodeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
}

.nn-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0.4;
    animation: lineFlow 2s ease-in-out infinite;
}

.l1 { width: 50px; top: 20%; left: 25%; transform: rotate(35deg); animation-delay: 0.2s; }
.l2 { width: 50px; top: 20%; right: 25%; transform: rotate(-35deg); animation-delay: 0.5s; }
.l3 { width: 60px; top: 55%; left: 30%; transform: rotate(-10deg); animation-delay: 0.8s; }

@keyframes lineFlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Irrigation Visual */
.irrigation-visual {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.water-droplets {
    position: relative;
    width: 100%;
    height: 100%;
}

.drop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(180deg, var(--emerald-300), var(--emerald-500));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: dropFall 2s ease-in infinite;
}

.d1 { top: 10%; left: 30%; animation-delay: 0s; }
.d2 { top: 5%; left: 50%; animation-delay: 0.4s; }
.d3 { top: 15%; left: 70%; animation-delay: 0.8s; }
.d4 { top: 8%; left: 40%; animation-delay: 1.2s; }
.d5 { top: 12%; left: 60%; animation-delay: 1.6s; }

@keyframes dropFall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(80px) scale(0.5); opacity: 0; }
}

.moisture-rings {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.ring {
    position: absolute;
    border: 2px solid var(--emerald-400);
    border-radius: 50%;
    opacity: 0;
    animation: ringExpand 2s ease-out infinite;
}

.r1 { width: 30px; height: 30px; animation-delay: 0s; }
.r2 { width: 50px; height: 50px; top: -10px; left: -10px; animation-delay: 0.5s; }
.r3 { width: 70px; height: 70px; top: -20px; left: -20px; animation-delay: 1s; }

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

/* Robotics Visual */
.robotics-visual {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.robot-arm {
    position: relative;
    width: 100px;
    height: 100px;
}

.arm-segment {
    position: absolute;
    background: linear-gradient(135deg, var(--slate-400), var(--slate-500));
    border-radius: 4px;
}

.s1 { width: 8px; height: 40px; top: 30%; left: 50%; transform: translateX(-50%) rotate(-20deg); }
.s2 { width: 8px; height: 35px; top: 10%; left: 55%; transform: rotate(30deg); }
.s3 { width: 6px; height: 25px; top: 0; left: 70%; transform: rotate(-15deg); }

.gripper {
    position: absolute;
    width: 16px;
    height: 12px;
    top: 0;
    right: 15%;
    background: var(--gold-400);
    border-radius: 4px;
    animation: gripperMove 2s ease-in-out infinite;
}

@keyframes gripperMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.motion-trail {
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    top: 50%;
    left: 20%;
    animation: trailSweep 3s ease-in-out infinite;
}

@keyframes trailSweep {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

.program-content {
    display: flex;
    flex-direction: column;
}

.program-number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--emerald-500);
    margin-bottom: var(--space-2);
}

.program-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.program-content > p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.program-features li {
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-left: var(--space-4);
    position: relative;
}

.program-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--emerald-500);
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--emerald-400);
    margin-top: auto;
    transition: all var(--transition-fast);
}

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

.program-link:hover {
    color: var(--emerald-300);
}

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

/* ------------------------------------------
   9. LAB SECTION
   ------------------------------------------ */
.lab {
    padding: var(--space-24) 0;
}

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

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

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.project-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project 1: Drone */
.project-1 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.drone-schematic {
    position: relative;
    width: 120px;
    height: 120px;
    animation: droneHover 3s ease-in-out infinite;
}

@keyframes droneHover {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.drone-body {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--slate-600);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.drone-arm {
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--slate-500);
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.a1 { transform: translate(-50%, -50%) rotate(0deg); }
.a2 { transform: translate(-50%, -50%) rotate(90deg); }
.a3 { transform: translate(-50%, -50%) rotate(180deg); }
.a4 { transform: translate(-50%, -50%) rotate(270deg); }

.propeller {
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--emerald-400);
    border-radius: 2px;
    animation: propSpin 0.2s linear infinite;
}

.p1 { top: 15%; right: 10%; }
.p2 { bottom: 10%; right: 15%; }
.p3 { bottom: 15%; left: 10%; }
.p4 { top: 10%; left: 15%; }

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

/* Project 2: Sensor Network */
.project-2 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.sensor-array {
    position: relative;
    width: 140px;
    height: 140px;
}

.sensor-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: sensorPulse 2s ease-in-out infinite;
}

.sn1 { top: 20%; left: 20%; animation-delay: 0s; }
.sn2 { top: 15%; right: 25%; animation-delay: 0.4s; }
.sn3 { bottom: 30%; left: 10%; animation-delay: 0.8s; }
.sn4 { bottom: 20%; right: 15%; animation-delay: 1.2s; }
.sn5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 1.6s; background: var(--gold-500); }

@keyframes sensorPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); transform: scale(1.15); }
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
    opacity: 0.5;
    animation: connectionFlow 3s ease-in-out infinite;
}

.c1 { width: 50px; top: 25%; left: 25%; transform: rotate(25deg); animation-delay: 0.2s; }
.c2 { width: 60px; top: 45%; left: 15%; transform: rotate(-15deg); animation-delay: 0.6s; }
.c3 { width: 55px; bottom: 30%; left: 30%; transform: rotate(35deg); animation-delay: 1s; }
.c4 { width: 45px; top: 40%; right: 20%; transform: rotate(-40deg); animation-delay: 1.4s; }

@keyframes connectionFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Project 3: Tractor LiDAR */
.project-3 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.15) 100%);
}

.tractor-sim {
    position: relative;
    width: 140px;
    height: 100px;
}

.tractor-chassis {
    position: absolute;
    width: 80px;
    height: 30px;
    background: var(--slate-500);
    border-radius: 6px;
    bottom: 20%;
    left: 20%;
}

.tractor-cab {
    position: absolute;
    width: 30px;
    height: 25px;
    background: var(--slate-400);
    border-radius: 4px 4px 0 0;
    bottom: 45%;
    left: 45%;
}

.tractor-wheel {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid var(--slate-600);
    border-radius: 50%;
    bottom: 5%;
    animation: wheelSpin 2s linear infinite;
}

.w1 { left: 25%; }
.w2 { right: 20%; width: 28px; height: 28px; }

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

.lidar-beam {
    position: absolute;
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--emerald-400), transparent);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
    animation: lidarSweep 2s ease-in-out infinite;
}

.lidar-sweep {
    position: absolute;
    width: 100px;
    height: 60px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50% 50% 0 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
    animation: lidarSweep 2s ease-in-out infinite;
}

@keyframes lidarSweep {
    0%, 100% { transform: translateX(-50%) rotate(-30deg); opacity: 0.5; }
    50% { transform: translateX(-50%) rotate(30deg); opacity: 1; }
}

/* Project 4: Leaf Analysis */
.project-4 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.15) 100%);
}

.leaf-analysis {
    position: relative;
    width: 120px;
    height: 120px;
}

.leaf-shape {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
    border-radius: 0 80% 0 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.vein-pattern {
    position: absolute;
    width: 60px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.2) 49%, rgba(255,255,255,0.2) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.2) 49%, rgba(255,255,255,0.2) 51%, transparent 52%);
    background-size: 20px 20px;
}

.scan-line {
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--gold-400);
    top: 30%;
    left: 10%;
    animation: scanMove 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold-400);
}

@keyframes scanMove {
    0%, 100% { top: 20%; opacity: 0.5; }
    50% { top: 70%; opacity: 1; }
}

.data-overlay {
    position: absolute;
    right: 5%;
    top: 20%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-overlay span {
    font-size: 10px;
    font-family: var(--font-display);
    color: var(--emerald-300);
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    animation: dataReveal 2s ease-in-out infinite;
}

/* Project 5: Greenhouse */
.project-5 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.greenhouse-model {
    position: relative;
    width: 140px;
    height: 120px;
}

.gh-structure {
    position: absolute;
    width: 100px;
    height: 70px;
    border: 3px solid var(--slate-500);
    border-radius: 8px 8px 0 0;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.gh-panel {
    position: absolute;
    width: 25px;
    height: 55px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--emerald-500);
    border-radius: 4px;
    bottom: 25%;
    animation: panelGlow 3s ease-in-out infinite;
}

.p1 { left: 25%; animation-delay: 0s; }
.p2 { left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.p3 { right: 25%; animation-delay: 2s; }

@keyframes panelGlow {
    0%, 100% { background: rgba(16, 185, 129, 0.1); }
    50% { background: rgba(16, 185, 129, 0.4); }
}

.climate-indicator {
    position: absolute;
    top: 10%;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.climate-indicator span {
    font-size: 10px;
    font-family: var(--font-display);
    padding: 2px 8px;
    border-radius: 4px;
}

.temp { background: rgba(245, 158, 11, 0.2); color: var(--gold-300); }
.humidity { background: rgba(59, 130, 246, 0.2); color: var(--emerald-300); }

/* Project 6: Harvesting Robot */
.project-6 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(219, 39, 119, 0.15) 100%);
}

.harvester-bot {
    position: relative;
    width: 140px;
    height: 120px;
}

.bot-body {
    position: absolute;
    width: 50px;
    height: 40px;
    background: var(--slate-500);
    border-radius: 8px;
    bottom: 25%;
    left: 30%;
}

.bot-arm {
    position: absolute;
    width: 6px;
    height: 50px;
    background: linear-gradient(180deg, var(--slate-400), var(--slate-500));
    border-radius: 3px;
    transform-origin: top center;
    animation: armReach 3s ease-in-out infinite;
}

.ba1 { top: 20%; left: 45%; transform: rotate(-20deg); animation-delay: 0s; }
.ba2 { top: 25%; right: 30%; transform: rotate(15deg); animation-delay: 1.5s; }

@keyframes armReach {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(10deg); }
}

.vision-system {
    position: absolute;
    width: 20px;
    height: 15px;
    background: var(--gold-400);
    border-radius: 50%;
    top: 15%;
    left: 40%;
    animation: visionScan 2s ease-in-out infinite;
}

@keyframes visionScan {
    0%, 100% { box-shadow: 0 0 5px var(--gold-400); }
    50% { box-shadow: 0 0 20px var(--gold-400), 0 0 40px var(--gold-500); }
}

.fruit-detect {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--emerald-400);
    border-radius: 50%;
    animation: fruitAppear 3s ease-in-out infinite;
}

.fd1 { top: 40%; right: 20%; animation-delay: 0.5s; }
.fd2 { bottom: 30%; right: 25%; animation-delay: 2s; }

@keyframes fruitAppear {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

.project-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--emerald-400);
    padding: var(--space-1) var(--space-3);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 9999px;
    margin-bottom: var(--space-3);
}

.project-info h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.project-info > p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

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

.project-author {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
}

.project-year {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gold-400);
}

/* ------------------------------------------
   10. CONTACT SECTION
   ------------------------------------------ */
.contact {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(16, 185, 129, 0.02) 50%, var(--bg-primary) 100%);
}

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

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

.contact-intro {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: rgba(16, 185, 129, 0.05);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    color: var(--emerald-400);
    flex-shrink: 0;
}

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

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

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

.contact-value {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

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

.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: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald-500);
    color: var(--emerald-400);
    transform: translateY(-2px);
}

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

.contact-form-wrapper {
    padding: var(--space-8);
    border-radius: 24px;
}

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

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

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group select {
    cursor: pointer;
    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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8);
}

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

.success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 50%;
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--space-4);
    animation: successPop 0.5s var(--ease-out-expo);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

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

/* ------------------------------------------
   11. FOOTER
   ------------------------------------------ */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--glass-border);
}

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

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

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

.footer-tagline {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

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

.footer-links a {
    font-size: var(--text-base);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

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

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

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ------------------------------------------
   13. RESPONSIVE DESIGN
   ------------------------------------------ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: var(--space-32);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        flex: none;
        margin-top: var(--space-12);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-mission {
        grid-template-columns: 1fr;
    }

    .mission-visual {
        order: -1;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info .section-header {
        text-align: center;
    }

    .contact-intro {
        text-align: center;
    }

    .contact-details {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-social {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
        --text-6xl: 2.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--space-20) var(--space-8);
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        transition: right var(--transition-base);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: var(--space-4) 0;
        font-size: var(--text-lg);
        width: 100%;
        border-bottom: 1px solid var(--glass-border);
    }

    .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);
    }

    .hero {
        padding-top: var(--space-28);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
    }

    .hologram-container {
        width: 240px;
        height: 240px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        grid-template-columns: 1fr;
    }

    .program-image {
        min-height: 160px;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .about-card,
    .program-card,
    .project-card,
    .contact-form-wrapper {
        padding: var(--space-5);
    }

    .mission-hologram {
        width: 280px;
        height: 220px;
    }
}

/* ------------------------------------------
   14. ACCESSIBILITY
   ------------------------------------------ */
@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;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(15, 23, 42, 0.9);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}

/* ------------------------------------------
   15. PRINT STYLES
   ------------------------------------------ */
@media print {
    .navbar,
    .hero-bg,
    .hero-visual,
    .mission-visual,
    .program-visual,
    .project-visual,
    .contact-form-wrapper,
    .footer {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}