/* ================================================================
   YOGESH DOUGALL — 75TH BIRTHDAY SITE
   Theme: Festive teal & gold — warm, celebratory, joyful
   ================================================================ */

/* ── 1. THEME VARIABLES ──────────────────────────────────────── */
:root {
  /* Gold palette */
  --gold:       #FFD23F;
  --gold-light: #FFF3C4;
  --gold-mid:   #FFB800;
  --gold-dark:  #C47D0A;

  /* Teal palette (replaces purple) */
  --teal:       #14B8A6;
  --teal-l:     #5EEAD4;
  --teal-d:     #0E6E64;
  --teal-xd:    #063230;
  --bg:         #07191C;

  /* Coral accent — used sparingly for confetti/reactions */
  --coral:      #FF6B6B;

  /* Text */
  --white:      #FFFFFF;
  --t1:         rgba(255,255,255,0.92);
  --t2:         rgba(255,255,255,0.60);

  /* Spacing & radius */
  --radius:     14px;
  --gap:        1rem;

  /* Transitions */
  --ease:       0.3s ease;
}


/* ── 2. RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(4, 15, 17, 0.66), rgba(4, 15, 17, 0.66)),
    url('../photos/hero.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }


/* ── 3. SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--teal-xd); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }


/* ── 4. NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 25, 28, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 210, 63, 0.15);
  transition: background var(--ease);
}

.nav.scrolled {
  background: rgba(7, 25, 28, 0.96);
  border-bottom-color: rgba(255, 210, 63, 0.25);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--t2);
  font-size: 0.8rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color var(--ease);
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}


/* ── 5. HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}

.hero-slide.active { opacity: 1; }

/* Blurred full-bleed backdrop — fills the hero edge-to-edge regardless of
   the photo's aspect ratio. Purely decorative, so cropping it is fine. */
.hero-slide-blur {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(34px) brightness(0.55) saturate(1.15);
}

/* Sharp foreground — always shows the FULL photo uncropped, so Yogesh is
   never cut off no matter the photo's shape. */
.hero-slide-sharp {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(6, 20, 22, 0.48)  0%,
      rgba(10, 60, 55, 0.32) 30%,
      rgba(6, 20, 22, 0.62)  65%,
      rgba(5, 16, 18, 0.92)  100%
    );
  pointer-events: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  opacity: 0.95;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.7rem;
  background: linear-gradient(120deg, #fff 10%, #FFD23F 45%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 40px rgba(255, 210, 63, 0.25));
}

.hero-age {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 1.4rem;
  opacity: 0.95;
}

.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--t2);
  max-width: 580px;
  line-height: 1.9;
  margin-bottom: 2.2rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--t1);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--t2);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 3;
  transition: color var(--ease);
}

.scroll-hint:hover { color: var(--gold); }
.scroll-hint span { font-size: 1.3rem; color: var(--gold); }


/* ── 6. BALLOONS (replaces candles) ─────────────────────────── */
.balloons-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.8rem);
}

.balloon {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: balloon-bob 3.2s ease-in-out infinite;
}

.balloon-body {
  width: 34px;
  height: 42px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  position: relative;
  box-shadow: inset -6px -6px 10px rgba(0,0,0,0.18), inset 6px 6px 10px rgba(255,255,255,0.25);
}

.balloon-body::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  color: inherit;
}

.balloon-string {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.35);
}

.balloon.small { transform: scale(0.65); transform-origin: bottom center; }
.balloon.medium { transform: scale(0.8); transform-origin: bottom center; }

.footer-balloons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}


/* ── 7. COUNTDOWN BAND ──────────────────────────────────────── */
.countdown-band {
  background: rgba(9, 45, 42, 0.82);
  border-top: 1px solid rgba(255, 210, 63, 0.2);
  border-bottom: 1px solid rgba(255, 210, 63, 0.2);
  padding: 2.6rem 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}

