/* =========================================================================
   ROMANTIC BIRTHDAY WEBSITE — STYLESHEET
   Palette: Black / Deep Purple / Pink / Rose Gold / White
   ========================================================================= */

:root {
  /* ---- Color tokens (also mirrored/overridable via CONFIG.colors in JS) ---- */
  --color-black:        #0a0710;
  --color-black-soft:   #120b1e;
  --color-purple-deep:  #2a1354;
  --color-purple:       #5a2d8f;
  --color-pink:         #ff5fa2;
  --color-pink-soft:    #ff9bc7;
  --color-rose-gold:    #d9a48c;
  --color-rose-gold-lt: #f0c9b8;
  --color-white:        #f8f2f6;

  --gradient-hero: radial-gradient(circle at 20% 20%, rgba(90,45,143,0.55), transparent 55%),
                    radial-gradient(circle at 80% 30%, rgba(255,95,162,0.35), transparent 50%),
                    radial-gradient(circle at 50% 90%, rgba(217,164,140,0.25), transparent 60%),
                    linear-gradient(180deg, var(--color-black) 0%, var(--color-black-soft) 100%);

  --gradient-accent: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 55%, var(--color-rose-gold) 100%);
  --gradient-gold:   linear-gradient(135deg, var(--color-rose-gold-lt), var(--color-rose-gold));

  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.14);
  --glass-blur: blur(16px);

  --font-body: 'Poppins', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --ease-soft: cubic-bezier(.22,.9,.24,1);
  --transition-med: 0.5s var(--ease-soft);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
.script-font { font-family: var(--font-script); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-rose-gold-lt);
  outline-offset: 3px;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--color-white);
  isolation: isolate;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.btn-primary {
  background: var(--gradient-accent);
  box-shadow: 0 8px 30px -8px rgba(255,95,162,0.55);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px -8px rgba(255,95,162,0.75); }
.btn-final {
  background: var(--gradient-gold);
  color: var(--color-black);
  padding: 1.1rem 3rem;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px -6px rgba(217,164,140,0.6);
}
.btn-final:hover { transform: translateY(-3px) scale(1.03); }

.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}
.ripple.rippling::after {
  animation: rippleFx 0.6s ease-out;
}
@keyframes rippleFx {
  0% { opacity: 0.6; transform: scale(0); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* =========================================================================
   CURSOR FX (desktop only)
   ========================================================================= */
.cursor-glow, .cursor-trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
    position: fixed; z-index: 9998; width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,95,162,0.16), transparent 70%);
    pointer-events: none;
    transform: translate(-50%,-50%);
    transition: opacity 0.3s;
    left: -999px; top: -999px;
  }
  .cursor-trail {
    display: block;
    position: fixed; z-index: 9999; width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-pink-soft);
    box-shadow: 0 0 12px 3px var(--color-pink);
    pointer-events: none;
    transform: translate(-50%,-50%);
    transition: transform 0.12s linear, opacity 0.4s;
    left: -999px; top: -999px;
  }
}

/* =========================================================================
   LOADING SCREEN
   ========================================================================= */
.loading-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  background: var(--gradient-hero);
  transition: opacity 0.8s var(--ease-soft), visibility 0.8s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-heart { width: 64px; height: 58px; }
.heart-svg { width: 100%; height: 100%; fill: var(--color-pink); filter: drop-shadow(0 0 16px rgba(255,95,162,0.7)); animation: heartbeat 1.1s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18); }
  50% { transform: scale(0.96); }
}
.loading-text { font-weight: 300; letter-spacing: 0.06em; color: var(--color-rose-gold-lt); font-size: 0.95rem; }
.loading-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loading-bar-fill { display: block; height: 100%; width: 0%; background: var(--gradient-accent); animation: loadFill 1.8s var(--ease-soft) forwards; }
@keyframes loadFill { to { width: 100%; } }

/* =========================================================================
   WELCOME SCREEN
   ========================================================================= */
