:root {
    --bg: #0a0a0f;
    --bg-alt: #111118;
    --surface: #16161f;
    --text: #e8e8ef;
    --text-muted: #9ca3af;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.narrow {
    width: min(720px, 92%);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    padding: 8rem 0 6rem;
    border-bottom: 1px solid var(--border);
}

.hero-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.section p:last-child {
    margin-bottom: 0;
}

/* About */
.interest-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.6rem;
    list-style: none;
    margin-top: 1rem;
}

.interest-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.interest-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.job {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.job:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job-meta h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.company {
    color: var(--accent) !important;
    font-weight: 600;
    margin-bottom: 0.25rem !important;
}

.date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-body ul {
    list-style: none;
    margin-bottom: 1rem;
}

.job-body li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.job-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tech {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Skills */
.skill-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-group h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
}

/* Projects */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.project-role {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Contact */
.text-center {
    text-align: center;
}

.contact-text {
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 720px) {
    .hero {
        padding: 5rem 0 4rem;
    }

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

    .nav-links {
        display: none;
    }

    .skill-groups {
        grid-template-columns: 1fr;
    }
}
