/* ============================================================
   STORY OF INFINITE — Isuri & Dushan
   Green & White Luxury Wedding Theme  |  style.css
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Green Palette */
  --green-deep:    #0D2818;
  --green-dark:    #163824;
  --green-forest:  #1E5035;
  --green-mid:     #2D7A50;
  --green-bright:  #3A9E68;
  --green-sage:    #5CB88A;
  --green-light:   #95D5B2;
  --green-pale:    #C8EDD9;
  --green-mist:    #E8F7EE;
  --green-white:   #F2FAF5;

  /* Gold Accents (luxury contrast) */
  --gold:          #C9A96E;
  --gold-lt:       #E8C98A;
  --gold-dk:       #A07840;
  --gold-pale:     #F5E8C8;

  /* Whites */
  --ivory:         #FAFFFE;
  --warm-white:    #F4FDF8;
  --pure-white:    #FFFFFF;

  /* Text */
  --text-primary:  #0D2818;
  --text-muted:    #2D7A50;
  --text-soft:     #5CB88A;
  --text-on-dark:  rgba(255, 255, 255, 0.92);

  /* Glass */
  --glass-bg:      rgba(232, 247, 238, 0.18);
  --glass-border:  rgba(45, 122, 80, 0.22);
  --glass-blur:    24px;

  /* Shadows */
  --shadow-green:  0 8px 40px rgba(13, 40, 24, 0.14);
  --shadow-gold:   0 4px 24px rgba(201, 169, 110, 0.22);

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background: var(--green-white);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   INFINITY LOADER
   ============================================================ */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(45, 122, 80, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(30, 80, 53, 0.25) 0%, transparent 70%),
    var(--green-deep);
}

.loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Infinity SVG Animation */
.loader-infinity-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infinity-svg {
  width: min(320px, 80vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(201, 169, 110, 0.35));
}

/* Glow trail */
.infinity-glow {
  fill: none;
  stroke: rgba(201, 169, 110, 0.12);
  stroke-width: 10;
  stroke-linecap: round;
}

/* Main animated path */
.infinity-path {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation:
    drawInfinity 2s cubic-bezier(0.6, 0, 0.4, 1) 0.4s forwards,
    loopInfinity  3s ease-in-out 2.5s infinite;
}

@keyframes drawInfinity {
  to { stroke-dashoffset: 0; }
}

@keyframes loopInfinity {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -820; }
}

/* Travelling dot */
.infinity-dot {
  fill: var(--gold-lt);
  filter: drop-shadow(0 0 6px var(--gold-lt));
  r: 6;
  animation: dotPulse 3s ease-in-out 2.5s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; r: 6; }
  50%       { opacity: 0.7; r: 4; }
}

/* Outer ring pulse */
.loader-ring-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.15);
  animation: ringExpand 3s ease-out infinite;
}

@keyframes ringExpand {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Loader text */
.loader-text-group {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: textReveal 0.8s var(--spring) 2s forwards;
}

@keyframes textReveal {
  to { opacity: 1; transform: translateY(0); }
}

.loader-theme {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.loader-divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto;
}

.loader-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  color: white;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.loader-heart {
  color: var(--gold-lt);
  margin: 0 0.3em;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.2); }
  60%       { transform: scale(1); }
  80%       { transform: scale(1.12); }
}

.loader-date-sub {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--green-sage);
  margin-top: 0.5rem;
}

/* Progress bar */
.loader-progress {
  width: min(200px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: textReveal 0.5s ease 2.2s forwards;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  border-radius: 2px;
  animation: progressFill 2.8s cubic-bezier(0.2, 0, 0.6, 1) 0.2s forwards;
}

@keyframes progressFill {
  0%   { width: 0%; }
  60%  { width: 70%; }
  90%  { width: 92%; }
  100% { width: 100%; }
}

/* ============================================================
   NAVBAR — Ultra Modern
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition:
    background 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    padding 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(242, 250, 245, 0.92);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(45, 122, 80, 0.1), 0 4px 30px rgba(13, 40, 24, 0.08);
  padding: 0.8rem 2.5rem;
}

/* Logo */
.nav-left { flex-shrink: 0; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  group: true;
}

.nav-logo-symbol {
  font-size: 1.6rem;
  color: var(--gold-lt);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201, 169, 110, 0.6);
  transition: all 0.4s var(--spring);
  display: inline-block;
}