.welcome-screen {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero);
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s;
  padding: 2rem;
}
.welcome-screen.visible { opacity: 1; visibility: visible; }
.welcome-screen.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,95,162,0.22), transparent 60%);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
.welcome-content { position: relative; z-index: 1; text-align: center; max-width: 520px; }
.welcome-eyebrow { color: var(--color-rose-gold-lt); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; opacity: 0.85; }
.welcome-title { font-size: clamp(2.6rem, 8vw, 4.4rem); color: var(--color-white); margin-bottom: 1rem; text-shadow: 0 0 30px rgba(255,95,162,0.4); }
.heart-emoji { color: var(--color-pink); }
.welcome-subtitle { font-size: 1.05rem; font-weight: 300; color: rgba(248,242,246,0.85); margin-bottom: 2.4rem; line-height: 1.6; }
.welcome-hint { margin-top: 1.2rem; font-size: 0.78rem; color: rgba(248,242,246,0.5); letter-spacing: 0.04em; }

/* =========================================================================
   MAIN SITE
   ========================================================================= */
.main-site { position: relative; opacity: 0; transition: opacity 1s var(--ease-soft); }
.main-site.revealed { opacity: 1; }

.fx-canvas { position: fixed; inset: 0; z-index: 9997; pointer-events: none; width: 100%; height: 100%; }
.floating-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.section { position: relative; padding: 7rem 1.5rem; max-width: 1180px; margin: 0 auto; }
.section-title {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 500; margin-bottom: 3rem;
  color: var(--color-white);
}
.title-eyebrow {
  order: -1;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-pink-soft); margin-bottom: 0.7rem; font-weight: 600;
}
.section-hint { text-align: center; color: rgba(248,242,246,0.5); font-size: 0.85rem; margin: -2rem 0 2.4rem; }

/* Scroll-reveal utility */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================================
   MUSIC PLAYER
   ========================================================================= */
.music-player {
  position: fixed; top: 1.4rem; right: 1.4rem; z-index: 200;
  display: flex; align-items: center; gap: 0.6rem;
}
.music-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-pink-soft); font-size: 1.1rem;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s;
}
.music-btn:hover { transform: scale(1.08); box-shadow: 0 0 20px rgba(255,95,162,0.4); }
.music-btn.playing .music-icon { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-panel {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 100px; padding: 0.5rem 0.9rem;
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.music-player:hover .music-panel, .music-player:focus-within .music-panel { opacity: 1; transform: translateX(0); pointer-events: auto; }
.music-mini-btn { font-size: 0.9rem; color: var(--color-white); }
#volume-slider { width: 80px; accent-color: var(--color-pink); }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 199; background: rgba(255,255,255,0.06); }
#scroll-progress-fill { display: block; height: 100%; width: 0%; background: var(--gradient-accent); transition: width 0.1s linear; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding-top: 6rem;
}
.hero-bg-gradient {
  position: absolute; inset: -10%;
  background: var(--gradient-hero);
  background-size: 200% 200%;
  animation: gradientShift 18s ease-in-out infinite;
  z-index: 0;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
  opacity: 0.6;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}
.balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.balloon {
  position: absolute; bottom: -20%; width: 46px; height: 58px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  animation: balloonRise linear infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
}
.balloon::after {
  content: ''; position: absolute; bottom: -14px; left: 50%; width: 1px; height: 40px;
  background: rgba(255,255,255,0.25); transform: translateX(-50%);
}
@keyframes balloonRise {
  0% { transform: translateY(0) translateX(0) rotate(-3deg); }
  50% { transform: translateY(-60vh) translateX(20px) rotate(3deg); }
  100% { transform: translateY(-125vh) translateX(-10px) rotate(-3deg); }
}

.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero-date { color: var(--color-rose-gold-lt); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.2rem; opacity: 0.85; }
.hero-title { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.2rem; }
.hero-title-script { font-size: clamp(3.2rem, 10vw, 6.2rem); color: var(--color-white); text-shadow: 0 0 40px rgba(255,95,162,0.5); line-height: 1; }
.hero-title-name {
  font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 600; letter-spacing: 0.02em;
  background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { max-width: 560px; margin: 0 auto 2.6rem; font-size: 1.05rem; font-weight: 300; line-height: 1.7; color: rgba(248,242,246,0.85); }

.couple-photo-frame {
  position: relative; width: 220px; height: 220px; margin: 0 auto 2.6rem; border-radius: 50%;
  padding: 5px; background: var(--gradient-accent);
}
.couple-photo-glow { position: absolute; inset: -14px; border-radius: 50%; background: var(--gradient-accent); filter: blur(22px); opacity: 0.55; z-index: -1; animation: pulseGlow 5s ease-in-out infinite; }
.couple-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--color-black-soft); }
.couple-photo:not([src]), .couple-photo[src=""] { opacity: 0; }
.photo-fallback {
  position: absolute; inset: 5px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  background: linear-gradient(160deg, var(--color-purple-deep), var(--color-black-soft));
  color: var(--color-rose-gold-lt);
}
.couple-photo-frame.has-photo .photo-fallback { display: none; }
.photo-fallback-icon { font-size: 1.8rem; opacity: 0.7; }
.photo-fallback-text { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.7; }

