:root {
  --bg-top: #f7f3ec;
  --bg-bottom: #e4ecf2;
  --ink: #152431;
  --muted: #546575;
  --card: rgba(255, 255, 255, 0.74);
  --line: rgba(21, 36, 49, 0.15);
  --accent: #c9562b;
  --accent-strong: #9e3917;
  --accent-soft: #ffe7dd;
  --shadow: 0 14px 40px rgba(14, 28, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
  overflow-x: hidden;
}

.background-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.45;
}

.shape-a {
  width: 42vmax;
  height: 42vmax;
  background: radial-gradient(circle, #e5bb8a, transparent 65%);
  top: -18vmax;
  left: -16vmax;
}

.shape-b {
  width: 46vmax;
  height: 46vmax;
  background: radial-gradient(circle, #96b9d8, transparent 65%);
  right: -22vmax;
  top: 6vmax;
}

.shape-c {
  width: 36vmax;
  height: 36vmax;
  background: radial-gradient(circle, #d0d7a7, transparent 65%);
  bottom: -14vmax;
  left: 20vmax;
}

.site-header,
main,
.site-footer {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

main {
  padding: 1rem 0 2rem;
  display: grid;
  gap: 1.2rem;
}

.hero {
  padding: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

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

h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1;
  max-width: 18ch;
  margin: 0.6rem 0 1rem;
}

.intro {
  font-size: 1.07rem;
  line-height: 1.7;
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-facts {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-facts article {
  border: 1px solid rgba(21, 36, 49, 0.12);
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.58);
}

.fact-number {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #18364a;
}

.fact-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.16rem;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(169, 67, 30, 0.28);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--accent-soft);
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64));
  backdrop-filter: blur(8px);
  border-radius: 1.15rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-warm {
  background: linear-gradient(145deg, rgba(255, 245, 236, 0.9), rgba(255, 255, 255, 0.68));
}

.card-cool {
  background: linear-gradient(145deg, rgba(236, 246, 255, 0.9), rgba(255, 255, 255, 0.68));
}

.card-plain {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 254, 0.75));
}

.contact-card {
  background: linear-gradient(130deg, #153447, #315b74);
  color: #eef6fb;
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-card h2,
.contact-card.card p,
.contact-card a {
  color: #eef6fb;
}

.contact-card .social-links a {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}

h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card p {
  color: #2b3f50;
  line-height: 1.7;
  margin: 0.3rem 0 0;
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline article {
  border-left: 2px solid rgba(201, 86, 43, 0.35);
  padding-left: 0.9rem;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -0.38rem;
  top: 0.35rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--accent);
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

h3 span {
  color: var(--muted);
  font-weight: 500;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
}

.social-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a,
.card a,
.nav a {
  color: var(--accent-strong);
}

.site-footer {
  padding: 0.2rem 0 2.4rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 700ms cubic-bezier(0.25, 0.9, 0.3, 1) forwards;
}

.hero.reveal {
  animation-delay: 40ms;
}

#about.reveal {
  animation-delay: 130ms;
}

#experience.reveal {
  animation-delay: 220ms;
}

#skills.reveal {
  animation-delay: 310ms;
}

#education.reveal {
  animation-delay: 400ms;
}

#contact.reveal {
  animation-delay: 490ms;
}

.site-footer.reveal {
  animation-delay: 580ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 2.1rem 1.35rem;
  }

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

  .card {
    padding: 1.2rem;
  }

  .nav {
    justify-content: center;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }
}
