:root {
  color-scheme: dark;
  --page: #070c1f;
  --surface: #0e1733;
  --surface-raised: #121e40;
  --text: #e8ecff;
  --muted: #9aa6d6;
  --line: rgba(160, 180, 255, .16);
  --gold: #ffc933;
  --gold-fill: #ffc933;
  --gold-fill-text: #151929;
  --gold-soft: rgba(255,201,51,.13);
  --project-surface: rgba(7,12,31,.38);
  --teal: #35e0cf;
  --blue: #6f8bff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(111,139,255,.18), transparent 62%),
    radial-gradient(700px 400px at -10% 12%, rgba(53,224,207,.08), transparent 65%),
    var(--page);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
body.light {
  color-scheme: light;
  --page: #f2f5fb;
  --surface: #fff;
  --surface-raised: #f7f9fe;
  --text: #17213a;
  --muted: #586681;
  --line: rgba(38, 57, 97, .15);
  --gold: #946200;
  --gold-fill: #f2c34e;
  --gold-fill-text: #17213a;
  --gold-soft: #fff1c4;
  --project-surface: linear-gradient(145deg,#fff,#f7f9fe);
  --teal: #087c78;
  --blue: #405dd1;
}
a { color: inherit; }
button { font: inherit; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--gold-fill);
  color: var(--gold-fill-text);
}
.skip-link:focus { top: 12px; }
.cv-top {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gold-fill);
  color: var(--gold-fill-text);
  font-size: 13px;
  font-weight: 900;
}
.actions { display: flex; align-items: center; gap: 9px; }
.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.language-switch button,.tool-button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.language-switch button { min-width: 34px; padding: 6px 8px; }
.language-switch button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); }
.tool-button { padding: 9px 13px; border-color: var(--line); }
.tool-button:hover,.language-switch button:hover { color: var(--text); border-color: var(--gold); }
.tool-button.primary { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-fill-text); }
.cv-main { width: min(1180px, calc(100% - 40px)); margin: 8px auto 42px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 22px;
  padding: clamp(16px, 2vw, 24px);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -190px;
  right: 22%;
  border: 1px solid rgba(111,139,255,.14);
  border-radius: 50%;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
h1,h2,h3,p { margin-top: 0; }
.profile-heading { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 14px; margin-bottom: 8px; }
.profile-photo { display: block; width: 88px; height: 88px; object-fit: cover; object-position: center 28%; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.profile-heading .eyebrow { margin-bottom: 8px; }
.headline { margin: 0; color: var(--teal); font-weight: 700; font-size: clamp(14px, 1.7vw, 18px); }
.intro { max-width: 690px; color: var(--muted); margin-bottom: 10px; font-size: 12px; }
.contact-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 12px; font-size: 11px; }
.contact-item { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(111,139,255,.045); }
.contact-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.contact-item a { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-item>span:not(.contact-label) { color: var(--muted); }
.personal-metrics { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; color: var(--muted); font-size: 10px; }
.personal-metric { display: inline-flex; align-items: baseline; gap: 4px; }
.personal-metric strong { color: var(--text); font-size: 13px; font-weight: 800; }
.hero-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--project-surface);
  border-left: 3px solid var(--gold);
}
.project-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 15px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); font-size: 13px; font-weight: 900; }
.hero-project .eyebrow { margin-bottom: 7px; }
.hero-project h2 { margin: 0 0 9px; font-size: 20px; }
.hero-project>p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.project-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 9px; }
.project-link,.email-button { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.hero-project .project-link { margin-top: auto; padding-top: 10px; }
.project-link b { color: var(--gold); }
.project-link:hover,.email-button:hover { border-color: var(--gold); }
.radar-chart { display: block; width: 100%; max-height: 290px; margin: 0 auto; overflow: visible; }
.radar-grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-area { fill: rgba(53,224,207,.14); stroke: var(--teal); stroke-width: 2; }
.radar-point { fill: var(--gold); stroke: var(--surface); stroke-width: 2; }
.radar-chart .radar-logo { pointer-events: none; }
.radar-sql-logo { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.radar-chart text { fill: var(--text); font: 700 15px/1.3 "Segoe UI",system-ui,sans-serif; text-anchor: middle; }
.radar-level { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -3px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.radar-level strong { color: var(--teal); font-size: 11px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 16px; margin-top: 16px; }
.right-column { display: grid; align-content: start; gap: 16px; }
.section-panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.heading-mark { color: var(--muted); font: 700 11px/1.4 ui-monospace, monospace; }
.timeline { border-left: 1px solid var(--line); margin-left: 5px; padding-left: 20px; }
.timeline-item { position: relative; padding: 0 0 21px; }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; background: var(--surface); }
.timeline-item.current::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 12px rgba(53,224,207,.5); }
.timeline-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.timeline-date { color: var(--muted); font: 600 10px/1.4 ui-monospace, monospace; }
.current-pill { padding: 2px 7px; border-radius: 99px; background: rgba(53,224,207,.13); color: var(--teal); font-size: 8px; font-weight: 800; }
.company-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.company-logo,.education-logo { display: block; flex: 0 0 auto; object-fit: contain; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.company-logo { width: 34px; height: 30px; }
.company-logo.hiberus-logo,.company-logo.devoteam-logo { width: 36px; height: 36px; padding: 0; border: 0; object-fit: cover; background: transparent; }
.timeline-item h3,.credential h3,.education-item h3 { margin: 0; font-size: 15px; }
.timeline-item p { margin: 3px 0 7px; color: var(--muted); font-size: 11px; }
.timeline-item p.job-title { color: var(--text); font-weight: 650; }
.tool-list { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 8px 0 0; padding: 0; }
.tool-list li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 9px; }
.early-career { padding: 10px 0 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.early-career summary { color: var(--text); cursor: pointer; font-weight: 650; }
.early-career p { margin: 8px 0 0; }
.credential { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.credential-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 10px; background: rgba(111,139,255,.13); color: var(--blue); font-size: 9px; font-weight: 900; }
.credential h3 { font-size: 12px; }
.credential p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 16px; margin-top: 16px; }
.education-item { display: grid; grid-template-columns: 78px 44px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.education-year { color: var(--gold); font: 700 10px/1.5 ui-monospace, monospace; }
.education-logo { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.education-item h3 { font-size: 12px; }
.education-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.language-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; }
.language-name { display: inline-flex; align-items: center; gap: 8px; }
.language-flag { display: block; width: 23px; height: 16px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.language-row b { color: var(--teal); font-size: 10px; }
.language-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 9px; background: var(--surface-raised); }
.language-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.cv-contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; margin-top: 16px; }
.cv-contact .eyebrow { margin-bottom: 4px; }
.cv-contact h2 { margin: 0 0 5px; font-size: 21px; }
.cv-contact p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.email-button { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-fill-text); }
.email-button span { font-size: 17px; }
.cv-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 24px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; }
.cv-footer a { text-decoration: none; }
.cv-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-project { min-height: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cv-top { width: calc(100% - 24px); min-height: 65px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 0; }
  .brand { gap: 7px; font-size: 13px; }
  .brand-mark { width: 31px; height: 31px; }
  .actions { width: 100%; justify-content: space-between; gap: 4px; }
  .tool-button { padding: 8px 9px; font-size: 10px; }
  .language-switch button { min-width: 27px; padding: 5px; font-size: 10px; }
  .cv-main { width: calc(100% - 24px); margin-top: 4px; }
  .hero { padding: 16px 14px; gap: 13px; }
  .profile-heading { grid-template-columns: 76px minmax(0,1fr); gap: 11px; margin-bottom: 10px; }
  .profile-photo { width: 76px; height: 86px; border-radius: 12px; }
  .profile-heading .eyebrow { font-size: 8px; }
  .hero h1 { font-size: clamp(23px,6.5vw,30px); }
  .headline { font-size: 12px; line-height: 1.35; }
  .intro { margin-bottom: 11px; font-size: 12px; }
  .contact-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 8px; font-size: 10px; }
  .contact-label { font-size: 8px; }
  .contact-item a[href^="mailto:"] { font-size: 9.5px; }
  .hero-project { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 0 9px; min-height: 0; padding: 11px 12px; }
  .project-icon { grid-column: 1; grid-row: 1 / 3; width: 34px; height: 34px; margin: 0; }
  .hero-project .eyebrow { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .hero-project h2 { grid-column: 2; grid-row: 2; align-self: start; margin: 1px 0 0; font-size: 17px; }
  .hero-project>p:not(.eyebrow) { grid-column: 1 / -1; margin-top: 8px; font-size: 10px; }
  .hero-project .project-tags { display: none; }
  .hero-project .project-link { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; padding: 7px 8px; gap: 5px; font-size: 10px; }
  .radar-chart { max-height: 260px; }
  .radar-chart text { font-size: 14px; }
  .section-panel { padding: 17px; }
  .bottom-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .cv-contact { align-items: flex-start; flex-direction: column; padding: 19px; }
}

