/* ============================================================
   ELIAN & ÉRIKA — VALENTINE'S DAY PREMIUM CSS
   A modern, animated, glassmorphic romantic experience
   ============================================================ */

/* ==============================================
   CSS CUSTOM PROPERTIES
   ============================================== */
:root {
  /* ── Primary Palette ── */
  --clr-hot-pink: #ff2d75;
  --clr-magenta: #ff006e;
  --clr-electric-pink: #ff3c8e;
  --clr-soft-pink: #ff6b9d;
  --clr-blush: #ffd6e7;
  --clr-rose: #e8507a;

  /* ── Secondary Palette ── */
  --clr-violet: #8b5cf6;
  --clr-purple: #a855f7;
  --clr-deep-purple: #7c3aed;
  --clr-lavender: #c4b5fd;

  /* ── Accent ── */
  --clr-gold: #ffd700;
  --clr-amber: #f59e0b;
  --clr-gold-soft: #ffe066;

  /* ── Background Depths ── */
  --bg-abyss: #0a0015;
  --bg-deep: #1a0030;
  --bg-void: #0d001a;
  --bg-midnight: #150025;
  --bg-dark-rose: #1f0020;

  /* ── Text ── */
  --text-white: #ffffff;
  --text-soft-pink: #ffd6e7;
  --text-lavender: #d8ccf0;
  --text-muted: rgba(255, 214, 231, 0.6);

  /* ── Glass ── */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 45, 117, 0.4);
  --glass-blur: 20px;
  --glass-blur-heavy: 30px;

  /* ── Spacing ── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-round: 50%;
  --radius-pill: 999px;

  /* ── Shadows ── */
  --shadow-glow-pink: 0 0 30px rgba(255, 45, 117, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 20px 60px rgba(255, 45, 117, 0.2);

  /* ── Transitions ── */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-spring);

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-script: 'Dancing Script', cursive;

  /* ── Animated border angle (for @property) ── */
  --border-angle: 0deg;
}

/* @property for animated border angles */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

/* ── Gradient Background Shift ── */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── Neon Pulse for Names ── */
@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 7px rgba(255, 45, 117, 0.8),
      0 0 20px rgba(255, 45, 117, 0.6),
      0 0 42px rgba(255, 45, 117, 0.4),
      0 0 80px rgba(255, 45, 117, 0.2);
  }
  50% {
    text-shadow:
      0 0 10px rgba(255, 45, 117, 1),
      0 0 30px rgba(255, 45, 117, 0.8),
      0 0 60px rgba(255, 45, 117, 0.6),
      0 0 100px rgba(255, 45, 117, 0.4),
      0 0 140px rgba(255, 45, 117, 0.2);
  }
}

@keyframes neonPulseViolet {
  0%, 100% {
    text-shadow:
      0 0 7px rgba(139, 92, 246, 0.8),
      0 0 20px rgba(139, 92, 246, 0.6),
      0 0 42px rgba(139, 92, 246, 0.4),
      0 0 80px rgba(139, 92, 246, 0.2);
  }
  50% {
    text-shadow:
      0 0 10px rgba(139, 92, 246, 1),
      0 0 30px rgba(139, 92, 246, 0.8),
      0 0 60px rgba(139, 92, 246, 0.6),
      0 0 100px rgba(139, 92, 246, 0.4),
      0 0 140px rgba(139, 92, 246, 0.2);
  }
}

/* ── Float Up (Hearts) ── */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(720deg) scale(1.2);
  }
}

/* ── Petal Fall ── */
@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-10vh) translateX(0) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(50vh) translateX(var(--sway, 50px)) rotate(180deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) translateX(calc(var(--sway, 50px) * -0.5)) rotate(360deg) scale(0.6);
  }
}

/* ── Heartbeat Pulse ── */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(1);
  }
}

/* ── Fade In Up ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Fade In Left ── */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── Fade In Right ── */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── Shimmer ── */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ── Border Rotate ── */
@keyframes borderRotate {
  0% {
    --border-angle: 0deg;
  }
  100% {
    --border-angle: 360deg;
  }
}

/* ── Music Pulse ── */
@keyframes musicPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 117, 0.7);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 45, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 117, 0);
  }
}

/* ── Sparkle Away (for JS) ── */
@keyframes sparkleAway {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 30px), var(--ty, -30px)) scale(0);
  }
}

/* ── Bob Up Down ── */
@keyframes bobUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ── Heart Float ── */
@keyframes heartFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
    opacity: 0.85;
  }
  75% {
    transform: translateY(-25px) rotate(4deg);
    opacity: 0.95;
  }
}

