/* ==========================================================================
   DEBASMITA'S BIRTHDAY PALACE - MULTI-PAGE CELEBRATION
   Palette: Golden Sunset Gradient (#f0db4a -> #f7b733 -> #ff6f61)
   Base: Soft Cream (#fffaf0) | Text: Deep Warm Plum/Brown (#3a2e1f)
   ========================================================================== */

:root {
  /* Golden-Hour Sunset Gradient Palette */
  --color-gold: #f0db4a;
  --color-amber: #f7b733;
  --color-coral: #ff6f61;
  --color-rose: #f94144;
  --color-blush: #ffe8d6;

  /* Cohesive Gradients */
  --grad-sunset: linear-gradient(135deg, #f0db4a 0%, #f7b733 50%, #ff6f61 100%);
  --grad-sunset-soft: linear-gradient(135deg, rgba(240, 219, 74, 0.18) 0%, rgba(247, 183, 51, 0.14) 50%, rgba(255, 111, 97, 0.14) 100%);
  --grad-sunset-mesh: radial-gradient(at 0% 0%, #f0db4a 0px, transparent 50%),
                      radial-gradient(at 100% 0%, #ff6f61 0px, transparent 50%),
                      radial-gradient(at 50% 100%, #f7b733 0px, transparent 50%);
  --grad-sunset-vibrant: linear-gradient(90deg, #f0db4a, #f7b733, #ff6f61);

  /* High Contrast Deep Text & Neutrals */
  --color-text-main: #3a2e1f;       /* Deep warm brown/plum */
  --color-text-muted: #6e5e49;      /* Elegant secondary warm tone */
  --color-text-light: #ffffff;
  --color-bg-base: #fffaf0;         /* Soft warm cream base */
  --color-bg-card: rgba(255, 255, 255, 0.85);
  --color-bg-glass: rgba(255, 250, 240, 0.88);

  /* Borders & Shadows */
  --border-subtle: rgba(247, 183, 51, 0.28);
  --border-gold: rgba(240, 219, 74, 0.65);
  --shadow-sm: 0 4px 15px rgba(58, 46, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(58, 46, 31, 0.08);
  --shadow-sunset: 0 12px 35px rgba(247, 183, 51, 0.35);
  --shadow-coral: 0 12px 35px rgba(255, 111, 97, 0.35);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Smooth Fluid Animations */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.35s var(--ease-smooth);
}

/* ==========================================================================
   RESET & MOBILE-FIRST BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ensure padding on mobile so fixed bottom dock doesn't obscure content */
@media (max-width: 768px) {
  body {
    padding-bottom: 75px;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Canvas overlays for celebration confetti and sparkles */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ==========================================================================
   PAGE ENTRY & EXIT TRANSITIONS (BUTTERY SMOOTH)
   ========================================================================== */
.page-content-wrapper {
  animation: pageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-height: calc(100vh - 200px);
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.page-transition-exit {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  transition: opacity 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth) !important;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header-wrap {
  position: relative;
  z-index: 1000;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.site-nav.scrolled {
  padding: 10px 0;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .badge-bilei {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--grad-sunset);
  color: #fff;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(247, 183, 51, 0.3);
}

.nav-menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-coral);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--grad-sunset);
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-music-toggle {
  background: rgba(240, 219, 74, 0.2);
  border: 1px solid var(--border-gold);
  color: var(--color-text-main);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-music-toggle:hover {
  background: var(--color-gold);
  transform: scale(1.04);
}

.btn-music-toggle.playing {
  background: var(--grad-sunset);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(247, 183, 51, 0.4);
}

/* Music Toggle Container & Widgets */
.music-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drawer-music-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Equalizer Waveform Bars (GPU accelerated scaleY) */
.music-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: 14px;
  position: relative;
  vertical-align: middle;
}

.music-eq-bars .eq-bar {
  display: inline-block;
  width: 2.5px;
  height: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transform-origin: bottom center;
  transform: scaleY(0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.btn-music-toggle.playing .music-eq-bars .bar-1 {
  animation: eqScalePulse 0.55s ease-in-out infinite alternate;
  animation-delay: 0.05s;
}

.btn-music-toggle.playing .music-eq-bars .bar-2 {
  animation: eqScalePulse 0.8s ease-in-out infinite alternate;
  animation-delay: 0.2s;
}

.btn-music-toggle.playing .music-eq-bars .bar-3 {
  animation: eqScalePulse 0.45s ease-in-out infinite alternate;
  animation-delay: 0.1s;
}

.btn-music-toggle.playing .music-eq-bars .bar-4 {
  animation: eqScalePulse 0.7s ease-in-out infinite alternate;
  animation-delay: 0.25s;
}

@keyframes eqScalePulse {
  0% {
    transform: scaleY(0.2);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(0.95);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    opacity: 0.8;
  }
}

/* Now Playing Pill Badge */
.now-playing-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(240, 219, 74, 0.5);
  box-shadow: 0 2px 10px rgba(240, 219, 74, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-main);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 220px;
  white-space: nowrap;
}

.now-playing-pill.visible {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

.now-playing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: pulseGreenDot 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseGreenDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

.now-playing-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Drawer Now Playing Pill */
.drawer-pill {
  width: 100%;
  justify-content: center;
  max-width: none;
}

/* Soft Autoplay Fallback Prompt */
.music-resume-prompt {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 32, 21, 0.95);
  color: #fff;
  border: 1px solid rgba(240, 219, 74, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 15px rgba(240, 219, 74, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 22px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 10005;
  cursor: pointer;
  animation: resumePromptFloat 2.2s ease-in-out infinite alternate;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes resumePromptFloat {
  0% { transform: translate(-50%, 0); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
  100% { transform: translate(-50%, -5px); box-shadow: 0 12px 28px rgba(240, 219, 74, 0.35); }
}

.music-resume-prompt .prompt-icon {
  font-size: 1.1rem;
}

.music-resume-prompt .prompt-close {
  margin-left: 8px;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.music-resume-prompt .prompt-close:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .now-playing-pill:not(.drawer-pill) {
    display: none !important;
  }
}

/* Hamburger Toggle Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  background: rgba(240, 219, 74, 0.2);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px 8px;
  z-index: 1001;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: rgba(240, 219, 74, 0.35);
  transform: scale(1.05);
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background: var(--color-text-main);
  border-radius: 4px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth), background 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-coral);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-coral);
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
  .hamburger-btn {
    display: none;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================================================= */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(255, 250, 240, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 2px solid var(--border-gold);
  box-shadow: -10px 0 40px rgba(58, 46, 31, 0.2);
  z-index: 10002;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
}

.drawer-name {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-coral);
  line-height: 1.1;
}

.drawer-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-muted);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: #ffffff;
  color: var(--color-text-main);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: var(--color-coral);
  color: #fff;
  transform: rotate(90deg);
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(247, 183, 51, 0.18);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: var(--transition);
}

.drawer-link .drawer-icon {
  font-size: 1.25rem;
}

.drawer-link .drawer-arrow {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-amber);
  transition: transform 0.3s ease;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--grad-sunset);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sunset);
  transform: translateX(-4px);
}

.drawer-link:hover .drawer-arrow, .drawer-link.active .drawer-arrow {
  color: #fff;
  transform: translateX(3px);
}

.drawer-footer-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.drawer-dedication {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION DOCK (OPTIMIZED FOR 375px–768px)
   ========================================================================== */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -4px 20px rgba(58, 46, 31, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
}

@media (min-width: 769px) {
  .mobile-bottom-dock {
    display: none;
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
  min-width: 54px;
}

.dock-item .dock-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-bounce);
}

.dock-item:hover, .dock-item.active {
  color: var(--color-coral);
}

.dock-item.active {
  background: rgba(240, 219, 74, 0.25);
}

.dock-item.active .dock-icon {
  transform: translateY(-2px) scale(1.15);
}

/* ==========================================================================
   HERO SECTION (SUNSET GOLDEN HOUR MESH GRADIENT)
   ========================================================================== */
.hero-section {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 80px;
  background: linear-gradient(180deg, #fff7dc 0%, #fffaf0 100%);
  overflow: hidden;
}

/* Soft blurred decorative sunset orbs (GPU-accelerated with full 80px dreamy blur) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.65;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: layout style paint;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, var(--color-gold), transparent 70%);
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 15%;
  right: -100px;
  background: radial-gradient(circle, var(--color-coral), transparent 70%);
  animation-delay: -3s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  bottom: 0;
  left: 30%;
  background: radial-gradient(circle, var(--color-amber), transparent 70%);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(30px, 40px, 0) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
  box-shadow: 0 6px 20px rgba(247, 183, 51, 0.22);
  margin-bottom: 24px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-greeting {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 18px;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(240, 219, 74, 0.35));
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.35;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* Call-to-action buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary-sunset {
  background: var(--grad-sunset);
  color: var(--color-text-main);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sunset);
  transition: var(--transition);
}

.btn-primary-sunset:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(247, 183, 51, 0.45);
}

.btn-secondary-outline {
  background: #ffffff;
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary-outline:hover {
  background: rgba(240, 219, 74, 0.15);
  border-color: var(--color-coral);
  color: var(--color-coral);
  transform: translateY(-3px);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-wrapper {
  padding: 85px 0;
  position: relative;
}

.section-wrapper.alternate-bg {
  background: linear-gradient(180deg, #fff7dc 0%, #fffaf0 100%);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 50px;
}

.section-pill-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(240, 219, 74, 0.25);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-title span.text-gradient {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   CHAPTER CARDS GRID (LANDING PAGE PORTAL)
   ========================================================================== */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 45px;
}

@media (min-width: 768px) {
  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.chapter-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-sunset);
  opacity: 0.9;
}

.chapter-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sunset);
}

.chapter-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.chapter-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-coral);
  background: rgba(255, 111, 97, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
}

.chapter-icon-large {
  font-size: 2rem;
  line-height: 1;
}

.chapter-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.chapter-card-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.chapter-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-coral);
  transition: gap 0.3s ease;
}

.chapter-card:hover .chapter-card-cta {
  gap: 12px;
}

.journey-start-banner {
  background: var(--grad-sunset-soft);
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CHAPTER STEPPER NAVIGATION BAR (INNER PAGES)
   ========================================================================== */
.page-stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 50px;
  flex-wrap: wrap;
}

.stepper-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
}

