﻿/* ================================================================
   Happy Birthday Webpage, style.css
   Romantic palette · Responsive · Smooth animations
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Colour palette, soft, romantic, warm */
  --color-bg:           #fff5f7;
  --color-bg-alt:       #fff0f3;
  --color-bg-dark:      #fce4ec;
  --color-primary:      #e91e8c;
  --color-primary-light:#f48fb1;
  --color-primary-dark: #c2185b;
  --color-accent:       #ff80ab;
  --color-rose:         #f9b8c4;
  --color-blush:        #fce4ec;
  --color-gold:         #ffca28;
  --color-text:         #4a2040;
  --color-text-muted:   #7b5170;
  --color-text-light:   #b07090;
  --color-white:        #ffffff;
  --color-border:       #f8bbd0;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Sizing */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  32px;
  --radius-pill:9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(233, 30, 140, 0.08);
  --shadow-md:  0 8px 32px rgba(233, 30, 140, 0.14);
  --shadow-lg:  0 20px 60px rgba(233, 30, 140, 0.20);
  --shadow-glow:0 0 30px rgba(233, 30, 140, 0.30);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.6s ease;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* hide default cursor, custom cursor active */
}

/* Re-enable cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  #cursor-dot, #cursor-trail-container { display: none; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

/* ----------------------------------------------------------------
   3. CUSTOM CURSOR
   ---------------------------------------------------------------- */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear, background 0.2s;
  box-shadow: var(--shadow-glow);
}

.cursor-trail-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 0.4s;
  background: var(--color-rose);
}

/* ----------------------------------------------------------------
   4. BIRTHDAY SONG INTRO OVERLAY
   ---------------------------------------------------------------- */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #4a2040 0%, #8b1a5a 50%, #c2185b 100%);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}

#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Phase containers ── */
#intro-phase-1,
#intro-phase-2 {
  text-align: center;
  padding: var(--space-md);
  max-width: 480px;
  width: 100%;
  animation: introPop 0.7s ease both;
}

@keyframes introPop {
  from { transform: scale(0.8) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ── Floating hearts behind phase 1 ── */
.intro-floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-floating-hearts span {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.12);
  animation: introHeartFloat 6s ease-in-out infinite;
}
.intro-floating-hearts span:nth-child(1) { left: 10%; animation-delay: 0s;   font-size: 2rem;   }
.intro-floating-hearts span:nth-child(2) { left: 25%; animation-delay: 1s;   font-size: 1.2rem; }
.intro-floating-hearts span:nth-child(3) { left: 50%; animation-delay: 0.5s; font-size: 2.5rem; }
.intro-floating-hearts span:nth-child(4) { left: 70%; animation-delay: 1.5s; font-size: 1rem;   }
.intro-floating-hearts span:nth-child(5) { left: 85%; animation-delay: 0.8s; font-size: 1.8rem; }
.intro-floating-hearts span:nth-child(6) { left: 40%; animation-delay: 2s;   font-size: 1.3rem; }

@keyframes introHeartFloat {
  0%   { transform: translateY(110vh) rotate(0deg);  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(20deg); opacity: 0; }
}

/* ── Gift icon ── */
.intro-gift-icon {
  font-size: 4.5rem;
  margin-bottom: var(--space-sm);
  animation: giftBounce 1.4s ease infinite;
  display: block;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0)    scale(1);    }
  45%       { transform: translateY(-14px) scale(1.08); }
  55%       { transform: translateY(-14px) scale(1.08); }
}

/* ── Intro heading ── */
.intro-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.intro-name span {
  color: var(--color-gold);
}

.intro-subtext {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
  font-style: italic;
}

/* ── Tap to begin button ── */
.intro-tap-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.5);
  cursor: pointer;
  margin: var(--space-sm) auto;
  transition: transform var(--transition-normal), background var(--transition-normal);
  backdrop-filter: blur(8px);
}

