:root {
    --bg: #0b0d12;
    --surface: #12151d;
    --muted-surface: #171b24;
    --text: #e9eef3;
    --muted: #9aa7b2;
    --brand: #61dafb;
    --accent: #7c4dff;
    --link: #9ad4ff;
    --border: 1px solid rgba(255,255,255,0.08);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f7fb;
        --surface: #ffffff;
        --muted-surface: #f2f5fb;
        --text: #111419;
        --muted: #55606c;
        --brand: #0066ff;
        --accent: #7c4dff;
        --link: #005fcc;
        --border: 1px solid rgba(16,24,40,.08);
        --shadow: 0 12px 30px rgba(28,37,54,.12);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(124,77,255,.25), transparent 60%),
        radial-gradient(700px 500px at -10% 10%, rgba(97,218,251,.18), transparent 60%),
        var(--bg);
    line-height: 1.6;
}

header, section {
    max-width: 920px;
    margin: 24px auto;
    padding: 24px;
}

header {
    background: linear-gradient(180deg, color-mix(in oklab, var(--muted-surface), transparent 20%), var(--surface));
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 12px;
    z-index: 10;
    backdrop-filter: saturate(160%) blur(8px);
}

h1 {
    margin: 6px 0 8px;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: .2px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

a {
    color: var(--link);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}
a:hover { text-decoration: underline; }

section {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h2 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

#summary p {
    margin: 0;
    font-size: clamp(14px, 1.6vw, 18px);
    color: color-mix(in oklab, var(--text), var(--muted) 35%);
}

/* --- LISTS & CARDS --- */

/* Education List */
#education ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#education li {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--muted-surface);
    border: var(--border);
    margin-bottom: 10px;
}
#education strong { font-weight: 700; }

/* Skills List (Updated for longer text) */
#skills ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#skills li {
    display: block;
    margin: 0 0 10px 0;
    padding: 12px 14px;
    width: 100%;
    border-radius: 12px;
    background: var(--muted-surface); /* Matches Education style */
    border: var(--border);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
#skills strong {
    color: var(--brand); /* Highlights the category names */
}

/* Experience Cards (Glass effect) */
#experience .job {
    background: linear-gradient(160deg, rgba(255,255,255,.04), transparent);
    border: var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}
#experience h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
#experience em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}
#experience ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

/* Projects Cards (Added new style to match Jobs) */
#projects .project {
    background: linear-gradient(160deg, rgba(255,255,255,.04), transparent);
    border: var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}
#projects h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
#projects ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

/* --- UTILITIES --- */

@media (max-width: 720px) {
    header, section {
        margin: 16px 12px;
        padding: 18px;
    }
}

@media print {
    :root {
        --bg: #fff; --surface: #fff; --muted: #444; --text: #000;
        --border: 1px solid #ddd; --link: #000;
    }
    body { background: #fff; }
    header, section {
        box-shadow: none; background: #fff; margin: 0 0 8px; padding: 12px 0;
    }
    header { position: static; }
    a { text-decoration: none; color: #000; }
}

:where(a, button, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid #ffb74d;
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 1000;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

a:hover { text-decoration: underline; }
a:visited { color: #8ab4f8; }