.stepper-btn.prev {
  background: rgba(240, 219, 74, 0.15);
  color: var(--color-text-main);
  border: 1px solid var(--border-subtle);
}

.stepper-btn.prev:hover {
  background: var(--color-gold);
  transform: translateX(-4px);
}

.stepper-btn.next {
  background: var(--grad-sunset);
  color: var(--color-text-main);
  box-shadow: 0 4px 15px rgba(247, 183, 51, 0.35);
}

.stepper-btn.next:hover {
  transform: translateX(4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 111, 97, 0.45);
}

.stepper-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(58, 46, 31, 0.06);
  color: var(--color-text-muted);
}

.step-num.active {
  background: var(--grad-sunset);
  color: #fff;
  box-shadow: 0 2px 8px rgba(247, 183, 51, 0.5);
  transform: scale(1.1);
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-gold);
}

@media (max-width: 576px) {
  .page-stepper-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .stepper-btn {
    justify-content: center;
    width: 100%;
  }
  .stepper-counter {
    justify-content: center;
    order: -1;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   PHOTO GALLERY & MEMORIES GRID
   ========================================================================== */
.gallery-responsive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .gallery-responsive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-responsive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .gallery-memory-card {
    border-radius: 20px;
  }
  .gallery-caption-content {
    padding: 20px 18px;
  }
  .gallery-card-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }
  .gallery-card-desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .gallery-tag-pill {
    top: 14px;
    right: 14px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

@media (max-width: 480px) {
  .gallery-responsive-grid {
    gap: 20px;
  }
  .gallery-caption-content {
    padding: 18px 16px;
  }
  .gallery-card-title {
    font-size: 1.18rem;
    margin-bottom: 5px;
  }
  .gallery-card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.gallery-memory-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-memory-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sunset);
}

.gallery-media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #fff3c4;
}