.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.cd-unit {
  min-width: 82px;
}

.cd-n {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.cd-l {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t2);
  margin-top: 0.4rem;
}

.countdown-done {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--gold);
}

.add-cal-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--teal-l);
  border-bottom: 1px dashed rgba(94, 234, 212, 0.5);
  transition: color var(--ease);
}
.add-cal-link:hover { color: var(--gold); }


/* ── 8. FUN FACTS BAND (replaces life stats) ────────────────── */
.facts-band {
  background: rgba(30, 65, 60, 0.55);
  border-bottom: 1px solid rgba(255, 210, 63, 0.15);
  padding: 3rem 1.5rem;
}

.facts-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.fact {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 1.2rem 1.6rem;
  border-right: 1px solid rgba(255, 210, 63, 0.18);
}
.fact:last-child { border-right: none; }

.fact-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

.fact-t {
  color: var(--t1);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.fact-l {
  color: var(--t2);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.3rem;
}


/* ── 9. SECTION BASE ────────────────────────────────────────── */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  color: var(--t2);
  font-size: 0.95rem;
  margin-bottom: 2.4rem;
  letter-spacing: 0.5px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 210, 63, 0.4), transparent);
  max-width: 220px;
}

.divider-star { color: var(--gold); font-size: 1.3rem; }


/* ── 10. GALLERY ────────────────────────────────────────────── */
.gallery-section {
  background: rgba(5, 18, 20, 0.68);
  padding: 5rem 0;
}

.photo-grid {
  column-count: 4;
  column-gap: var(--gap);
  min-height: 200px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 210, 63, 0.08);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.photo-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 210, 63, 0.4);
  box-shadow: 0 8px 30px rgba(255, 210, 63, 0.15);
}

.photo-card img {
  width: 100%;
  height: auto;
  min-height: 160px;
  display: block;
  transition: opacity 0.4s ease;
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 22, 0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--ease);
}

.photo-card:hover::after { opacity: 1; }

.photo-card .zoom-icon {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--ease), transform var(--ease);
  pointer-events: none;
}

.photo-card:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--t2);
  column-span: all;
  grid-column: 1 / -1;
}

.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--t2);
  column-span: all;
}

.gallery-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.gallery-empty code {
  background: rgba(255, 210, 63, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gold);
}

.load-more-wrap {
  display: none;
  text-align: center;
  margin-top: 2.5rem;
}

.load-more-count {
  margin-top: 0.75rem;
  color: var(--t2);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}


/* ── 11. LOADING SPINNER ────────────────────────────────────── */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 210, 63, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}


