:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --ink: #1f2538;
  --muted: #6d748b;
  --line: #dfe5f0;
  --primary: #6f55f6;
  --primary-strong: #5136d8;
  --teal: #0f9f9a;
  --blue: #246bfe;
  --shadow: 0 24px 70px rgba(31, 37, 56, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 46%, #f4f7fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(223, 229, 240, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 76px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
}

.brand img {
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31, 37, 56, 0.18);
  height: 42px;
  width: 42px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff !important;
  padding: 11px 16px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 8px;
  width: 44px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 100%;
}

.section-pad {
  margin: 0 auto;
  max-width: var(--max);
  padding: 96px 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: calc(100vh - 76px);
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.75rem, 7vw, 5.9rem);
  letter-spacing: 0;
  line-height: 0.97;
  margin-bottom: 28px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-lead,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  box-shadow: 0 16px 34px rgba(111, 85, 246, 0.28);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-strong);
}

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

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

.hero-metrics div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 229, 240, 0.82);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-metrics dt {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  color: var(--muted);
  margin: 6px 0 0;
}

.profile-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(223, 229, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.profile-card {
  align-items: center;
  display: flex;
  gap: 16px;
}

.profile-photo {
  border-radius: 999px;
  height: 82px;
  width: 82px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.profile-role {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid var(--primary);
  color: #46506a;
  font-size: 1.18rem;
  font-weight: 800;
  margin: 30px 0;
  padding-left: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a {
  background: var(--surface-soft);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  font-weight: 800;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

.contact-list span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.band {
  background: rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(223, 229, 240, 0.7);
  border-top: 1px solid rgba(223, 229, 240, 0.7);
  max-width: none;
}

.band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.section-heading {
  margin-bottom: 42px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  gap: 20px;
  grid-template-columns: 22px minmax(0, 1fr);
}

.timeline-dot {
  background: var(--primary);
  border: 5px solid #ede9ff;
  border-radius: 999px;
  height: 22px;
  margin-top: 24px;
  width: 22px;
}

.timeline-content {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px;
}

.timeline-item.featured .timeline-content {
  background: linear-gradient(135deg, rgba(111, 85, 246, 0.12), rgba(15, 159, 154, 0.08));
  border-color: rgba(111, 85, 246, 0.22);
}

.role,
.timeline-content time,
.education-grid span,
.project-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-content h3 {
  margin-bottom: 0;
}

.timeline-content time {
  color: var(--primary);
  flex: 0 0 auto;
}

.split {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.skill-groups {
  display: grid;
  gap: 18px;
}

.skill-groups article,
.education-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tag-grid,
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-grid li,
.tool-grid li {
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #37405a;
  font-weight: 800;
  padding: 10px 12px;
}

.tool-grid li {
  background: #eef9f8;
  color: #126b68;
}

.life-section {
  max-width: var(--max);
}

.life-slider {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(31, 37, 56, 0.08);
  overflow: hidden;
}

.life-slides {
  height: clamp(520px, 64vh, 680px);
  overflow: hidden;
  position: relative;
}

.life-track {
  display: flex;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.life-slide {
  backface-visibility: hidden;
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  height: 100%;
  opacity: 0.42;
  transform: scale(0.985);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  will-change: opacity, transform;
}

.life-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.life-image {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.life-image::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 78%, rgba(255, 255, 255, 0.48) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.life-image img {
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.04);
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.life-slide.is-active .life-image img {
  transform: scale(1.03);
}

.life-copy {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 245, 251, 0.96)),
    var(--surface);
  display: grid;
  gap: 16px;
  padding: 48px;
}

.life-copy span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.life-copy h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0;
}

.life-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 560px;
}

.life-controls {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 18px 20px;
}

.life-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform 180ms ease, color 180ms ease;
  width: 24px;
}

.life-arrow span {
  transform: translateY(-0.5px);
}

.life-arrow:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.life-dots {
  display: flex;
  gap: 8px;
}

.life-dots button {
  background: #d7deea;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 6px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: background 180ms ease, opacity 180ms ease, width 180ms ease;
  width: 22px;
}

.life-dots button.is-active {
  background: #d7deea;
  width: 48px;
}

.life-dots button span {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
  width: 100%;
}

.life-dots button:not(.is-active) span {
  transform: scaleX(0) !important;
}

.life-timer {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  min-width: 34px;
  text-align: center;
}

.project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-card {
  background: linear-gradient(135deg, #1f2538, #303a56);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.55fr);
  margin-bottom: 20px;
  overflow: hidden;
  padding: 32px;
  position: relative;
}

.achievement-card::after {
  background: linear-gradient(180deg, rgba(15, 159, 154, 0.34), rgba(111, 85, 246, 0.16));
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: 34%;
}

.achievement-copy,
.achievement-stats,
.achievement-features {
  position: relative;
  z-index: 1;
}

.achievement-label {
  color: #9de5df;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.achievement-title {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.achievement-title img {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.achievement-title .achievement-label {
  margin-bottom: 0;
}

.achievement-copy h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 16px;
}

.achievement-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  margin-bottom: 0;
  max-width: 760px;
}

.achievement-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.achievement-actions span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
}

