/* ══════════════════════════════════════════════
   M10 — Romantic Background  (style.css)
   ══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  cursor: default;
  background: #0d0008;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CUSTOM CURSOR GLOW ── */
#cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,100,170,0.10) 0%, rgba(255,62,138,0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease;
  opacity: 0;
  will-change: left, top;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* ── HERO SECTION WRAPPER ── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  contain: size layout;
}

/* ── HERO → CONTENT SMOOTH GRADIENT BLEND ── */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent 0%, #0d0008 100%);
  pointer-events: none;
  z-index: 15;
}

/* ── BACKGROUND ── */
#bg {
  position: absolute; inset: 0;
  will-change: filter;
  transform: translateZ(0);
  backface-visibility: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 20% 30%, #ff6eb4 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 80% 70%, #ff3d8a 0%, transparent 55%),
    linear-gradient(135deg, #ff9ece 0%, #ff5fa0 30%, #e8006b 65%, #9b0040 100%);
  animation: bgShift 18s cubic-bezier(0.45,0,0.55,1) infinite alternate;
  contain: strict;
}

@keyframes bgShift {
  0%   { filter: hue-rotate(0deg)  brightness(1);    }
  50%  { filter: hue-rotate(14deg) brightness(1.08); }
  100% { filter: hue-rotate(-8deg) brightness(0.94); }
}

/* ── BLOB LAYER ── */
#blobs {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.5;
  contain: layout style;
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: blobFloat ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes blobFloat {
  0%   { transform: translate(0px, 0px)              scale(1);    }
  25%  { transform: translate(var(--dx1),var(--dy1)) scale(1.06); }
  50%  { transform: translate(var(--dx2),var(--dy2)) scale(0.96); }
  75%  { transform: translate(var(--dx3),var(--dy3)) scale(1.04); }
  100% { transform: translate(var(--dx4),var(--dy4)) scale(0.98); }
}

/* ── SHIMMER ── */
#shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 38%,
    rgba(255,255,255,0.055) 50%,
    transparent 62%);
  background-size: 250% 250%;
  animation: shimmerMove 12s cubic-bezier(0.4,0,0.6,1) infinite;
  pointer-events: none;
}

@keyframes shimmerMove {
  0%   { background-position: 220% 10%;  }
  50%  { background-position: -220% 90%; }
  100% { background-position: 220% 10%;  }
}

/* ── PARALLAX WRAPPER ── */
#parallax {
  position: absolute; inset: -80px;
  pointer-events: none;
}

/* ── CANVAS ── */
#canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  will-change: contents;
  transform: translateZ(0);
}

/* ── VIGNETTE ── */
#vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(70,0,25,0.55) 100%);
  pointer-events: none;
}

/* ── BREATHING PULSE ── */
#pulse {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,175,215,0.28), transparent 68%);
  pointer-events: none;
  opacity: 0;
  animation: breathe 5s cubic-bezier(0.45,0,0.55,1) infinite;
}

@keyframes breathe {
  0%   { opacity: 0;   transform: scale(1);    }
  45%  { opacity: 0.9; transform: scale(1.04); }
  55%  { opacity: 1;   transform: scale(1.06); }
  100% { opacity: 0;   transform: scale(1);    }
}

/* ── RIPPLE ── */
.ripple {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.38) 0%,
    rgba(255,140,195,0.18) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 100;
  transform: scale(0);
  opacity: 1;
  animation: rippleOut 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes rippleOut {
  0%   { transform: scale(0); opacity: 1;   }
  70%  { opacity: 0.5; }
  100% { transform: scale(1); opacity: 0;   }
}

/* ── BLOOM ── */
.bloom {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,238,0.32) 0%, transparent 68%);
  pointer-events: none;
  z-index: 99;
  transform: scale(0);
  opacity: 1;
  animation: bloomOut 2s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes bloomOut {
  0%   { transform: scale(0); opacity: 1;   }
  60%  { opacity: 0.6; }
  100% { transform: scale(1); opacity: 0;   }
}

/* ── SPLINE VIEWER ── */
spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: auto;
  transform: translateY(-6vh);
  contain: strict;
}

/* ── ANNIVERSARY TEXT ── */
#anniversary-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  margin: 0;
  padding: 0 16px;
  width: max-content;
  max-width: 95vw;
  white-space: normal;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 7rem);
  font-weight: bold;
  letter-spacing: 0.08em;
  background: linear-gradient(110deg,
    #ffffff  0%,
    #ffd6ec 15%,
    #ff9ece 30%,
    #ffffff  45%,
    #ffb3d9 60%,
    #ff6ba8 78%,
    #ff3d8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(120, 0, 50, 0.4);
  filter:
    drop-shadow(0 4px 0   rgba(100,0,40,0.7))
    drop-shadow(0 0  30px rgba(255,80,160,0.5));
  pointer-events: none;
  animation: annivGlow 3s ease-in-out infinite alternate;
}