/* ── Card Glow ── */
@keyframes cardGlow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 45, 117, 0.1),
      0 8px 32px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 40px rgba(255, 45, 117, 0.25),
      0 0 60px rgba(139, 92, 246, 0.15),
      0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ── Pulse Ring ── */
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ── Scroll Bounce ── */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

/* ── Rotate In ── */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* ── Twinkle ── */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ── Sway ── */
@keyframes sway {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

/* ── Glow Expand ── */
@keyframes glowExpand {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 45, 117, 0.3));
  }
  50% {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 45, 117, 0.6));
  }
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-white);
  background: linear-gradient(
    135deg,
    var(--bg-abyss) 0%,
    var(--bg-deep) 20%,
    var(--bg-void) 40%,
    var(--bg-midnight) 60%,
    var(--bg-dark-rose) 80%,
    var(--bg-abyss) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

/* ── Selection ── */
::selection {
  background: rgba(255, 45, 117, 0.4);
  color: var(--text-white);
}

::-moz-selection {
  background: rgba(255, 45, 117, 0.4);
  color: var(--text-white);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-abyss);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clr-hot-pink), var(--clr-violet));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-abyss);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--clr-magenta), var(--clr-deep-purple));
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--clr-hot-pink) var(--bg-abyss);
}

/* ── Links ── */
a {
  color: var(--clr-soft-pink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-hot-pink);
}

img,
video {
  max-width: 100%;
  display: block;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(10, 0, 21, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 999;
  transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.85rem 2rem;
  background: rgba(10, 0, 21, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 45, 117, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.05em;
  cursor: pointer;
}

.nav-heart {
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px var(--clr-hot-pink));
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-lavender);
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-hot-pink), var(--clr-violet));
  transition: width var(--transition-normal);
  border-radius: var(--radius-pill);
}

.nav-links a:hover {
  color: var(--clr-hot-pink);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .navbar.scrolled {
    padding: 0.8rem 1.5rem;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
  .nav-brand {
    font-size: 1.3rem;
  }
}

/* ============================================================
   FLOATING HEARTS BACKGROUND
   ============================================================ */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ============================================================
   CANVAS PARTICLE BACKGROUND
   ============================================================ */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  color: var(--clr-hot-pink);
  opacity: 0;
  animation: floatUp linear infinite;
  filter: blur(1px);
  will-change: transform, opacity;
}

.floating-heart::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 8px rgba(255, 45, 117, 0.5));
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 45, 117, 0.1) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 40%, rgba(255, 214, 231, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(196, 181, 253, 0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(255, 45, 117, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 0, 21, 0.4) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-lg);
  max-width: 900px;
}

/* ── Hero Date ── */
.hero-date {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-lavender);
  margin-bottom: var(--space-md);
  opacity: 0.85;
  text-shadow: 0 0 15px rgba(196, 181, 253, 0.4);
}

/* ── Hero Title ── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.name {
  display: inline-block;
  position: relative;
}

.name-elian {
  color: var(--clr-violet);
  animation: neonPulseViolet 3s ease-in-out infinite;
}

.name-erika {
  color: var(--clr-hot-pink);
  animation: neonPulse 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.ampersand {
  display: inline-block;
  font-family: var(--font-script);
  color: var(--clr-gold);
  font-size: 0.7em;
  margin: 0 0.3em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
  animation: sway 3s ease-in-out infinite;
}

/* ── Hero Subtitle ── */
.hero-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-soft-pink);
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 20px rgba(255, 214, 231, 0.3);
  letter-spacing: 0.03em;
}

/* ── Hero Heart ── */
.hero-heart {
  font-size: 3rem;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255, 45, 117, 0.6));
}

.pulse-heart {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ── Scroll Indicator ── */
.scroll-indicator-container {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.scroll-indicator {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--clr-hot-pink);
}

/* ── Hero Petals ── */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  background: radial-gradient(ellipse, var(--clr-soft-pink) 0%, var(--clr-hot-pink) 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petalFall linear infinite;
  filter: blur(0.5px);
}

/* ============================================================
   FADE IN / REVEAL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s var(--ease-spring) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-spring);
}

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

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 45, 117, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ── Section Titles ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clr-hot-pink), var(--clr-violet), var(--clr-soft-pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  position: relative;
}

.section-title.light {
  background: linear-gradient(135deg, var(--text-white), var(--clr-blush), var(--text-white));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  text-shadow: none;
}

.title-icon {
  display: inline-block;
  margin: 0 0.2em;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 45, 117, 0.5));
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-align: center;
  color: var(--text-soft-pink);
  margin-bottom: var(--space-xl);
  opacity: 0.85;
  text-shadow: 0 0 15px rgba(255, 214, 231, 0.2);
}

.section-subtitle.light {
  color: var(--clr-lavender);
}

/* ============================================================
   TIMELINE SECTION
   ============================================================ */
.timeline-section {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

/* ── Timeline Center Line ── */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--clr-hot-pink) 10%,
    var(--clr-violet) 50%,
    var(--clr-hot-pink) 90%,
    transparent 100%
  );
  border-radius: var(--radius-pill);
  box-shadow: 0 0 15px rgba(255, 45, 117, 0.4);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-md) var(--space-lg);
}