.gallery-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.gallery-memory-card:hover .gallery-media-frame img {
  transform: scale(1.08);
}

.gallery-tag-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-coral);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.gallery-caption-content {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.gallery-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HEARTFELT LOVE LETTER SECTION
   ========================================================================== */
.letter-parchment-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--border-gold);
  border-radius: 28px;
  padding: 48px 36px;
  box-shadow: var(--shadow-sunset);
  position: relative;
}

.letter-parchment-card::before {
  content: '💌';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-bg-base);
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.letter-salutation {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 24px;
}

.letter-body-typeset {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--color-text-main);
}

.letter-body-typeset p {
  margin-bottom: 20px;
}

.letter-memory-quote {
  padding: 18px 22px;
  background: rgba(254, 240, 138, 0.35);
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 22px;
  line-height: 1.8;
}

.letter-highlight-line {
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--color-coral);
}

.letter-signature-block {
  margin-top: 36px;
  text-align: right;
}

.letter-sign-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.letter-sign-name {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-coral);
}

/* ==========================================================================
   PROGRESS INDICATOR PANEL ("REASONS I LOVE YOU")
   ========================================================================== */
.reasons-progress-panel {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 22px 26px;
  max-width: 880px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-sm);
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.progress-counter-badge {
  background: rgba(240, 219, 74, 0.28);
  border: 1px solid var(--border-gold);
  color: var(--color-coral);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.reasons-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(58, 46, 31, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.reasons-progress-bar {
  height: 100%;
  background: var(--grad-sunset);
  border-radius: 9999px;
  transition: width 0.45s var(--ease-smooth);
  box-shadow: 0 0 10px rgba(247, 183, 51, 0.6);
}

.progress-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.btn-quick-reveal {
  background: #fff;
  border: 1px dashed var(--border-gold);
  color: var(--color-coral);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-reveal:hover {
  background: var(--color-gold);
  color: var(--color-text-main);
  transform: scale(1.05);
}

/* ==========================================================================
   3D FLIP CARDS GRID (BULLETPROOF MOBILE & DESKTOP ARCHITECTURE)
   ========================================================================== */
.flip-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .flip-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .flip-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.flip-card-item {
  -webkit-perspective: 1200px;
  perspective: 1200px;
  cursor: pointer;
  height: 250px;
  min-height: 250px;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: 22px;
}

/* Tactile hover scale before flipping */
.flip-card-item:hover:not(.flipped) .flip-card-inner,
.flip-card-item:focus-visible:not(.flipped) .flip-card-inner {
  transform: translateY(-5px) scale(1.02);
}

/* Universal Face Base (Both Front and Back) */
.flip-card-face {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 22px;
  box-sizing: border-box;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.4s ease, 
              visibility 0.4s ease, 
              box-shadow 0.3s ease;
}

/* FRONT FACE (Default Visible State on Load: Number Badge + Heart + Tap hint)
   CRITICAL: z-index: 5, opacity: 1, visibility: visible on initial load */
.flip-card-front {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateY(0deg);
  background: rgba(255, 255, 255, 0.96);
  border: 2px dashed var(--border-gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
}

.flip-card-item:hover:not(.flipped) .flip-card-front {
  border-color: var(--color-coral);
  box-shadow: var(--shadow-sunset);
  background: #ffffff;
}

.flip-corner-sparkle {
  position: absolute;
  color: var(--color-amber);
  font-size: 0.9rem;
  opacity: 0.55;
  pointer-events: none;
}
.flip-corner-sparkle.top-left { top: 10px; left: 12px; }
.flip-corner-sparkle.bottom-right { bottom: 10px; right: 12px; }

.flip-front-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 219, 74, 0.25);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-coral);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(247, 183, 51, 0.2);
}

.flip-front-icon-wrap {
  margin-bottom: 12px;
}

.flip-front-icon {
  font-size: 2.1rem;
  line-height: 1;
  display: inline-block;
  animation: badgePulse 3s ease-in-out infinite;
}

.flip-front-hint {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* BACK FACE (Default Hidden State on Load: Reason text & Revealed pill)
   CRITICAL: z-index: 1, opacity: 0, visibility: hidden, pointer-events: none on initial load */
.flip-card-back {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(180deg);
  background: linear-gradient(150deg, #ffffff 0%, #fff7dc 100%);
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-sunset);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  padding: 22px 20px;
}

.flip-back-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.flip-back-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-coral);
  background: rgba(255, 111, 97, 0.12);
  padding: 3px 10px;
  border-radius: 9999px;
}

