:root {
    --bg: #0a0e1a;
    --bg-alt: #0f1424;
    --surface: #141a2e;
    --border: #1f2740;
    --text: #e6e9f2;
    --muted: #8b93ad;
    --accent: #7cf5c4;
    --accent-2: #5ba8ff;
    --danger: #ff6b6b;
    --radius: 14px;
    --maxw: 1100px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.25rem
}

.container.narrow {
    max-width: 680px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: color-mix(in oklab, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem
}

.brand {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -0.02em
}

.brand-dot {
    color: var(--accent)
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap
}

.nav-links a {
    font-size: .9rem;
    color: var(--muted);
    transition: color .2s
}

.nav-links a:hover {
    color: var(--accent)
}

/* Hero */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden
}

.hero-inner {
    position: relative;
    z-index: 2
}

.eyebrow {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: .85rem;
    margin-bottom: 1rem
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05
}

.hero .accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 70%);
    opacity: .35;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #062018
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--accent)
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text)
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent)
}

/* Sections */
.section {
    padding: 5rem 0
}

.section.alt {
    background: var(--bg-alt)
}

.section h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hash {
    color: var(--accent)
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px)
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--accent)
}

.card p {
    color: var(--muted);
    font-size: .95rem
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem
}

.skill-block h4 {
    font-family: var(--font-mono);
    color: var(--accent-2);
    margin-bottom: .75rem;
    font-size: .95rem
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.chips li {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text);
    font-family: var(--font-mono);
}

/* Timeline */
.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-left: 2px solid var(--border);
    padding-left: 1.5rem
}

.timeline li {
    position: relative
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -1.94rem;
    top: .5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-alt);
}

.timeline h3 {
    color: var(--text);
    margin-bottom: .25rem;
    font-size: 1.05rem
}

.timeline p {
    color: var(--muted)
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem
}

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    transition: border-color .2s, transform .2s;
}

.project:hover {
    border-color: var(--accent-2);
    transform: translateY(-3px)
}

.project h3 {
    color: var(--text);
    font-size: 1.1rem
}

.project p {
    color: var(--muted);
    font-size: .95rem;
    flex: 1
}

.link {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: .9rem;
    margin-top: auto
}

.link:hover {
    color: var(--accent-2)
}

.github-card {
    background: linear-gradient(135deg, var(--surface), #1a2240)
}

/* Form */
.muted {
    color: var(--muted);
    margin-bottom: 1.5rem
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem
}

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.field label {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--muted)
}

.field input,
.field textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .75rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent)
}

.form-status {
    font-family: var(--font-mono);
    font-size: .9rem;
    min-height: 1.2rem;
    margin-top: .5rem
}

.form-status.success {
    color: var(--accent)
}

.form-status.error {
    color: var(--danger)
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 2rem
}

.foot {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    font-family: var(--font-mono)
}

@media (max-width:640px) {
    .nav-links {
        gap: .75rem
    }

    .nav-links a {
        font-size: .8rem
    }

    .hero {
        padding: 4rem 0 3rem
    }

    .section {
        padding: 3.5rem 0
    }
}

.btn-github-hero {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.btn-github-hero:hover {
    border-color: var(--accent-2);
    /* The blue-ish accent from your CSS */
    color: var(--accent-2);
    transform: translateY(-2px);
}

.github-icon {
    /* This makes the SVG inherit the text color automatically */
    fill: currentColor;
    transition: fill 0.2s ease;
}

/* Ensure the CTA group wraps nicely on mobile */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