.timeline-item[data-side="left"] {
  left: 0;
  text-align: right;
  padding-right: var(--space-xl);
}

.timeline-item[data-side="right"] {
  left: 50%;
  text-align: left;
  padding-left: var(--space-xl);
}

/* Reveal directions for timeline */
.timeline-item[data-side="left"].reveal {
  transform: translateX(-60px);
  opacity: 0;
}

.timeline-item[data-side="right"].reveal {
  transform: translateX(60px);
  opacity: 0;
}

.timeline-item[data-side="left"].reveal.visible {
  transform: translateX(0);
  opacity: 1;
}

.timeline-item[data-side="right"].reveal.visible {
  transform: translateX(0);
  opacity: 1;
}

/* ── Timeline Dot ── */
.timeline-dot {
  position: absolute;
  top: var(--space-lg);
  width: 36px;
  height: 36px;
  background: var(--bg-abyss);
  border: 2px solid var(--clr-hot-pink);
  border-radius: var(--radius-round);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  box-shadow:
    0 0 15px rgba(255, 45, 117, 0.4),
    0 0 30px rgba(255, 45, 117, 0.2);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    color var(--transition-normal),
    background var(--transition-normal);
}

.timeline-dot svg {
  width: 18px;
  height: 18px;
  display: block;
}

.timeline-item[data-side="left"] .timeline-dot {
  right: -18px;
}

.timeline-item[data-side="right"] .timeline-dot {
  left: -18px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background: var(--clr-hot-pink);
  border-color: var(--clr-gold);
  color: var(--text-white);
  box-shadow:
    0 0 25px rgba(255, 45, 117, 0.8),
    0 0 50px rgba(255, 215, 0, 0.4);
}

/* ── Timeline Card (Glassmorphism) ── */
.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-slow),
    background var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  animation: cardGlow 5s ease-in-out infinite;
}

/* Animated gradient border on hover */
.timeline-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    var(--clr-hot-pink),
    var(--clr-violet),
    var(--clr-gold),
    var(--clr-hot-pink)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderRotate 4s linear infinite;
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: var(--glass-bg-hover);
  border-color: transparent;
  box-shadow: var(--shadow-card-hover);
}

/* ── Decorative shimmer stripe ── */
.timeline-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  transition: left 0.8s ease;
}

.timeline-card:hover::after {
  left: 150%;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--clr-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
  text-shadow: var(--shadow-glow-gold);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-soft-pink);
  line-height: 1.7;
  opacity: 0.85;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  perspective: 800px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s var(--ease-smooth),
    filter 0.6s var(--ease-smooth);
}

.gallery-item:hover {
  transform: perspective(800px) rotateY(3deg) rotateX(2deg) scale(1.03);
  box-shadow:
    0 0 30px rgba(255, 45, 117, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--clr-hot-pink);
  z-index: 2;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2);
}

/* ── Feature & Wide Items ── */
.gallery-item-feature {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

/* ── Gallery Overlay ── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(10, 0, 21, 0.7) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Gallery Item Glow Border ── */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 40%,
    var(--clr-hot-pink) 50%,
    var(--clr-violet) 60%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderRotate 3s linear infinite;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 10, 0.95);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease-smooth),
    visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-round);
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 45, 117, 0.2);
  border-color: var(--clr-hot-pink);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-img,
.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(255, 45, 117, 0.2), 0 30px 80px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--space-md);
  pointer-events: none;
  z-index: 5;
}

.lightbox-prev,
.lightbox-next {
  width: 56px;
  height: 56px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-round);
  color: var(--text-white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 45, 117, 0.2);
  border-color: var(--clr-hot-pink);
  transform: translateY(-50%) scale(1.15);
  box-shadow: var(--shadow-glow-pink);
}