.navbar.scrolled .nav-logo-symbol {
  color: var(--gold-dk);
  text-shadow: none;
}

.nav-logo:hover .nav-logo-symbol {
  transform: rotate(90deg) scale(1.15);
  text-shadow: 0 0 30px rgba(201, 169, 110, 0.8);
}

.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.4s;
  white-space: nowrap;
}

.navbar.scrolled .nav-logo-text { color: var(--green-dark); }

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.navbar.scrolled .nav-link { color: var(--text-muted); }

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.3s;
}

.navbar.scrolled .nav-link::before {
  background: rgba(45, 122, 80, 0.08);
}

.nav-link:hover::before { opacity: 1; }
.nav-link:hover { color: white; }
.navbar.scrolled .nav-link:hover { color: var(--green-forest); }

/* RSVP Button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-rsvp-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 2px 16px rgba(201, 169, 110, 0.3);
  transition: all 0.35s var(--spring);
  white-space: nowrap;
}

.nav-rsvp-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.45);
}

.nav-rsvp-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--spring);
}

.nav-rsvp-btn:hover .nav-rsvp-arrow { transform: translateX(3px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: all 0.35s var(--ease);
}

.toggle-bar:nth-child(1) { width: 24px; }
.toggle-bar:nth-child(2) { width: 18px; margin-left: 6px; }
.toggle-bar:nth-child(3) { width: 24px; }

.nav-toggle:hover .toggle-bar { margin-left: 0; }
.navbar.scrolled .toggle-bar { background: var(--green-forest); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow: hidden;
}

.mobile-menu::before {
  content: '∞';
  position: absolute;
  font-size: 60vw;
  color: rgba(45, 122, 80, 0.06);
  font-family: serif;
  user-select: none;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-logo {
  font-size: 4rem;
  color: var(--gold-lt);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(201, 169, 110, 0.4);
  animation: spin360 8s linear infinite;
  display: inline-block;
}

@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.1em;
  padding: 0.4rem 1.5rem;
  display: block;
  transition: color 0.3s, transform 0.3s;
}

.mobile-menu a:hover { color: var(--gold-lt); transform: translateX(8px); }

.mobile-rsvp {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.3em !important;
  color: var(--gold) !important;
  margin-top: 1rem;
}

.mobile-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--green-sage);
  letter-spacing: 0.15em;
  margin-top: 2rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 9s var(--ease);
  background-color: var(--green-dark);
  /*
    DEFINITIVE FIX: gradient + photo are ONE background-image declaration.
    The browser paints multi-value background-image atomically — the gradient
    (first layer = on top) and the photo (second layer = below) are always
    rendered together. A brightness flash is physically impossible because
    there is no separate element, no z-index, no compositing layer boundary.
  */
  background-image:
    linear-gradient(
      to bottom,
      rgba(13, 40, 24, 0.50) 0%,
      rgba(13, 40, 24, 0.18) 28%,
      rgba(13, 40, 24, 0.22) 55%,
      rgba(13, 40, 24, 0.65) 80%,
      rgba(13, 40, 24, 0.90) 100%
    ),
    radial-gradient(
      ellipse at center,
      transparent 35%,
      rgba(13, 40, 24, 0.55) 100%
    ),
    var(--slide-bg, none);
}

.slide.active { opacity: 1; transform: scale(1.0); }

/* .hero-overlay and .hero-vignette are no longer in the HTML.
   These rules are kept only as a safety net in case they appear elsewhere. */
.hero-overlay,
.hero-vignette { display: none; }

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

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  color: white;
}

/* Theme badge */
.hero-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}

.badge-symbol {
  font-size: 1rem;
  line-height: 1;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.name-bride, .name-groom {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-lt) 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(201, 169, 110, 0.4));
}

