:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent: #3b82f6;
    --accent-muted: rgba(59, 130, 246, 0.1);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

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

/* Main Content */
.main {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 680px;
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
}

/* Links */
.link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-hover);
    transition: border-color 0.2s ease;
}

.link:hover {
    border-color: var(--accent);
}

/* Sections */
.section-header {
    margin-bottom: 2.5rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Work Section */
.work {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-item {
    padding: 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.work-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.work-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.work-desc {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Connect Section */
.connect {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.connect-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.connect-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}

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

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-right {
        gap: 1.5rem;
    }

    .main {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .work,
    .connect {
        padding: 4rem 0;
    }

    .footer {
        padding: 2rem 1.5rem;
    }
}

/* Elegant slide-up fade-in animation */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero elements with staggered entrance */
.hero-label,
.hero-title,
.hero-description {
    animation: slideUpFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-label {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-description {
    animation-delay: 0.7s;
}

/* Section labels */
.section-label {
    animation: slideUpFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.work .section-label {
    animation-delay: 0.2s;
}

.connect .section-label {
    animation-delay: 0.2s;
}

/* Work items with staggered entrance */
.work-item {
    animation: slideUpFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.work-item:nth-child(1) { animation-delay: 0.4s; }
.work-item:nth-child(2) { animation-delay: 0.6s; }
.work-item:nth-child(3) { animation-delay: 0.8s; }

/* Connect links with staggered entrance */
.connect-link {
    animation: slideUpFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.connect-link:nth-child(1) { animation-delay: 0.4s; }
.connect-link:nth-child(2) { animation-delay: 0.55s; }
.connect-link:nth-child(3) { animation-delay: 0.7s; }

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

/* Vanta.js Background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}