.lightbox-prev {
  margin-right: auto;
}

.lightbox-next {
  margin-left: auto;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  letter-spacing: 0.1em;
}

/* ============================================================
   LOVE LETTER SECTION
   ============================================================ */
.love-letter-section {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 45, 117, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  overflow: visible !important;
}

.love-letter {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow:
    0 0 40px rgba(255, 45, 117, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: cardGlow 6s ease-in-out infinite;
}

/* ── Paper texture overlay ── */
.love-letter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.015) 28px,
      rgba(255, 255, 255, 0.015) 29px
    );
  pointer-events: none;
  border-radius: inherit;
}

/* ── Decorative corner flourishes ── */
.love-letter::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 45, 117, 0.15);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

/* ── Animated rotating border ── */
.love-letter > *:first-child::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(
    from var(--border-angle),
    var(--clr-hot-pink) 0%,
    var(--clr-gold) 25%,
    var(--clr-violet) 50%,
    var(--clr-gold) 75%,
    var(--clr-hot-pink) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  animation: borderRotate 6s linear infinite;
}

.letter-seal {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.letter-seal::before {
  content: '';
  width: 60px;
  height: 60px;
  background: var(--clr-hot-pink);
  border-radius: var(--radius-round);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  box-shadow: 0 0 20px var(--clr-hot-pink), 0 0 40px var(--clr-magenta);
  opacity: 0.6;
  animation: sealGlowPulse 2s ease-in-out infinite alternate;
}

@keyframes sealGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.85;
  }
}

.letter-title {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  color: var(--clr-gold);
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 1;
}

.letter-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-soft-pink);
  line-height: 1.9;
  text-align: justify;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.letter-body p {
  margin-bottom: var(--space-sm);
  text-indent: 1.5em;
}

.letter-body p:first-child {
  text-indent: 0;
}

.letter-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--clr-hot-pink);
  text-shadow: 0 0 20px rgba(255, 45, 117, 0.5);
}

.letter-signature {
  text-align: right;
  position: relative;
  z-index: 1;
}

.signature {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--clr-hot-pink);
  text-shadow: 0 0 20px rgba(255, 45, 117, 0.4);
  display: inline-block;
  animation: sway 4s ease-in-out infinite;
}

/* ============================================================
   COUNTER SECTION
   ============================================================ */
.counter-section {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(255, 0, 110, 0.1) 0%,
      rgba(139, 92, 246, 0.1) 50%,
      rgba(255, 45, 117, 0.1) 100%
    );
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.counter-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  animation: cardGlow 5s ease-in-out infinite;
}

/* Animated border for counter cards */
.counter-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 30%,
    var(--clr-hot-pink) 45%,
    var(--clr-violet) 55%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderRotate 5s linear infinite;
}

.counter-card:hover::before {
  opacity: 1;
}

.counter-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 40px rgba(255, 45, 117, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: transparent;
}

/* ── Shimmer sweep ── */
.counter-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.7s ease;
}

.counter-card:hover::after {
  left: 150%;
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clr-hot-pink), var(--clr-gold), var(--clr-violet));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
  text-shadow: none;
  position: relative;
  z-index: 1;
}

/* ── Glow behind the number ── */
.counter-number::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-text-fill-color: transparent;
  background: none;
  filter: blur(15px);
  opacity: 0.5;
  color: var(--clr-hot-pink);
  -webkit-text-stroke: 0;
}

.counter-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-soft-pink);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.counter-note {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--clr-gold);
  margin-top: var(--space-md);
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: bobUpDown 3s ease-in-out infinite;
}

/* ============================================================
   REASONS SECTION
   ============================================================ */
.reasons-section {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(255, 45, 117, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.reason-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
  animation: cardGlow 6s ease-in-out infinite;
  cursor: default;
}

/* ── Animated gradient border ── */
.reason-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    var(--clr-hot-pink) 40%,
    var(--clr-gold) 50%,
    var(--clr-violet) 60%,
    transparent 75%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderRotate 4s linear infinite;
}

.reason-card:hover::before {
  opacity: 1;
}

.reason-card:hover {
  transform: translateY(-12px) rotateX(5deg) scale(1.04);
  box-shadow:
    0 0 40px rgba(255, 45, 117, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.4);
  background: var(--glass-bg-hover);
  border-color: transparent;
}

/* ── Shimmer ── */
.reason-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  transition: left 0.7s ease;
}

.reason-card:hover::after {
  left: 150%;
}

.reason-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 0 10px rgba(255, 45, 117, 0.3));
}

