:root {
  --deep-blue: #001742;
  --gold: #d4af37;
  --gold-light: #f0d060;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid: #e0e4ea;
  --text-dark: #1a2b45;
  --text-muted: #6b7a99;
  --shadow: 0 8px 40px rgba(11, 31, 58, 0.13);
  --shadow-gold: 0 4px 30px rgba(212, 175, 55, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Kavoon", cursive;
}



/* UTILS */
.section-dark {
  background: var(--deep-blue);
  color: var(--white);
}

.section-white {
  background: var(--white);
  color: var(--text-dark);
}

.section-gray {
  background: var(--gray-light);
  color: var(--text-dark);
}

.gold-text {
  color: var(--gold);
}

.gold-line {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 12px 0 20px;
}

.section-title {
  font-family: "Kavoon", cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* BUTTONS */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8942a);
  color: var(--deep-blue);
  font-weight: 700;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  color: var(--deep-blue);
}

.btn-outline-hero {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
}

.btn-outline-hero:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-music {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
}

.btn-music:hover,
.btn-music.playing {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── FLOATING MUSIC BUTTON ─── */
.btn-floating-music {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d4af37);
  color: var(--deep-blue);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
}

.btn-floating-music.show {
  display: flex;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-floating-music:hover {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.5);
}

.btn-floating-music:active {
  transform: scale(0.95);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
  }
  70% {
    transform: scale(1.15) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ━━━━━━━ HERO ━━━━━━━ */
#hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 23, 66, 0.8), rgba(0, 23, 66, 0.8)), url('../img/herobg.png') center/cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.balloon {
  position: absolute;
  width: 30px;
  height: 40px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.07;
  animation: floatBalloon linear infinite;
}

@keyframes floatBalloon {
  0% {
    transform: translateY(110vh) rotate(0deg);
  }

  100% {
    transform: translateY(-20vh) rotate(20deg);
  }
}

.hero-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.5);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
  font-family: "Kavoon", cursive;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  line-height: 1.8;
  margin: 1.2rem 0 0.5rem;
  animation: fadeSlideUp 0.9s 0.4s ease both;
}

.hero-name-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 14px 22px;
  margin: 1.4rem 0 2rem;
  animation: fadeSlideUp 0.9s 0.55s ease both;
}

.hero-name-card .name {
  font-family: "Kavoon", cursive;
  font-size: 1.3rem;
  color: var(--gold);
}

.hero-name-card .role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.hero-name-card .avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a87e2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-blue);
  font-size: 1.2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeSlideUp 0.9s 0.7s ease both;
}

/* Hero Right — Masculine hexagon/shield shape */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 440px;
  height: 440px;
  animation: fadeScaleIn 1s 0.3s ease both;
}

/* Rotating geometric squares — tech / corporate feel */
.hero-geo-sq {
  position: absolute;
  border: 1.5px solid rgba(212, 175, 55, 0.18);
  animation: spinSq linear infinite;
}

.hero-geo-sq:nth-child(1) {
  width: 310px;
  height: 310px;
  border-radius: 6px;
  animation-duration: 22s;
}

.hero-geo-sq:nth-child(2) {
  width: 360px;
  height: 360px;
  border-radius: 6px;
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(212, 175, 55, 0.1);
}

.hero-geo-sq:nth-child(3) {
  width: 410px;
  height: 410px;
  border-radius: 6px;
  animation-duration: 40s;
  border-color: rgba(212, 175, 55, 0.06);
}

@keyframes spinSq {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Corner brackets — masculine detail */
.hero-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  opacity: 0.55;
}

.hero-bracket.tl {
  top: 42px;
  left: 42px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hero-bracket.tr {
  top: 42px;
  right: 42px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.hero-bracket.bl {
  bottom: 42px;
  left: 42px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.hero-bracket.br {
  bottom: 42px;
  right: 42px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Halo glow */
.hero-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  animation: pulseHalo 4s ease-in-out infinite;
}

@keyframes pulseHalo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Hexagon clip — strong, masculine silhouette */
.hero-photo-frame {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 400px;
  border-radius: 15px;
  border: solid 1px rgb(255, 187, 0);
  overflow: hidden;
  animation: slowZoom 14s ease-in-out infinite alternate;
 
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.04);
  }
}

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

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    #1a3560 0%,
    var(--deep-blue) 60%,
    #0a1628 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-photo-placeholder i {
  font-size: 4.5rem;
  color: rgba(212, 175, 55, 0.3);
}

.hero-photo-placeholder span {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
}

/* Hexagon outline layer */
.hero-hex-outline {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 268px;
  height: 310px;
  clip-path: polygon(50% 0%, 96% 18%, 96% 78%, 50% 100%, 4% 78%, 4% 18%);
  border: 2px solid rgba(212, 175, 55, 0.5);
}

