/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #fff7ef;
  color: #1f2933;
  overflow-x: hidden;
}

/* HERO FULL */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0px;
  text-align: center;
  background-color: #fff7ef;
}

/* gambar background */
.hero-bg {
  position: absolute;
  top: -60px;         /* kalau perlu geser lagi */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
}

/* efek tutup */
.hero.hide {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.6s ease;
}

/* overlay lembut */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 247, 239, 0.4),
    rgba(255, 247, 239, 0.96)
  );
  z-index: 2;
}

/* konten */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 24px 20px;
  max-width: 480px;
  transform: translateY(10px);
}

/* teks hero */
.hero-subtitle {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: #f59e0b;
  margin-bottom: 6px;
}

.hero-name {
  font-size: 24px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 4px;
}

/* garis + love */
.hero-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px auto 16px;
}

.hero-divider-line {
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.hero-divider-icon {
  font-size: 14px;
  color: #fb7185;  /* pink pastel */
}

.hero-text {
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 20px;
  color: #374151;
}

.hero-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: #fbbf24;
  color: #7c2d12;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(248, 181, 55, 0.6);
}

/* ========== MAIN AREA ========== */
.main.hidden {
  display: none;
}

.main {
  position: relative;
  padding: 60px 20px 80px;
  background-color: #fff7ef;
  background-image:
    radial-gradient(circle, rgba(255, 203, 132, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;   /* jarak titik */
}

/* confetti/polka pastel halus di belakang main */
.main::before {
  content: "";
  position: absolute;
  inset: 0 0 55%;          /* cuma 45% area atas */
  background-image:
    radial-gradient(circle, rgba(255, 203, 132, 0.65) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
}

@keyframes floatDots {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 40px, 0 60px, 0 50px; }
}

.main::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffd6a3, transparent 70%);
  top: -80px;
  right: -40px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* ========== CARD SECTION ========== */
.section {
  max-width: 640px;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(250, 204, 21, 0.2);
  box-shadow: 0 14px 26px rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* hiasan bubble pastel di sudut card */
.section::before,
.section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.5;
  pointer-events: none;
}

.section::before {
  width: 120px;
  height: 120px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, #fde68a 0, transparent 65%);
}

.section::after {
  width: 80px;
  height: 80px;
  bottom: -40px;
  left: -20px;
  background: radial-gradient(circle, #bfdbfe 0, transparent 65%);
}

.section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(148, 163, 184, 0.65);
  border-color: rgba(250, 204, 21, 0.6);
}

/* judul + icon balon */
.section-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title::after {
  content: "🎈";
  font-size: 16px;
}

/* khusus section terakhir pakai ikon kue */
.section-ending .section-title::after {
  content: "🎂";
}

.section-text {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  white-space: pre-line;
}

/* ========== STICKER EMOJI DI POJOK CARD ========== */
.section-sticker {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 18px;
}

/* ========== BADGE UMUR "20" ========== */
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fbbf24;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(248,181,55,0.45);
  margin-bottom: 8px;
}

/* ========== GARIS PUTUS-PUTUS PEMISAH TEKS ========== */
.section-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(251,191,36,0.6);
  margin: 10px 0 12px;
}

/* Musik */
.music-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #ffc165;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle .icon {
  width: 18px;
  height: 18px;
}

.music-toggle .icon-pause {
  display: none;
}

.music-toggle.playing .icon-play {
  display: none;
}

.music-toggle.playing .icon-pause {
  display: block;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .main {
    padding: 48px 24px 70px;
  }

  .section {
    padding: 22px 22px 24px;
  }

  .section-title {
    font-size: 20px;
  }
}
