/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --ink: #0B2545;
  --sea-deep: #0A6C74;
  --sea: #14949E;
  --sea-mid: #3BB6BE;
  --sea-light: #CDEFF0;
  --mu-red: #E63946;
  --sun: #FFC145;
  --coral: #FF7F6B;
  --hoop: #F2762E;
  --firefly: #FFD23F;
  --bg: #F7FBFC;
  --card: #FFFFFF;

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;

  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--sea-deep);
  margin-bottom: 0.9rem;
  display: inline-block;
}

.eyebrow.center {
  display: block;
  text-align: center;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(92%, 720px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -18px rgba(11, 37, 69, 0.25);
  transition: box-shadow .3s ease, background .3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 34px -16px rgba(11, 37, 69, 0.32);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--sea-deep);
}

.logo__dot {
  color: var(--mu-red);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav__links a {
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .2s;
}

.nav__links a:hover {
  opacity: 1;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #EAFBFA 0%, #D3F3F1 60%, #F7FBFC 100%);
  overflow: hidden;
  padding-top: 4rem;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 193, 69, 0.28), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(255, 127, 107, 0.22), transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(20, 148, 158, 0.25), transparent 45%);
}

.hero__blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.5;
  will-change: transform;
}

.blob--a {
  width: 260px;
  height: 260px;
  background: var(--sun);
  top: 6%;
  left: -70px;
  opacity: 0.32;
  animation: float 9s ease-in-out infinite;
}

.blob--b {
  width: 190px;
  height: 190px;
  background: var(--coral);
  top: 14%;
  right: 2%;
  opacity: 0.26;
  animation: float 11s ease-in-out infinite reverse;
}

.blob--c {
  width: 140px;
  height: 140px;
  background: var(--mu-red);
  bottom: 16%;
  left: 8%;
  opacity: 0.16;
  animation: float 7.5s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-22px);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: 2rem clamp(1.5rem, 6vw, 3rem);
}

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 700;
  color: var(--ink);
}

.hero__title-name {
  font-weight: 800;
  background: linear-gradient(92deg, var(--sea-deep), var(--mu-red) 60%, var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  margin-top: 1.3rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 46ch;
  color: #3A4C63;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(10, 108, 116, 0.18);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sea-deep);
}

.scroll-cue svg {
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* --- Avatar --- */
.hero__avatar {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  aspect-ratio: 1;
}

.avatar-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 34px -6px rgba(11, 37, 69, 0.28);
  background: var(--sea-light);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-photo--empty img {
  display: none;
}

.avatar-photo__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--sea-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 193, 69, 0.35), transparent 55%),
    var(--sea-light);
}

.avatar-photo__placeholder code {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.45rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  font-size: 0.76rem;
}

.avatar-photo--empty .avatar-photo__placeholder {
  display: flex;
}

.avatar-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(10, 108, 116, 0.35);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.badge {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(11, 37, 69, 0.35);
  animation: float 6s ease-in-out infinite;
}

.badge--paw {
  animation-duration: 7.5s;
}

.badge--compass {
  animation-duration: 8.5s;
  animation-direction: reverse;
}

.hero__wave {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  display: block;
  margin-top: auto;
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
main>section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 2rem);
}

.center {
  text-align: center;
}

/* =========================================================
   QUÊ HƯƠNG
   ========================================================= */
.hometown {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hometown__text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.1rem;
}

.hometown__text p {
  margin-bottom: 1rem;
  color: #2E3E56;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding: 0.55rem 1.05rem;
  background: var(--sea-light);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sea-deep);
}

.hometown__art {
  display: flex;
  justify-content: center;
}

/* =========================================================
   THỂ THAO
   ========================================================= */
.sport {
  max-width: 680px;
  margin: 0 auto;
}

.sport__text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.1rem;
}

.sport__text>p {
  margin: 1rem 0;
  color: #2E3E56;
}

.sport-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.sport-tag {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--sea-light);
  color: var(--sea-deep);
  font-weight: 600;
  font-size: 0.88rem;
}

