/* ============================================================
   Happy Birthday Ann — Pastel Pink & Gold Romantic Theme
   ============================================================ */

:root{
  --pink-50:  #fff5f8;
  --pink-100: #ffe4ee;
  --pink-200: #ffd0e3;
  --pink-300: #ffb6d1;
  --pink-deep:#e88bb0;
  --gold:     #cda34d;
  --gold-light:#f3d98a;
  --gold-dark:#a9812f;
  --cream:    #fffaf3;
  --ink:      #5b3b4a;
  --ink-soft: #8a6274;
  --shadow-pink: rgba(232, 139, 176, 0.35);
  --shadow-gold: rgba(205, 163, 77, 0.35);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100vh;
  font-family: "Prompt", "Noto Serif Thai", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top left, var(--pink-100) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, var(--pink-200) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--pink-50) 45%, var(--cream) 100%);
  overflow-x: hidden;
  position: relative;
}

h1, h2{ font-family: "Playfair Display", "Noto Serif Thai", serif; margin: 0; }

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

/* ---------- decorative floating background ---------- */
.bg-decor{
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-decor span{
  position: absolute;
  bottom: -10%;
  opacity: 0.55;
  color: var(--pink-300);
  animation: floatUp linear infinite;
  will-change: transform;
}
.bg-decor span.gold{ color: var(--gold-light); }

@keyframes floatUp{
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.6; }
  92%  { opacity: 0.4; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 30px)) rotate(360deg); opacity: 0; }
}

#confettiCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

main{ position: relative; z-index: 1; }

/* ============ HERO ============ */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 6vh;
  position: relative;
}

.eyebrow{
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
  margin: 0 0 1.2rem;
  font-weight: 500;
}

.hero-title{
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pink-deep);
  text-shadow: 0 2px 24px var(--shadow-pink);
  background: linear-gradient(100deg, var(--pink-deep) 10%, var(--gold-dark) 45%, var(--pink-deep) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 18ch;
}
.brk{ display: block; }

.hero-sub{
  margin: 1.8rem 0 2.6rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 46ch;
}