/* Scanning horizontal line */
.hero-scan {
  position: absolute;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.5),
    transparent
  );
  z-index: 4;
  pointer-events: none;
  animation: scanLine 3.5s ease-in-out infinite;
}

@keyframes scanLine {
  0%,
  100% {
    top: 25%;
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    top: 75%;
    opacity: 0;
  }
}

/* Floating badges */
.hero-badge {
  position: absolute;
  bottom: 30px;
  right: -10px;
  z-index: 5;
  background: var(--gold);
  color: var(--deep-blue);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatBadge 3s ease-in-out infinite;
}

.hero-date-badge {
  position: absolute;
  top: 30px;
  left: -10px;
  z-index: 5;
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatBadge 3s 1.5s ease-in-out infinite;
}

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

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

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeSlideUp 1s 1.2s ease both;
  z-index: 2;
}

.scroll-cue span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.14em;
}

.scroll-chevron {
  color: var(--gold);
  font-size: 1rem;
  animation: bounce 1.5s infinite;
}

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

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

/* ━━━━━━━ ABOUT (WHITE) with photo ━━━━━━━ */
#about {
  padding: 100px 0;
  background: var(--white);
}

.about-intro {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 480px;
}

.about-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-bg {
  position: absolute;
  width: 330px;
  height: 410px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08),
    rgba(11, 31, 58, 0.04)
  );
  border-radius: 24px;
  transform: rotate(-3deg);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.about-photo-frame {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 370px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(11, 31, 58, 0.18),
    0 0 0 3px rgba(212, 175, 55, 0.22);
}

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

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #e8edf5, #cdd5e3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.about-photo-placeholder i {
  font-size: 5rem;
  color: rgba(11, 31, 58, 0.18);
}

.about-photo-placeholder span {
  font-size: 0.75rem;
  color: rgba(11, 31, 58, 0.3);
}

.about-photo-accent {
  position: absolute;
  bottom: -14px;
  right: -14px;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), #a87e2a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  color: var(--deep-blue);
  font-size: 1.8rem;
}

.about-photo-date {
  position: absolute;
  top: -14px;
  left: -14px;
  z-index: 3;
  background: var(--deep-blue);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 11px 15px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-photo-date .num {
  font-family: "Kavoon", cursive;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}

.about-photo-date .lbl {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 40px rgba(11, 31, 58, 0.1),
    0 0 0 2px rgba(212, 175, 55, 0.25);
}

.about-card .icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.12),
    rgba(212, 175, 55, 0.04)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: var(--gold);
  transition: all 0.35s;
}

.about-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--gold), #a87e2a);
  color: var(--deep-blue);
  box-shadow: var(--shadow-gold);
}

.about-card h4 {
  font-family: "Kavoon", cursive;
  font-size: 1rem;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ━━━━━━━ GALLERY — swap animation ━━━━━━━ */
#gallery {
  padding: 100px 0;
  background: var(--deep-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 14px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 180px);
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: none;
  transition: box-shadow 0.4s ease;
}

.gallery-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.swap-out-up {
  animation: swapOutUp 0.45s ease forwards;
}

.swap-out-down {
  animation: swapOutDown 0.45s ease forwards;
}

.swap-in-up {
  animation: swapInUp 0.45s ease forwards;
}

.swap-in-down {
  animation: swapInDown 0.45s ease forwards;
}

@keyframes swapOutUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-28px);
    opacity: 0;
  }
}

@keyframes swapOutDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

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

