:root {
    --bg: #0b0d12;
    --surface: #11141b;
    --surface-2: #161a23;
    --border: #232938;
    --text: #e6e8ee;
    --muted: #9aa3b6;
    --accent: #7cc7ff;
    --accent-2: #b794f6;
    --max-width: 920px;
    --radius: 10px;
    --transition: 150ms ease;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff;
        --surface: #f7f8fa;
        --surface-2: #eef0f4;
        --border: #e1e4eb;
        --text: #14161c;
        --muted: #5b6478;
        --accent: #0969da;
        --accent-2: #6f42c1;
    }
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-weight: 600;
}

.brand-mark { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

@media (max-width: 600px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 13px; }
}

/* Hero */
.hero {
    padding: 80px 24px 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

@media (max-width: 720px) {
    .hero { padding: 56px 24px 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-avatar { order: -1; }
}

.eyebrow {
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lede {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 56ch;
    margin: 0 0 28px;
}

.lede a { font-weight: 500; }

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--accent-2);
    color: var(--bg);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-avatar img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 56px 24px;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 24px;
}

/* Skills */
.chip-row {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-row li {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Experience */
.timeline-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-head h3 { margin: 0; font-size: 1.15rem; }
.role {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.period {
    margin: 0;
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.bullets li {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
    color: var(--text);
}

.bullets li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.bullets strong {
    color: var(--accent);
    font-weight: 600;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    color: var(--text);
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: var(--text);
    transform: translateY(-2px);
}

.project-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--accent);
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
}

.project-card footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.more-link {
    margin-top: 24px;
    font-size: 14px;
}

/* Education */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.edu-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.edu-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.edu-item p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 32px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