.flip-back-heart {
  font-size: 1rem;
}

.flip-card-title {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.flip-card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.flip-back-footer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.flip-revealed-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* FLIPPED STATE (Applied exclusively when card is tapped by user) */
.flip-card-item.flipped .flip-card-front {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(-180deg);
}

.flip-card-item.flipped .flip-card-back {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateY(0deg);
}

.flip-card-item.flipped:hover .flip-card-back,
.flip-card-item.flipped:focus-visible .flip-card-back {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 38px rgba(247, 183, 51, 0.45);
}

/* ==========================================================================
   SEQUENTIAL CARD STATES: LOCKED, NEXT-UP, SHAKE
   ========================================================================== */

/* Lock badge floating on front number circle */
.flip-front-lock-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(45, 34, 22, 0.88);
  border: 1px solid rgba(240, 219, 74, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* 1. Next-Up Active Inviting Card */
.flip-card-item.card-next-up {
  cursor: pointer;
}

.flip-card-item.card-next-up .flip-card-front {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.22), 0 8px 24px rgba(247, 183, 51, 0.3);
  animation: cardNextUpPulse 2.4s ease-in-out infinite;
}

@keyframes cardNextUpPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2), 0 6px 18px rgba(247, 183, 51, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 111, 97, 0.38), 0 10px 28px rgba(247, 183, 51, 0.45);
    border-color: #ff5647;
  }
}

