/* ==========================================================================
   VAISHNAVI'S BIRTHDAY CELEBRATION - STYLESHEET
   White & Cream Luxury Theme, Fine Glassmorphism & High-End Micro-Animations
   ========================================================================== */

:root {
  /* White & Cream Luxury Palette */
  --bg-dark: #FAF7F2;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, #FFFFFF 0%, #FAF6F0 42%, #F3ECE1 100%);
  
  --cream-50: #FFFFFF;
  --cream-100: #FFFDF9;
  --cream-200: #FAF6EE;
  --cream-300: #F4EFE6;
  --cream-400: #EAE2D5;
  --cream-500: #D6C8B4;

  --gold-1: #D4AF37;
  --gold-2: #C59B27;
  --gold-dark: #A07316;
  --gold-light: #F7E6B5;
  --gold-glow: rgba(212, 175, 55, 0.3);
  --gold-border: rgba(201, 151, 44, 0.28);

  --pink-1: #E28296;
  --pink-2: #D8637E;
  --pink-glow: rgba(226, 130, 150, 0.28);

  --purple-accent: #B094D6;
  --purple-glow: rgba(176, 148, 214, 0.25);

  --text-main: #2C2219;
  --text-heading: #1E150F;
  --text-muted: #786C60;
  --text-gold: #A07316;

  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(201, 151, 44, 0.22);
  --glass-hover: rgba(255, 255, 255, 0.94);
  --glass-shadow: 0 14px 34px -6px rgba(140, 115, 90, 0.12), 0 4px 14px rgba(0, 0, 0, 0.03);
  --glass-shadow-lg: 0 22px 50px -8px rgba(140, 115, 90, 0.16), 0 6px 18px rgba(0, 0, 0, 0.04);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-hand: 'Caveat', cursive;
  --font-script: 'Dancing Script', cursive;

  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark) var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   CANVAS LAYERS
   -------------------------------------------------------------------------- */
.ambient-canvas,
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.confetti-canvas {
  z-index: 99999;
}

/* --------------------------------------------------------------------------
   SCENE 1: THE INTRO SURPRISE CURTAIN / OVERLAY (Cream & Gold Silk)
   -------------------------------------------------------------------------- */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #FFFDF9 0%, #F8F1E5 55%, #ECE0CF 100%);
  padding: 24px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.intro-curtain.hidden {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(226, 130, 150, 0.15) 50%, transparent 70%);
  filter: blur(50px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

.intro-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(201, 151, 44, 0.32);
  border-radius: var(--radius-lg);
  padding: 38px 26px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(140, 115, 90, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: slideUpFade 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-stamp {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.intro-icon-wrap {
  margin-bottom: 18px;
}

.pulsing-gift {
  font-size: 4.2rem;
  display: inline-block;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.45));
  animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-10px) rotate(-6deg) scale(1.08); }
  75% { transform: translateY(-5px) rotate(6deg) scale(1.05); }
}

.intro-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text-heading);
}