#anniversary-text span {
  display: block;
  line-height: 1.02;
}

@keyframes annivGlow {
  0%   { filter: drop-shadow(0 4px 0 rgba(100,0,40,0.7))  drop-shadow(0 0 20px rgba(255,80,160,0.4));  }
  100% { filter: drop-shadow(0 4px 0 rgba(100,0,40,0.75)) drop-shadow(0 0 48px rgba(255,80,160,0.85)); }
}

/* ── BUILT BY HARYX BADGE ── */
#for-you-wrapper {
  position: absolute;
  bottom: 68px;
  right: 16px;
  z-index: 9999;
}

#haryx-badge {
  position: relative;
  padding: 15px 25px;
  background: linear-gradient(135deg, rgba(255,62,138,0.85), rgba(192,0,95,0.92));
  border: 1px solid rgba(255,180,220,0.35);
  border-radius: 25px;
  color: #fff;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(255,60,140,0.35),
    0 0 0 0 rgba(255,110,180,0);
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.4s ease,
    letter-spacing 0.4s ease;
  animation: badgePulse 3s ease-in-out infinite;
}

#haryx-badge .heart-icon {
  display: inline-block;
  margin-right: 12px;
  font-style: normal;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.25); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.18); }
  60%      { transform: scale(1); }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow:
      0 4px 24px rgba(255,60,140,0.35),
      0 0 0 0 rgba(255,110,180,0.4);
  }
  50% {
    box-shadow:
      0 4px 28px rgba(255,60,140,0.5),
      0 0 0 8px rgba(255,110,180,0);
  }
}

#haryx-badge:hover {
  transform: scale(1.06) translateY(-2px);
  letter-spacing: 1.6px;
  background: linear-gradient(135deg, rgba(255,100,170,0.95), rgba(230,0,107,0.95));
  box-shadow:
    0 8px 36px rgba(255,60,140,0.55),
    0 0 20px rgba(255,140,200,0.4),
    inset 0 0 18px rgba(255,200,230,0.15);
  animation: none;
}

#haryx-badge:hover .heart-icon {
  animation: heartBeat 0.9s ease-in-out infinite;
}

@keyframes heartSpin {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.4) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

#haryx-badge::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,180,220,0.5), transparent, rgba(255,100,170,0.5));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#haryx-badge:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   LOADING SCREEN
   ══════════════════════════════════════════════ */

/* ── BLUR OVERLAY ──
   Sits above all background layers, blurs everything
   behind it; fades away once Spline has loaded.      */
#blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(13, 0, 8, 0.98);
  opacity: 1;
  pointer-events: all;
}

/* ── LOADER PANEL ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  opacity: 1;
}

/* ── LOADER TEXT ── */
.loader-text {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow:
    0 2px 14px rgba(255, 80, 160, 0.85),
    0 0  44px rgba(255, 80, 160, 0.45);
}

/* ── ANIMATED HEART DOTS ── */
.loader-hearts {
  display: flex;
  gap: 16px;
  align-items: center;
}

.loader-hearts span {
  font-size: 1.8rem;
  color: #ff6aaa;
  display: inline-block;
  line-height: 1;
  animation: loaderHeartBounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 60, 140, 0.75));
}

.loader-hearts span:nth-child(1) { animation-delay: 0s;    }
.loader-hearts span:nth-child(2) { animation-delay: 0.18s; }
.loader-hearts span:nth-child(3) { animation-delay: 0.36s; }
.loader-hearts span:nth-child(4) { animation-delay: 0.54s; }
.loader-hearts span:nth-child(5) { animation-delay: 0.72s; }

@keyframes loaderHeartBounce {
  0%, 75%, 100% { transform: translateY(0)     scale(1);    opacity: 0.55; }
  40%            { transform: translateY(-13px) scale(1.32); opacity: 1;    }
}

/* ── HIDE PAGE CONTENT WHILE LOADING ──
   Instantly hide (transition:none) so nothing flashes
   through before the loader appears.                  */
body.loading spline-viewer,
body.loading #anniversary-text,
body.loading #haryx-badge,
body.loading #canvas,
body.loading #music-controls,
body.loading #scroll-progress,
body.loading #scroll-hint,
body.loading #cursor-glow {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── FADE IN PAGE CONTENT AFTER LOAD ──
   When body.loading is removed, these elements animate
   to full opacity using the transition declared here.  */