.scroll-cue { position: absolute; bottom: -3.5rem; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 2px solid rgba(248,242,246,0.4); border-radius: 12px; display: none; }
@media (min-width: 640px) { .scroll-cue { display: block; } }
.scroll-cue span { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--color-pink-soft); animation: scrollCue 1.6s ease-in-out infinite; }
@keyframes scrollCue { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

/* =========================================================================
   TIMELINE (Our Story)
   ========================================================================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 2rem; width: 2px; background: linear-gradient(180deg, var(--color-purple), var(--color-pink), var(--color-rose-gold)); opacity: 0.5; }
.timeline-item { position: relative; padding: 0 0 3rem 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -0.35rem; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--gradient-accent); box-shadow: 0 0 14px rgba(255,95,162,0.6); }
.timeline-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px; padding: 1.4rem; display: flex; gap: 1.2rem; align-items: flex-start;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s;
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -12px rgba(90,45,143,0.5); }
.timeline-photo {
  flex-shrink: 0; width: 76px; height: 76px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--color-purple-deep), var(--color-purple));
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-body .timeline-date { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-rose-gold-lt); }
.timeline-body .timeline-title { font-size: 1.1rem; font-weight: 600; margin: 0.3rem 0 0.4rem; color: var(--color-white); }
.timeline-body .timeline-desc { font-size: 0.9rem; line-height: 1.6; color: rgba(248,242,246,0.75); font-weight: 300; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/5; background: linear-gradient(160deg, var(--color-purple-deep), var(--color-black-soft));
}
.gallery-item:nth-child(3n+2) { aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-soft); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; color: var(--color-rose-gold-lt); }
.gallery-item.has-photo .gallery-fallback { display: none; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(10,7,16,0.9));
  font-size: 0.8rem; color: var(--color-white); opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(6,4,10,0.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  padding: 2rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: min(90vw, 700px); max-height: 70vh; border-radius: 12px; object-fit: contain; }
.lightbox-caption { margin-top: 1rem; color: var(--color-rose-gold-lt); font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 1.8rem; color: var(--color-white); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--color-white); padding: 0.8rem; opacity: 0.7; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 0.8rem; }
.lightbox-next { right: 0.8rem; }

/* =========================================================================
   FLIP CARDS (Reasons I Love You)
   ========================================================================= */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.flip-card { perspective: 1000px; height: 170px; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%; transition: transform 0.6s var(--ease-soft); transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner, .flip-card:hover .flip-card-inner, .flip-card:focus-visible .flip-card-inner { transform: rotateY(180deg); }
.flip-card-face {
  position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  border: 1px solid var(--glass-border);
}
.flip-card-front { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); flex-direction: column; gap: 0.5rem; }
.flip-card-front .flip-num { font-size: 0.72rem; color: var(--color-rose-gold-lt); letter-spacing: 0.1em; }
.flip-card-front .flip-icon { font-size: 1.6rem; }
.flip-card-back { background: var(--gradient-accent); transform: rotateY(180deg); font-size: 0.88rem; font-weight: 500; color: var(--color-white); }

/* =========================================================================
   LOVE LETTER
   ========================================================================= */
.letter-section { display: flex; flex-direction: column; align-items: center; }
.envelope-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.envelope {
  position: relative; width: min(88vw, 380px); height: 250px; cursor: pointer;
}
.envelope-back {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, var(--color-purple-deep), var(--color-black-soft));
  box-shadow: 0 20px 50px -14px rgba(0,0,0,0.6);
}
.envelope-letter {
  position: absolute; left: 6%; right: 6%; top: 8%; height: 84%;
  background: linear-gradient(180deg, #fbf6f2, #f3e6df);
  color: #241227; border-radius: 6px; padding: 1.6rem 1.4rem;
  overflow-y: auto;
  transform: translateY(0%);
  transition: transform 0.9s var(--ease-soft);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.letter-text { font-size: 0.86rem; line-height: 1.8; font-weight: 400; white-space: pre-wrap; min-height: 3em; }
.letter-signature { margin-top: 1rem; font-family: var(--font-script); font-size: 1.3rem; color: var(--color-purple); }
.envelope-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(160deg, var(--color-purple), var(--color-purple-deep));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; transform: rotateX(0deg);
  transition: transform 0.7s var(--ease-soft);
  z-index: 3; border-radius: 10px 10px 0 0;
}
.envelope-seal {
  position: absolute; top: 44%; left: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%);
  z-index: 4; transition: opacity 0.4s, transform 0.4s;
}
.envelope-seal svg { width: 100%; height: 100%; fill: var(--color-pink); filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4)); }