@page { size: 594mm 420mm; margin: 5mm; }
@media print {
  :root { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body { color: var(--text); font-size: 9pt; }
  .skip-link,.cv-top,.cv-footer,.tool-button { display: none !important; }
  .cv-main { width: 100%; max-width: none; margin: 0; }
  .panel { box-shadow: none; border-radius: 9px; }
  .hero { grid-template-columns: 1.4fr .8fr; gap: 10px; padding: 12px; }
  .hero::after { display: none; }
  .hero h1 { font-size: 21pt; }
  .headline { font-size: 10pt; }
  .intro { margin-bottom: 8px; }
  .profile-heading { grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
  .profile-photo { width: 72px; height: 72px; }
  .hero-project { padding: 10px; }
  .project-icon { width: 30px; height: 30px; margin-bottom: 6px; }
  .hero-project h2 { font-size: 14pt; }
  .radar-chart { max-height: 230px; }
  .content-grid { grid-template-columns: 1.15fr .85fr; gap: 9px; }
  .right-column { gap: 9px; }
  .section-panel { padding: 13px; }
  .panel-heading { margin-bottom: 11px; }
  .timeline-item { padding-bottom: 12px; break-inside: avoid; }
  .bottom-grid { gap: 9px; margin-top: 9px; }
  .cv-contact { margin-top: 9px; padding: 13px; }
  a { text-decoration: none; }
  .panel,.timeline-item,.hero-project,.cv-contact { break-inside: avoid; }
}
