/* ==========================================================================
   STYLE.CSS — "PULL THE ROPE. LIGHT THE LOVE." • Manoj & Meera
   Interactive Luxury Wedding Invitation
   Palette: Dark Espresso Night (#080604), Warm Amber (#FFB45A),
            Ember Orange (#FF8A2A), Champagne (#E8D3AE), Warm Ivory (#F4EBDD)
   ========================================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sacramento&display=swap');

/* ── CSS Variables ── */
:root {
  --night-dark:     #080604;
  --night-deep:     #120D08;
  --night-espresso: #1F140D;
  --amber:          #FFB45A;
  --ember:          #FF8A2A;
  --champagne:      #E8D3AE;
  --ivory:          #F4EBDD;
  --gold:           #C4A47C;
  --text-muted:     rgba(232,211,174,0.6);

  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'DM Sans', 'Helvetica Neue', sans-serif;
  --font-script:    'Sacramento', cursive;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lamp:    0 0 50px rgba(255,138,42,0.3);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-serif);
  background: var(--night-dark);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked-scroll { overflow: hidden; }

/* Subtle Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,180,90,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 99999;
}

/* ── Typography & Colors ── */
.font-serif   { font-family: var(--font-serif); }
.font-sans    { font-family: var(--font-sans); }
.font-script  { font-family: var(--font-script); }

.text-amber     { color: var(--amber) !important; }
.text-ember     { color: var(--ember) !important; }
.text-champagne { color: var(--champagne) !important; }
.text-ivory     { color: var(--ivory) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.eyebrow-text {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--champagne);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ivory);
}

.gold-divider {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  margin: 20px auto;
}

.canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   SCENE 01 - 04: CEREMONIAL LAMP & INTERACTIVE ROPE PULL
   ========================================================================== */
.rope-stage-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 30%, #1A120B 0%, #080604 70%);
  overflow: hidden;
  padding: 40px 20px;
  user-select: none;
  -webkit-user-select: none;
}

/* Hanging Lamp Container */
.lamp-wrap {
  position: relative;
  top: -10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s ease-out;
}

.lamp-fixture-svg {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.lamp-bulb-light {
  position: absolute;
  top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF9E6 0%, #FFB45A 40%, transparent 80%);
  opacity: 0.15;
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

/* Ignition State */
.lamp-wrap.lamp-lit .lamp-bulb-light {
  opacity: 1;
  width: 320px; height: 320px;
  box-shadow: 0 0 100px #FF8A2A, 0 0 200px #FFB45A;
}

/* Golden Radial Bloom Reveal Overlay */
.golden-bloom-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,180,90,0.45) 0%, rgba(255,138,42,0.2) 40%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 1.2s var(--ease-out-expo);
}

.golden-bloom-overlay.bloom-active {
  opacity: 1;
}

/* Braided Rope & Tassel Handle */
.rope-container {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  touch-action: none;
  z-index: 20;
}

.rope-container:active { cursor: grabbing; }

.rope-line {
  width: 4px;
  height: 220px;
  background: linear-gradient(180deg, #A88654 0%, #6E532F 50%, #A88654 100%);
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  transform-origin: top center;
  transition: height 0.05s linear;
}

.rope-tassel-handle {
  width: 36px;
  height: 55px;
  background: radial-gradient(circle, #E8D3AE 0%, #C4A47C 60%, #6E532F 100%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 15px rgba(255,180,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #120D08;
  font-size: 1.2rem;
  margin-top: -2px;
}

/* Rope Instruction Typography */
.rope-instruction-box {
  position: relative;
  z-index: 15;
  text-align: center;
  margin-bottom: 30px;
}

.rope-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--ivory);
  margin-bottom: 6px;
}

.rope-sub-hint {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--champagne);
}

.btn-tap-fallback {
  background: transparent;
  border: 1px solid rgba(232,211,174,0.3);
  color: var(--champagne);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
  margin-top: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-tap-fallback:hover {
  background: var(--ember);
  color: var(--night-dark);
  border-color: var(--ember);
}

/* Light Mask Reveal Couple Block */
.light-reveal-content {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-out-expo);
}

.light-reveal-content.revealed {
  opacity: 1;
  pointer-events: auto;
}

.signature-line-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--champagne);
  margin-top: 24px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-out-expo);
}

.site-nav.nav-scrolled {
  background: rgba(8,6,4,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,211,174,0.12);
  padding: 14px 36px;
}

.nav-brand-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-lamp-toggle {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  background: rgba(255,180,90,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--amber);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mini-lamp-toggle:hover {
  background: var(--amber);
  color: var(--night-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--champagne);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 10001;
}

.nav-hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--ivory);
  position: absolute; left: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }

.nav-hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Fullscreen Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9989;
  background: rgba(8,6,4,0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}

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

.mobile-menu-links {
  list-style: none;
  padding: 0; margin: 0;
  text-align: center;
}

.mobile-menu-links li { margin-bottom: 22px; }