.hero-heart {
  color: var(--gold-lt);
  -webkit-text-fill-color: var(--gold-lt);
  font-size: 0.55em;
  animation: heartbeat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.7));
}

.hero-invite {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.date-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.6));
}

.hero-date .date-line:last-child {
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.6), transparent);
}

.date-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold-lt);
  white-space: nowrap;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.count-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  color: white;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(45, 122, 80, 0.4);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  backdrop-filter: blur(16px);
  letter-spacing: 0.04em;
  min-width: 68px;
  text-align: center;
  transition: border-color 0.3s, transform 0.15s ease, opacity 0.15s ease;
}

.count-num:hover { border-color: var(--gold); }

.count-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.4rem;
}

.countdown-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.5);
  margin-top: -1rem;
}

/* Dots */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.slide-dot.active {
  background: var(--gold-lt);
  transform: scale(1.6);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 35px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  animation: scrollWheel 2.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

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

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.92); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Hero elements animate immediately */
.hero-content .reveal-up {
  animation: revealUp 0.9s var(--spring) both;
}

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

/* ============================================================
   MONOGRAM DIVIDER
   ============================================================ */
.monogram-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--green-white);
  overflow: hidden;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-pale));
}

.monogram-divider .divider-line:last-child {
  background: linear-gradient(90deg, var(--green-pale), transparent);
}

.monogram {
  font-size: 2rem;
  color: var(--gold-dk);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 7rem 2rem; overflow: hidden; }

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.dark .section-title { color: white; }
.section-header.dark .section-desc { color: rgba(255,255,255,0.65); }

.section-pre {
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  position: relative;
}

/* Luxe gold shimmer on section titles on hover */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Glass Card — Enhanced with subtle premium glow on hover */
.glass-card {
  background: rgba(242, 250, 245, 0.75);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-green);
  position: relative;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201,169,110,0.12), transparent 40%, transparent 60%, rgba(45,122,80,0.08));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}

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

/* ============================================================
   LOVE STORY TIMELINE
   ============================================================ */
.story {
  background: linear-gradient(180deg, var(--green-white) 0%, var(--warm-white) 100%);
}

.timeline {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.timeline-item.reverse { direction: rtl; }
.timeline-item.reverse > * { direction: ltr; }

.timeline-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-green), 0 0 0 1px var(--glass-border);
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.timeline-item:hover .timeline-photo img { transform: scale(1.05); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(13, 40, 24, 0.35) 100%);
}

.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.connector-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-bright);
  border: 4px solid var(--green-white);
  box-shadow: 0 0 0 2px var(--green-bright), var(--shadow-gold);
  flex-shrink: 0;
  z-index: 1;
}

.connector-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--green-bright), transparent);
  min-height: 60px;
}

.timeline-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-sage), transparent);
}

.timeline-year {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.timeline-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.timeline-card-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.85;
}

.card-ornament {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.4;
}

/* ============================================================
   QUOTE BANNER
   ============================================================ */
.quote-banner {
  position: relative;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 480px;
}

.parallax-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  background-color: var(--green-dark);
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 40, 24, 0.82) 0%,
    rgba(22, 56, 36, 0.72) 100%
  );
  z-index: 1;
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  color: white;
}

.quote-infinity {
  font-size: 5rem;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  display: block;
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.quote-source {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-style: normal;
  font-weight: 500;
}

/* ============================================================
   WEDDING DETAILS
   ============================================================ */
.details {
  background: var(--warm-white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.detail-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease), border-color 0.4s;
  overflow: hidden;
}

/* Gold accent top border on detail cards */
.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.5s var(--ease);
  z-index: 1;
}

.detail-card:hover::before {
  width: 80%;
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-green), var(--shadow-gold);
  border-color: rgba(201, 169, 110, 0.2);
}

.detail-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
  color: var(--green-bright);
  transition: transform 0.5s var(--spring), color 0.4s;
}

.detail-card:hover .detail-icon {
  transform: scale(1.12);
  color: var(--gold);
}

