/* CSS Variables - Shared DNA Aesthetic */
:root {
    --primary-color: #e1ff00;
    --secondary-color: #1863DC;
    --accent-color: #00f2fe;
    --bg-dark: #000000;
    --bg-secondary: #121212;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.35);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.7);
    --glow-yellow: rgba(225, 255, 0, 0.3);
    --glow-blue: rgba(24, 99, 220, 0.3);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

nav h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

nav h1 a {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.3px;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover,
.nav-links a:active,
.nav-links a:focus {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a:active::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
}

.hero h2 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: -3px;
    line-height: 1;
    position: relative;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.9;
    font-weight: 400;
}

.hero.splash {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero.splash h2 {
    margin-bottom: 1rem;
}

.hero.splash p {
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.content-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8rem 4rem;
    position: relative;
    min-height: calc(100vh - 200px);
}

.content-section h2 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.content-section > p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 900px;
    font-weight: 400;
}

.content-section.experiments-home {
    padding-top: 4rem;
}

/* Experiments Grid */
.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.experiment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.experiment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.experiment-card:hover::before {
    transform: scaleX(1);
}

.experiment-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(225, 255, 0, 0.2);
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.6);
}

.experiment-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.experiment-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}

.experiment-card.placeholder {
    background: transparent;
    cursor: default;
    opacity: 0.4;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.05);
}

.experiment-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
    background: transparent;
}

.experiment-card.placeholder::before {
    display: none;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 10rem;
}

footer p {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(225, 255, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(225, 255, 0, 0.5);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav {
        padding: 0 3rem;
    }

    .content-section {
        padding: 6rem 3rem;
    }

    .experiments-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .nav-brand {
        text-align: center;
    }

    nav h1 {
        font-size: 1rem;
    }

    .nav-subtitle {
        font-size: 0.7rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 70vh;
        padding: 6rem 2rem;
    }

    .hero h2 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .content-section {
        padding: 5rem 2rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .content-section > p {
        font-size: 1.1rem;
    }

    .experiments-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experiment-card {
        padding: 2.5rem 2rem;
    }
}
