/* =============================================
   WEDDING INVITATION — PREMIUM CSS
   Customise: --gold, --blush, --cream below
   ============================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark:  #9a6f2e;
  --blush:      #f2a7b0;
  --blush-light:#fde8ec;
  --cream:      #faf6f0;
  --deep:       #1a0a0a;
  --text:       #3d2b1f;
  --white:      #ffffff;
  --glass-bg:   rgba(255,255,255,0.15);
  --glass-border:rgba(255,255,255,0.35);
  --shadow:     0 8px 40px rgba(100,40,40,0.15);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;
  --font-script:'Great Vibes', cursive;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.loader-ring {
  width: 64px; height: 64px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-top: 1.2rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CURTAIN ---------- */
#curtain-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.curtain {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: linear-gradient(135deg, #1a0505 0%, #2d1010 50%, #1a0505 100%);
  transition: transform 1.6s cubic-bezier(0.77,0,0.18,1);
  background-image:
    repeating-linear-gradient(90deg, rgba(201,168,76,0.06) 0px, rgba(201,168,76,0.06) 1px, transparent 1px, transparent 40px),
    linear-gradient(135deg, #1a0505, #2d1010, #1a0505);
}
.curtain.left  { left: 0; transform-origin: left center; }
.curtain.right { right: 0; transform-origin: right center; }
.curtain.open.left  { transform: scaleX(0); }
.curtain.open.right { transform: scaleX(0); }
.curtain-content {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem;
}
.curtain-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem; letter-spacing: 0.25em;
  color: var(--gold-light); text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.curtain-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,168,76,0.6);
  margin-bottom: 2rem;
}
.open-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border: none; cursor: pointer;
  padding: 0.9rem 2.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(201,168,76,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.open-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 50px rgba(201,168,76,0.8);
}

/* ---------- SPARKLE CANVAS ---------- */
#sparkleCanvas {
  position: fixed; inset: 0; z-index: 8999;
  pointer-events: none;
}

/* ---------- PETALS ---------- */
#petalsContainer {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.petal {
  position: absolute; top: -30px;
  width: 12px; height: 12px;
  background: radial-gradient(circle, #f7c5ce, #e8a0b0);
  border-radius: 0 50% 0 50%;
  opacity: 0.7;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}

/* ---------- MUSIC TOGGLE ---------- */
#musicToggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 8000;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
#musicToggle:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(201,168,76,0.7); }
#musicToggle i { color: white; font-size: 1.1rem; }
.music-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(201,168,76,0.5); }
  50%      { box-shadow: 0 4px 40px rgba(201,168,76,0.9); }
}

/* ---------- SECTION SHARED ---------- */
.section {
  position: relative; z-index: 2;
  padding: 5rem 1.5rem;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-sub {
  font-family: var(--font-sans);
  font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ---------- HERO ---------- */
.hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: url('images/hero_bg.png') center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,5,5,0.55) 0%, rgba(20,5,5,0.3) 50%, rgba(20,5,5,0.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.82rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1rem;
}
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 12vw, 8rem);
  color: var(--white);
  text-shadow: 0 0 60px rgba(201,168,76,0.7), 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.amp { color: var(--gold); font-style: italic; }
.hero-invite {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-light); font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-divider { font-size: 1.5rem; margin-bottom: 0.8rem; }
.hero-date {
  font-family: var(--font-sans);
  font-size: 1rem; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase;
}
.scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light); font-size: 1.1rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- FADE ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- SCRATCH SECTION ---------- */
.scratch-section { background: var(--blush-light); }
.scratch-card-wrapper {
  position: relative;
  width: 320px; margin: 0 auto;
  text-align: center;
}
#scratchCard {
  position: relative; z-index: 2;
  border-radius: 16px;
  cursor: crosshair;
  box-shadow: 0 8px 32px rgba(201,168,76,0.3);
  display: block;
}
.scratch-reveal {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #fff9f0, #fff0f3);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 2px solid var(--gold-light);
  padding: 1.5rem;
}
.reveal-label {
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
}
.reveal-date {
  font-family: var(--font-serif);
  font-size: 1.7rem; color: var(--text);
  margin: 0.4rem 0;
}
.reveal-day { color: var(--gold); font-weight: 500; }
.reveal-time { font-size: 0.9rem; margin-top: 0.4rem; color: var(--text); }
.scratch-hint {
  margin-top: 1rem;
  font-size: 0.82rem; color: #999;
  font-style: italic;
}