.flip-card-item.card-next-up .flip-front-hint {
  color: var(--color-coral);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.flip-card-item.card-next-up .flip-front-icon {
  animation: badgePulse 1.8s ease-in-out infinite;
}

/* 2. Locked Cards Further Ahead */
.flip-card-item.card-locked {
  cursor: not-allowed;
  opacity: 0.65;
  filter: grayscale(15%);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.flip-card-item.card-locked:hover:not(.flipped) .flip-card-inner,
.flip-card-item.card-locked:focus-visible:not(.flipped) .flip-card-inner {
  transform: none !important;
}

.flip-card-item.card-locked .flip-card-front {
  border-style: solid;
  border-color: rgba(200, 185, 160, 0.45);
  background: rgba(252, 250, 246, 0.92);
  box-shadow: none;
}

.flip-card-item.card-locked .flip-front-num-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #8c765a;
  box-shadow: none;
}

.flip-card-item.card-locked .flip-front-lock-badge {
  display: flex;
}

.flip-card-item.card-locked .flip-front-icon {
  filter: grayscale(0.5);
  opacity: 0.55;
  animation: none;
}

.flip-card-item.card-locked .flip-front-hint {
  color: #9c8770;
  font-weight: 600;
}

/* 3. Soft Shake Animation on Locked Card Tap */
@keyframes gentleCardShake {
  0%, 100% {
    transform: translateX(0);
  }
  20%, 60% {
    transform: translateX(-6px) rotate(-0.8deg);
  }
  40%, 80% {
    transform: translateX(6px) rotate(0.8deg);
  }
}

.flip-card-item.shake {
  animation: gentleCardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}



/* ==========================================================================
   SCREEN-WIDE GOLDEN BLOOM CANVAS & CONSTELLATION OVERLAY
   ========================================================================== */
.golden-bloom-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.golden-bloom-canvas.active {
  opacity: 1;
}

.constellation-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.constellation-svg.active {
  opacity: 1;
}

.constellation-line {
  stroke: var(--color-gold);
  stroke-width: 2.2;
  stroke-dasharray: 6 4;
  filter: drop-shadow(0 0 10px rgba(240, 219, 74, 0.85));
  animation: constellationPulse 2s ease-in-out infinite alternate;
}

@keyframes constellationPulse {
  0% { stroke-opacity: 0.4; stroke-width: 1.6; }
  100% { stroke-opacity: 1; stroke-width: 3; }
}

/* ==========================================================================
   CINEMATIC GOLDEN BLOOM PAYOFF SHOWCASE
   ========================================================================== */
.golden-bloom-payoff {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 220, 0.98) 100%);
  border: 2px solid var(--border-gold);
  border-radius: 32px;
  padding: 55px 36px;
  text-align: center;
  max-width: 820px;
  margin: 50px auto 0;
  box-shadow: 0 20px 60px rgba(247, 183, 51, 0.35);
  display: none;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.golden-bloom-payoff.unlocked {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: bloomEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bloomEntry {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ambient Breathing Light Aura */
.bloom-light-pulse-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240, 219, 74, 0.25) 0%, rgba(247, 183, 51, 0.12) 40%, transparent 70%);
  pointer-events: none;
  animation: auraBreathe 4s ease-in-out infinite alternate;
}

