/* --- FONTS --- */
@font-face {
    font-family: 'Geist';
    src: url('/fonts/Geist-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* --- VARIABLES --- */
:root {
    /* Color Palette (OKLCH) */
    --background: oklch(1 0 0); /* White */
    --foreground: oklch(0.15 0 0); /* Blackish */
    
    --primary: oklch(0.62 0.15 55); /* Orange #ed9320 */
    --primary-foreground: oklch(1 0 0); /* White text on orange */
    
    --secondary: oklch(0.97 0 0); /* Very Light Gray */
    --secondary-foreground: oklch(0.15 0 0);
    
    --card: oklch(1 0 0);
    --border: oklch(0.92 0 0);
    
    --radius: 0.75rem;
    --nav-height: 80px;
}

/* Dark Mode Support (System Preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: oklch(0.12 0 0);
        --foreground: oklch(0.98 0 0);
        --secondary: oklch(0.18 0 0);
        --secondary-foreground: oklch(0.98 0 0);
        --card: oklch(0.17 0 0);
        --border: oklch(0.25 0 0);
    }
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline-color: var(--primary);
}

html {
    scroll-behavior: smooth;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: color-mix(in srgb, var(--background) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--foreground);
    transition: color 0.3s;
}

.navbar-logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a, 
.nav-item-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--foreground);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
    font-family: inherit;
}

.nav-links a:hover, 
.nav-item-btn:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

/* Ambient Background Glow */
.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--primary) 15%, transparent) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: color-mix(in srgb, var(--foreground) 60%, transparent);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary) 40%, transparent);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--foreground);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card);
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    position: relative;
    z-index: 2;
    text-align: center;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.modal p {
    color: color-mix(in srgb, var(--foreground) 70%, transparent);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* --- MOBILE MENU & ANIMATIONS --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--foreground);
    transition: 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a, 
    .nav-item-btn {
        font-size: 1.5rem;
    }

    /* Hamburger Animation when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
.lab-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

/* Floating animation for the icon */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Style for the active link in the navbar */
.nav-links a.active-link {
    color: var(--primary);
    position: relative;
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}