/* ---------- COUNTDOWN ---------- */
.countdown-section {
  background: linear-gradient(135deg, #1a0505, #2d1010);
  text-align: center;
}
.countdown-section .section-title { color: var(--white); }
.countdown-section .section-sub   { color: var(--gold-light); }
.countdown-section .section-title::after { background: var(--gold); }
.countdown-grid {
  display: flex; align-items: center;
  justify-content: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.countdown-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  min-width: 90px;
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: 0 0 20px rgba(201,168,76,0.15);
  animation: glowPulse 3s ease-in-out infinite;
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.countdown-label {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-top: 0.4rem;
}
.countdown-sep {
  font-size: 2.5rem; color: var(--gold);
  font-weight: 300; margin-bottom: 1rem;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px rgba(201,168,76,0.15); }
  50%      { box-shadow: 0 0 40px rgba(201,168,76,0.4); }
}

/* ---------- GALLERY — Vertical Stacked ---------- */
.gallery-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5ede6 100%);
  padding-bottom: 4rem;
}
.gallery-stack {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Two-column row */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Each photo card */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  min-height: 320px;
  box-shadow: 0 10px 40px rgba(60,20,20,0.12);
  transition: box-shadow 0.4s ease;
}
.gallery-item.gallery-wide { min-height: 420px; }
.gallery-item:hover {
  box-shadow: 0 20px 60px rgba(60,20,20,0.22);
}

/* Real photo fills the card */
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover img { transform: scale(1.06); }