.reason-card:hover .reason-emoji {
  transform: scale(1.3) rotate(-10deg);
}

.reason-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-soft-pink);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 0, 110, 0.06) 50%,
      rgba(10, 0, 21, 0.8) 100%
    );
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--clr-hot-pink) 30%,
    var(--clr-violet) 50%,
    var(--clr-hot-pink) 70%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(255, 45, 117, 0.5);
}

.footer-hearts {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 45, 117, 0.5));
}

.footer-text {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text-soft-pink);
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 20px rgba(255, 214, 231, 0.3);
}

.footer-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.footer-forever {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--clr-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  animation: bobUpDown 3s ease-in-out infinite;
}

/* ============================================================
   MUSIC TOGGLE
   ============================================================ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.music-toggle:hover {
  background: rgba(255, 45, 117, 0.15);
  border-color: var(--clr-hot-pink);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-pink);
}

.music-toggle.playing {
  animation: musicPulse 2s ease-in-out infinite;
  background: rgba(255, 45, 117, 0.2);
  border-color: var(--clr-hot-pink);
  box-shadow:
    0 0 20px rgba(255, 45, 117, 0.4),
    0 0 40px rgba(255, 45, 117, 0.2);
}

/* ── Pulsing ring when playing ── */
.music-toggle.playing::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-round);
  border: 2px solid rgba(255, 45, 117, 0.5);
  animation: pulseRing 1.5s ease-out infinite;
}

.music-toggle.playing::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-round);
  border: 1px solid rgba(255, 45, 117, 0.3);
  animation: pulseRing 1.5s ease-out infinite;
  animation-delay: 0.4s;
}

.music-icon-on,
.music-icon-off {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   SPARKLE PARTICLES (JS-created)
   ============================================================ */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 6px;
  height: 6px;
  background: var(--clr-gold);
  border-radius: var(--radius-round);
  box-shadow: 0 0 6px var(--clr-gold), 0 0 12px rgba(255, 215, 0, 0.5);
}

/* ============================================================
   AMBIENT DECORATIONS — Stars / Dots in Background
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 5% 5%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 25% 60%, rgba(255, 214, 231, 0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 10%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 80%, rgba(196, 181, 253, 0.25) 50%, transparent 100%),
    radial-gradient(1.3px 1.3px at 55% 35%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 45, 117, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
    radial-gradient(1.1px 1.1px at 85% 70%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 45%, rgba(196, 181, 253, 0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 40% 40%, rgba(255, 215, 0, 0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 95%, rgba(255, 214, 231, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 20% 45%, rgba(139, 92, 246, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: twinkle 5s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 8% 52%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 22% 73%, rgba(255, 214, 231, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 38% 18%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 52% 67%, rgba(196, 181, 253, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 68% 42%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 88%, rgba(255, 45, 117, 0.15) 50%, transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 48% 92%, rgba(255, 215, 0, 0.12) 50%, transparent 100%);
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}

/* ============================================================
   UTILITY — PERSPECTIVE WRAPPER
   ============================================================ */