.mobile-menu-links a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ==========================================================================
   SCENE 05: HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #1A120B 0%, #080604 80%);
  overflow: hidden;
  padding: 80px 20px;
}

.hero-couple-names {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--ivory);
  letter-spacing: 2px;
}

.hero-amp {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--amber);
  display: block;
  margin: -10px 0;
}

/* ==========================================================================
   SCENE 08: "LIGHT OF MOMENTS" INTERACTIVE TIMELINE
   ========================================================================== */
.scene-light-timeline-section {
  background: var(--night-deep);
  padding: 80px 20px;
}

.timeline-light-row {
  display: flex;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto 50px;
  gap: 40px;
}

.timeline-milestone-lamp {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(232,211,174,0.2);
  background: rgba(255,180,90,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--champagne);
  flex-shrink: 0;
  transition: all 0.6s var(--ease-out-expo);
}

.timeline-light-row.milestone-active .timeline-milestone-lamp {
  border-color: var(--ember);
  background: var(--ember);
  color: var(--night-dark);
  box-shadow: 0 0 30px #FF8A2A;
}

.timeline-milestone-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--night-espresso);
  border: 1px solid rgba(232,211,174,0.1);
  border-radius: 4px;
  padding: 24px;
}

.timeline-milestone-photo {
  width: 160px; height: 120px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.timeline-milestone-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .timeline-light-row { flex-direction: column; text-align: center; gap: 20px; }
  .timeline-milestone-card { flex-direction: column; width: 100%; text-align: center; }
  .timeline-milestone-photo { width: 100%; height: 180px; }
}

/* ==========================================================================
   SCENE 11: "LIGHT A MEMORY" INTERACTIVE GUEST SECTION
   ========================================================================== */
.scene-light-memory-section {
  background: var(--night-dark);
  padding: 80px 20px;
  text-align: center;
}

.memory-lamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 40px auto 0;
}

.memory-lamp-card {
  background: var(--night-espresso);
  border: 1px solid rgba(232,211,174,0.12);
  border-radius: 4px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
}

.memory-lamp-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232,211,174,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1rem;
  color: var(--champagne);
  transition: all 0.5s ease;
}

.memory-lamp-card.memory-lit {
  border-color: var(--amber);
  box-shadow: var(--shadow-lamp);
}

.memory-lamp-card.memory-lit .memory-lamp-icon {
  background: var(--amber);
  color: var(--night-dark);
  border-color: var(--amber);
}

.memory-note-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--champagne);
  margin-top: 10px;
  display: none;
}

.memory-lamp-card.memory-lit .memory-note-text {
  display: block;
}

/* ==========================================================================
   SCENE 13: SIGNATURE PHOTO SPOTLIGHT SWEEP
   ========================================================================== */
.scene-spotlight-photo-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night-dark);
  overflow: hidden;
  padding: 60px 20px;
}

.spotlight-photo-wrap {
  position: relative;
  max-width: 840px;
  width: 100%;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lamp);
}

.spotlight-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SCENE 14 - 18: COUNTDOWN, VENUE, RSVP & ENDING ROPE
   ========================================================================== */
.countdown-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--night-deep);
  text-align: center;
  padding: 50px 20px;
}

.countdown-grid { display: flex; gap: 32px; margin-top: 24px; }
.countdown-unit { text-align: center; }
.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
}

.venue-section {
  background: var(--night-dark);
  padding: 60px 20px;
}

.rsvp-section {
  background: var(--night-espresso);
  padding: 60px 20px;
}

.rsvp-paper-card {
  max-width: 580px;
  margin: 0 auto;
  background: #150E09;
  border: 1px solid rgba(232,211,174,0.15);
  border-radius: 4px;
  padding: 40px 32px;
}

.rsvp-input-group { margin-bottom: 20px; }
.rsvp-underline-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 4px;
}

.rsvp-underline-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(232,211,174,0.2);
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ivory);
  outline: none;
}

.rsvp-underline-input:focus { border-bottom-color: var(--amber); }

.attendance-pill-radio { flex: 1; min-width: 140px; }
.attendance-pill-radio input { display: none; }
.attendance-pill-radio label {
  display: block;
  border: 1px solid rgba(232,211,174,0.2);
  padding: 10px 12px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--champagne);
  transition: all 0.3s ease;
}

.attendance-pill-radio input:checked + label {
  background: var(--amber);
  color: var(--night-dark);
  border-color: var(--amber);
}

.rsvp-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--amber);
  color: var(--night-dark);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rsvp-submit-btn:hover { background: var(--ember); }

.btn-share-invite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-share-invite:hover {
  background: var(--amber);
  color: var(--night-dark);
}

#audio-toggle-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9980;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232,211,174,0.3);
  background: rgba(8,6,4,0.85);
  backdrop-filter: blur(8px);
  color: var(--champagne);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

#audio-toggle-btn:hover {
  background: var(--amber);
  color: var(--night-dark);
}

#scroll-progress-line {
  position: fixed;
  top: 0; right: 0;
  width: 2px; height: 0%;
  background: var(--ember);
  z-index: 99990;
}

