:root {
  color-scheme: dark;
  --bg: #07111a;
  --bg-soft: rgba(7, 17, 26, 0.72);
  --panel: rgba(8, 24, 37, 0.72);
  --panel-strong: rgba(9, 27, 42, 0.88);
  --line: rgba(158, 199, 226, 0.16);
  --text: #f4f7fb;
  --muted: #adc0d1;
  --accent: #75d0c3;
  --accent-strong: #c2f56d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(117, 208, 195, 0.16), transparent 36%),
    radial-gradient(circle at top right, rgba(194, 245, 109, 0.14), transparent 28%),
    linear-gradient(135deg, #08131d 0%, #0d1d2a 46%, #09131d 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.92) 0%, rgba(5, 12, 18, 0.8) 40%, rgba(5, 12, 18, 0.62) 100%),
    url("profile-photo.png") no-repeat right 8% top 12% / min(42vw, 540px);
  filter: grayscale(1) contrast(1.05);
  opacity: 0.42;
  pointer-events: none;
  transform: scale(1.08);
  transform-origin: top right;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(7px);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 15, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.topbar a:hover,
.topbar a:focus-visible {
  background: rgba(117, 208, 195, 0.12);
  color: var(--text);
  outline: none;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: 48px 0 28px;
}

.hero-card,
.section,
.timeline-card,
.mini-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  width: min(720px, 100%);
  padding: 32px;
  border-radius: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

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

h1 {
  max-width: 9ch;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 1.01;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.mini-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(11, 30, 45, 0.68);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--accent-strong);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini-card span {
  color: var(--muted);
  line-height: 1.5;
}

.content {
  display: grid;
  gap: 22px;
}

.section {
  padding: 28px;
  border-radius: 28px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.stats,
.skills,
.certs,
.career-grid {
  display: grid;
  gap: 14px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(7, 19, 29, 0.6);
  border: 1px solid var(--line);
}

.stat .number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.stat p {
  color: var(--muted);
  line-height: 1.6;
}

.skills {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chip-box {
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(7, 19, 29, 0.6);
  border: 1px solid var(--line);
}

.chip-box h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-box p {
  color: var(--muted);
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
}

.timeline-date {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.timeline-card .company {
  color: var(--accent);
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.75;
}

.timeline-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.timeline-card li {
  margin-bottom: 9px;
  color: var(--muted);
  line-height: 1.65;
}

.career-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(7, 19, 29, 0.58);
}

.compact-item strong {
  display: block;
  margin-bottom: 6px;
}

.compact-item span,
.certs p {
  color: var(--muted);
  line-height: 1.65;
}

.certs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(7, 19, 29, 0.58);
}

.footer {
  padding: 28px;
  margin-top: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(6, 15, 23, 0.8);
  text-align: center;
}

.footer p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 960px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(5, 12, 18, 0.68) 0%, rgba(5, 12, 18, 0.88) 100%),
      url("profile-photo.png") no-repeat center top 8% / min(90vw, 500px);
    opacity: 0.28;
    transform: scale(1.04);
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-meta,
  .stats,
  .skills,
  .career-grid,
  .certs,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 18px, 100%);
    padding-top: 12px;
  }

  .topbar {
    top: 10px;
    margin-bottom: 20px;
  }

  .topbar nav {
    justify-content: center;
    border-radius: 24px;
  }

  .hero-card,
  .section,
  .footer {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
    line-height: 1.03;
  }

  .lead {
    font-size: 1rem;
  }
}
