:root {
  --page: #070b14;
  --paper: #0f172a;
  --panel: #111d31;
  --panel-soft: #17233a;
  --text: #f8fafc;
  --body: #dce6ee;
  --muted: #a9b7c5;
  --line: rgba(226, 232, 240, 0.16);
  --line-strong: rgba(226, 232, 240, 0.28);
  --accent: #44eadc;
  --accent-soft: rgba(68, 234, 220, 0.12);
  --warm: #f5c16c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(68, 234, 220, 0.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(245, 193, 108, 0.1), transparent 34rem),
    var(--page);
  color: var(--text);
  font-family: Inter, Arial, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 32px 20px;
}

a {
  color: inherit;
  text-decoration-color: rgba(68, 234, 220, 0.55);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.resume {
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.98));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 28px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(68, 234, 220, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.hero-copy {
  position: relative;
  padding-left: 20px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--warm));
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.headline {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 1.12rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: start;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font-style: normal;
}

.contact a,
.contact>span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--body);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.contact .icon {
  color: var(--accent);
}

.impact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.impact div {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.impact div:last-child {
  border-right: 0;
}

.impact strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.impact span {
  color: var(--muted);
  font-size: 0.84rem;
}

.role-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(68, 234, 220, 0.045);
}

.role-fit div {
  padding: 16px 46px;
}

.role-fit div:first-child {
  border-right: 1px solid var(--line);
}

.role-fit span {
  display: block;
  margin-bottom: 4px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.role-fit strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section p,
.job p,
.lower-grid p {
  margin-bottom: 8px;
  color: var(--body);
  font-size: 1.02rem;
}

.section strong {
  color: var(--text);
}

.summary p {
  font-size: 1.06rem;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(68, 234, 220, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--warm));
}

.skill-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.skill-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(68, 234, 220, 0.36);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.skill-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.tag-list,
.learning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.learning-list li {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--body);
  font-size: 0.86rem;
  line-height: 1.2;
}

.learning-list li {
  border-color: rgba(245, 193, 108, 0.26);
}

.job {
  position: relative;
  padding: 10px 0 10px 22px;
  border-left: 1px solid rgba(68, 234, 220, 0.38);
}

.job::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.job:first-of-type {
  padding-top: 0;
}

.job:first-of-type::before {
  top: 6px;
}

.job:last-of-type {
  padding-bottom: 10px;
}

.job-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.job h3 {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.25;
}

.job-head p {
  margin-bottom: 0;
  color: var(--warm);
  font-size: 0.96rem;
  font-weight: 700;
}

.job-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

ul {
  margin: 0;
  padding-left: 1.12rem;
}

li {
  margin-bottom: 6px;
  color: var(--body);
  font-size: 1.02rem;
}

li::marker {
  color: var(--warm);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 34px;
}

.project-cards {
  display: grid;
  gap: 14px;
}

.project-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 193, 108, 0.09), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.project-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.project-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.project-head span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(245, 193, 108, 0.36);
  border-radius: 999px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-stack {
  margin-bottom: 10px;
  color: var(--muted);
}

.project-card ul {
  padding-left: 1rem;
}

.project-card li {
  margin-bottom: 5px;
  font-size: 0.96rem;
}

.education-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 820px) {
  body {
    padding: 0;
  }

  .resume {
    border: 0;
    border-radius: 0;
  }

  .hero,
  .impact,
  .role-fit,
  .skills-showcase,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .role-fit div {
    padding-left: 24px;
    padding-right: 24px;
  }

  .role-fit div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 2.85rem;
  }

  .impact div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .job-head,
  .project-head {
    display: block;
  }

  .job-head span,
  .project-head span {
    display: inline-block;
    margin-top: 3px;
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  html,
  body {
    width: auto;
    min-height: auto;
    background: #ffffff;
    color: #111827;
    font-size: 8.8pt;
    line-height: 1.34;
  }

  body {
    padding: 0;
  }

  a {
    color: #111827;
    text-decoration: none;
  }

  .resume {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .hero,
  .role-fit,
  .impact div,
  .contact,
  .skill-card,
  .project-card,
  .education-panel {
    background: #ffffff;
  }

  .hero {
    padding: 0 0 4mm;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 7mm;
    border-bottom: 1px solid #d1d5db;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy::before,
  .skill-card::before {
    display: none;
  }

  .eyebrow,
  h2,
  .contact .icon {
    color: #0f766e;
  }

  h1,
  h3,
  .section strong,
  .impact strong,
  .role-fit strong,
  .skill-card h3,
  .project-head h3 {
    color: #111827;
  }

  h1 {
    margin-bottom: 2mm;
    font-size: 26pt;
  }

  .headline,
  .section p,
  .job p,
  .lower-grid p,
  li,
  .contact a,
  .contact>span,
  .impact span,
  .job-head span,
  .tag-list li,
  .learning-list li {
    color: #374151;
  }

  .headline,
  .summary p {
    font-size: 9.1pt;
  }

  .contact {
    padding: 0;
    border: 0;
    gap: 1.4mm;
  }

  .contact a,
  .contact>span {
    font-size: 8.4pt;
  }

  .impact {
    border-bottom: 1px solid #d1d5db;
  }

  .impact div {
    padding: 2.8mm 3mm;
    border-color: #d1d5db;
  }

  .role-fit {
    border-bottom: 1px solid #d1d5db;
  }

  .role-fit div {
    padding: 3mm 0;
  }

  .role-fit div:first-child {
    padding-right: 5mm;
    border-color: #d1d5db;
  }

  .role-fit div:last-child {
    padding-left: 5mm;
  }

  .role-fit span,
  .job-head p,
  .project-head span {
    color: #92400e;
  }

  .section {
    padding: 3.2mm 0;
    border-bottom: 1px solid #d1d5db;
  }

  h2 {
    margin-bottom: 2.4mm;
    font-size: 8.4pt;
  }

  h2::after {
    background: #d1d5db;
  }

  .skills-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .skill-card,
  .project-card,
  .education-panel {
    padding: 2.3mm;
    border-color: #d1d5db;
  }

  .tag-list li,
  .learning-list li {
    padding: 1.1mm 1.8mm;
    border-color: #d1d5db;
    background: #f9fafb;
    font-size: 7.6pt;
  }

  .job {
    break-inside: avoid;
    padding: 2.6mm 0 2.6mm 4mm;
    border-left-color: #0f766e;
  }

  .job::before {
    background: #0f766e;
  }

  .job h3 {
    font-size: 9.4pt;
  }

  .job-head {
    margin-bottom: 1.4mm;
  }

  li {
    margin-bottom: 1.2mm;
    font-size: 8.4pt;
  }

  .lower-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5mm;
  }

  .project-card li {
    font-size: 8pt;
  }
}