:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --fg: #1f1f24;
  --muted: #5b5b66;
  --accent: #5c6cff;
  --accent-soft: rgba(92, 108, 255, 0.1);
  --border: rgba(31, 31, 36, 0.08);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #fdfdfd, var(--bg));
  color: var(--fg);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background-color: rgba(245, 245, 247, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
}

.nav__toggle span {
  width: 1.4rem;
  height: 2px;
  background: var(--fg);
  border-radius: 999px;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  padding: 6rem 0 4rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  margin: 0;
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32ch;
}

.hero__meta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(92, 108, 255, 0.22);
}

.btn--secondary {
  background: white;
  color: var(--fg);
  border-color: var(--border);
  box-shadow: none;
}

.hero__visual {
  width: clamp(320px, 48vw, 560px);
  height: clamp(320px, 48vw, 560px);
  border-radius: 30px;
  border: 1.7px solid rgba(122, 131, 255, 0.5);
  background: radial-gradient(circle at 30% 20%, rgba(122, 131, 255, 0.12), rgba(24, 28, 60, 0.65));
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  box-shadow: 0 40px 90px rgba(20, 26, 60, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero__lottie {
  width: clamp(280px, 46vw, 500px);
  height: clamp(280px, 46vw, 500px);
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 26px;
  overflow: hidden;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

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

.section__intro {
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.stat-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 20, 60, 0.12);
}

.stat-card__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-card__value {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.section--journey {
  position: relative;
}

.journey {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  align-items: start;
}

.journey__map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 120px;
}

.journey__node {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.journey__node:hover,
.journey__node:focus-visible {
  transform: translateX(6px);
  border-color: rgba(92, 108, 255, 0.4);
  box-shadow: 0 18px 40px rgba(10, 20, 60, 0.12);
}

.journey__node.is-active {
  border-color: rgba(92, 108, 255, 0.55);
  background: rgba(92, 108, 255, 0.08);
  box-shadow: 0 24px 60px rgba(92, 108, 255, 0.2);
}

.journey__level {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey__title {
  font-size: 1.15rem;
  font-weight: 600;
}

.journey__year {
  font-size: 0.85rem;
  color: var(--muted);
}

.journey__panel {
  position: relative;
}

.journey__progress {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journey__progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.12);
  overflow: hidden;
}

.journey__progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(92, 108, 255, 0.85), rgba(122, 131, 255, 0.9));
  transition: width 0.4s ease;
}

.journey__progress-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.journey__quest {
  margin: 0;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 30px 80px rgba(10, 20, 60, 0.08);
  animation: fade-up 0.35s ease;
}

.journey__quest header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.journey__quest header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.journey__quest ul {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.journey__quest footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quest-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.journey__quest[hidden] {
  display: none;
}

.interests-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.interest-card {
  padding: 1.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.interest-card::after {
  content: "";
  position: absolute;
  inset: -120% 40% 60% -50%;
  background: radial-gradient(circle, rgba(92, 108, 255, 0.2), transparent 65%);
  transform: rotate(15deg);
  transition: transform 0.6s ease;
}

.interest-card:hover::after,
.interest-card:focus-within::after {
  transform: rotate(0deg) translate(20px, -10px);
}

.interest-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.interest-card p {
  margin: 0;
  color: var(--muted);
}

.section--contact h2 {
  margin-bottom: 2.25rem;
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(260px, 1.25fr) minmax(220px, 1fr);
  align-items: stretch;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 26px 60px rgba(20, 30, 60, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -40%;
  background: radial-gradient(circle, rgba(92, 108, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(20, 30, 60, 0.18);
}

.contact-card:hover::after,
.contact-card:focus-within::after {
  opacity: 1;
}

.contact-card--primary {
  background: linear-gradient(145deg, rgba(92, 108, 255, 0.16), rgba(240, 242, 255, 0.92));
}

.contact-card--primary header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-card__kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(92, 108, 255, 0.9);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.contact-copy {
  position: relative;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.contact-copy::after {
  content: "⧉";
  position: absolute;
  left: 0.9rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.btn.contact-copy {
  padding-left: 2.2rem;
}

.contact-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.6px solid rgba(92, 108, 255, 0.5);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.contact-ring__label {
  z-index: 1;
}

.contact-ring__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(92, 108, 255, 0.18);
  animation: contact-pulse 2.8s ease-out infinite;
}

.contact-feedback {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: rgba(92, 108, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-feedback.is-visible {
  opacity: 1;
}

.contact-card--links {
  background: rgba(255, 255, 255, 0.85);
}

.contact-links-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-links-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(92, 108, 255, 0.18);
  background: rgba(92, 108, 255, 0.08);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-links-grid a:hover,
.contact-links-grid a:focus-visible {
  transform: translateX(6px);
  border-color: rgba(92, 108, 255, 0.4);
  background: rgba(92, 108, 255, 0.16);
}

.contact-links-grid__hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills-group {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.skills-group p {
  margin: 0;
  color: var(--muted);
}

.education {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.education__item {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.education__item h3 {
  margin: 0 0 0.5rem;
}

.education__item p {
  margin: 0;
  color: var(--muted);
}

.education__item ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journey__node,
.stat-card,
.skills-group,
.education__item,
.interest-card {
  backdrop-filter: blur(6px);
}

.journey__quest ul,
.education__item ul {
  list-style: none;
  padding-left: 0;
}

.journey__quest li,
.education__item li {
  position: relative;
  padding-left: 1.5rem;
}

.journey__quest li::before,
.education__item li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent);
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contact-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}


@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 70px;
    right: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 36px rgba(10, 20, 60, 0.12);
    border: 1px solid var(--border);
    transform-origin: top right;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .hero {
    padding-top: 5rem;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey__map {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.75rem;
  }

  .journey__node {
    min-width: 220px;
  }

  .skills-grid,
  .education,
  .stats-grid,
  .interests-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-ring {
    align-self: center;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c11;
    --fg: #f5f5f7;
    --muted: #9b9bb5;
    --accent: #7a83ff;
    --accent-soft: rgba(122, 131, 255, 0.16);
    --border: rgba(255, 255, 255, 0.06);
  }

  body {
    background: radial-gradient(circle at top left, #151522, var(--bg));
  }

  .site-header {
    background-color: rgba(16, 17, 28, 0.75);
  }

  .btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
  }

  .project {
    background: rgba(18, 20, 34, 0.8);
  }

  .skills-group,
  .education__item,
  .stat-card,
  .journey__node,
  .journey__quest,
  .interest-card,
  .contact-card {
    background: rgba(18, 20, 34, 0.8);
  }

  .contact-card--primary {
    background: linear-gradient(145deg, rgba(76, 88, 200, 0.35), rgba(20, 22, 44, 0.96));
  }

  .contact-card--links {
    background: rgba(20, 24, 42, 0.85);
  }

  .contact-links-grid a {
    background: rgba(92, 108, 255, 0.14);
    border-color: rgba(92, 108, 255, 0.24);
  }

  .nav__toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border);
  }

  .nav__toggle span {
    background: var(--fg);
  }
}
