/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

/* ---------- Tokens: change these to retheme the whole page ---------- */
:root {
    --bg: #0a141f;           /* near-black blueprint navy */
    --panel: #101f2e;        /* slightly lighter panel */
    --grid-line: #16283b;    /* faint grid lines */
    --text: #dbe6ef;         /* main text, off-white */
    --text-dim: #7d92a3;     /* secondary text */
    --accent: #4dd0c4;       /* circuit-trace teal */
    --accent-copper: #c9834a;/* solder-copper secondary accent */
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--bg);
    /* subtle blueprint grid using repeating gradients */
    background-image:
        repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 40px);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.background {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

/* terminal-style prompt before the title */
h1::before {
    content: "> ";
    color: var(--accent-copper);
}

.body {
    background: var(--panel);
    border: 1px solid var(--grid-line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
}

.body > p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 0;
}

/* section labels styled like schematic module tags */
h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-copper);
    margin: 32px 0 16px;
}

h3::before {
    content: "// ";
    color: var(--text-dim);
}

/* ---------- About list ---------- */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul:not(.skills) li {
    position: relative;
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid var(--grid-line);
    font-weight: 400;
    color: var(--text);
    opacity: 0;                 /* JS fades these in on load/scroll */
    transform: translateX(-8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

ul:not(.skills) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

ul:not(.skills) li:hover {
    background: rgba(77, 208, 196, 0.06);
    transform: translateX(4px);
}

ul:not(.skills) li strong {
    font-weight: 500; /* de-emphasize vs. bold default, reads calmer */
}

ul:not(.skills) li:last-child {
    border-bottom: none;
}

/* ---------- Skills list: rendered as pills/chips ---------- */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    list-style: none;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(77, 208, 196, 0.05);
    opacity: 0;
    transform: translateY(6px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.skills li:hover {
    background: rgba(77, 208, 196, 0.15);
    box-shadow: 0 0 12px rgba(77, 208, 196, 0.25);
    transform: translateY(-2px);
}

.skills li strong {
    color: var(--text);
    font-weight: 400;
}

/* ---------- Accessibility ---------- */
a:focus-visible, li:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    ul li { opacity: 1 !important; transform: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .background { padding: 40px 16px 60px; }
    .body { padding: 24px; }
}