.achievement-stats {
  display: grid;
  gap: 12px;
}

.achievement-stats div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
}

.achievement-stats dt {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.achievement-stats dd {
  color: rgba(255, 255, 255, 0.68);
  margin: 6px 0 0;
}

.achievement-features {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.achievement-features li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 14px;
}

.store-portfolio {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 26px;
}

.store-portfolio-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  max-width: 760px;
}

.store-portfolio-heading span,
.store-app-card span {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-portfolio-heading h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.store-portfolio-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.store-app-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-app-card {
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-height: 218px;
  padding: 18px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.store-app-card img {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(31, 37, 56, 0.1);
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.store-app-card:hover {
  background: #fff;
  border-color: rgba(111, 85, 246, 0.3);
  transform: translateY(-3px);
}

.store-app-card h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
}

.store-app-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 196px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-logo {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 37, 56, 0.2);
  height: 58px;
  margin-bottom: 22px;
  object-fit: cover;
  width: 58px;
}

.project-card:hover {
  box-shadow: 0 18px 46px rgba(31, 37, 56, 0.1);
  transform: translateY(-4px);
}

.project-card.major {
  background: linear-gradient(135deg, var(--ink), #35405d);
  color: #fff;
  grid-column: span 2;
}

.project-card.major p,
.project-card.major span {
  color: rgba(255, 255, 255, 0.76);
}

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

.education-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.education-grid p {
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-section {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
}

.resume-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 560px;
  overflow: hidden;
}

.resume-preview img {
  width: 100%;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 24px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--primary);
  font-weight: 900;
}

.sound-toggle {
  background: rgba(31, 37, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 16px 38px rgba(31, 37, 56, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
  position: fixed;
  right: 22px;
  transition: background 180ms ease, transform 180ms ease;
  z-index: 60;
}

.sound-toggle:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.sound-toggle.is-on {
  background: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 16px;
    padding: 18px;
    position: absolute;
    right: 16px;
    top: 84px;
  }

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

  .hero,
  .split,
  .contact-section,
  .life-slide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
  }

  .sticky-heading {
    position: static;
  }

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

  .achievement-card {
    grid-template-columns: 1fr;
  }

  .achievement-card::after {
    height: 34%;
    inset: auto 0 0 0;
    width: auto;
  }

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

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

  .life-slides,
  .life-image {
    min-height: 0;
  }

  .life-slides {
    height: auto;
    min-height: 0;
  }

  .life-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .life-track {
    align-items: stretch;
  }

  .life-image {
    aspect-ratio: 16 / 11;
    height: auto;
  }

  .life-copy {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 66px 18px;
  }

  .nav {
    padding: 0 18px;
  }

  h1 {
    font-size: 2.7rem;
  }

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

  .achievement-card {
    padding: 24px;
  }

  .achievement-features {
    grid-template-columns: 1fr;
  }

  .store-portfolio {
    padding: 20px;
  }

  .store-app-grid {
    grid-template-columns: 1fr;
  }

  .life-image {
    aspect-ratio: 3 / 4;
  }

  .life-copy {
    padding: 24px;
  }

  .life-controls {
    gap: 12px;
    padding: 14px;
  }

  .life-arrow {
    height: 24px;
    width: 24px;
  }

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

  .project-card.major {
    grid-column: auto;
  }

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

  .sound-toggle {
    bottom: 14px;
    right: 14px;
  }
}