spline-viewer,
#anniversary-text,
#haryx-badge,
#canvas,
#music-controls,
#scroll-hint {
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ══════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, #ff3d8a, #ff9ece, #ffffff, #ff9ece, #ff6eb4);
  box-shadow: 0 0 14px rgba(255,62,138,0.5), 0 0 40px rgba(255,62,138,0.2);
  z-index: 99999;
  transition: width 0.15s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════════
   SCROLL HINT (hero bottom)
   ══════════════════════════════════════════════ */
#scroll-hint {
  position: absolute;
  bottom: 50%;
  right: 18px;
  left: auto;
  transform: translateY(50%);
  z-index: 25;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: hintFade 3s ease-in-out infinite;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#scroll-hint .scroll-arrow {
  font-size: 1rem;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

/* ══════════════════════════════════════════════
   SHARED SECTION & TYPOGRAPHY STYLES
   ══════════════════════════════════════════════ */
.content-section {
  position: relative;
  width: 100%;
  padding: 120px 24px;
  background: linear-gradient(180deg, #0d0008, #1a0012, #0d0008);
  overflow: hidden;
  /* 3D perspective for child elements */
  perspective: 1200px;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,110,180,0.3), transparent);
}

/* Subtle ambient glow behind each section */
.content-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(255,62,138,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(255,80,160,0.35), 0 2px 20px rgba(255,62,138,0.2);
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-family: 'Lora', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,200,225,0.6);
  text-align: center;
  margin-bottom: 56px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ── Scroll reveal animation — 3D depth ── */
.reveal {
  opacity: 0;
  transform: translateY(50px) translateZ(0) scale(0.97);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0) scale(1);
}


/* (Our Story timeline removed) */


/* ══════════════════════════════════════════════
   2. LOVE LETTER
   ══════════════════════════════════════════════ */
#love-letter {
  background: linear-gradient(180deg, #0d0008, #160010, #0d0008);
  padding-top: 80px;
  padding-bottom: 60px;
}

.letter-wrapper {
  max-width: 560px;
  margin: 0 auto;
  perspective: 800px;
}

.letter-envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  max-height: 320px;
  background: linear-gradient(135deg, #2a0018, #3a0022);
  border: 1px solid rgba(255,110,180,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.6s, opacity 0.6s;
  box-shadow: 0 8px 40px rgba(255,62,138,0.1), 0 0 80px rgba(255,62,138,0.05);
}

.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(135deg, #4a0028, #5a0032);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid rgba(255,110,180,0.2);
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
  transform-origin: top center;
  z-index: 2;
}

.letter-envelope.opened .envelope-flap {
  transform: rotateX(180deg);
}

.letter-envelope.opened {
  transform: translateY(-30px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transition: transform 0.6s, opacity 0.6s, max-height 0.6s 0.3s, margin 0.6s 0.3s;
}

#open-letter-btn {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #ffb3d9;
  background: rgba(255,62,138,0.15);
  border: 1px solid rgba(255,110,180,0.3);
  border-radius: 30px;
  padding: 14px 32px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

#open-letter-btn:hover {
  background: rgba(255,62,138,0.3);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,62,138,0.3);
}

.letter-paper {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fffaf5, #fff3ec);
  border-radius: 12px;
  padding: 0 40px;
  max-height: 0;
  overflow: hidden;
  box-shadow:
    0 12px 50px rgba(0,0,0,0.35),
    0 0 80px rgba(255,62,138,0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.95) rotateX(4deg);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1), max-height 1s cubic-bezier(0.16,1,0.3,1), padding 1s cubic-bezier(0.16,1,0.3,1), margin 1s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  position: relative;
}

.letter-paper.visible {
  opacity: 1;
  max-height: 800px;
  padding: 44px 40px;
  margin-top: 20px;
  overflow: visible;
  transform: translateY(0) scale(1) rotateX(0deg);
  pointer-events: auto;
}

.letter-text p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: #4a2030;
  line-height: 1.85;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.6s;
}

.letter-text p.typed {
  opacity: 1;
}

.letter-greeting {
  font-family: 'Dancing Script', cursive !important;
  font-size: 1.4rem !important;
  color: #9b0040 !important;
}

.letter-closing {
  font-family: 'Dancing Script', cursive !important;
  font-size: 1.2rem !important;
  color: #9b0040 !important;
  margin-top: 24px !important;
}


/* ══════════════════════════════════════════════
   3. DISTANCE MAP
   ══════════════════════════════════════════════ */
#distance-section {
  background: linear-gradient(180deg, #0d0008, #120010, #0d0008);
  padding-top: 80px;
}