.gallery-grid,
.reasons-grid,
.counter-grid {
  perspective: 1200px;
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-card:nth-child(5) {
    grid-column: span 2;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 4.5rem);
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .timeline-card {
    padding: var(--space-md);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-feature {
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  /* ── Timeline stacks ── */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 55px;
    padding-right: var(--space-md);
  }

  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    left: 2px;
    right: auto;
  }

  /* Fix reveal direction on mobile */
  .timeline-item[data-side="left"].reveal,
  .timeline-item[data-side="right"].reveal {
    transform: translateY(40px);
  }

  .timeline-item[data-side="left"].reveal.visible,
  .timeline-item[data-side="right"].reveal.visible {
    transform: translateY(0);
  }

  .love-letter {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-content {
    padding: var(--space-md);
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .counter-card {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .gallery-item-wide {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .counter-card:nth-child(5) {
    grid-column: span 2;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  .section {
    padding: var(--space-xl) var(--space-sm);
  }

  .love-letter {
    padding: var(--space-lg) var(--space-sm);
    border-radius: var(--radius-lg);
  }

  .love-letter::after {
    inset: 6px;
    border-radius: calc(var(--radius-lg) - 4px);
  }

  .letter-title {
    font-size: 1.5rem;
  }

  .letter-body {
    font-size: 0.95rem;
    text-align: left;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 12px;
    right: 12px;
  }

  .music-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    bottom: 16px;
    right: 16px;
  }

  .counter-number {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .scroll-indicator {
    bottom: 24px;
    font-size: 0.7rem;
  }
}

/* ============================================================
   RESPONSIVE — 400px
   ============================================================ */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .gallery-item,
  .gallery-item-feature,
  .gallery-item-wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .counter-card:nth-child(5) {
    grid-column: span 2;
  }

  .hero-title {
    font-size: clamp(1.5rem, 10vw, 2.5rem);
  }

  .hero-date {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  .ampersand {
    display: block;
    font-size: 1.5rem;
    margin: 0.2em 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item,
  .timeline-item[data-side="left"],
  .timeline-item[data-side="right"] {
    padding-left: 42px;
    padding-right: var(--space-xs);
  }

  .timeline-item[data-side="left"] .timeline-dot,
  .timeline-item[data-side="right"] .timeline-dot {
    left: 2px;
    width: 24px;
    height: 24px;
  }

  .timeline-dot svg {
    width: 12px;
    height: 12px;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-text {
    font-size: 0.85rem;
  }

  .timeline-card {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .love-letter {
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md);
  }

  .love-letter::after {
    inset: 4px;
  }

  .letter-body p:first-child::first-letter {
    font-size: 2.5em;
  }

  .reason-card {
    padding: var(--space-md) var(--space-sm);
  }

  .reason-emoji {
    font-size: 2rem;
  }

  .footer {
    padding: var(--space-xl) var(--space-sm);
  }

  .footer-text {
    font-size: 1.1rem;
  }
}

/* ============================================================
   PERFORMANCE — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero {
    background-size: 100% 100%;
  }

  body {
    background-size: 100% 100%;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   EXTRAS — Additional Polish
   ============================================================ */

/* ── Subtle text shadow for readability ── */
.hero-subtitle,
.section-subtitle,
.footer-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ── Focus visible for accessibility ── */
*:focus-visible {
  outline: 2px solid var(--clr-hot-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
  transition: opacity 0.5s ease;
}

/* ── Glass card general hover glow (shared) ── */
.timeline-card,
.counter-card,
.reason-card {
  will-change: transform, box-shadow;
}

/* ── Prevent layout shift in gallery ── */
.gallery-item img,
.gallery-item video {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Letter body paragraph spacing ── */
.letter-body p + p {
  margin-top: 0.8em;
}

/* ── Timeline item staggered glow ── */
.timeline-item:nth-child(odd) .timeline-card {
  animation-delay: 0.5s;
}

.timeline-item:nth-child(even) .timeline-card {
  animation-delay: 1s;
}

/* ── Counter card staggered glow ── */
.counter-card:nth-child(1) { animation-delay: 0s; }
.counter-card:nth-child(2) { animation-delay: 0.8s; }
.counter-card:nth-child(3) { animation-delay: 1.6s; }
.counter-card:nth-child(4) { animation-delay: 2.4s; }
.counter-card:nth-child(5) { animation-delay: 3.2s; }

/* ── Reason cards stagger ── */
.reason-card:nth-child(odd) { animation-delay: 0.3s; }
.reason-card:nth-child(even) { animation-delay: 0.6s; }

/* ── Gradient divider between sections ── */
.section + .section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 45, 117, 0.3) 20%,
    rgba(139, 92, 246, 0.3) 50%,
    rgba(255, 45, 117, 0.3) 80%,
    transparent
  );
}

/* ── Hover micro-interaction for all interactive elements ── */
button,
[role="button"] {
  cursor: pointer;
}

/* ── Gallery item nth-child subtle rotation variations ── */
.gallery-item:nth-child(3n+1):hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(3deg) scale(1.04);
}

.gallery-item:nth-child(3n+2):hover {
  transform: perspective(800px) rotateY(2deg) rotateX(-2deg) scale(1.03);
}

.gallery-item:nth-child(3n+3):hover {
  transform: perspective(800px) rotateY(-2deg) rotateX(-3deg) scale(1.05);
}

/* ── Reason card nth-child hover variety ── */
.reason-card:nth-child(3n+1):hover {
  transform: translateY(-14px) rotateX(4deg) rotateZ(-1deg) scale(1.04);
}

.reason-card:nth-child(3n+2):hover {
  transform: translateY(-10px) rotateX(-3deg) rotateZ(1deg) scale(1.05);
}

.reason-card:nth-child(3n+3):hover {
  transform: translateY(-16px) rotateX(5deg) scale(1.03);
}

/* ============================================================
   NEW FEATURES Polish (Envelope, Jar, Spotify Player)
   ============================================================ */

/* ── 3D Envelope ── */
.envelope-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 60px auto 40px auto;
  perspective: 1500px;
  transition: margin-top 0.8s var(--ease-smooth), margin-bottom 0.8s var(--ease-smooth);
}

.envelope-wrapper.open {
  margin-top: 320px;
  margin-bottom: 280px;
}

.envelope {
  position: relative;
  width: 100%;
  height: 380px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0% 0%, 50% 60%, 100% 0%);
  transform-origin: top center;
  transition: transform 0.6s var(--ease-smooth), z-index 0.3s;
  z-index: 4;
}

.envelope-wrapper.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  z-index: 1;
}

.envelope-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  clip-path: polygon(0% 30%, 50% 60%, 100% 30%, 100% 100%, 0% 100%);
  z-index: 3;
}

.envelope-wrapper .love-letter {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  z-index: 2;
  transform: translateY(40px);
  opacity: 0;
  max-height: 320px;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease, max-height 0.8s ease;
}

.envelope-wrapper.open .love-letter {
  transform: translateY(-290px);
  opacity: 1;
  z-index: 5;
  max-height: none;
  overflow: visible;
}

.envelope-seal-click {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), visibility 0.4s;
}

