:root {
  --bg: #fff3f6;
  --bg-deep: #f6dce6;
  --surface: rgba(255, 252, 253, 0.78);
  --surface-strong: rgba(255, 250, 252, 0.96);
  --surface-dark: #2a2025;
  --text: #2b1e24;
  --muted: #705762;
  --line: rgba(97, 59, 77, 0.1);
  --line-strong: rgba(97, 59, 77, 0.18);
  --primary: #d86a8d;
  --primary-dark: #b54d72;
  --secondary: #7a5264;
  --accent: #f3bfd0;
  --shadow: 0 28px 90px rgba(129, 75, 98, 0.12);
  --shadow-soft: 0 18px 45px rgba(129, 75, 98, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

body[data-theme="dark"] {
  --bg: #171218;
  --bg-deep: #0f0b10;
  --surface: rgba(34, 26, 31, 0.78);
  --surface-strong: rgba(38, 29, 35, 0.96);
  --surface-dark: #f7e9ef;
  --text: #f7eaf0;
  --muted: #cfb8c2;
  --line: rgba(255, 223, 235, 0.1);
  --line-strong: rgba(255, 223, 235, 0.18);
  --primary: #ee7ea2;
  --primary-dark: #cf5d85;
  --secondary: #ebb7ca;
  --accent: #6f4758;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 106, 141, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(243, 191, 208, 0.5), transparent 32%),
    linear-gradient(180deg, #fff9fb 0%, var(--bg) 42%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -8rem;
  right: -10rem;
  background: rgba(243, 191, 208, 0.82);
}

.ambient-two {
  left: -12rem;
  top: 42%;
  background: rgba(216, 106, 141, 0.18);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.hero,
.section {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 56px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.58);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 20px;
  z-index: 10;
  box-shadow: var(--shadow-soft);
}

body[data-theme="dark"] .nav {
  background: rgba(29, 22, 27, 0.72);
}

.brand,
.nav-links a,
.hero-contact a,
.footer a,
.theme-toggle {
  text-decoration: none;
  color: inherit;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
}

.theme-toggle span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

body:not([data-theme="dark"]) .theme-toggle-light,
body[data-theme="dark"] .theme-toggle-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff7fb;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: end;
  margin-top: 84px;
}

.hero-copy,
.hero-card,
.panel,
.project-card,
.timeline-item,
.education-item,
.stats-card,
.footer {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 46px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    var(--surface);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(243, 191, 208, 0.28), transparent 65%);
  pointer-events: none;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
  z-index: -1;
}

.hero-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 20px;
  align-self: stretch;
}

.eyebrow,
.card-label,
.project-year {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--secondary);
  margin: 0 0 12px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-badge,
.availability-pill,
.panel-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(97, 59, 77, 0.08);
  color: var(--text);
}

.availability-pill {
  background: rgba(216, 106, 141, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(216, 106, 141, 0.14);
}

h1,
h2,
h3,
strong {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  margin: 0 0 18px;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  margin-top: 0;
}

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

.hero-text {
  max-width: 58ch;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 44rem;
  color: var(--text);
  margin: 0 0 14px;
  font-weight: 500;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(129, 75, 98, 0.16);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff7f1;
}

.button.secondary {
  background: linear-gradient(135deg, #8f6477, #6d4a59);
  color: #fff7fb;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
}

body[data-theme="dark"] .button.ghost,
body[data-theme="dark"] .hero-contact a,
body[data-theme="dark"] .hero-badge,
body[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

.focus-list,
.project-card ul,
.timeline-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.focus-list li::marker {
  color: var(--primary);
}

.focus-list li span {
  color: var(--text);
  font-weight: 500;
}

.hero-contact {
  display: grid;
  gap: 8px;
}

.hero-contact a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(97, 59, 77, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-contact a:hover,
.hero-contact a:focus-visible {
  transform: translateX(4px);
  border-color: rgba(216, 106, 141, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-metrics article,
.mini-note {
  border: 1px solid rgba(97, 59, 77, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-metrics article {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.hero-metrics strong {
  font-size: 1.8rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-note {
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-note a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.section {
  padding: 38px;
  margin-top: 30px;
  border-radius: var(--radius-xl);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.copy-panel {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(97, 59, 77, 0.07);
}

.copy-panel p:first-child {
  margin-top: 0;
}

.copy-panel p:last-child {
  margin-bottom: 0;
}

.stats-card {
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 18px;
  background: var(--surface-strong);
}

.stats-card div {
  display: grid;
  gap: 6px;
}

.stats-card strong {
  font-size: 1.7rem;
}

.stats-card span {
  color: var(--muted);
}

.skills-grid,
.value-grid,
.project-grid,
.timeline,
.education-list {
  display: grid;
  gap: 18px;
}

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

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

.panel,
.value-card,
.project-card,
.timeline-item {
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.panel::before,
.value-card::before,
.project-card::before,
.timeline-item::before,
.education-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}

.panel-tag {
  margin-bottom: 16px;
  background: rgba(216, 106, 141, 0.08);
  color: var(--secondary);
  border: 1px solid rgba(216, 106, 141, 0.1);
}

.value-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  margin-bottom: 0;
}

.project-card p,
.timeline-item p,
.panel p {
  margin-bottom: 0;
}

.project-card {
  min-height: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover,
.project-card:focus-within,
.value-card:hover,
.value-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(129, 75, 98, 0.16);
  border-color: rgba(216, 106, 141, 0.22);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-accent {
  width: 74px;
  height: 5px;
  border-radius: 999px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(216, 106, 141, 0.25);
}

.education-item {
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.education-item span {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-item h3 {
  margin-bottom: 6px;
}

.footer-note {
  color: var(--text);
  font-weight: 500;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content,
  .about-grid,
  .skills-grid,
  .value-grid,
  .project-grid,
  .timeline,
  .education-item {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-card,
  .section {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .nav {
    padding: 14px 16px;
  }

  h1 {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-badge-row,
  .footer-meta,
  .project-tags {
    gap: 10px;
  }
}