@keyframes auraBreathe {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Audio Sync Beat Pulse (active while Montagem Meow is playing) */
.golden-bloom-payoff.music-playing .bloom-light-pulse-aura {
  animation: musicBeatPulse 1.2s ease-in-out infinite alternate;
}

@keyframes musicBeatPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    background: radial-gradient(circle, rgba(240, 219, 74, 0.22) 0%, rgba(255, 111, 97, 0.1) 45%, transparent 70%);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.22);
    background: radial-gradient(circle, rgba(240, 219, 74, 0.38) 0%, rgba(247, 183, 51, 0.22) 45%, transparent 70%);
  }
}

/* Music Widget (Gold Glassmorphism Audio Pill) */
.bloom-audio-widget {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.btn-bloom-music-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border-gold);
  border-radius: 9999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(247, 183, 51, 0.25);
  transition: var(--transition);
}

.btn-bloom-music-toggle:hover {
  background: var(--color-gold);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(247, 183, 51, 0.4);
}

.bloom-music-status {
  background: var(--grad-sunset);
  color: #fff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-bloom-music-toggle.muted .bloom-music-status {
  background: rgba(58, 46, 31, 0.2);
  color: var(--color-text-muted);
}

.bloom-payoff-content {
  position: relative;
  z-index: 2;
}

/* Animated Shimmering Name: Debasmita */
.bloom-shimmer-name {
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 10vw, 6.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.bloom-letter {
  display: inline-block;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(240, 219, 74, 0.45));
  opacity: 0;
  transform: translateY(24px) scale(0.85);
  animation: letterFloatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--letter-index, 0) * 0.08s + 0.3s);
}

@keyframes letterFloatIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bloom-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.25;
}

.bloom-subheadline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: var(--color-coral);
  margin-bottom: 20px;
  font-weight: 600;
}

.bloom-message {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.8;
}

.bloom-cta-btn {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.payoff-badge-pill {
  display: inline-block;
  padding: 6px 18px;
  background: var(--grad-sunset);
  color: var(--color-text-main);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(247, 183, 51, 0.4);
  margin-bottom: 12px;
}

.payoff-action-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   CLOSING GRAND BIRTHDAY WISH & CELEBRATION BUTTON
   ========================================================================== */
.closing-wish-box {
  background: var(--grad-sunset-soft);
  border: 2px solid var(--border-gold);
  border-radius: 32px;
  padding: 60px 24px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sunset);
  position: relative;
  overflow: hidden;
}

.closing-wish-heading {
  font-family: var(--font-script);
  font-size: clamp(3rem, 7vw, 4.8rem);
  color: var(--color-coral);
  margin-bottom: 16px;
}

.closing-wish-text {
  font-size: 1.18rem;
  color: var(--color-text-main);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn-celebrate-burst {
  background: var(--grad-sunset);
  color: var(--color-text-main);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 44px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(247, 183, 51, 0.45);
  transition: var(--transition);
}

.btn-celebrate-burst:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 45px rgba(255, 111, 97, 0.5);
}