.detail-icon svg { width: 100%; height: 100%; }

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.detail-highlight {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-forest);
  letter-spacing: 0.05em;
  transition: color 0.4s;
}

.detail-card:hover .detail-highlight {
  color: var(--green-dark);
}

/* ============================================================
   ADD TO CALENDAR — Premium Glassmorphic Redesign
   ============================================================ */
.calendar-section {
  max-width: 520px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.calendar-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.calendar-label::before,
.calendar-label::after {
  content: '✦';
  font-size: 0.5rem;
  color: var(--gold);
  opacity: 0.5;
  vertical-align: middle;
  margin: 0 0.75em;
}

.calendar-btn-group {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--green-forest) 0%, var(--green-mid) 50%, var(--green-forest) 100%);
  background-size: 200% 100%;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 0.95rem 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--spring);
  box-shadow: 0 4px 24px rgba(30, 80, 53, 0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-calendar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 20%, rgba(201,169,110,0.15) 50%, transparent 80%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-calendar:hover::before {
  opacity: 1;
  animation: btnShimmer 1.5s ease infinite;
}

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

.btn-calendar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(30, 80, 53, 0.4), 0 0 0 1px rgba(201,169,110,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  background-position: 100% 0;
}

.btn-calendar:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 80, 53, 0.3);
}

.cal-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cal-chevron {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.35s var(--spring);
  position: relative;
  z-index: 1;
}

.btn-calendar[aria-expanded="true"] .cal-chevron {
  transform: rotate(180deg);
}

/* Calendar dropdown — connecting arrow */
.calendar-btn-group::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(242, 250, 245, 0.95);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.calendar-btn-group.dropdown-open::after {
  opacity: 1;
}

/* Dropdown — Glassmorphic Premium */
.calendar-dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(242, 250, 245, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(45, 122, 80, 0.15);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(13, 40, 24, 0.15),
    0 8px 20px rgba(13, 40, 24, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
  z-index: 100;
  min-width: 260px;
  animation: calDropdownIn 0.4s var(--spring);
  padding: 0.5rem;
}

.calendar-dropdown[hidden] { display: none; }

@keyframes calDropdownIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0px);
  }
}

.cal-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-dark);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}

.cal-option:last-child { margin-bottom: 0; }

.cal-option::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,122,80,0.08) 0%, rgba(201,169,110,0.06) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cal-option:hover::before {
  opacity: 1;
}

.cal-option:hover {
  color: var(--green-forest);
  transform: translateX(4px);
}

.cal-option:active {
  transform: translateX(2px) scale(0.98);
}

/* Calendar option icon containers */
.cal-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.cal-option-icon.google {
  background: linear-gradient(135deg, rgba(66,133,244,0.12), rgba(66,133,244,0.05));
  border: 1px solid rgba(66,133,244,0.15);
}

.cal-option-icon.apple {
  background: linear-gradient(135deg, rgba(45,122,80,0.12), rgba(45,122,80,0.05));
  border: 1px solid rgba(45,122,80,0.15);
}

.cal-option-icon.outlook {
  background: linear-gradient(135deg, rgba(0,120,212,0.12), rgba(0,120,212,0.05));
  border: 1px solid rgba(0,120,212,0.15);
}

.cal-option:hover .cal-option-icon {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cal-option svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cal-option-icon.google svg { color: #4285F4; }
.cal-option-icon.apple svg  { color: var(--green-bright); }
.cal-option-icon.outlook svg { color: #0078D4; }

/* Calendar option text layout */
.cal-option-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.cal-option-name {
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.3;
}

.cal-option-sub {
  font-size: 0.65rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.7;
}

/* Hover arrow on calendar options */
.cal-option-arrow {
  width: 14px;
  height: 14px;
  color: var(--green-sage);
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--spring);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cal-option:hover .cal-option-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
  max-width: 900px;
  margin: 0 auto;
}

.map-container {
  overflow: hidden;
  padding: 0;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.map-pin-icon { font-size: 1.75rem; }

.map-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dark);
}

.map-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.map-embed {
  height: 360px;
  width: 100%;
  background: var(--green-mist);
}

.map-embed iframe { width: 100%; height: 100%; }

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--green-forest), var(--green-bright));
  color: white;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.35s var(--ease);
  text-align: center;
  width: calc(100% - 3rem);
  box-shadow: 0 4px 20px rgba(30, 80, 53, 0.3);
}

