:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.76);
  --line: rgba(17, 24, 39, 0.09);
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --radius: 22px;
  --shadow: 0 10px 32px rgba(37, 99, 235, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, #f5f7fb 55%, #f7f8fb 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.58;
}

.mesh {
  position: fixed;
  inset: -18vh auto auto -18vw;
  width: 68vw;
  height: 56vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 45%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.14), transparent 60%);
  filter: blur(28px);
}

.section {
  width: min(1020px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0.8rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.contact-btn {
  padding: 0.46rem 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
}

.hero {
  padding: 5.2rem 0 2.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: #1e40af;
  background: #eef4ff;
  font-size: 0.8rem;
  font-weight: 600;
}

h1 {
  margin: 0.85rem 0 0;
  max-width: 17ch;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--accent);
}

.hero > p {
  max-width: 68ch;
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: inherit;
}

.hero-actions a,
.footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.hero-actions a:hover,
.footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.stats {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.stat .num {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.stat .label {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

main {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

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

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

#experience {
  display: grid;
  gap: 1rem;
}

.role-head {
  margin-bottom: 0.55rem;
}

.role-head p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: var(--accent-soft);
  color: #1e3a8a;
  font-size: 0.82rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0 3.2rem;
}

.footer p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.992);
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  .stats,
  .split {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.4rem;
  }

  .topbar nav {
    flex-wrap: wrap;
    gap: 0.65rem 0.95rem;
  }

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

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