.sport-tag--main {
  background: var(--hoop);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(242, 118, 46, 0.6);
}

.achievement-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.achievement-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2E3E56;
}

.achievement-list__icon {
  font-size: 1.15rem;
}

/* =========================================================
   TÌNH NGUYỆN
   ========================================================= */
.volunteer {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.volunteer__text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.1rem;
}

.volunteer__text>p {
  margin-bottom: 1.2rem;
  color: #2E3E56;
}

.volunteer__text .fact-chip {
  margin-left: auto;
  margin-right: auto;
}

.fact-chip--firefly {
  background: color-mix(in srgb, var(--firefly) 30%, white);
  color: #8A6A12;
}

.photo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  background: #fff;
  padding: 0.9rem 0.9rem 1.3rem;
  border-radius: 18px;
  box-shadow: 0 26px 50px -24px rgba(11, 37, 69, 0.4);
  transform: rotate(-3deg);
  transition: transform .35s ease;
}

.photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sea-light);
}

.photo-frame--empty img {
  display: none;
}

.photo-frame__placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  aspect-ratio: 4/5;
  border-radius: 12px;
  border: 2px dashed rgba(10, 108, 116, 0.35);
  background: var(--sea-light);
  color: var(--sea-deep);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1.5rem;
}

.photo-frame__placeholder code {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 0.82rem;
}

.photo-frame--empty .photo-frame__placeholder {
  display: flex;
}

.photo-frame figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* =========================================================
   SỞ THÍCH
   ========================================================= */
.interests h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 3.6rem;
}

.path-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.8rem;
}

.wander-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100%;
  z-index: 0;
}

.path-marker {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 10px rgba(11, 37, 69, 0.3));
  transition: top .1s linear;
}

.interest-card {
  position: relative;
  z-index: 1;
  width: min(440px, 86%);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 0 2.1rem 2rem;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(11, 37, 69, 0.28);
  border-top: 5px solid var(--accent);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.interest-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 26px 46px -20px color-mix(in srgb, var(--accent) 35%, rgba(11, 37, 69, 0.3));
}

.interest-card--left {
  margin-right: auto;
}

.interest-card--right {
  margin-left: auto;
}

.interest-card__photo {
  position: relative;
  margin: 0 -2.1rem 1.6rem;
  aspect-ratio: 16/9;
  background: var(--sea-light);
}

.interest-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interest-card__photo--empty img {
  display: none;
}

.interest-card__photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sea-deep);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%),
    var(--sea-light);
}

.interest-card__photo-placeholder code {
  padding: 0.1rem 0.4rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  font-size: 0.76rem;
}

.interest-card__photo--empty .interest-card__photo-placeholder {
  display: flex;
}

.interest-card__icon {
  position: relative;
  margin-top: -3.4rem;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--accent);
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 20px -8px rgba(11, 37, 69, 0.35);
  transition: transform .3s ease;
}

.interest-card:hover .interest-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.interest-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.6rem;
}

.interest-card p {
  color: #2E3E56;
  font-size: 0.97rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: #E9FBFA;
  margin-top: 2rem;
}

.footer__wave {
  width: 100%;
  height: 50px;
  display: block;
}

.footer__content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 2rem) 3.4rem;
  text-align: center;
}

.footer__quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.footer__icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  color: #9FE4E1;
}

.footer__icons svg {
  opacity: 0.85;
}

.footer__credit {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

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

  .blob,
  .scroll-cue svg,
  .avatar-ring,
  .badge {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__avatar {
    order: -1;
    margin-bottom: 1rem;
  }

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

  .hometown__art {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .wander-path {
    left: 22px;
    transform: none;
    width: 60px;
  }

  .path-marker {
    left: 22px;
  }

  .interest-card--left,
  .interest-card--right {
    margin-left: 56px;
    margin-right: 0;
    width: calc(100% - 56px);
  }

  .nav__links {
    display: none;
  }
}