.intro-tap-btn:hover  { transform: scale(1.07); background: rgba(255,255,255,0.22); }
.intro-tap-btn:active { transform: scale(0.96); }

.tap-btn-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-white);
  font-style: italic;
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.4;
}

/* Pulsing ring around tap button */
.tap-btn-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  animation: tapRingPulse 2s ease infinite;
}

@keyframes tapRingPulse {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.intro-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: var(--space-xs);
}

/* ── Phase 2, Song playing ── */
.intro-music-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  animation: musicBounce 0.6s ease infinite alternate;
}

@keyframes musicBounce {
  from { transform: scale(1)    rotate(-5deg); }
  to   { transform: scale(1.15) rotate(5deg);  }
}

.intro-playing-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.intro-playing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* ── Intro waveform bars ── */
.intro-waveform {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: flex-end;
  height: 44px;
  margin-bottom: var(--space-md);
}

.intro-waveform span {
  display: block;
  width: 7px;
  background: linear-gradient(to top, rgba(255,255,255,0.4), rgba(255,255,255,0.9));
  border-radius: 4px 4px 0 0;
  animation: introWave 0.7s ease infinite alternate;
}
.intro-waveform span:nth-child(1)  { height: 14px; animation-delay: 0.00s; }
.intro-waveform span:nth-child(2)  { height: 28px; animation-delay: 0.10s; }
.intro-waveform span:nth-child(3)  { height: 44px; animation-delay: 0.20s; }
.intro-waveform span:nth-child(4)  { height: 22px; animation-delay: 0.30s; }
.intro-waveform span:nth-child(5)  { height: 38px; animation-delay: 0.15s; }
.intro-waveform span:nth-child(6)  { height: 30px; animation-delay: 0.25s; }
.intro-waveform span:nth-child(7)  { height: 44px; animation-delay: 0.05s; }
.intro-waveform span:nth-child(8)  { height: 18px; animation-delay: 0.35s; }
.intro-waveform span:nth-child(9)  { height: 34px; animation-delay: 0.12s; }
.intro-waveform span:nth-child(10) { height: 10px; animation-delay: 0.22s; }

@keyframes introWave {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1);    }
}

/* ── Countdown ring ── */
.intro-countdown-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto var(--space-sm);
}

.intro-ring-svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.intro-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 7;
}

.intro-ring-fill {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray:  326.73;  /* 2 × π × 52 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.intro-countdown-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#intro-seconds {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.intro-sec-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Rotating wait messages ── */
.intro-wait-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-sm);
  min-height: 1.5rem;
  transition: opacity 0.5s ease;
}

.intro-wait-text.fading { opacity: 0; }

/* ── Skip button ── */
.intro-skip-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-top: var(--space-xs);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.intro-skip-btn:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.5);
}

/* ----------------------------------------------------------------
   5. HEARTS CANVAS (background animation)
   ---------------------------------------------------------------- */
#hearts-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ----------------------------------------------------------------
   6. FLOATING QUOTE
   ---------------------------------------------------------------- */
#floating-quote {
  position: fixed;
  bottom: 2rem;
  left: -120%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-primary-light);
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  opacity: 0.6;
  animation: floatAcross 28s linear infinite;
}

@keyframes floatAcross {
  0%   { left: -120%; }
  100% { left: 120%; }
}

/* ----------------------------------------------------------------
   7. NAVIGATION
   ---------------------------------------------------------------- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-md);
  transition: box-shadow var(--transition-normal);
}

#main-nav.scrolled {
  box-shadow: var(--shadow-md);
}

#main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 60px;
  flex-wrap: wrap;
}

#main-nav ul li a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
  background: var(--color-blush);
  color: var(--color-primary);
}

/* ----------------------------------------------------------------
   8. LOAD ANIMATIONS
   ---------------------------------------------------------------- */