/* Placeholder (shown when no real photo) */
.gallery-placeholder {
  width: 100%; height: 100%;
  min-height: inherit;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8rem;
  font-size: 2.5rem;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
.gallery-placeholder span {
  font-family: var(--font-sans);
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5; color: var(--text);
}
.gallery-placeholder i { opacity: 0.35; }

/* Warm gradient placeholders — each unique */
.gp-1 { background: linear-gradient(135deg,#fde8ec,#fdf4e3); color: #c9a4b0; }
.gp-2 { background: linear-gradient(135deg,#fdf4e3,#f5e6f0); color: #c9a84c; }
.gp-3 { background: linear-gradient(135deg,#f5e6f0,#fde8ec); color: #b08898; }
.gp-4 { background: linear-gradient(135deg,#fff0e6,#fde8ec); color: #c9a84c; }
.gp-5 { background: linear-gradient(135deg,#f0ece6,#fde8ec); color: #a08070; }
.gp-6 { background: linear-gradient(135deg,#fde8f4,#f0f4e8); color: #c090a0; }

/* Cinematic overlay on hover */
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,5,5,0.82) 0%,
    rgba(20,5,5,0.3)  40%,
    transparent       70%
  );
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem 1.8rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.1rem; color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: translateY(10px);
  transition: transform 0.4s ease 0.05s;
  display: block;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-icon-zoom {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,168,76,0.25);
  border: 1px solid rgba(201,168,76,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-icon-zoom {
  opacity: 1; transform: scale(1);
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9500;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
}
.lightbox-content {
  position: relative; z-index: 1; max-width: 90vw; max-height: 90vh;
}
.lightbox-content img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: -2.2rem; right: 0;
  background: none; border: none;
  color: white; font-size: 1.4rem; cursor: pointer;
}

/* ---------- TIMELINE ---------- */
.timeline-section { background: var(--blush-light); }
.timeline {
  position: relative; max-width: 700px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blush), var(--gold));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: flex-start;
  gap: 1.5rem; margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(odd)  { flex-direction: row; padding-right: calc(50% + 2rem); }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 2rem); }
.timeline-icon {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  box-shadow: 0 0 0 4px var(--blush-light), 0 0 0 6px var(--gold-light);
  z-index: 2;
}
.timeline-card {
  background: white; border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 4px 20px rgba(100,40,40,0.1);
  width: 100%;
}
.timeline-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem; color: var(--text);
  margin-bottom: 0.3rem;
}
.tl-date { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.88rem; line-height: 1.6; color: #666; }

/* ---------- VENUE ---------- */
.venue-section { background: var(--cream); }
.venue-card {
  max-width: 800px; margin: 0 auto;
  padding: 2.5rem; overflow: hidden;
}
.venue-info {
  display: flex; align-items: flex-start;
  gap: 1.5rem; margin-bottom: 2rem;
}
.venue-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; flex-shrink: 0;
}
.venue-name {
  font-family: var(--font-serif);
  font-size: 1.5rem; margin-bottom: 0.4rem;
}
.venue-address { font-size: 0.9rem; line-height: 1.7; color: #666; margin-bottom: 1rem; }
.directions-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white; text-decoration: none;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.directions-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.venue-map iframe {
  width: 100%; height: 260px;
  border: none; border-radius: 12px;
}

/* ---------- RSVP ---------- */
.rsvp-section {
  background: linear-gradient(160deg, #1a0505 0%, #2d1010 50%, #1a0515 100%);
  position: relative;
  overflow: hidden;
}
.rsvp-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(242,167,176,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.rsvp-section .section-title { color: var(--white); }
.rsvp-section .section-sub   { color: var(--gold-light); }
.rsvp-section .section-title::after { background: var(--gold); }

.rsvp-card {
  max-width: 780px; margin: 0 auto;
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.rsvp-desc {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.15rem; line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}
.rsvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

/* Premium Tile */
.rsvp-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 1.8rem 1rem;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.7rem;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              background 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rsvp-tile:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201,168,76,0.2), 0 0 0 1px rgba(201,168,76,0.3);
}

.rsvp-tile-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.rsvp-tile:hover .rsvp-tile-icon { transform: scale(1.15); }

.yes-icon   { background: linear-gradient(135deg,rgba(86,171,47,0.25),rgba(168,224,99,0.15)); color: #7ed957; border: 1px solid rgba(86,171,47,0.4); }
.no-icon    { background: linear-gradient(135deg,rgba(180,50,80,0.25),rgba(120,30,60,0.15)); color: #e87090; border: 1px solid rgba(180,50,80,0.4); }
.bless-icon { background: linear-gradient(135deg,rgba(201,168,76,0.25),rgba(232,213,163,0.15)); color: var(--gold); border: 1px solid rgba(201,168,76,0.4); }
.count-icon { background: linear-gradient(135deg,rgba(33,147,176,0.25),rgba(109,213,237,0.15)); color: #6dd5ed; border: 1px solid rgba(33,147,176,0.4); }

.rsvp-tile-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.02em;
}
.rsvp-tile-sub {
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.rsvp-footer-note {
  font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  margin-top: 0.5rem;
}

/* ---------- BLESSINGS ---------- */
.blessings-section { background: var(--cream); }
.blessings-wall {
  max-width: 900px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blessing-card {
  background: white; border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(100,40,40,0.08);
  border-left: 4px solid var(--gold);
  transition: transform 0.3s;
}
.blessing-card:hover { transform: translateY(-4px); }
.blessing-card p {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; line-height: 1.7; color: var(--text);
  margin-bottom: 0.8rem;
}
.blesser { font-size: 0.8rem; color: var(--gold); font-weight: 600; }

/* Gold pill utility button */
.gold-pill-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white; border: none; cursor: pointer;
  padding: 0.8rem 2rem; border-radius: 50px;
  font-family: var(--font-sans); font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.08em;
  box-shadow: 0 6px 25px rgba(201,168,76,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gold-pill-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201,168,76,0.5);
}

/* ---------- THANK YOU ---------- */
.thankyou-section {
  position: relative;
  background: linear-gradient(135deg, #1a0505, #2d1010, #1a0515);
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#heartsContainer {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.thankyou-content { position: relative; z-index: 2; }
.thankyou-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.6);
}
.thankyou-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--gold-light); margin-top: 0.5rem;
}
.thankyou-heart { font-size: 2.5rem; margin: 1rem 0; animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.thankyou-names {
  font-family: var(--font-script);
  font-size: 2rem; color: var(--gold);
  margin-top: 0.5rem;
}
.footer {
  background: var(--deep); color: var(--gold-light);
  text-align: center; padding: 1.5rem;
  font-size: 0.85rem; font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- SCROLL REVEAL ---------- */
.scroll-reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- CONFETTI CANVAS ---------- */
#confettiCanvas {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .timeline::before { left: 22px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding: 0 0 0 4rem;
  }
  .timeline-icon { left: 0; transform: none; }
  .venue-info { flex-direction: column; }
  .rsvp-grid { grid-template-columns: 1fr 1fr; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-item { min-height: 240px; }
  .gallery-item.gallery-wide { min-height: 280px; }
}
