:root {
  --navy: #0f1b3d;
  --navy-2: #172a5c;
  --white: #ffffff;
  --orange: #f28c28;
  --ink: #1b2440;
  --muted: #5b6478;
  --line: #e3e7ef;
  --soft: #f5f7fb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .inner {
  max-width: 1040px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { color: var(--white); font-weight: 700; text-decoration: none; letter-spacing: .3px; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #c9d2e8; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--white); }
.lang {
  border: 1px solid var(--orange); color: var(--orange) !important;
  padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px !important;
}
.lang:hover { background: var(--orange); color: var(--navy) !important; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, var(--navy-2), var(--navy));
  color: var(--white);
}
.hero .inner {
  max-width: 1040px; margin: 0 auto; padding: 56px 20px 64px;
  display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center;
}
.photo {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--orange);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.5px; }
.hero .role { margin-top: 10px; font-size: 21px; font-weight: 600; color: var(--orange); }
.hero .cert { margin-top: 6px; color: #c9d2e8; font-size: 15px; }
.hero .pitch { margin-top: 16px; max-width: 640px; color: #e6eaf5; }
.actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Sections ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 8px 20px 40px; }
section { padding: 40px 0 8px; }
h2 {
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy);
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
h2::before { content: ""; width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-card { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.skill-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}

.timeline { border-left: 2px solid var(--line); margin-left: 6px; }
.job { position: relative; padding: 0 0 28px 26px; }
.job::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange);
}
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.job h3 { font-size: 18px; color: var(--navy); }
.job .org { color: var(--ink); font-weight: 600; }
.job .when { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.job ul { margin: 8px 0 0 18px; }
.job li { margin: 4px 0; }
.job li::marker { color: var(--orange); }
.stack { margin-top: 10px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project { border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 12px; padding: 18px; }
.project h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.project p { color: var(--muted); font-size: 15px; }

.edu { display: grid; gap: 12px; }
.edu-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--soft); border-radius: 12px; }
.edu-item strong { color: var(--navy); }
.edu-item .when { color: var(--muted); font-weight: 600; white-space: nowrap; }
.badge-link { font-weight: 700; color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }

.contact {
  margin-top: 36px; background: var(--navy); color: var(--white); border-radius: 16px;
  padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.contact h2 { color: var(--white); margin-bottom: 6px; }
.contact p { color: #c9d2e8; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 20px 36px; }
footer strong { color: var(--navy); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav .hide-mobile { display: none; }
  .hero .inner { grid-template-columns: 1fr; text-align: center; padding: 36px 16px 44px; gap: 22px; }
  .photo { width: 160px; height: 160px; margin: 0 auto; }
  .hero h1 { font-size: 32px; }
  .hero .pitch { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  main { padding: 0 16px 32px; }
  .skills, .projects { grid-template-columns: 1fr; }
  .edu-item { flex-direction: column; gap: 2px; }
  .contact { padding: 24px; }
}

@media print {
  .topbar, .actions, .contact .btn { display: none; }
  .hero { background: var(--navy); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
