:root {
  --bg: #0e1116;
  --panel: #161b23;
  --panel2: #1c232e;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #4da3ff;
  --accent2: #7ee0a3;
  --border: #262e3a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top { background: rgba(14,17,22,.92); border-bottom: 1px solid var(--border); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.top .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: .3px; }
.brand:hover { text-decoration: none; color: var(--accent); }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 15px; padding: 6px 0; }
nav a.active, nav a:hover { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--accent); }

.hero { padding: 84px 0 64px; background: linear-gradient(180deg, #121822 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.kicker { color: var(--accent2); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: 40px; line-height: 1.2; max-width: 820px; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 18px; max-width: 780px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; background: var(--accent); color: #0b1220; font-weight: 600; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.stats { padding: 40px 0; border-bottom: 1px solid var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-align: center; }
.stat b { display: block; font-size: 34px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

.brief { padding: 56px 0; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.card h2 { font-size: 20px; margin-bottom: 14px; color: var(--text); }
.card p { color: var(--muted); margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; }
.card li { padding: 9px 0 9px 24px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--border); }
.card li:last-child { border-bottom: none; }
.card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent2); }
.card li b { color: var(--text); }

.strip { background: var(--panel2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.strip p { color: var(--muted); font-size: 15px; }

.page { padding: 56px 0 72px; }
.page h1 { font-size: 34px; margin-bottom: 8px; }
.page .sub { color: var(--muted); margin-bottom: 36px; }
.job { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.job .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.job h2 { font-size: 21px; }
.job .dates { color: var(--accent2); font-size: 14px; white-space: nowrap; padding-top: 6px; }
.job .role { color: var(--accent); font-size: 15px; margin-bottom: 14px; }
.job .place { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.job ul { list-style: none; }
.job li { padding: 7px 0 7px 22px; position: relative; color: var(--muted); }
.job li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.job .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--panel2); border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-size: 13px; color: var(--muted); }

.edu { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 20px; }
.edu .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.edu h2 { font-size: 19px; }
.edu .dates { color: var(--accent2); font-size: 14px; white-space: nowrap; padding-top: 4px; }
.edu .role { color: var(--accent); font-size: 14px; margin: 4px 0 10px; }
.edu p { color: var(--muted); font-size: 15px; }

table.skills { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table.skills th, table.skills td { padding: 12px 18px; border-bottom: 1px solid var(--border); text-align: left; }
table.skills th { background: var(--panel2); color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
table.skills td { color: var(--muted); font-size: 15px; }
table.skills td:first-child { color: var(--text); font-weight: 600; width: 260px; }
table.skills tr:last-child td { border-bottom: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; }
.contact .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.contact .value { font-size: 17px; }
.contact .value a { color: var(--accent); }

footer { border-top: 1px solid var(--border); padding: 26px 0; margin-top: 40px; }
footer p { color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .grid-4, .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .top .container { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
}
