:root {
  --pink-deep: #f472b6;
  --pink-mid: #fbcfe8;
  --pink-soft: #fdf2f8;
  --pink-hot: #ec4899;
  --white: #ffffff;
  --cherry: #be123c;
  --strawberry: #e11d48;
  --sakura: #fda4af;
  --gerbera: #fb7185;
  --cream: #fff1f2;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--pink-soft);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='26' font-size='24'%3E🍓%3C/text%3E%3C/svg%3E") 16 16, auto;
}

/* ========== FLOATING PARTICLES ========== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 1.4rem;
  animation: floatUp linear infinite;
  opacity: 0;
}

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

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ========== CURTAIN SURPRISE ========== */
.curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(135deg, #fbcfe8 0%, #fce7f3 40%, #fdf4ff 100%);
}

.curtain.hidden {
  display: none;
}

.curtain-kitty {
  font-size: 6rem;
  animation: bounceSlow 1.5s ease-in-out infinite;
}

@keyframes bounceSlow {

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

  50% {
    transform: translateY(-18px) scale(1.08);
  }
}

.curtain-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  color: var(--pink-hot);
  text-align: center;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--pink-mid);
}

.curtain-sub {
  font-size: 1.1rem;
  color: #be185d;
  font-weight: 700;
  letter-spacing: .05em;
}

.open-btn {
  margin-top: 8px;
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry));
  color: white;
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(236, 72, 153, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .02em;
}

.open-btn:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 12px 32px rgba(236, 72, 153, .55);
}

/* ========== MAIN PAGE ========== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 70% 20%, #fce7f3 0%, #fdf2f8 60%),
    radial-gradient(ellipse at 20% 80%, #ffe4e6 0%, transparent 60%);
  overflow: hidden;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  pointer-events: none;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #fbcfe8;
  top: -120px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #fda4af;
  bottom: 0;
  left: -80px;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #fecdd3;
  top: 50%;
  left: 60%;
}

.hero-badge {
  background: white;
  color: var(--pink-hot);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 22px;
  border-radius: 999px;
  border: 2px solid var(--pink-mid);
  box-shadow: 0 2px 12px rgba(236, 72, 153, .15);
  margin-bottom: 18px;
  animation: fadeDown .8s ease both;
}

.hero-kitty {
  font-size: 7rem;
  margin: 0 0 10px;
  animation: fadeDown .9s .1s ease both, wiggle 3s 1s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(236, 72, 153, .3));
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }

  50% {
    transform: rotate(3deg) scale(1.04);
  }
}

.hero-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--pink-hot);
  text-align: center;
  line-height: 1.2;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 var(--pink-mid);
  animation: fadeDown 1s .2s ease both;
}

.hero-months {
  font-family: 'Pacifico', cursive;
  font-size: clamp(4rem, 14vw, 9rem);
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry), var(--gerbera));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: fadeDown 1s .3s ease both, pulseGlow 3s 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.15);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #9d174d;
  font-weight: 700;
  margin-top: 4px;
  animation: fadeDown 1s .4s ease both;
}

.hero-emojis {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  font-size: 2rem;
  animation: fadeDown 1s .5s ease both;
}

.hero-emojis span {
  animation: bounceSlow 2s ease-in-out infinite;
}

.hero-emojis span:nth-child(2) {
  animation-delay: .3s;
}

.hero-emojis span:nth-child(3) {
  animation-delay: .6s;
}

.hero-emojis span:nth-child(4) {
  animation-delay: .9s;
}

.hero-emojis span:nth-child(5) {
  animation-delay: 1.2s;
}

/* scroll arrow */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--pink-hot);
  animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {

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

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

/* ========== SECTION SHARED ========== */
section {
  padding: 80px 20px;
  position: relative;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Pacifico', cursive;
  font-size: 1rem;
  color: var(--pink-hot);
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #be185d;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ========== TIMELINE ========== */
.timeline-section {
  background: white;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  padding: 100px 20px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--pink-hot), var(--sakura), var(--pink-mid));
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(236, 72, 153, .4);
  border: 4px solid white;
  position: relative;
  z-index: 1;
}

.timeline-card {
  flex: 1;
  background: var(--cream);
  border-radius: 20px;
  padding: 20px 24px;
  border: 2px solid var(--pink-mid);
  box-shadow: 4px 4px 0 var(--pink-mid);
}

.timeline-month {
  font-family: 'Pacifico', cursive;
  font-size: 1rem;
  color: var(--pink-hot);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 1rem;
  color: #6b2142;
  line-height: 1.6;
  font-weight: 600;
}