.fade-in-load {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}
.fade-in-load.delay-1 { animation-delay: 0.3s; }
.fade-in-load.delay-2 { animation-delay: 0.6s; }
.fade-in-load.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered fade-in, class added by JS when in viewport */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger scroll items */
.fade-in-scroll:nth-child(1)  { transition-delay: 0.05s; }
.fade-in-scroll:nth-child(2)  { transition-delay: 0.10s; }
.fade-in-scroll:nth-child(3)  { transition-delay: 0.15s; }
.fade-in-scroll:nth-child(4)  { transition-delay: 0.20s; }
.fade-in-scroll:nth-child(5)  { transition-delay: 0.25s; }
.fade-in-scroll:nth-child(6)  { transition-delay: 0.30s; }
.fade-in-scroll:nth-child(7)  { transition-delay: 0.35s; }
.fade-in-scroll:nth-child(8)  { transition-delay: 0.40s; }
.fade-in-scroll:nth-child(9)  { transition-delay: 0.45s; }
.fade-in-scroll:nth-child(10) { transition-delay: 0.50s; }

/* ----------------------------------------------------------------
   9. SHARED SECTION STYLES
   ---------------------------------------------------------------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-md);
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  background: var(--color-blush);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--color-primary);
  font-style: italic;
}

/* ----------------------------------------------------------------
   10. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background var(--transition-normal),
    transform var(--transition-fast),
    box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--color-blush);
  color: var(--color-primary);
  border: 2px solid var(--color-primary-light);
}
.btn-secondary:hover {
  background: var(--color-rose);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary-light);
}
.btn-ghost:hover {
  background: var(--color-blush);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

/* Pulse animation on key CTAs */
.pulse-btn {
  animation: pulseBtnAnim 2.5s ease infinite;
}

@keyframes pulseBtnAnim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.35); }
  50%       { box-shadow: 0 0 0 12px rgba(233, 30, 140, 0); }
}

/* ----------------------------------------------------------------
   11. HEADER
   ---------------------------------------------------------------- */
#site-header {
  padding: calc(60px + var(--space-lg)) var(--space-md) var(--space-lg);
  text-align: center;
  background: linear-gradient(180deg, var(--color-blush) 0%, var(--color-bg) 100%);
  position: relative;
  z-index: 1;
}

.header-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.header-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----------------------------------------------------------------
   12. HERO SECTION
   ---------------------------------------------------------------- */
#hero {
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-blush) 100%);
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero photo */
.hero-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero-photo {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 12px);
  border: 3px solid var(--color-primary-light);
  z-index: 0;
  animation: ringPulse 3s ease infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.5; }
}

/* Heartbeat animation applied to photo */
.heartbeat {
  animation: heartbeatImg 1.6s ease infinite;
}

@keyframes heartbeatImg {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.04); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.04); }
  70%       { transform: scale(1); }
}

/* Hero text */
.hero-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ----------------------------------------------------------------
   13. MESSAGE / LETTER
   ---------------------------------------------------------------- */
.letter-preview {
  text-align: left;
  background: var(--color-white);
  border-left: 4px solid var(--color-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.letter-preview p {
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.85;
}

.full-letter {
  text-align: left;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease;
}

.full-letter p {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
}

.letter-sign {
  margin-top: var(--space-md) !important;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem !important;
  color: var(--color-primary) !important;
}

/* ----------------------------------------------------------------
   14. PHOTO GALLERY
   ---------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(233, 30, 140, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: var(--radius-md);
}

.gallery-overlay span {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Gallery Modal ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(74, 32, 64, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-inner {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  max-width: 700px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s ease;
  text-align: center;
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-inner img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin: 0 auto;
}

.modal-caption {
  margin-top: var(--space-sm);
  font-style: italic;
  color: var(--color-text-muted);
}

.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--color-blush);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast), transform var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--color-rose); transform: scale(1.1); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.modal-prev { left: -22px; }
.modal-next { right: -22px; }
.modal-nav:hover { background: var(--color-blush); }

/* ── Memory Slideshow ── */
.slideshow-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.slideshow-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

#slideshow-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

#slideshow-img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  background: var(--color-bg-alt);
  transition: opacity 0.5s ease;
}

#slideshow-caption {
  font-style: italic;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
}