.envelope-seal-click:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.envelope-wrapper.open .envelope-seal-click {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.seal-prompt {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--clr-gold);
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  white-space: nowrap;
  animation: bobUpDown 2s ease-in-out infinite;
}

/* ── Pote de Bilhetinhos (Compliment Jar) ── */
.jar-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 45, 117, 0.05) 0%, transparent 60%);
}

.jar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.jar-wrapper {
  position: relative;
  width: 160px;
  height: 220px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.jar-wrapper:hover {
  transform: scale(1.05);
}

.jar-wrapper.shake {
  animation: jarShake 0.5s ease-in-out;
}

.jar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255, 45, 117, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-round);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.jar-wrapper:hover .jar-glow {
  opacity: 1;
}

.jar-lid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-soft), var(--clr-gold));
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.4);
  z-index: 3;
}

.jar-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 204px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px 30px var(--radius-lg) var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
}

.jar-body::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 15px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  filter: blur(1px);
}

.jar-hearts {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.jar-hearts span {
  position: absolute;
  font-size: 1.4rem;
  animation: jarHeartFloat 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px rgba(255, 45, 117, 0.6));
}

.jar-hearts span:nth-child(1) { left: 20%; bottom: 20%; animation-delay: 0s; font-size: 1.1rem; }
.jar-hearts span:nth-child(2) { left: 40%; bottom: 45%; animation-delay: 0.8s; font-size: 1.5rem; }
.jar-hearts span:nth-child(3) { left: 65%; bottom: 15%; animation-delay: 1.6s; font-size: 1.2rem; }
.jar-hearts span:nth-child(4) { left: 25%; bottom: 60%; animation-delay: 2.4s; font-size: 1.3rem; }
.jar-hearts span:nth-child(5) { left: 55%; bottom: 50%; animation-delay: 3.2s; font-size: 1.4rem; }

.ticket-display {
  display: none;
  justify-content: center;
  width: 100%;
  max-width: 450px;
  z-index: 10;
}

.ticket-display.active {
  display: flex;
  animation: ticketPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ticket-card {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 15px 35px rgba(255, 45, 117, 0.15), 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.ticket-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.ticket-close:hover {
  color: var(--clr-hot-pink);
}

.ticket-content p {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--text-white);
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 45, 117, 0.4);
}

@keyframes jarShake {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-8deg) translateY(-4px); }
  37% { transform: rotate(8deg) translateY(-2px); }
  62% { transform: rotate(-5deg) translateY(-1px); }
  87% { transform: rotate(5deg) translateY(0); }
}

@keyframes jarHeartFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  100% { transform: translateY(-30px) rotate(15deg); opacity: 1; }
}

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

/* ── Spotify Style Player ── */
.spotify-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 0, 21, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 45, 117, 0.2);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 45, 117, 0.15);
  z-index: 9999;
  max-width: 320px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.spotify-player:hover {
  border-color: rgba(255, 45, 117, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 45, 117, 0.3);
}

.player-disk-wrapper {
  width: 48px;
  height: 48px;
  position: relative;
  flex-shrink: 0;
}

.player-disk {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-round);
  overflow: hidden;
  border: 2px solid var(--clr-hot-pink);
  box-shadow: 0 0 15px rgba(255, 45, 117, 0.3);
  animation: rotateDisk 10s linear infinite;
  animation-play-state: paused;
  position: relative;
}

