:root {
  --bg: #f2eae0;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #1f2230;
  --muted: rgba(31, 34, 48, 0.7);
  --line: rgba(31, 34, 48, 0.12);
  --shadow: 0 20px 60px rgba(31, 34, 48, 0.14);
  --shadow-sm: 0 12px 30px rgba(31, 34, 48, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1120px;
  --accent: #9b8ec7;
  --accent-2: #bda6ce;
  --accent-3: #b4d3d9;
  --accent-ink: #12131a;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-2: rgba(255, 255, 255, 0.36);
  --glass-border: rgba(31, 34, 48, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 12% 10%, rgba(180, 211, 217, 0.55), transparent 62%),
    radial-gradient(900px 640px at 92% 14%, rgba(189, 166, 206, 0.42), transparent 60%),
    radial-gradient(900px 740px at 50% 110%, rgba(155, 142, 199, 0.22), transparent 64%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 70%, #fffaf4 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

p,
li {
  color: var(--muted);
  line-height: 1.75;
}

::selection {
  background: rgba(155, 142, 199, 0.2);
}

.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(180, 211, 217, 0.35), transparent 44%),
    radial-gradient(circle at 80% 20%, rgba(189, 166, 206, 0.28), transparent 42%),
    radial-gradient(circle at 55% 78%, rgba(155, 142, 199, 0.22), transparent 48%);
  filter: saturate(1.05);
  opacity: 0.7;
}

.space-backdrop::before,
.space-backdrop::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7) 0, transparent 1px),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.6) 0, transparent 1px),
    radial-gradient(1px 1px at 44% 36%, rgba(255, 255, 255, 0.55) 0, transparent 1px),
    radial-gradient(1px 1px at 62% 14%, rgba(255, 255, 255, 0.6) 0, transparent 1px),
    radial-gradient(1px 1px at 78% 66%, rgba(255, 255, 255, 0.5) 0, transparent 1px),
    radial-gradient(1px 1px at 90% 30%, rgba(255, 255, 255, 0.55) 0, transparent 1px);
  background-size: 520px 520px;
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
  animation: starDrift 42s linear infinite;
}

.space-backdrop::after {
  background-size: 820px 820px;
  opacity: 0.35;
  animation-duration: 70s;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 6%, 0);
  }
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 1rem 0 4.25rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.brand {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.section {
  padding: 4rem 0;
}

.hero {
  padding: 5.2rem 0 4.2rem;
  position: relative;
  border-radius: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(31, 34, 48, 0.12);
  background:
    radial-gradient(920px 520px at 18% 18%, rgba(180, 211, 217, 0.55), transparent 58%),
    radial-gradient(900px 560px at 86% 18%, rgba(189, 166, 206, 0.4), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.52));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding-left: clamp(1rem, 4vw, 2.2rem);
  padding-right: clamp(1rem, 4vw, 2.2rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(31, 34, 48, 0.08);
  pointer-events: none;
  opacity: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 34, 48, 0.62);
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.hero-copy,
.section-heading {
  max-width: 760px;
}

.hero-copy {
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 34, 48, 0.14);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}

.button-primary {
  border-color: rgba(155, 142, 199, 0.35);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(31, 34, 48, 0.14);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}

.hero-metrics li,
.card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--shadow-sm);
}

.card,
.hero-metrics li {
  position: relative;
  overflow: hidden;
}

.card::before,
.hero-metrics li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 320px at 18% 12%, rgba(255, 255, 255, 0.62), transparent 60%),
    radial-gradient(820px 360px at 88% 20%, rgba(180, 211, 217, 0.22), transparent 62%),
    radial-gradient(820px 520px at 60% 120%, rgba(155, 142, 199, 0.14), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.card::after,
.hero-metrics li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.card > *,
.hero-metrics li > * {
  position: relative;
  z-index: 1;
}

.hero-metrics li {
  padding: 1.4rem;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.05em;
}

.hero-metrics span {
  color: rgba(31, 34, 48, 0.62);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.card {
  padding: 1.5rem;
}

.about-card {
  max-width: 860px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(31, 34, 48, 0.14);
}

.timeline-item {
  position: relative;
  margin-left: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.36rem;
  top: 1.75rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(155, 142, 199, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(155, 142, 199, 0.18);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: rgba(31, 34, 48, 0.62);
}

.company {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.timeline-item ul {
  padding-left: 1.05rem;
}

.timeline-item li + li {
  margin-top: 0.35rem;
}

.skills-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card p,
.education-grid p {
  margin-bottom: 0.6rem;
}

.education-grid span {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(31, 34, 48, 0.62);
}

.contact-card {
  display: grid;
  gap: 0.65rem;
  max-width: 560px;
}

.contact-card a {
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: rgba(31, 34, 48, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(155, 142, 199, 0.55);
  text-underline-offset: 0.22em;
}

@media (max-width: 900px) {
  .hero-metrics,
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.4rem;
  }

  .site-header.nav-expanded .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.55rem 0;
  }

  .site-header.nav-expanded .nav-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-expanded .nav-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--container));
    padding-top: 0.6rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .hero {
    padding-top: 3.4rem;
    padding-bottom: 3.2rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .site-header {
    top: 0.6rem;
    padding: 0.9rem 1rem;
  }

  .card,
  .hero-metrics li {
    border-radius: var(--radius-md);
    padding: 1.25rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9.2vw, 3.25rem);
    line-height: 0.98;
  }

  h2 {
    max-width: 100%;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .button {
    min-height: 2.85rem;
    font-size: 0.95rem;
  }

  .hero-actions {
    margin-top: 1.6rem;
  }

  .section-heading {
    margin-bottom: 1.2rem;
  }

  .timeline-item {
    margin-left: 1.2rem;
  }

  .timeline::before {
    left: 0.7rem;
  }

  .timeline-item::before {
    left: -1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