.wish-extra-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-action-pill {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  color: var(--color-text-main);
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-action-pill:hover {
  background: rgba(240, 219, 74, 0.25);
  border-color: var(--color-coral);
  color: var(--color-coral);
  transform: translateY(-2px);
}

/* Floating celebration balloon animation */
.floating-balloon {
  position: fixed;
  bottom: -100px;
  width: 44px;
  height: 56px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpBalloon 5s ease-out forwards;
}

@keyframes floatUpBalloon {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-115vh) rotate(20deg); opacity: 0; }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-card-modal {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-sunset);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-bounce);
}

.lightbox-overlay.active .lightbox-card-modal {
  transform: scale(1);
}

.lightbox-img-frame {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

.lightbox-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  padding: 24px;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: var(--color-coral);
}

/* ==========================================================================
   TEASER COUNTDOWN HELPERS (USED IN TEASER.PHP)
   ========================================================================== */
.countdown-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.countdown-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 16px 12px;
  background: rgba(255, 247, 220, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
}

.countdown-digit {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.countdown-label-sub {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-coral);
  margin-top: 6px;
}

.countdown-sep-col {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-amber);
}

/* ==========================================================================
   SCROLL REVEAL OBSERVER CLASSES
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  will-change: transform, opacity;
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   AESTHETIC FOOTER & SIGNATURE
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 60px 0 45px;
  text-align: center;
  background: #fff7dc;
  border-top: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

.footer-divider-wrap {
  max-width: 680px;
  margin: 0 auto 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.footer-gradient-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-gold), var(--color-coral), var(--border-gold), transparent);
  border-radius: 9999px;
}

.footer-divider-sparkle {
  position: absolute;
  background: #fff7dc;
  padding: 2px 14px;
  font-size: 0.95rem;
  color: var(--color-coral);
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.footer-content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-quote-text {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.footer-heart-pulse {
  display: inline-block;
  animation: footerHeartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes footerHeartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.24); }
  28% { transform: scale(1); }
  42% { transform: scale(1.24); }
  70% { transform: scale(1); }
}

.footer-signature-line {
  width: 90px;
  height: 3px;
  background: var(--grad-sunset);
  border-radius: 9999px;
  margin: 8px auto 16px;
  box-shadow: 0 0 12px rgba(247, 183, 51, 0.6);
}

.footer-sub-note {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-sub-note strong {
  color: var(--color-text-main);
  font-weight: 700;
}

.footer-whisper-tag {
  font-size: 0.8rem;
  color: #a18e76;
  font-style: italic;
  margin-top: 4px;
}

/* Ambient Cursor Glow (Desktop only, never interferes with touch) */
.cursor-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 219, 74, 0.12) 0%, rgba(247, 183, 51, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-500px, -500px, 0) translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-ambient-glow.active {
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (375px, 576px, 768px, 1024px)
   ========================================================================== */
@media (max-width: 576px) {
  .hero-name {
    font-size: 3.4rem;
  }
  .hero-tagline {
    font-size: 1.25rem;
  }
  .letter-parchment-card {
    padding: 36px 20px;
  }
  .closing-wish-box {
    padding: 44px 18px;
  }
  .btn-primary-sunset, .btn-secondary-outline, .btn-celebrate-burst {
    width: 100%;
    justify-content: center;
  }

  /* Flip cards mobile sizing (375px - 430px) */
  .flip-card-item {
    height: 225px;
    min-height: 225px;
  }
  .flip-card-inner {
    height: 100%;
    min-height: 225px;
  }
  .flip-card-face {
    padding: 16px 12px;
  }
  .flip-front-num-badge {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  .flip-front-icon {
    font-size: 1.7rem;
    margin-bottom: 8px;
  }
  .flip-front-hint {
    font-size: 0.72rem;
  }
  .flip-card-title {
    font-size: 0.96rem;
    margin-bottom: 4px;
  }
  .flip-card-text {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .flip-back-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .reasons-progress-panel {
    padding: 18px 16px;
  }

  /* Golden Bloom Payoff Mobile adjustments */
  .golden-bloom-payoff {
    padding: 40px 18px 30px;
    border-radius: 24px;
  }
  .bloom-audio-widget {
    position: static;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }
  .bloom-headline {
    font-size: 1.75rem;
  }
  .bloom-subheadline {
    font-size: 1.2rem;
  }
  .bloom-message {
    font-size: 0.98rem;
  }
}