.slideshow-controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* ----------------------------------------------------------------
   14c. LOVED PICTURES GRID
   ---------------------------------------------------------------- */
.loved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  max-width: 900px;
  margin: 0 auto;
}

.loved-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  aspect-ratio: 4 / 5;
}

.loved-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.loved-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.loved-card:hover img {
  transform: scale(1.06);
}

.loved-card:hover .gallery-overlay {
  opacity: 1;
}

@media (max-width: 640px) {
  .loved-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------------
   14b. VIDEOS GRID
   ---------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
}

/* On mobile, single column with bigger videos */
@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* ----------------------------------------------------------------
   15. LOVE LIST
   ---------------------------------------------------------------- */
.love-list {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.love-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: default;
}

.love-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  background: var(--color-blush);
}

.love-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
  min-width: 3rem;
}

.love-text {
  padding-top: 0.2rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.love-text strong {
  color: var(--color-primary-dark);
}

/* ----------------------------------------------------------------
   16. SURPRISE REVEAL
   ---------------------------------------------------------------- */
.surprise-inner {
  max-width: 700px;
}

.surprise-content {
  margin-top: var(--space-md);
  animation: fadeInUp 0.6s ease;
}

.surprise-image-wrapper {
  margin: 0 auto var(--space-md);
  max-width: 500px;
}

.surprise-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.surprise-message {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto var(--space-sm);
}

.surprise-sub {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   17. MUSIC SECTION
   ---------------------------------------------------------------- */
.music-inner {
  max-width: 720px;
}

.music-controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.playlist-embed {
  margin-bottom: var(--space-md);
}

.playlist-placeholder {
  background: var(--color-white);
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.playlist-placeholder p { margin-bottom: 0.5rem; }

/* Music visualiser bars */
.music-visualiser {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
  height: 48px;
  opacity: 0.5;
}

.music-visualiser span {
  display: block;
  width: 8px;
  background: linear-gradient(to top, var(--color-primary), var(--color-accent));
  border-radius: 4px 4px 0 0;
  animation: visualiserBar 0.8s ease infinite alternate;
}

.music-visualiser span:nth-child(1)  { height: 20px; animation-delay: 0.0s; }
.music-visualiser span:nth-child(2)  { height: 35px; animation-delay: 0.1s; }
.music-visualiser span:nth-child(3)  { height: 48px; animation-delay: 0.2s; }
.music-visualiser span:nth-child(4)  { height: 28px; animation-delay: 0.3s; }
.music-visualiser span:nth-child(5)  { height: 40px; animation-delay: 0.15s; }
.music-visualiser span:nth-child(6)  { height: 32px; animation-delay: 0.25s; }
.music-visualiser span:nth-child(7)  { height: 48px; animation-delay: 0.05s; }
.music-visualiser span:nth-child(8)  { height: 22px; animation-delay: 0.35s; }
.music-visualiser span:nth-child(9)  { height: 38px; animation-delay: 0.12s; }
.music-visualiser span:nth-child(10) { height: 16px; animation-delay: 0.22s; }

@keyframes visualiserBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1);   }
}