/* ========== LOVE NOTES ========== */
.notes-section {
  background: linear-gradient(160deg, #fdf2f8 0%, #fff1f2 100%);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.note-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  border: 2px solid var(--pink-mid);
  box-shadow: 6px 6px 0 var(--pink-mid);
  transition: transform .25s, box-shadow .25s;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s, transform .6s, box-shadow .25s;
}

.note-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.note-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 12px 0 var(--pink-mid);
}

.note-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.note-card h3 {
  font-family: 'Pacifico', cursive;
  color: var(--pink-hot);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.note-card p {
  color: #9d174d;
  font-size: .95rem;
  line-height: 1.7;
  font-weight: 600;
}

/* ========== GALLERY / FAVORITES ========== */
.fav-section {
  background: white;
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding: 100px 20px;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fav-card {
  border-radius: 20px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-weight: 700;
  color: #be185d;
  font-size: .95rem;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .5s ease, transform .5s ease;
  cursor: default;
}

.fav-card.visible {
  opacity: 1;
  transform: scale(1);
}

.fav-card:hover {
  transform: scale(1.06) rotate(-1deg);
}

.fav-card .fav-emoji {
  font-size: 6.5rem; /* ปรับให้ใหญ่ขึ้นตามต้องการ */
}

.fav-card:nth-child(1) {
  background: #fce7f3;
  border: 2px solid #f9a8d4;
}

.fav-card:nth-child(2) {
  background: #fff1f2;
  border: 2px solid #fda4af;
}

.fav-card:nth-child(3) {
  background: #fdf4ff;
  border: 2px solid #e879f9;
}

.fav-card:nth-child(4) {
  background: #fce7f3;
  border: 2px solid #f472b6;
}

.fav-card:nth-child(5) {
  background: #fff0f3;
  border: 2px solid #fb7185;
}

.fav-card:nth-child(6) {
  background: #fdf2f8;
  border: 2px solid #fbcfe8;
}

/* ========== LETTER ========== */
.letter-section {
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
}

.letter-card {
  background: white;
  border-radius: 28px;
  padding: 48px 40px;
  border: 3px solid var(--pink-mid);
  box-shadow: 8px 8px 0 var(--pink-mid), 12px 12px 0 #fce7f3;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Kalam', cursive;
  font-size: 1.15rem;
  color: #831843;
  line-height: 2;
}

.letter-card::before {
  content: '💌';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  background: white;
  padding: 0 8px;
}

.letter-card .letter-close {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: var(--pink-hot);
  display: block;
  margin-top: 20px;
  text-align: right;
}

/* ========== COUNTDOWN ========== */
.countdown-section {
  background: white;
  padding: 80px 20px;
  text-align: center;
}

.countdown-box {
  display: inline-flex;
  gap: 24px;
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry));
  border-radius: 28px;
  padding: 32px 48px;
  box-shadow: 0 12px 40px rgba(236, 72, 153, .4);
  flex-wrap: wrap;
  justify-content: center;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.count-num {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: white;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .15);
}

.count-label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .85);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.count-divider {
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, .6);
  align-self: center;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry));
  padding: 60px 20px 40px;
  text-align: center;
  color: white;
}

footer .footer-kitty {
  font-size: 4rem;
  animation: bounceSlow 2s ease-in-out infinite;
}

footer h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  margin: 16px 0 8px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .15);
}

footer p {
  opacity: .9;
  font-size: 1rem;
  font-weight: 600;
}

footer .footer-hearts {
  font-size: 1.5rem;
  margin-top: 20px;
  letter-spacing: 8px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* ========== MUSIC NOTE DECO ========== */
.deco-strip {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 12px;
  opacity: .4;
  padding: 8px 0;
  user-select: none;
}

/* ========== HEART BURST BUTTON ========== */
.heart-btn {
  display: block;
  margin: 32px auto 0;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--pink-hot), var(--cherry));
  color: white;
  font-family: 'Pacifico', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(236, 72, 153, .4);
  transition: transform .2s;
}

.heart-btn:hover {
  transform: scale(1.05);
}

/* ========== HEART BURST ========== */
.burst-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

.burst-heart {
  position: absolute;
  font-size: 2rem;
  animation: burstAnim 1.5s ease forwards;
}

@keyframes burstAnim {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(.3);
  }
}

/* ========== MUSIC CONTROL BUTTON ========== */
.music-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: white;
  border: 3px solid var(--sakura);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatMusic 3s ease-in-out infinite;
}

.music-control:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.music-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.music-control.paused {
  filter: grayscale(1);
  opacity: 0.8;
  border-color: #cbd5e1;
}

@keyframes floatMusic {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

/* ปรับตำแหน่งบนมือถือ */
@media (max-width: 600px) {
  .music-control {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .music-icon {
    font-size: 1.3rem;
  }
}