.btn-map svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 80, 53, 0.45);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--green-white);
  padding-bottom: 0;
}

/* Masonry wrapper — CSS columns, tight spacing */
.masonry-gallery {
  columns: 3;
  column-gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 6px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--green-mist);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13, 40, 24, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.06); }

.lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(242, 250, 245, 0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--spring);
  transform: scale(0.8);
}

.masonry-item:hover .lightbox-btn { transform: scale(1); }
.lightbox-btn svg { width: 22px; height: 22px; }

/* Gallery bottom fade — seamless dissolve into background */
.gallery-fade {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: -180px;
  background: linear-gradient(
    to bottom,
    rgba(242, 250, 245, 0) 0%,
    rgba(242, 250, 245, 0.4) 30%,
    rgba(242, 250, 245, 0.85) 65%,
    var(--green-white) 100%
  );
  pointer-events: none;
  z-index: 2;
  column-span: all;
}

/* View More CTA */
.gallery-viewmore {
  text-align: center;
  padding: 1rem 2rem 5rem;
  position: relative;
  z-index: 3;
  margin-top: -2rem;
}

.viewmore-ornament {
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.45;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.6s var(--spring), opacity 0.4s;
}

.gallery-viewmore:hover .viewmore-ornament {
  transform: rotate(90deg) scale(1.15);
  opacity: 0.7;
}

.viewmore-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.viewmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--green-forest) 0%, var(--green-mid) 50%, var(--green-forest) 100%);
  background-size: 200% 100%;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 0.85rem 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--spring);
  box-shadow: 0 4px 24px rgba(30, 80, 53, 0.28), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.viewmore-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 20%, rgba(201,169,110,0.15) 50%, transparent 80%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s;
}

.viewmore-btn:hover::before {
  opacity: 1;
  animation: btnShimmer 1.5s ease infinite;
}

.viewmore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(30, 80, 53, 0.4), 0 0 0 1px rgba(201,169,110,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  background-position: 100% 0;
}

.viewmore-btn:active {
  transform: translateY(-1px);
}

.viewmore-btn-text {
  position: relative;
  z-index: 1;
}

.viewmore-btn-arrow {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
  transition: transform 0.35s var(--spring);
  position: relative;
  z-index: 1;
}

.viewmore-btn:hover .viewmore-btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   EVENT TIMELINE
   ============================================================ */
.event-timeline {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--green-white) 100%);
}

.event-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.event-item {
  display: grid;
  grid-template-columns: 90px 36px 1fr;
  align-items: flex-start;
  min-height: 110px;
}

.event-time-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 1.35rem;
  padding-right: 1.25rem;
}

.event-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.event-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.2rem;
}

.event-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-bright);
  border: 3px solid var(--green-white);
  box-shadow: 0 0 0 2px var(--green-bright);
  flex-shrink: 0;
  z-index: 1;
}

.pulse-dot { position: relative; }

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--green-sage);
  animation: pulsing 2.5s ease-out infinite;
}

@keyframes pulsing {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.4); }
}

.event-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--green-bright), var(--green-pale));
  min-height: 70px;
}

.event-card {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.35s var(--spring), box-shadow 0.35s, border-color 0.35s;
}

.event-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-green), var(--shadow-gold);
  border-color: rgba(201, 169, 110, 0.2);
}

.highlight-event {
  background: linear-gradient(135deg, rgba(45, 122, 80, 0.12) 0%, rgba(242, 250, 245, 0.85) 100%);
  border-color: rgba(45, 122, 80, 0.35);
}

/* Ceremony event — breathing gold glow */
.highlight-event::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201,169,110,0.15), transparent, rgba(201,169,110,0.1));
  animation: ceremonyGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ceremonyGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.event-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--spring);
}

.event-card:hover .event-icon {
  transform: scale(1.15) rotate(-5deg);
}