/* ----------------------------------------------------------------
   18. TIMELINE
   ---------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

/* Central vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-primary-light), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  align-items: flex-start;
}

/* Alternate left/right */
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translate(-50%, 0);
  width: 16px; height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content {
  width: calc(50% - 2rem);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.timeline-event {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------
   19. COUNTDOWN
   ---------------------------------------------------------------- */
.countdown-inner {
  max-width: 700px;
}

.countdown-grid {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.countdown-unit {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 120px;
  border: 2px solid var(--color-border);
  transition: transform var(--transition-normal);
}

.countdown-unit:hover {
  transform: translateY(-4px);
}

.cd-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
  transition: transform 0.2s ease;
}

.cd-number.tick {
  animation: tickFlip 0.3s ease;
}

@keyframes tickFlip {
  0%  { transform: rotateX(-90deg); opacity: 0; }
  100%{ transform: rotateX(0deg);   opacity: 1; }
}

.cd-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------
   20. TYPEWRITER
   ---------------------------------------------------------------- */
.typewriter-inner {
  max-width: 700px;
}

.typewriter-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  min-height: 6rem;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.typewriter-cursor {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--color-primary);
  animation: cursorBlink 0.8s step-end infinite;
  vertical-align: middle;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ----------------------------------------------------------------
   21. LOVE METER
   ---------------------------------------------------------------- */
.love-meter-inner {
  max-width: 600px;
}

.love-meter-bar-wrapper {
  width: 100%;
  height: 36px;
  background: var(--color-blush);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: var(--space-md) auto;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
  border: 2px solid var(--color-border);
}

.love-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-gold));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

.love-meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.love-meter-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------------
   22. WISH GENERATOR
   ---------------------------------------------------------------- */
.wish-inner {
  max-width: 640px;
}

.wish-display {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
}

#wish-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  text-align: center;
  transition: opacity 0.4s ease;
}

#wish-text.fading {
  opacity: 0;
}

/* ----------------------------------------------------------------
   23. HOLD TO REVEAL
   ---------------------------------------------------------------- */
.hold-inner {
  max-width: 600px;
}

.hold-button-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-md) 0;
}

.btn-hold {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

.btn-hold:active {
  transform: scale(0.95);
}

.hold-progress-ring {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.hold-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 6;
}

.hold-ring-fill {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 0.05s linear;
}

.hold-reveal-content {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s ease;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 560px;
  margin: 0 auto;
}

.hold-reveal-sign {
  margin-top: var(--space-sm);
  color: var(--color-primary);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   24. SECRET MODAL
   ---------------------------------------------------------------- */
.modal-secret .modal-inner {
  max-width: 500px;
}

.secret-inner {
  text-align: center;
  padding: var(--space-lg);
}

.secret-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.secret-inner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.secret-inner p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.secret-sign {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-style: normal !important;
}

/* ----------------------------------------------------------------
   25. EMBARRASSING PHOTOS SECTION 😂
   ---------------------------------------------------------------- */

/* Section background, warm yellowy tone to feel fun/different */
#embarrassing {
  background: linear-gradient(160deg, #fff9e6, #fff3cc);
}

#embarrassing .section-label {
  background: #fff3cc;
  color: #c0392b;
}

#embarrassing .section-title {
  color: #c0392b;
}

#embarrassing .section-subtitle {
  color: #7d5a00;
}

/* ── Grid ── */
.embarrassing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Each card ── */
.emb-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 2px solid #ffd6d6;
}

.emb-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(192, 57, 43, 0.18);
}

/* Alternate slight rotation for a scattered photo feel */
.emb-card:nth-child(2) { transform: rotate(1deg);  }
.emb-card:nth-child(2):hover { transform: translateY(-6px) rotate(1.5deg); }
.emb-card:nth-child(3) { transform: rotate(-0.5deg); }
.emb-card:nth-child(3):hover { transform: translateY(-6px) rotate(-1deg); }
.emb-card:nth-child(4) { transform: rotate(1.5deg);  }
.emb-card:nth-child(4):hover { transform: translateY(-6px) rotate(2deg); }
.emb-card:nth-child(5) { transform: rotate(-1deg);   }
.emb-card:nth-child(5):hover { transform: translateY(-6px) rotate(-1.5deg); }

/* ── Image wrapper ── */
.emb-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.emb-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--transition-slow), filter var(--transition-normal);
}

.emb-card:hover .emb-img-wrapper img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

/* ── View overlay ── */
.emb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192, 57, 43, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.emb-card:hover .emb-overlay {
  opacity: 1;
}

.emb-zoom {
  background: rgba(255,255,255,0.92);
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

/* ── Caption ── */
.emb-caption {
  padding: 0.75rem var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fff9e6;
}

.emb-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
  animation: wobbleEmoji 1.2s ease infinite;
}