.highlight-v {
  background: linear-gradient(135deg, #B08020 0%, #D4AF37 50%, #C59B27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}

.intro-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.open-surprise-btn {
  width: 100%;
  padding: 16px 26px;
  background: linear-gradient(135deg, #D4AF37 0%, #E8B86D 50%, #C59B27 100%);
  background-size: 200% 200%;
  animation: gradientShift 3.5s ease infinite;
  color: #FFFDF9;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(201, 151, 44, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.open-surprise-btn:active {
  transform: scale(0.97);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.intro-hint {
  margin-top: 15px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FLOATING AUDIO CONTROLLER & QUICK ACTIONS (Ivory Glass)
   -------------------------------------------------------------------------- */
.floating-music-bar {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 151, 44, 0.28);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(140, 115, 90, 0.16);
  width: 90%;
  max-width: 400px;
  transition: transform 0.3s;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.music-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #C59B27);
  border: none;
  color: #FFFDF9;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 151, 44, 0.35);
  transition: transform 0.2s;
}

.music-play-btn:active {
  transform: scale(0.92);
}

.music-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.music-title {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text-heading);
}

.music-status {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
}

.wave-bar {
  width: 3px;
  height: 4px;
  background: var(--gold-1);
  border-radius: 2px;
  transition: height 0.2s;
}

.music-waves.playing .wave-bar:nth-child(1) { animation: wave 0.8s ease-in-out infinite alternate; }
.music-waves.playing .wave-bar:nth-child(2) { animation: wave 0.6s ease-in-out infinite alternate 0.2s; }
.music-waves.playing .wave-bar:nth-child(3) { animation: wave 0.9s ease-in-out infinite alternate 0.4s; }
.music-waves.playing .wave-bar:nth-child(4) { animation: wave 0.7s ease-in-out infinite alternate 0.1s; }

@keyframes wave {
  0% { height: 4px; }
  100% { height: 16px; }
}

.sfx-toggle-btn {
  background: rgba(245, 238, 228, 0.85);
  border: 1px solid rgba(201, 151, 44, 0.22);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.floating-quick-actions {
  position: fixed;
  bottom: calc(18px + var(--safe-bottom));
  right: 18px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(140, 115, 90, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-confetti {
  background: linear-gradient(135deg, #D4AF37, #E28296);
  box-shadow: 0 8px 24px rgba(201, 151, 44, 0.35);
  animation: gentlePulse 2.5s infinite;
}

.fab-top {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 151, 44, 0.25);
  color: var(--text-main);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
}

.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-btn:active {
  transform: scale(0.9);
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT & GENERAL SECTIONS
   -------------------------------------------------------------------------- */
.main-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 85px 18px 60px;
}

section {
  margin-bottom: 70px;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  text-align: center;
  padding: 20px 0 40px;
}

.hero-sparkle-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 151, 44, 0.25);
  border-radius: var(--radius-pill);
  color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(140, 115, 90, 0.06);
}

.pre-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1E150F 0%, #C9972C 50%, #946813 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(201, 151, 44, 0.22));
}

.hero-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-style: italic;
}

.bestie-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

@media (min-width: 480px) {
  .bestie-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 151, 44, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(140, 115, 90, 0.08);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 151, 44, 0.45);
  box-shadow: 0 12px 28px rgba(140, 115, 90, 0.14);
}

.stat-emoji {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-2);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.bounce-arrow {
  animation: bounce 1.8s infinite;
}

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

/* --------------------------------------------------------------------------
   SECTION 2: 3D INTERACTIVE BIRTHDAY CAKE & CANDLE (Cream & Vanilla Theme)
   -------------------------------------------------------------------------- */
.cake-section {
  text-align: center;
}

.cake-interactive-stage {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 151, 44, 0.22);
  border-radius: var(--radius-lg);
  padding: 40px 20px 32px;
  box-shadow: var(--glass-shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-container {
  position: relative;
  width: 220px;
  height: 200px;
  margin: 10px auto 35px;
  cursor: pointer;
}

.plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 16px;
  background: linear-gradient(180deg, #FFFFFF, #E6DEC8);
  border: 1px solid rgba(201, 151, 44, 0.35);
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(140, 115, 90, 0.25);
}

.cake-tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px 12px 6px 6px;
  box-shadow: inset 0 -8px 0 rgba(140, 115, 90, 0.1), 0 8px 16px rgba(140, 115, 90, 0.12);
}

.tier-bottom {
  bottom: 10px;
  width: 190px;
  height: 60px;
  background: linear-gradient(135deg, #EBD5BC, #D8BD9D);
}

.tier-middle {
  bottom: 65px;
  width: 145px;
  height: 52px;
  background: linear-gradient(135deg, #F9EADA, #EBD3BB);
}

.tier-top {
  bottom: 112px;
  width: 105px;
  height: 44px;
  background: linear-gradient(135deg, #FFFDF8, #F5EAE0);
}

.frosting-drops {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #FFFFFF;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 4px rgba(140, 115, 90, 0.1);
}

/* Candles & Animated Flames */
.candles-wrapper {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.candle {
  width: 8px;
  height: 28px;
  background: repeating-linear-gradient(45deg, #FFF, #FFF 4px, #D4AF37 4px, #D4AF37 8px);
  border-radius: 3px 3px 0 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(140, 115, 90, 0.15);
}

.flame {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 16px;
  background: radial-gradient(circle at 50% 80%, #FFF4B8 0%, #FFA834 60%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 10px #F59E0B);
  animation: flicker 1.2s ease-in-out infinite alternate;
  transition: opacity 0.3s, transform 0.3s;
}

.candle-2 .flame { animation-delay: 0.3s; }
.candle-3 .flame { animation-delay: 0.6s; }

.flame.extinguished {
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  50% { transform: translateX(-50%) scale(1.15) rotate(2deg); }
  100% { transform: translateX(-50%) scale(0.95) rotate(-1deg); }
}

.smoke {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(140, 115, 90, 0.4);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.smoke.active {
  animation: smokeRise 1.4s ease-out forwards;
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-80%, -30px) scale(3.5); }
}

.cake-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.glow-btn {
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #D4AF37 0%, #E8B86D 50%, #C59B27 100%);
  border: none;
  border-radius: var(--radius-pill);
  color: #FFFDF9;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 151, 44, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.glow-btn:active {
  transform: scale(0.96);
}

.sub-action-btn {
  background: rgba(245, 238, 228, 0.85);
  border: 1px solid rgba(201, 151, 44, 0.28);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-action-btn:hover {
  background: rgba(235, 225, 210, 0.95);
}

.wish-reveal-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 230, 0.95));
  border: 1.5px solid rgba(201, 151, 44, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(140, 115, 90, 0.12);
  animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.wish-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.wish-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   SECTION 3: POLAROID MEMORIES GALLERY (Cream & Studio White)
   -------------------------------------------------------------------------- */
.gallery-section {
  text-align: center;
}

.polaroid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 10px 4px;
}

@media (min-width: 480px) {
  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.polaroid-card {
  position: relative;
  background: #FFFFFF;
  padding: 14px 14px 20px;
  border-radius: 6px;
  border: 1px solid rgba(230, 220, 205, 0.7);
  box-shadow: 0 14px 34px rgba(140, 115, 90, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
  cursor: pointer;
  text-align: left;
}

.polaroid-card:hover,
.polaroid-card:active {
  transform: scale(1.03) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 22px 48px rgba(140, 115, 90, 0.24), 0 0 20px rgba(212, 175, 55, 0.3);
}

.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 24px;
  opacity: 0.9;
  box-shadow: 0 2px 5px rgba(140, 115, 90, 0.15);
  z-index: 2;
}

.tape-gold {
  background: rgba(247, 225, 155, 0.85);
  border-left: 2px dashed rgba(201, 151, 44, 0.7);
  border-right: 2px dashed rgba(201, 151, 44, 0.7);
}

.tape-pink {
  background: rgba(248, 210, 220, 0.85);
  border-left: 2px dashed rgba(226, 130, 150, 0.7);
  border-right: 2px dashed rgba(226, 130, 150, 0.7);
}

.tape-lavender {
  background: rgba(238, 226, 210, 0.85);
  border-left: 2px dashed rgba(180, 155, 130, 0.7);
  border-right: 2px dashed rgba(180, 155, 130, 0.7);
}

.polaroid-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  background: #F5EFEB;
  overflow: hidden;
  border-radius: 4px;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.polaroid-card:hover .polaroid-img-box img {
  transform: scale(1.06);
}

.polaroid-heart-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(140, 115, 90, 0.15);
}

.polaroid-caption {
  padding-top: 14px;
}

.polaroid-title {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.polaroid-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.polaroid-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   SECTION 4: INTERACTIVE FLIP CARDS ("Why You're #1")
   -------------------------------------------------------------------------- */
.reasons-section {
  text-align: center;
}

.flip-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .flip-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flip-card {
  perspective: 1000px;
  height: 190px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 151, 44, 0.22);
  box-shadow: 0 8px 22px rgba(140, 115, 90, 0.08);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.card-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.flip-card-back {
  background: linear-gradient(135deg, #FBF6EE, #F2E7D5);
  border: 1.5px solid rgba(201, 151, 44, 0.35);
  transform: rotateY(180deg);
  box-shadow: 0 12px 30px rgba(140, 115, 90, 0.15);
  text-align: center;
}

.back-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  background: rgba(201, 151, 44, 0.14);
  border: 1px solid rgba(201, 151, 44, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.flip-card-back h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.flip-card-back p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   SECTION 5: SECRET BESTIE LETTER (WAX SEAL ENVELOPE)
   -------------------------------------------------------------------------- */
.letter-section {
  text-align: center;
}

.envelope-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.envelope-wrapper {
  position: relative;
  width: 280px;
  height: 180px;
  background: linear-gradient(135deg, #FAF4EB, #E8DCBE);
  border: 1.5px solid rgba(201, 151, 44, 0.3);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(140, 115, 90, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.envelope-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 55px rgba(201, 151, 44, 0.25);
}

.envelope-front {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, #F3E7D3, #DFCBB0);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.wax-seal {
  position: relative;
  z-index: 5;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #E8B86D, #A07316);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(140, 115, 90, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealPulse 2.5s infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(201, 151, 44, 0.5); }
}

.seal-letter {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFDF9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.envelope-instruction {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   SECTION 6: COMPLIMENT / FORTUNE GENERATOR
   -------------------------------------------------------------------------- */
.generator-section {
  text-align: center;
}

.compliment-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 151, 44, 0.22);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  box-shadow: var(--glass-shadow-lg);
  overflow: hidden;
}

.quote-symbol {
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(201, 151, 44, 0.18);
  user-select: none;
}

.compliment-text {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: opacity 0.3s, transform 0.3s;
}

.compliment-counter {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.compliment-btn {
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   SECTION 7: SEND GIANT VIRTUAL HUG
   -------------------------------------------------------------------------- */
.hug-section {
  text-align: center;
}

.hug-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mega-hug-btn {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #D4AF37 0%, #E8B86D 45%, #E28296 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #FFFDF9;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(201, 151, 44, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.mega-hug-btn:active {
  transform: scale(0.96);
}

.hug-btn-emoji {
  font-size: 2.5rem;
}

.hug-btn-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hug-btn-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.hug-counter-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 151, 44, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(201, 151, 44, 0.2);
}

.footer-stars {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-msg {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-copy {
  font-size: 0.74rem;
  color: #A09588;
}

/* --------------------------------------------------------------------------
   MODALS: LIGHTBOX & SECRET LETTER
   -------------------------------------------------------------------------- */
.lightbox-modal,
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-backdrop,
.letter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 34, 25, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Lightbox Content */
.lightbox-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: #FAF7F2;
  border: 1px solid rgba(201, 151, 44, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(70, 50, 30, 0.35);
  animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.lightbox-close-btn,
.letter-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 151, 44, 0.3);
  color: var(--text-main);
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 55vh;
  background: #EFE8DE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 55vh;
  object-fit: contain;
}

.lightbox-details {
  padding: 18px 20px;
}

.lightbox-details h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.lightbox-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 151, 44, 0.18);
  padding-top: 12px;
}

.lightbox-arrow-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 151, 44, 0.28);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
}

.lightbox-counter {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Parchment Secret Letter Modal */
.letter-parchment {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 transparent;
  background: #FFFDF8;
  border: 2px solid #D4AF37;
  border-radius: var(--radius-md);
  padding: 34px 26px 30px;
  box-shadow: 0 25px 60px rgba(70, 50, 30, 0.35), inset 0 0 30px rgba(212, 175, 55, 0.12);
  color: #2C2219;
  animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.letter-parchment::-webkit-scrollbar {
  width: 6px;
}
.letter-parchment::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}

.letter-close-btn {
  background: rgba(245, 238, 228, 0.9);
  border-color: rgba(201, 151, 44, 0.3);
  color: var(--text-main);
}

.letter-header {
  margin-bottom: 18px;
}

.letter-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.letter-greeting {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-heading);
}

.letter-body {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #382C22;
  margin-bottom: 24px;
}

.letter-paragraph {
  margin-bottom: 14px;
}

.highlight-line {
  font-weight: 700;
  color: var(--gold-dark);
  border-left: 3px solid #D4AF37;
  padding-left: 10px;
}

.letter-signature {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signature-handwritten {
  font-family: var(--font-hand);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.letter-footer-action {
  text-align: center;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS & TOUCH REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .hero-name {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .stat-card {
    padding: 10px 6px;
  }
  .cake-container {
    width: 190px;
    height: 180px;
  }
}