/* ── 12. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold));
  color: #07191C;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 210, 63, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #07191C;
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }


/* ── 13. LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 12, 13, 0.97);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 80px rgba(255, 210, 63, 0.15);
  transition: opacity 0.25s ease;
}

.lb-preload { display: none; }

.lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  z-index: 1001;
}

.lb-close:hover { background: rgba(200, 30, 30, 0.6); }

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  color: var(--gold);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  backdrop-filter: blur(4px);
  z-index: 1001;
}

.lb-nav:hover { background: rgba(255, 210, 63, 0.28); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--t2);
  font-size: 0.85rem;
  letter-spacing: 2px;
  z-index: 1001;
}

.lb-actions {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1001;
}

.lb-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.lb-action:hover { background: rgba(255, 210, 63, 0.22); color: var(--gold); border-color: rgba(255,210,63,0.4); }
.lb-action.playing { background: rgba(255, 210, 63, 0.18); color: var(--gold); border-color: rgba(255,210,63,0.5); }


/* ── 13b. WISHES INTRO & FEATURED EXAMPLE ────────────────────── */
.wishes-intro {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.wishes-intro p {
  color: var(--t1);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.wishes-intro p:last-child { margin-bottom: 0; }

.example-wish-wrap {
  max-width: 520px;
  margin: 0 auto 2.8rem;
}

.example-label {
  text-align: center;
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.example-card {
  border-style: dashed;
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(255, 210, 63, 0.05);
}


/* ── 14. WISHES WALL ────────────────────────────────────────── */
.wishes-section {
  background: rgba(6, 22, 24, 0.88);
  padding: 5rem 0;
  position: relative;
  z-index: 10;
}

.wish-form {
  background: rgba(9, 40, 44, 0.95);
  border: 1px solid rgba(255, 210, 63, 0.35);
  border-radius: 20px;
  padding: 2.4rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 11;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fg label {
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.fg input,
.fg textarea,
.fg select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 210, 63, 0.28);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  outline: none;
  resize: vertical;
  pointer-events: auto;
  position: relative;
  z-index: 12;
  -webkit-appearance: none;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--gold);
  background: rgba(255, 210, 63, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.1);
}

.fg input::placeholder,
.fg textarea::placeholder { color: rgba(255, 255, 255, 0.28); }

.fg select option { background: #0a2e2c; }

.form-foot {
  text-align: right;
  margin-top: 1.4rem;
}


/* ── 15. WISH CARDS ─────────────────────────────────────────── */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.wish-card {
  background: rgba(10, 45, 48, 0.96);
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-radius: 16px;
  padding: 1.7rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  animation: fadeUp 0.5s ease forwards;
}

.wish-card:hover {
  border-color: rgba(255, 210, 63, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.3);
}

.wish-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.wish-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-l), var(--gold-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #07191C;
}

.wish-info { flex: 1; min-width: 0; }
.wish-name { font-weight: 700; color: var(--gold-light); font-size: 0.95rem; }
.wish-rel  { font-size: 0.78rem; color: var(--t2); margin-top: 0.15rem; }
.wish-date { font-size: 0.72rem; color: var(--t2); flex-shrink: 0; text-align: right; }

.wish-text {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.wish-text::before { content: '\201C'; font-family: 'Playfair Display', serif; font-size: 1.1em; color: var(--gold); opacity: 0.7; }
.wish-text::after  { content: '\201D'; font-family: 'Playfair Display', serif; font-size: 1.1em; color: var(--gold); opacity: 0.7; }

.no-wishes {
  text-align: center;
  padding: 3rem;
  color: var(--t2);
  grid-column: 1 / -1;
}


/* ── 16. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: rgba(3, 10, 11, 0.88);
  border-top: 1px solid rgba(255, 210, 63, 0.1);
  padding: 4.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  max-width: 580px;
  margin: 0 auto 1.2rem;
  line-height: 1.8;
}

.footer-sub {
  color: var(--t1);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.footer-dates {
  color: var(--t2);
  font-size: 0.82rem;
  letter-spacing: 1px;
}


/* ── 17. TOAST NOTIFICATION ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--gold);
  color: #07191C;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 210, 63, 0.35);
}

.toast.show { transform: translateX(-50%) translateY(0); }


/* ── 18. SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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


/* ── 19. KEYFRAME ANIMATIONS ────────────────────────────────── */
@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.18); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

@keyframes balloon-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ── 20. WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--ease), box-shadow var(--ease);
  z-index: 500;
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}


/* ── 21. CELEBRATE REACTIONS ────────────────────────────────── */
.wish-foot {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.heart-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--t2);
  font-size: 0.82rem;
  transition: all var(--ease);
}

.heart-btn:hover { border-color: rgba(255,210,63,0.5); color: var(--gold); background: rgba(255,210,63,0.08); }
.heart-btn.liked { color: var(--gold); border-color: rgba(255,210,63,0.4); }
.heart-icon { font-size: 0.95rem; }


/* ── 22. WISH TABS ───────────────────────────────────────────── */
.mem-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 4px;
  max-width: 400px;
  margin: 0 auto 1.8rem;
}

.mem-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--t2);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.mem-tab.active {
  background: rgba(255,210,63,0.14);
  color: var(--gold);
  border: 1px solid rgba(255,210,63,0.28);
}