.gold-name{
  color: var(--gold-dark);
  font-weight: 600;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.surprise-btn{
  font-family: "Prompt", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  color: var(--cream);
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  border: none;
  border-radius: 999px;
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 30px var(--shadow-gold), 0 0 0 1px rgba(255,255,255,0.35) inset;
  animation: shimmer 4s linear infinite, pulseGlow 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.surprise-btn:hover{ transform: translateY(-3px) scale(1.03); }
.surprise-btn:active{ transform: translateY(0) scale(0.98); }
.surprise-btn:disabled{
  opacity: 0.55;
  cursor: default;
  animation: none;
  transform: none;
}

.btn-sparkle{ animation: sparkleSpin 3s linear infinite; display:inline-block; }
@keyframes sparkleSpin{
  0%,100%{ transform: rotate(0deg) scale(1); }
  50%{ transform: rotate(20deg) scale(1.25); }
}
@keyframes shimmer{
  0%{ background-position: 0% center; }
  100%{ background-position: 200% center; }
}
@keyframes pulseGlow{
  0%,100%{ box-shadow: 0 10px 30px var(--shadow-gold), 0 0 0 1px rgba(255,255,255,0.35) inset; }
  50%{ box-shadow: 0 10px 42px var(--shadow-gold), 0 0 0 6px rgba(205,163,77,0.18); }
}

.scroll-hint{
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.scroll-hint.hide{ opacity: 0; pointer-events: none; }
.chev{ animation: bob 1.6s ease-in-out infinite; font-size: 1.1rem; color: var(--gold); }
@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}

/* ============ REVEALED SECTIONS ============ */
.reveal-section{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  padding: 7vh 6vw;
}
.reveal-section.show{
  opacity: 1;
  transform: translateY(0);
}

.section-eyebrow{
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.section-title{
  text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  color: var(--pink-deep);
  margin: 0 0 3rem;
}

/* ---------- message card ---------- */
.frame-card{
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.55));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(205,163,77,0.4);
  border-radius: 28px;
  box-shadow: 0 20px 60px var(--shadow-pink);
  text-align: center;
}
.corner{
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
}
.corner.tl{ top: -6px; left: -6px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.corner.tr{ top: -6px; right: -6px; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.corner.bl{ bottom: -6px; left: -6px; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.corner.br{ bottom: -6px; right: -6px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.quote-mark{
  font-family: "Playfair Display", serif;
  font-size: 3.6rem;
  color: var(--gold-light);
  line-height: 1;
  margin: 0;
  height: 2.2rem;
}
.quote-mark.end{ transform: rotate(180deg); margin-top: 1.2rem; height: auto; }

.card-title{
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--pink-deep);
  margin-bottom: 0.9rem;
}

.age-badge{
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--pink-100);
  border: 1px solid var(--pink-300);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}
.age-badge span{
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.card-text p{
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 2;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

/* ---------- big heart photo ---------- */
.heart-section{ text-align: center; }

.heart-photo-wrap{
  position: relative;
  width: min(80vw, 420px);
  aspect-ratio: 1 / 0.92;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-glow{
  position: absolute;
  inset: -8%;
  background: radial-gradient(closest-side, var(--pink-300) 0%, transparent 72%);
  filter: blur(18px);
  opacity: 0.7;
  animation: heartbeat 2.4s ease-in-out infinite;
  z-index: 0;
}
@keyframes heartbeat{
  0%,100%{ transform: scale(1); opacity: 0.55; }
  50%{ transform: scale(1.06); opacity: 0.85; }
}

.heart-photo{
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  clip-path: url(#heartClip);
  -webkit-clip-path: url(#heartClip);
  filter: drop-shadow(0 16px 30px var(--shadow-pink));
  animation: heartbeat 2.4s ease-in-out infinite;
}
.heart-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
}

.sparkle{
  position: absolute;
  color: var(--gold);
  font-size: 1.6rem;
  animation: twinkle 2.2s ease-in-out infinite;
  z-index: 2;
}
.s1{ top: 6%; right: 8%; animation-delay: 0.2s; }
.s2{ bottom: 10%; left: 4%; animation-delay: 0.8s; font-size: 1.2rem; }
.s3{ top: 40%; left: -2%; animation-delay: 1.3s; font-size: 1rem; }
@keyframes twinkle{
  0%,100%{ opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  50%{ opacity: 1; transform: scale(1.15) rotate(15deg); }
}

.heart-caption{
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- gallery ---------- */
.album{
  max-width: 1000px;
  margin: 0 auto 3.5rem;
}
.album:last-child{ margin-bottom: 0; }

.album-title{
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--pink-deep);
  margin: 0 0 1.2rem;
}

.album-video{
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 1.4rem auto 0;
  border-radius: 16px;
  border: 1px solid rgba(205,163,77,0.35);
  box-shadow: 0 8px 24px rgba(232,139,176,0.22);
  background: #000;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  max-width: 1000px;
  margin: 0 auto;
}
.g-item{
  padding: 0;
  border: 1px solid rgba(205,163,77,0.35);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 24px rgba(232,139,176,0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.g-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.g-item:hover{ transform: translateY(-6px); box-shadow: 0 16px 34px var(--shadow-pink); }
.g-item:hover img{ transform: scale(1.08); }

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

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(43, 20, 30, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 4vh 4vw;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute;
  top: 3vh;
  right: 4vw;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- footer ---------- */
.site-footer{
  text-align: center;
  color: var(--ink-soft);
  padding-bottom: 6vh;
}
.footer-heart{ font-size: 1.3rem; letter-spacing: 0.3em; margin-bottom: 0.6rem; }
.footer-from{
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-dark);
  margin-top: 0.3rem;
}
.footer-small{ font-size: 0.78rem; opacity: 0.7; margin-top: 0.5rem; }

/* ---------- small screens ---------- */
@media (max-width: 420px){
  .frame-card{ border-radius: 20px; }
  .heart-photo-wrap{ width: 88vw; }
}