.spotify-player.playing .player-disk {
  animation-play-state: running;
}

.player-disk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-disk::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--bg-abyss);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-round);
  z-index: 2;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 130px;
}

.player-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.player-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  margin-top: 6px;
  cursor: pointer;
  position: relative;
}

.player-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-hot-pink), var(--clr-violet));
  border-radius: var(--radius-pill);
  position: absolute;
  top: 0;
  left: 0;
}

.player-control-btn {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.player-control-btn:hover {
  color: var(--clr-hot-pink);
  transform: scale(1.1);
}

@keyframes rotateDisk {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .spotify-player {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    width: auto;
    padding: 6px 12px 6px 6px;
    gap: 12px;
  }
  
  .player-info {
    min-width: 0;
  }
  
  .envelope-wrapper.open {
    margin-top: 240px;
    margin-bottom: 240px;
  }
  
  .love-letter {
    padding: var(--space-lg) var(--space-md);
  }
  
  .envelope-wrapper.open .love-letter {
    transform: translateY(-240px);
    max-height: none;
  }
}

/* ── Floating Background Photo Hearts ── */
.floating-heart-photo {
  position: absolute;
  filter: drop-shadow(0 0 6px rgba(255, 45, 117, 0.6));
  z-index: 1;
  will-change: transform, opacity;
}

/* ============================================================
   DISTANCE & CITY CONNECTION CARD
   ============================================================ */
.distance-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.distance-card {
  max-width: 800px;
  margin: var(--space-xl) auto 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.city-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  flex: 1;
}

.city-icon-wrapper {
  position: relative;
  font-size: 2.2rem;
  margin-bottom: var(--space-xs);
}

.city-heart {
  position: absolute;
  top: -8px;
  right: -12px;
  font-size: 1.2rem;
  animation: heartbeat 2s infinite ease-in-out;
}

.city-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-white);
  font-weight: 700;
}

.city-state {
  font-size: 0.85rem;
  color: var(--clr-soft-pink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.person-name {
  margin-top: var(--space-xs);
  padding: 4px 14px;
  background: rgba(255, 45, 117, 0.15);
  border: 1px solid rgba(255, 45, 117, 0.3);
  border-radius: var(--radius-round);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.flight-connection {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.flight-line {
  width: 100%;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
}

.flight-path-dashed {
  width: 100%;
  height: 2px;
  border-top: 2px dashed rgba(255, 45, 117, 0.5);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.flying-heart {
  font-size: 1.6rem;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  animation: flyAcross 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 45, 117, 0.8));
}

@keyframes flyAcross {
  0% { left: 5%; transform: translate(-50%, -50%) rotate(0deg); }
  45% { transform: translate(-50%, -65%) rotate(-5deg); }
  50% { left: 95%; transform: translate(-50%, -50%) rotate(0deg); }
  55% { transform: translate(-50%, -35%) rotate(5deg); }
  100% { left: 5%; transform: translate(-50%, -50%) rotate(0deg); }
}

.distance-badge {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-soft-pink);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.distance-quote {
  text-align: center;
  margin-top: var(--space-lg);
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--text-soft-pink);
}

/* ============================================================
   SECRET DAILY LOVE NOTE
   ============================================================ */
.secret-note-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 45, 117, 0.06) 0%, transparent 70%);
}

.secret-note-container {
  max-width: 650px;
  margin: var(--space-xl) auto 0 auto;
}

.secret-note-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.secret-lock-icon {
  font-size: 3rem;
  margin-bottom: var(--space-xs);
  animation: heartbeat 3s infinite ease-in-out;
}

.secret-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 6px;
}

.secret-card-desc {
  font-size: 0.95rem;
  color: var(--text-soft-pink);
  margin-bottom: var(--space-lg);
}

.btn-reveal-note {
  background: linear-gradient(135deg, var(--clr-hot-pink), var(--clr-violet));
  color: var(--text-white);
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-round);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 45, 117, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-reveal-note:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(255, 45, 117, 0.6);
}

.secret-note-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.6s ease;
}

.secret-note-result.active {
  max-height: 300px;
  opacity: 1;
  margin-top: var(--space-xl);
}

.secret-note-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 45, 117, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.secret-note-tag {
  display: inline-block;
  background: rgba(255, 45, 117, 0.2);
  color: var(--text-white);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.secret-note-text {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--text-white);
  line-height: 1.6;
}

/* Responsive fixes for distance card */
@media (max-width: 600px) {
  .distance-card {
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);
  }
  .flight-connection {
    width: 100%;
  }
}