.event-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.event-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  position: relative;
  padding: 8rem 2rem;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-bg-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--green-deep);
}

.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 40, 24, 0.92) 0%,
    rgba(22, 56, 36, 0.87) 100%
  );
}

.rsvp-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
}

.rsvp-content .section-pre { color: var(--gold-lt); }

.rsvp-form {
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(242, 250, 245, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(58, 158, 104, 0.12), 0 0 20px rgba(201, 169, 110, 0.06);
  background: rgba(242, 250, 245, 0.92);
}

/* Subtle label float/highlight on focus */
.form-group:focus-within label {
  color: var(--green-forest);
  letter-spacing: 0.28em;
  transition: all 0.3s var(--ease);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232D7A50' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.radio-label input[type="radio"] { display: none; }

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: rgba(242, 250, 245, 0.5);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--green-bright);
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(58, 158, 104, 0.18);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--green-forest), var(--green-bright));
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 24px rgba(30, 80, 53, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-bright), var(--green-forest));
  opacity: 0;
  transition: opacity 0.4s;
}

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

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(30, 80, 53, 0.5);
}

.btn-text, .btn-icon { position: relative; z-index: 1; }
.btn-icon svg { width: 18px; height: 18px; transition: transform 0.3s var(--spring); }
.btn-submit:hover .btn-icon svg { transform: translateX(4px); }

.rsvp-success {
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.success-icon {
  font-size: 4rem;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
  display: block;
  animation: successScale 0.6s var(--spring);
}

@keyframes successScale {
  from { transform: scale(0) rotate(-180deg); }
  to   { transform: scale(1) rotate(0deg); }
}

.rsvp-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}

.rsvp-success p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 3rem;
}

.footer-infinity-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60vw;
  color: rgba(45, 122, 80, 0.04);
  font-family: serif;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-monogram {
  font-size: 3.5rem;
  color: var(--gold-lt);
  margin-bottom: 0.25rem;
  opacity: 0.7;
  display: inline-block;
  animation: footerMonogramBreath 4s ease-in-out infinite;
}

@keyframes footerMonogramBreath {
  0%, 100% { opacity: 0.5; transform: scale(1); text-shadow: 0 0 0px transparent; }
  50%      { opacity: 0.85; transform: scale(1.04); text-shadow: 0 0 20px rgba(201,169,110,0.25); }
}

.footer-theme {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, var(--gold-lt), #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: footerNameShimmer 6s ease-in-out infinite;
}

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

.footer-date {
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.footer-divider { margin: 2rem 0; }

.footer-ornament {
  font-size: 0.9rem;
  color: var(--green-sage);
  opacity: 0.5;
  letter-spacing: 0.5em;
}

.footer-divider.small .footer-ornament {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.35;
}

.footer-message {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 2;
  margin-bottom: 1rem;
}

.footer-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--green-light);
  letter-spacing: 0.15em;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 40, 24, 0.97);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox-image-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lightboxIn 0.4s var(--spring);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-loader::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green-sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--green-sage);
}

.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-nav svg { width: 22px; height: 22px; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .details-grid { grid-template-columns: 1fr 1fr; }
  .masonry-gallery { columns: 2; column-gap: 6px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.75rem 1.5rem; }
  .nav-logo-text { display: none; }
  section { padding: 5rem 1.25rem; }

  .timeline-item,
  .timeline-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    max-width: 500px;
    margin: 0 auto;
  }

  .timeline-photo { aspect-ratio: 16/9; }

  .timeline-connector {
    flex-direction: row;
    height: auto;
    width: 100%;
    padding: 0;
  }

  .connector-line {
    flex: 1;
    height: 1px;
    width: auto;
    min-height: auto;
    background: linear-gradient(to right, var(--green-bright), transparent);
  }

  .form-row { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 68px 30px 1fr; }
}

