/* ===================================================================
   SAMADHI'S 22ND BIRTHDAY - CALM ROMANTIC DESIGN SYSTEM
   Aesthetic: Soft Rose, Warm Champagne, Candlelight Glow & Frosted Glass
   =================================================================== */

:root {
  /* Color Palette - Calm Romantic Mood */
  --bg-primary: #181118;
  --bg-secondary: #221724;
  --bg-card: rgba(43, 27, 45, 0.65);
  --bg-card-hover: rgba(58, 36, 61, 0.85);
  --border-glass: rgba(232, 180, 184, 0.18);
  --border-glass-bright: rgba(232, 180, 184, 0.4);

  /* Romantic Accents */
  --rose-soft: #f4c7cb;
  --rose-primary: #e8a5ab;
  --rose-deep: #b86271;
  --champagne: #fae4cb;
  --champagne-gold: #e2b97f;
  --candle-glow: #ffd699;
  --lavender-mist: #d8c4e8;
  --wine-dark: #381528;
  
  /* Text */
  --text-main: #fcf7f8;
  --text-muted: #d5b8c6;
  --text-dim: #9c7b8c;
  --accent-glow: rgba(232, 165, 171, 0.35);

  /* Shadows */
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(232, 165, 171, 0.25);
  --shadow-card: 0 15px 35px rgba(18, 9, 20, 0.45);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light / Romantic Daylight Palette */
[data-theme="light"] {
  --bg-primary: #fbf5f4;
  --bg-secondary: #f4e8e7;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(184, 98, 113, 0.15);
  --border-glass-bright: rgba(184, 98, 113, 0.35);

  --rose-soft: #a84d5c;
  --rose-primary: #b86271;
  --rose-deep: #8a3443;
  --champagne: #6d5032;
  --champagne-gold: #b3803e;
  --candle-glow: #e69138;
  --lavender-mist: #725986;
  --wine-dark: #4a1f34;

  --text-main: #331925;
  --text-muted: #6f4c5e;
  --text-dim: #9e7a8c;
  --accent-glow: rgba(184, 98, 113, 0.2);

  --shadow-soft: 0 10px 30px -10px rgba(110, 60, 75, 0.12);
  --shadow-glow: 0 0 25px rgba(184, 98, 113, 0.15);
  --shadow-card: 0 15px 35px rgba(110, 60, 75, 0.08);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
  position: relative;
}

/* Background Animated Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Subtle Vignette & Glow Overlay */
.ambient-glow-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--rose-primary) 0%, transparent 70%);
  top: -80px;
  right: -50px;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--champagne-gold) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-duration: 24s;
}

.glow-orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--lavender-mist) 0%, transparent 70%);
  top: 45%;
  right: 10%;
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Main Container */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Floating Controls (Theme, Music, Wish) */
.floating-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.control-btn:hover {
  background: var(--border-glass);
  transform: translateY(-2px);
  color: var(--rose-soft);
}

.control-btn.active {
  color: var(--champagne-gold);
}

.control-btn .tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--border-glass);
}

.control-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Music Disc Rotation */
.music-btn.playing svg {
  animation: spinSlow 5s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1rem 3rem;
  position: relative;
}

.birthday-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne-gold);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--rose-primary);
  box-shadow: 0 0 8px var(--rose-primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title-greeting {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--rose-soft);
  margin-bottom: -0.4rem;
  text-shadow: 0 0 20px var(--accent-glow);
  animation: fadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title-name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 10%, var(--rose-soft) 55%, var(--champagne-gold) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 18px rgba(232, 165, 171, 0.3));
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

[data-theme="light"] .hero-title-name {
  background: linear-gradient(135deg, #2b111e 10%, #a8455c 60%, #b37936 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-weight: 300;
  animation: fadeInUp 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-portrait-container {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 2.2rem;
  animation: zoomIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@media (min-width: 640px) {
  .hero-portrait-container {
    width: 280px;
    height: 280px;
  }
}

.hero-portrait-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--rose-primary), var(--champagne-gold), var(--lavender-mist));
  box-shadow: 0 0 35px var(--accent-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.hero-portrait-frame:hover {
  transform: scale(1.04);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-portrait-badge {
  position: absolute;
  bottom: 0px;
  right: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-bright);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--champagne-gold);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Countdown Bar */
.countdown-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose-soft);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 2px;
}

.countdown-divider {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--border-glass-bright);
  align-self: center;
  margin-top: -6px;
}

/* Action CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--rose-deep), #8b3c52);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(184, 98, 113, 0.35);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(184, 98, 113, 0.5);
  background: linear-gradient(135deg, #c76f7f, #9b465d);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-main);
  border: 1px solid var(--border-glass-bright);
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--rose-soft);
  transform: translateY(-3px);
  border-color: var(--rose-primary);
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.content-section {
  padding: 4.5rem 0 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--champagne-gold);
  margin-bottom: 0.2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--rose-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ===================================================================
   INTERACTIVE BIRTHDAY LETTER / WAX SEAL
   =================================================================== */
.letter-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.envelope-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.envelope-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-primary), var(--champagne-gold), var(--rose-deep));
}

.envelope-decor-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.15;
}

.envelope-decor-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--rose-soft);
  border-left: 2px solid var(--rose-soft);
}

.envelope-decor-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--rose-soft);
  border-right: 2px solid var(--rose-soft);
}

.wax-seal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.wax-seal {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d95368, #8c2637);
  box-shadow: 0 8px 20px rgba(140, 38, 55, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
}

.wax-seal:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 25px rgba(140, 38, 55, 0.65);
}