.distance-map {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#connection-map {
  width: 100%;
  height: auto;
}

.city-dot {
  filter: drop-shadow(0 0 8px #ff6eb4);
}

.city-pulse {
  animation: cityPulse 2s ease-in-out infinite;
}

.city-dot-1 + .city-pulse { animation-delay: 0s; }
.city-dot-2 + .city-pulse { animation-delay: 1s; }

@keyframes cityPulse {
  0% { r: 6; opacity: 1; }
  100% { r: 24; opacity: 0; }
}

.connection-line {
  stroke-dashoffset: 0;
  animation: dashFlow 3s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

.city-label {
  font-family: 'Lora', serif;
  font-size: 13px;
  fill: rgba(255,200,225,0.8);
  letter-spacing: 1px;
}

.distance-quote {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #ffb3d9;
  margin-top: 40px;
  text-shadow: 0 0 20px rgba(255,80,160,0.3);
  font-style: italic;
}


/* (Countdown timer removed) */


/* ══════════════════════════════════════════════
   5. WHY I LOVE YOU
   ══════════════════════════════════════════════ */
#why-love-section {
  background: linear-gradient(180deg, #0d0008, #140010, #0d0008);
}

.why-love-wrapper {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.love-reason {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: #ffb3d9;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  text-shadow: 0 0 20px rgba(255,80,160,0.3);
  transition: opacity 0.5s;
}

.love-reason.fading {
  opacity: 0;
}

.romantic-btn {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,62,138,0.65), rgba(192,0,95,0.75));
  border: 1px solid rgba(255,180,220,0.25);
  border-radius: 30px;
  padding: 16px 36px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, background 0.3s;
  box-shadow: 0 4px 24px rgba(255,62,138,0.25), 0 0 60px rgba(255,62,138,0.08);
}

.romantic-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 36px rgba(255,62,138,0.45), 0 0 80px rgba(255,62,138,0.15);
  background: linear-gradient(135deg, rgba(255,100,170,0.85), rgba(230,0,107,0.9));
}


/* ══════════════════════════════════════════════
   6. MEMORY GALLERY — POLAROID
   ══════════════════════════════════════════════ */
#gallery-section {
  background: linear-gradient(180deg, #0d0008, #150010, #0d0008);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.polaroid {
  background: #fff;
  padding: 12px 12px 40px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 40px rgba(255,62,138,0.06);
  cursor: pointer;
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05) translateY(-6px) translateZ(0) !important;
  box-shadow: 0 14px 40px rgba(255,62,138,0.3), 0 0 50px rgba(255,62,138,0.1);
  z-index: 5;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,200,220,0.2);
  border-radius: 2px;
}

.polaroid-label {
  font-family: 'Dancing Script', cursive;
  font-size: 0.95rem;
  color: #4a2030;
  text-align: center;
  margin-top: 10px;
}

/* Gallery Modal — Phone-style full-screen photo viewer */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}



#modal-img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.modal-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-top: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.modal-date {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 6px;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 2.2rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s, background 0.2s;
  z-index: 20;
}

.modal-close:hover {
  transform: scale(1.15);
  background: rgba(255,62,138,0.5);
}


/* ══════════════════════════════════════════════
   7. FOR YOU POPOVER
   ══════════════════════════════════════════════ */
#easter-egg-message {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 280px;
  background: rgba(20,0,12,0.97);
  border: 1px solid rgba(255,110,180,0.35);
  border-radius: 20px;
  padding: 22px 20px 18px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 60px rgba(255,62,138,0.3),
    0 8px 40px rgba(0,0,0,0.7),
    inset 0 0 20px rgba(255,62,138,0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.45s cubic-bezier(0.16,1,0.3,1),
    transform 0.45s cubic-bezier(0.16,1,0.3,1);
  z-index: 1;
}

/* caret arrow pointing down to the button */
#easter-egg-message::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 26px;
  width: 14px;
  height: 14px;
  background: rgba(20,0,12,0.97);
  border-right: 1px solid rgba(255,110,180,0.35);
  border-bottom: 1px solid rgba(255,110,180,0.35);
  transform: rotate(45deg);
}

#easter-egg-message.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#easter-egg-message p {
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  color: #ffb3d9;
  line-height: 1.75;
  text-shadow: 0 0 18px rgba(255,80,160,0.4);
  margin: 0 0 14px;
}

#easter-egg-close {
  display: inline-block;
  padding: 7px 22px;
  background: rgba(255,62,138,0.12);
  border: 1px solid rgba(255,110,180,0.35);
  border-radius: 20px;
  color: rgba(255,180,220,0.85);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