@keyframes wobbleEmoji {
  0%, 100% { transform: rotate(0deg);   }
  25%       { transform: rotate(-12deg); }
  75%       { transform: rotate(12deg);  }
}

.emb-caption p {
  font-size: 0.82rem;
  color: #7d5a00;
  line-height: 1.4;
  font-style: italic;
  text-align: left;
}

/* ── Modal caption override for embarrassing section ── */
.emb-modal-caption {
  color: #c0392b !important;
  font-size: 1rem !important;
  font-style: italic;
}

/* ── Footer note ── */
.emb-footer-note {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: #c0392b;
  margin-top: var(--space-sm);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .embarrassing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset rotations on mobile so layout stays clean */
  .emb-card,
  .emb-card:nth-child(2),
  .emb-card:nth-child(3),
  .emb-card:nth-child(4),
  .emb-card:nth-child(5) {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   26. FINAL SECTION
   ---------------------------------------------------------------- */
.section-final {
  background: linear-gradient(160deg, var(--color-blush), var(--color-bg-dark));
}

.final-inner {
  max-width: 700px;
}

.final-hearts {
  font-size: 2rem;
  color: var(--color-primary);
  letter-spacing: 0.5rem;
  margin-bottom: var(--space-md);
  animation: heartbeat 1.4s ease infinite;
}

.final-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.final-para {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------
   26. FOOTER
   ---------------------------------------------------------------- */
#site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-message {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-rose);
  margin-bottom: var(--space-sm);
}

.footer-sig {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
}

.footer-secret-hint {
  margin-bottom: var(--space-sm);
}

.secret-trigger {
  display: inline-block;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-normal), transform var(--transition-normal);
  user-select: none;
}

.secret-trigger:hover {
  color: var(--color-rose);
  transform: scale(1.3);
}

.secret-trigger.activated {
  color: var(--color-gold);
  animation: sparkle 0.4s ease;
}

@keyframes sparkle {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1.3); }
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ----------------------------------------------------------------
   27. CONFETTI CANVAS
   ---------------------------------------------------------------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4000;
}

/* ----------------------------------------------------------------
   28. HEARTBEAT KEYFRAMES (global)
   ---------------------------------------------------------------- */
@keyframes heartbeat {
  0%, 100% { transform: scale(1);    }
  14%       { transform: scale(1.15); }
  28%       { transform: scale(1);    }
  42%       { transform: scale(1.1);  }
  70%       { transform: scale(1);    }
}

/* ----------------------------------------------------------------
   29. RESPONSIVE, TABLET  ≤ 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-photo {
    width: 240px;
    height: 300px;
  }

  .timeline-container::before {
    left: 16px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 3rem;
    text-align: left;
  }

  .timeline-dot {
    left: 16px;
    top: 1.2rem;
  }

  .timeline-content {
    width: 100%;
  }

  .countdown-unit {
    min-width: 80px;
    padding: var(--space-sm);
  }

  .cd-number {
    font-size: 2.2rem;
  }

  .modal-nav.modal-prev { left: -10px; }
  .modal-nav.modal-next { right: -10px; }

  #main-nav ul {
    gap: 0.3rem;
    height: auto;
    padding: 0.5rem 0;
  }

  #main-nav ul li a {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

/* ----------------------------------------------------------------
   30. RESPONSIVE, MOBILE  ≤ 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {

  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .countdown-unit {
    min-width: 70px;
    padding: 0.75rem;
  }

  .cd-number {
    font-size: 1.8rem;
  }

  .hero-photo {
    width: 200px;
    height: 250px;
  }

  .full-letter {
    padding: var(--space-md);
  }
}

/* ----------------------------------------------------------------
   31. UTILITY CLASSES
   ---------------------------------------------------------------- */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Selection colour */
::selection {
  background: var(--color-rose);
  color: var(--color-primary-dark);
}