.wax-seal-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.seal-hint {
  font-size: 0.8rem;
  color: var(--champagne-gold);
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.letter-content {
  position: relative;
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.85;
  font-size: 1.05rem;
}

.letter-salutation {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--rose-soft);
  margin-bottom: 1rem;
}

.letter-body p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.letter-body .sinhala-text {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--champagne);
  line-height: 1.9;
  background: rgba(232, 180, 184, 0.06);
  padding: 1.2rem;
  border-left: 3px solid var(--rose-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4rem 0;
}

.letter-closing {
  margin-top: 2rem;
  text-align: right;
}

.letter-signoff {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.letter-signature {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--rose-soft);
  margin-top: 0.2rem;
}

/* ===================================================================
   MEMORIES & MOMENTS PHOTO GALLERY
   =================================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rose-primary);
  color: #fff;
  border-color: var(--rose-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 165, 171, 0.3);
}

/* Modern Masonry Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.4rem;
}

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

@media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Polaroid Card Style */
.photo-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  border-color: var(--border-glass-bright);
}

.photo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.15);
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 10, 22, 0.8) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.photo-zoom-icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(24, 17, 24, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.photo-card:hover .photo-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.photo-info {
  padding: 0.9rem 0.3rem 0.3rem;
  display: flex;
  flex-direction: column;
}

.photo-date {
  font-size: 0.72rem;
  color: var(--champagne-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.photo-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.photo-tag {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  font-style: italic;
}

/* ===================================================================
   22 REASONS & WISHES (INTERACTIVE CAROUSEL / CARDS)
   =================================================================== */
.wishes-carousel-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.wish-card-display {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: var(--transition-smooth);
}

.wish-number-badge {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--champagne-gold);
  background: rgba(226, 185, 127, 0.15);
  border: 1px solid rgba(226, 185, 127, 0.3);
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.wish-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  color: var(--rose-soft);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.wish-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

.wishes-nav-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.nav-arrow-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-arrow-btn:hover {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  color: #fff;
  transform: scale(1.08);
}

.wish-counter-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===================================================================
   INTERACTIVE BIRTHDAY CAKE & CANDLE BLOW
   =================================================================== */
.cake-section-wrap {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.cake-stage {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.cake-visual {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
}

/* Cake SVG Elements & Flame Animation */
.flame {
  transform-origin: center bottom;
  animation: flicker 1.2s infinite ease-in-out alternate;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
  50% { transform: scale(1.12, 0.92) rotate(2deg); opacity: 1; filter: drop-shadow(0 0 10px #ffb74d); }
  100% { transform: scale(0.95, 1.05) rotate(-2deg); opacity: 0.9; }
}

.flame.blown-out {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.2) !important;
}

.smoke {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.smoke.active {
  animation: riseSmoke 2s ease-out forwards;
}

@keyframes riseSmoke {
  0% { opacity: 0.8; transform: translateY(0) scale(1); }
  50% { opacity: 0.5; transform: translateY(-18px) scale(1.4); }
  100% { opacity: 0; transform: translateY(-35px) scale(2); }
}

.cake-instructions {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cake-instructions span {
  color: var(--champagne-gold);
  font-weight: 600;
}

.blow-candle-btn {
  background: linear-gradient(135deg, var(--champagne-gold), #b87b28);
  color: #2b1604;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(226, 185, 127, 0.35);
  transition: var(--transition-smooth);
}

.blow-candle-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(226, 185, 127, 0.5);
}

.wish-granted-banner {
  display: none;
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: rgba(232, 165, 171, 0.15);
  border: 1px solid var(--rose-primary);
  border-radius: var(--radius-md);
  animation: zoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wish-granted-banner.show {
  display: block;
}

.wish-granted-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--rose-soft);
  margin-bottom: 0.3rem;
}

.wish-granted-desc {
  font-size: 0.95rem;
  color: var(--champagne);
}

/* ===================================================================
   FLOATING HEARTS SHOWER / CONFETTI
   =================================================================== */
.floating-heart-el {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.5rem;
  user-select: none;
  animation: floatHeartUp 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes floatHeartUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-200px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-450px) scale(1) rotate(-20deg);
  }
}

/* ===================================================================
   LIGHTBOX MODAL FOR MEMORIES
   =================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrapper {
  max-height: 72vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-main);
}

.lightbox-caption-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rose-soft);
}

.lightbox-caption-sub {
  font-size: 0.85rem;
  color: var(--champagne-gold);
  margin-top: 2px;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close-btn:hover {
  color: var(--rose-soft);
  transform: scale(1.15);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -20px;
}

.lightbox-next {
  right: -20px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-close-btn { top: -40px; right: 5px; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  text-align: center;
  padding: 4rem 1rem 2rem;
  position: relative;
  border-top: 1px solid var(--border-glass);
  margin-top: 4rem;
}

.footer-heart {
  color: var(--rose-primary);
  display: inline-block;
  animation: pulseHeart 1.5s infinite ease-in-out;
}

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

.footer-script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--rose-soft);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ===================================================================
   KEYFRAMES & UTILITY
   =================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 0 1rem 3rem;
  }
  .envelope-card {
    padding: 2rem 1.25rem;
  }
  .countdown-box {
    gap: 0.4rem;
    padding: 0.75rem 1rem;
  }
  .countdown-unit {
    min-width: 44px;
  }
  .countdown-value {
    font-size: 1.35rem;
  }
  .floating-nav {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  .control-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}