@media (max-width: 640px) {
  .hero-title { flex-direction: column; gap: 0.2em; }
  .hero-heart { font-size: 0.65em; }

  .countdown { gap: 0.35rem; }
  .countdown-item { min-width: 58px; }
  .count-num { font-size: 1.55rem; padding: 0.4rem 0.6rem; min-width: 56px; }
  .countdown-sep { display: none; }

  .details-grid { grid-template-columns: 1fr; max-width: 360px; }
  .rsvp-form { padding: 2rem 1.5rem; }

  .masonry-gallery { columns: 2; column-gap: 4px; }
  .masonry-item { margin-bottom: 4px; }
  .gallery-fade { height: 120px; margin-top: -120px; }

  .event-item { grid-template-columns: 58px 26px 1fr; }
  .event-time { font-size: 0.72rem; }
  .event-card { margin-left: 0.85rem; padding: 1rem 1.1rem; }
  .event-name { font-size: 1.1rem; }

  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .masonry-gallery { columns: 1; column-gap: 0; }
  .masonry-item { margin-bottom: 4px; border-radius: 8px; }

  .section-title { font-size: 2.2rem; }
  .calendar-dropdown { min-width: 180px; }
}

/* ============================================================
   UTILITIES & POLISH
   ============================================================ */
::selection { background: rgba(201, 169, 110, 0.2); color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--green-mist); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--green-pale), var(--green-sage));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green-sage); }

.timeline-photo { background: var(--green-mist); }

/* Premium micro-animation: quote infinity symbol rotation */
.quote-infinity {
  transition: transform 0.8s var(--spring);
}

.quote-content:hover .quote-infinity {
  transform: rotate(180deg) scale(1.1);
}

/* Subtle gold line above quote text */
.quote-text::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  margin: 0 auto 1.5rem;
}

/* Map container premium border on hover */
.map-container {
  transition: box-shadow 0.5s var(--ease), border-color 0.5s;
}

.map-container:hover {
  box-shadow: var(--shadow-green), 0 0 0 1px rgba(201,169,110,0.15);
}

/* RSVP success animation — enhanced */
.rsvp-success {
  animation: successFadeIn 0.8s var(--spring);
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero badge micro-shimmer */
.hero-theme-badge {
  position: relative;
  overflow: hidden;
}

.hero-theme-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.15), transparent);
  animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%   { left: -100%; }
  50%  { left: 200%; }
  100% { left: 200%; }
}

/* Monogram divider — hover interaction */
.monogram-divider .monogram {
  transition: transform 0.6s var(--spring), color 0.4s;
  cursor: default;
}

.monogram-divider:hover .monogram {
  transform: rotate(90deg) scale(1.15);
  color: var(--gold);
}

.monogram-divider .divider-line {
  transition: max-width 0.6s var(--ease);
}

.monogram-divider:hover .divider-line {
  max-width: 260px;
}

/* Connector dot — gold glow on story hover */
.timeline-item:hover .connector-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(201,169,110,0.4);
  transition: all 0.4s var(--ease);
}

/* Timeline card title — hover gold accent */
.timeline-card-title {
  transition: color 0.4s var(--ease);
}

.timeline-item:hover .timeline-card-title {
  color: var(--green-forest);
}

/* Radio button — premium hover glow */
.radio-label:hover .radio-custom {
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(92, 184, 138, 0.1);
}

/* Nav RSVP button — subtle pulse */
@keyframes rsvpPulse {
  0%, 100% { box-shadow: 0 2px 16px rgba(201, 169, 110, 0.3); }
  50%      { box-shadow: 0 2px 16px rgba(201, 169, 110, 0.3), 0 0 20px rgba(201, 169, 110, 0.15); }
}

.nav-rsvp-btn {
  animation: rsvpPulse 3s ease-in-out infinite;
}

.nav-rsvp-btn:hover {
  animation: none;
}

/* Submit button — text glow */
.btn-submit .btn-text {
  transition: text-shadow 0.3s;
}

.btn-submit:hover .btn-text {
  text-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* Countdown number — tick animation enhanced */
.count-num {
  position: relative;
  overflow: hidden;
}

.count-num::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
}

@media print {
  .loader-screen, .navbar, .scroll-indicator, .lightbox { display: none; }
}