#easter-egg-close:hover {
  background: rgba(255,62,138,0.28);
  color: #ffb3d9;
  border-color: rgba(255,110,180,0.65);
}


/* ══════════════════════════════════════════════
   8. MUSIC CONTROLS
   ══════════════════════════════════════════════ */
#music-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
}

#music-restart {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,110,180,0.3);
  background: rgba(255,62,138,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,200,225,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.4s;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateZ(0);
}

#music-restart.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#music-restart:hover {
  background: rgba(255,62,138,0.25);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,62,138,0.3);
}

#music-restart:active {
  transform: scale(0.92);
}

#music-restart.visible:hover {
  color: rgba(255,200,225,0.9);
}

#music-toggle {
  position: relative;
  z-index: 9998;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,110,180,0.3);
  background: rgba(255,62,138,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,200,225,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  transform: translateZ(0);
}

#music-toggle:hover {
  background: rgba(255,62,138,0.25);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,62,138,0.3);
}

#music-toggle.playing {
  background: rgba(255,62,138,0.3);
  box-shadow: 0 0 16px rgba(255,62,138,0.4);
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,62,138,0.4); }
  50% { box-shadow: 0 0 28px rgba(255,62,138,0.65), 0 0 56px rgba(255,62,138,0.2); }
}


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  padding: 60px 24px !important;
  text-align: center;
}

.site-footer p {
  font-family: 'Lora', serif;
  color: rgba(255,200,225,0.5);
  font-size: 0.9rem;
}

.footer-year {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem !important;
  color: rgba(255,180,210,0.4) !important;
  margin-top: 8px;
}

.farewell-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem !important;
  color: rgba(255,180,220,0.7) !important;
  margin-top: 24px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .content-section {
    padding: 80px 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .letter-paper {
    padding: 28px 20px;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ══════════════════════════════════════════════
   3D DEPTH & PARALLAX ENHANCEMENTS
   ══════════════════════════════════════════════ */

/* Floating particle layer behind sections */
.content-section > .section-title,
.content-section > .section-subtitle {
  transform-style: preserve-3d;
}

/* Depth hover on interactive cards */
.letter-envelope,
.why-love-wrapper,
.distance-map {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.letter-envelope:hover {
  transform: translateZ(10px) scale(1.01);
}

/* Smooth scroll offset for anchored sections */
.content-section {
  scroll-margin-top: 20px;
}

/* Stagger children reveals with increasing delay */
.content-section .reveal:nth-child(1) { transition-delay: 0s; }
.content-section .reveal:nth-child(2) { transition-delay: 0.12s; }
.content-section .reveal:nth-child(3) { transition-delay: 0.24s; }
.content-section .reveal:nth-child(4) { transition-delay: 0.36s; }

/* Ambient floating particles (pseudo) */
#love-letter::after,
#distance-section::after,
#why-love-section::after,
#gallery-section::after {
  content: '';
  position: absolute;
  top: 20%; left: 10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,110,180,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: ambientFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.15); }
  100% { transform: translate(-15px, 10px) scale(0.9); }
}

/* ══════════════════════════════════════════════
   SECTION DIVIDERS
   ══════════════════════════════════════════════ */
.section-divider {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0008;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,110,180,0.3), transparent);
}

.divider-heart {
  color: rgba(255,110,180,0.4);
  font-size: 0.9rem;
  margin: 0 16px;
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* ══════════════════════════════════════════════
   SMOOTH MICRO-INTERACTIONS & POLISH
   ══════════════════════════════════════════════ */

/* Smooth focus outlines for accessibility */
button:focus-visible {
  outline: 2px solid rgba(255,110,180,0.6);
  outline-offset: 3px;
}

/* Subtle text selection color */
::selection {
  background: rgba(255,62,138,0.35);
  color: #fff;
}

/* Improved section title shimmer */
.section-title {
  background: linear-gradient(110deg, #ffb3d9 0%, #fff 25%, #ffb3d9 50%, #fff 75%, #ffb3d9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Soft glow on romantic-btn */
.romantic-btn {
  position: relative;
  overflow: hidden;
}

.romantic-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.romantic-btn:hover::after {
  opacity: 1;
}

/* Polaroid tilt micro-interaction — GPU-accelerated */
.polaroid-img {
  will-change: transform;
  transform: translateZ(0);
}



/* Letter paper subtle texture */
.letter-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(200,180,170,0.08) 28px,
    rgba(200,180,170,0.08) 29px
  );
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

/* Fade-in whole page on load — only after loading screen */
body.loaded {
  animation: pageReveal 1s ease-out;
}

@keyframes pageReveal {
  from { opacity: 0.85; }
  to { opacity: 1; }
}