@keyframes swapInUp {
  0% {
    transform: translateY(28px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes swapInDown {
  0% {
    transform: translateY(-28px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 31, 58, 0.9) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.8rem;
}

.gallery-label {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gallery-modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.gallery-modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.gallery-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ━━━━━━━ QUIZ ━━━━━━━ */
#quiz {
  padding: 100px 0;
  background: var(--gray-light);
}

.quiz-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress {
  height: 6px;
  background: var(--gray-mid);
  border-radius: 3px;
  margin-bottom: 28px;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.quiz-question {
  font-family: "Kavoon", cursive;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.quiz-counter {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.quiz-option {
  display: block;
  width: 100%;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-mid);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: none;
  margin-bottom: 12px;
  transition: all 0.2s;
  font-family: "Poppins", sans-serif;
}

.quiz-option:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
}

.quiz-option.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.quiz-option.disabled {
  pointer-events: none;
}

.quiz-result {
  text-align: center;
  padding: 20px 0;
}

.quiz-result .score {
  font-family: "Kavoon", cursive;
  font-size: 3rem;
  color: var(--gold);
}

/* ━━━━━━━ MESSAGES (no bg) ━━━━━━━ */
#messages {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.messages-track-wrap {
  overflow: hidden;
  margin-bottom: 20px;
}

.messages-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTrack 38s linear infinite;
}

.messages-track:hover {
  animation-play-state: paused;
}

.messages-track-2 {
  animation-direction: reverse;
  animation-duration: 45s;
}

@keyframes scrollTrack {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.msg-card {
  background: transparent;
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 26px 24px;
  min-width: 282px;
  max-width: 282px;
  flex-shrink: 0;
  position: relative;
}

.msg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  border-radius: 0 3px 3px 0;
}

.msg-card .quote-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.msg-card p {
  font-size: 0.87rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 14px;
}

.msg-card .sender {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

.msg-card .sender i {
  color: var(--gold);
}

/* ━━━━━━━ TIMELINE ━━━━━━━ */
#timeline {
  padding: 100px 0;
  background: var(--deep-blue);
}

.tl-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.tl-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(212, 175, 55, 0.4) 8%,
    rgba(212, 175, 55, 0.4) 92%,
    transparent
  );
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .tl-center-line {
    left: 26px;
  }
}

.tl-item {
  position: relative;
  margin-bottom: 50px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

/* Desktop: alternating */
@media (min-width: 768px) {
  .tl-item {
    display: flex;
    align-items: flex-start;
  }

  .tl-item.left {
    flex-direction: row-reverse;
  }

  .tl-item.left .tl-card {
    text-align: right;
    margin-right: calc(50% + 40px);
  }

  .tl-item.right .tl-card {
    margin-left: calc(50% + 40px);
  }

  .tl-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    z-index: 2;
  }
}

/* Mobile: all left */
@media (max-width: 767px) {
  .tl-item {
    padding-left: 64px;
  }

  .tl-dot {
    position: absolute;
    left: 0;
    top: 4px;
  }
}

.tl-dot {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a87e2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-blue);
  font-size: 1.1rem;
  box-shadow:
    0 0 0 6px rgba(212, 175, 55, 0.12),
    var(--shadow-gold);
}

.tl-card {
  flex: 0 0 auto;
  width: calc(50% - 60px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  transition: all 0.35s;
}

@media (max-width: 767px) {
  .tl-card {
    width: 100%;
  }
}

.tl-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.tl-year {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.tl-title {
  font-family: "Kavoon", cursive;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.7;
}

.tl-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
}

/* ━━━━━━━ CONFIDENCES ━━━━━━━ */
#confidences {
  padding: 100px 0;
  background: var(--deep-blue);
}

.conf-intro-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.conf-stage {
  max-width: 660px;
  margin: 0 auto;
}

.conf-envelope-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  margin: 0 auto 10px;
  animation: envelopePulse 2.5s ease-in-out infinite;
}

@keyframes envelopePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2);
  }

  50% {
    box-shadow: 0 0 0 18px rgba(212, 175, 55, 0);
  }
}

.conf-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 28px;
}

.conf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s;
}

.conf-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.conf-dot.done {
  background: rgba(212, 175, 55, 0.35);
  border-color: rgba(212, 175, 55, 0.4);
}

.conf-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 24px;
  padding: 40px 34px;
  text-align: center;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.conf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.conf-sender-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a87e2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
  box-shadow: var(--shadow-gold);
}

.conf-sender-name {
  font-family: "Kavoon", cursive;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 3px;
}

.conf-sender-role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 18px;
}

.conf-text {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.78;
  font-style: italic;
}

.conf-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.conf-locked i {
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.25);
}

.conf-locked p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.38);
}

.conf-counter-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 14px;
}

.conf-done {
  text-align: center;
  padding: 20px 0;
}

.conf-done h3 {
  font-family: "Kavoon", cursive;
  color: var(--gold);
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.conf-done p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* FOOTER */
footer {
  padding: 40px 0;
  background: var(--white);
  text-align: center;
  color: var(--text-dark);
  font-size: 0.82rem;
}

footer span {
  color: var(--gold);
}

/* CONFETTI */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

@media (max-width: 768px) {
  #hero .row {
    flex-direction: column-reverse;
  }

  .hero-image-wrap {
    width: 320px;
    height: 320px;
  }

  .hero-photo-frame {
    width: 200px;
    height: 240px;
  }

  .hero-geo-sq:nth-child(1) {
    width: 230px;
    height: 230px;
  }

  .hero-geo-sq:nth-child(2) {
    width: 270px;
    height: 270px;
  }

  .hero-geo-sq:nth-child(3) {
    width: 310px;
    height: 310px;
  }

  #about,
  #quiz,
  #messages,
  #timeline,
  #confidences {
    padding: 70px 0;
  }

  .quiz-card {
    padding: 24px 18px;
  }

  .conf-card {
    padding: 28px 18px;
  }

  .tl-card {
    text-align: left !important;
  }
}