/* ── 23. VOICE RECORDER ──────────────────────────────────────── */
.voice-recorder {
  text-align: center;
  padding: 1.2rem 0 0.5rem;
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,210,63,0.1);
  border: 2px solid rgba(255,210,63,0.4);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--ease);
}
.record-btn:hover { background: rgba(255,210,63,0.2); border-color: var(--gold); transform: scale(1.06); }

.recorder-hint {
  color: var(--t2);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.recorder-note {
  color: var(--t2);
  font-size: 0.78rem;
  opacity: 0.75;
  max-width: 360px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.recorder-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(248,113,113,0.18);
  border: 2px solid rgba(248,113,113,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  animation: pulse-rec 1.1s ease-in-out infinite;
}
.recorder-pulse::after {
  content: '';
  width: 20px;
  height: 20px;
  background: #f87171;
  border-radius: 3px;
}

@keyframes pulse-rec {
  0%,100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.35); }
  50%      { box-shadow: 0 0 0 14px rgba(248,113,113,0); }
}

.recorder-timer {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 0.4rem;
}

.stop-btn {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.4);
  color: #f87171;
  border-radius: 8px;
  padding: 0.55rem 1.6rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--ease);
  margin-top: 0.4rem;
}
.stop-btn:hover { background: rgba(248,113,113,0.22); }

.recorder-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── 24. VOICE NOTE CARDS ────────────────────────────────────── */
.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,210,63,0.09);
  border: 1px solid rgba(255,210,63,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.voice-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.voice-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #07191C;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--ease);
}
.voice-play-btn:hover { transform: scale(1.1); }

.voice-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.voice-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

.voice-time {
  color: var(--t2);
  font-size: 0.77rem;
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}


/* ── 24b. VIDEO RECORDER ─────────────────────────────────────── */
.video-recorder {
  text-align: center;
  padding: 1.2rem 0 0.5rem;
}

.video-upload-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.video-upload-alt span {
  color: var(--t2);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.video-upload-alt .btn {
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
}

.video-live-preview {
  width: 100%;
  max-width: 360px;
  max-height: 280px;
  border-radius: 12px;
  background: #000;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}

/* Friendly progress bar — fills gold, warms to coral as the 90s cap approaches */
.video-progress-track {
  max-width: 360px;
  height: 10px;
  margin: 0 auto 0.6rem;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255,210,63,0.2);
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-l), var(--gold));
  transition: width 1s linear, background 0.6s ease;
}

.video-progress-fill.warm {
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.video-progress-fill.hot {
  background: var(--coral);
  animation: pulse-rec 0.8s ease-in-out infinite;
}

.recorder-timer.urgent {
  color: var(--coral);
  animation: float 0.6s ease-in-out infinite;
}


/* ── 25. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

@media (max-width: 1200px) {
  .photo-grid { column-count: 3; }
}

@media (max-width: 900px) {
  .photo-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .nav { padding: 0.9rem 1.2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 25, 28, 0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 210, 63, 0.15);
  }

  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255, 210, 63, 0.08); }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
  }

  .nav-toggle { display: block; }

  .fact {
    border-right: none;
    border-bottom: 1px solid rgba(255, 210, 63, 0.15);
  }
  .fact:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }

  .lb-nav { width: 42px; height: 42px; font-size: 1.3rem; }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }

  .cd-unit { min-width: 64px; }
}

@media (max-width: 480px) {
  .photo-grid { column-count: 1; }
  .hero-quote { display: none; }
  .wish-form { padding: 1.5rem; }

  .mem-tab { font-size: 0.8rem; padding: 0.6rem 0.4rem; }
  .video-live-preview { max-width: 100%; }
  .video-progress-track { max-width: 100%; }
  .video-upload-alt { flex-wrap: wrap; }
  .wishes-intro p { font-size: 0.94rem; }
}