.envelope.open .envelope-flap { transform: rotateX(-165deg); z-index: 0; }
.envelope.open .envelope-seal { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
.envelope.open .envelope-letter { transform: translateY(-46%); z-index: 2; }
.envelope-hint { font-size: 0.78rem; color: rgba(248,242,246,0.5); }

/* =========================================================================
   BIRTHDAY WISHES
   ========================================================================= */
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.wish-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px; padding: 1.6rem; position: relative; overflow: hidden;
}
.wish-card::before { content: '\275D'; position: absolute; top: -8px; left: 12px; font-size: 3rem; color: var(--color-pink); opacity: 0.25; font-family: Georgia, serif; }
.wish-text { font-size: 0.92rem; line-height: 1.7; font-weight: 300; position: relative; z-index: 1; }

/* =========================================================================
   INTERACTIVE CAKE
   ========================================================================= */
.cake-section { display: flex; flex-direction: column; align-items: center; }
.cake-stage { width: 100%; max-width: 340px; height: 340px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 2rem; position: relative; }
.cake { position: relative; width: 230px; }
.cake-plate { width: 230px; height: 14px; border-radius: 50%; background: var(--gradient-gold); box-shadow: 0 8px 24px rgba(217,164,140,0.4); }
.cake-layer { border-radius: 10px 10px 4px 4px; margin: 0 auto; box-shadow: inset 0 -8px 14px rgba(0,0,0,0.2); }
.cake-layer-bottom { width: 210px; height: 60px; background: linear-gradient(160deg, var(--color-purple), var(--color-purple-deep)); margin-top: -6px; }
.cake-layer-mid { width: 170px; height: 50px; background: linear-gradient(160deg, var(--color-pink), var(--color-purple)); margin-top: -4px; }
.cake-layer-top { width: 130px; height: 42px; background: linear-gradient(160deg, var(--color-rose-gold-lt), var(--color-rose-gold)); margin-top: -4px; }
.candles { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
.candle { width: 6px; height: 40px; background: linear-gradient(180deg, #fff, var(--color-rose-gold-lt)); border-radius: 2px; position: relative; }
.flame { position: absolute; top: -16px; left: 50%; width: 10px; height: 16px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(circle at 50% 70%, #fff5c2, #ffb347 60%, #ff5f5f); box-shadow: 0 0 12px 3px rgba(255,170,60,0.7); animation: flicker 0.4s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes flicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); } 100% { transform: translateX(-50%) scale(1.08) rotate(2deg); } }
.candle.blown .flame { opacity: 0; transition: opacity 0.3s; }
.candle.blown::after { content: ''; position: absolute; top: -18px; left: 50%; width: 3px; height: 10px; background: rgba(200,200,200,0.5); transform: translateX(-50%); filter: blur(2px); animation: smoke 1.6s ease-out forwards; }
@keyframes smoke { 0% { opacity: 0.6; transform: translate(-50%,0) scale(1); } 100% { opacity: 0; transform: translate(-30%,-30px) scale(2.2); } }
.cake-hint { color: rgba(248,242,246,0.6); font-size: 0.85rem; margin-top: 1.2rem; transition: color 0.4s; }
.cake-hint.granted { color: var(--color-rose-gold-lt); }

/* =========================================================================
   FUTURE DREAMS
   ========================================================================= */
.dreams-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.2rem; }
.dream-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 18px; padding: 1.6rem; text-align: center;
  transition: transform 0.4s var(--ease-soft);
}
.dream-card:hover { transform: translateY(-6px); }
.dream-icon { font-size: 1.6rem; margin-bottom: 0.7rem; display: block; }
.dream-title { font-weight: 600; margin-bottom: 0.4rem; font-size: 1rem; }
.dream-desc { font-size: 0.85rem; color: rgba(248,242,246,0.7); line-height: 1.6; font-weight: 300; }

/* =========================================================================
   FINAL SURPRISE
   ========================================================================= */
.final-section { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.final-glow { position: absolute; inset: -20%; background: radial-gradient(circle at 50% 50%, rgba(255,95,162,0.25), transparent 60%); animation: pulseGlow 5s ease-in-out infinite; z-index: 0; }
.final-heading { position: relative; z-index: 1; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 300; margin-bottom: 2.2rem; }
.final-message { position: relative; z-index: 1; margin-top: 2.6rem; opacity: 0; transform: scale(0.85); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.final-message.shown { opacity: 1; transform: scale(1); }
.final-message-text { font-size: clamp(2rem, 6vw, 3.4rem); background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(217,164,140,0.4); }
.final-section.glowing { animation: screenGlow 2.4s ease-in-out; }
@keyframes screenGlow { 0%,100% { background-color: transparent; } 50% { background-color: rgba(255,95,162,0.08); } }

/* Rose petals / heart rain for final surprise */
.rose-petal, .heart-rain-item {
  position: fixed; top: -40px; z-index: 9996; pointer-events: none; will-change: transform;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { text-align: center; padding: 3.5rem 1.5rem 3rem; position: relative; z-index: 1; }
.footer-line { font-size: 1.8rem; color: var(--color-rose-gold-lt); margin-bottom: 0.4rem; }
.footer-line-small { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,242,246,0.5); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
  .section { padding: 4.5rem 1.1rem; }
  .timeline { padding-left: 1.2rem; }
  .timeline::before { left: 1.2rem; }
  .timeline-item { padding-left: 1.8rem; }
  .timeline-card { flex-direction: column; }
  .music-player { top: 0.9rem; right: 0.9rem; }
  .envelope { height: 220px; }
}

.final-message-text {
    margin-bottom: 30px;
    line-height: 1.6;
}

.final-ring-message {
    margin-bottom: 20px;
    line-height: 1.6;
}

.final-flowers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 3.5rem;
    line-height: 1;
    margin: 10px 0 35px;
}

.final-proposal {
    margin-top: 0;
    line-height: 1.4;
}







/* =========================================================
   GALLERY IMAGE + VIDEO SUPPORT
   ========================================================= */

.gallery-media-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* Video thumbnail */

.gallery-item video.gallery-media {
    pointer-events: none;
}


/* Video inside lightbox */

.lightbox-video {
    display: none;
    width: 100%;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
}


/* Existing lightbox image */

#lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}


/* Mobile */

@media (max-width: 600px) {

    .lightbox-video,
    #lightbox-img {
        max-height: 65vh;
    }

}