/* ==========================================================================
   VOWLINE — MEERA & ARJUN | CINEMATIC DARK ROMANCE DESIGN SYSTEM
   Art Direction: Intimate, Dramatic, Night-time Luxury, Wine, Obsidian, Champagne Gold
   ========================================================================== */

:root {
  --bg-dark: #07070A;
  --bg-surface: #0E0D13;
  --bg-surface-elevated: #15131C;
  --bg-wine: #22091A;

  --gold-champagne: #DFB76C;
  --gold-light: #F4E2BD;
  --gold-muted: #8E7341;
  --silver-mist: #C5C5CB;

  --text-main: #F4EFE6;
  --text-body: #C5C5CB;
  --text-muted: #7E7C88;

  --border-gold-subtle: rgba(223, 183, 108, 0.2);
  --border-gold-strong: rgba(223, 183, 108, 0.45);
  --border-dark: rgba(255, 255, 255, 0.08);

  --font-serif: 'Cinzel', Georgia, serif;
  --font-romantic: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 20%, #170C18 0%, #07070A 60%, #040406 100%);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--gold-champagne);
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 99999;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 1.5rem;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--text-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gold-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   CINEMATIC SLATE OPENING EXPERIENCE
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #050507;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s var(--ease-cinematic), visibility 1.2s;
}

#preloader.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slate-box {
  width: 90%;
  max-width: 500px;
  background: rgba(14, 13, 19, 0.85);
  border: 1px solid var(--border-gold-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(223, 183, 108, 0.08);
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.slate-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold-champagne);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.slate-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.slate-subtitle {
  font-family: var(--font-romantic);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--silver-mist);
  margin-bottom: 2.5rem;
}

.btn-enter-film {
  background: transparent;
  color: var(--gold-champagne);
  border: 1px solid var(--gold-champagne);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s ease;
}

.btn-enter-film:hover {
  background: var(--gold-champagne);
  color: #050507;
  box-shadow: 0 0 25px rgba(223, 183, 108, 0.4);
}

/* ==========================================================================
   NAVIGATION & AMBIENT GLOW PLAYER
   ========================================================================== */
.cinematic-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.cinematic-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand-cine {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--gold-champagne);
  text-decoration: none;
}

.cine-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.cine-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.btn-rsvp-cine {
  background: transparent;
  color: var(--gold-champagne);
  border: 1px solid var(--gold-champagne);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 1.35rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-rsvp-cine:hover {
  background: var(--gold-champagne);
  color: #000;
}

/* Floating Audio Player */
.floating-soundwave-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background: rgba(14, 13, 19, 0.9);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.sound-waves span {
  width: 2px;
  height: 4px;
  background: var(--gold-champagne);
  border-radius: 1px;
}

.floating-soundwave-btn.playing .sound-waves span:nth-child(1) { animation: wavePulse 0.9s infinite alternate; }
.floating-soundwave-btn.playing .sound-waves span:nth-child(2) { animation: wavePulse 1.3s infinite 0.2s alternate; }
.floating-soundwave-btn.playing .sound-waves span:nth-child(3) { animation: wavePulse 1.0s infinite 0.4s alternate; }

@keyframes wavePulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* ==========================================================================
   HERO SECTION — CANDLELIT CINEMA
   ========================================================================== */
.hero-cinematic {
  padding-top: calc(70px + 4rem);
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
}

.hero-cine-title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.hero-cine-title span {
  color: var(--gold-champagne);
  font-family: var(--font-romantic);
  font-style: italic;
  text-transform: none;
}

.hero-cine-subtitle {
  font-family: var(--font-romantic);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--silver-mist);
  margin-bottom: 3.5rem;
}

.hero-frame-container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.hero-film-still {
  border: 1px solid var(--border-gold-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(223, 183, 108, 0.06);
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hero-film-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-film-still:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   COUNTDOWN SECTION — GLOWING GOLD ORBS
   ========================================================================== */
.countdown-cine-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.countdown-cine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.cine-cd-node {
  background: rgba(14, 13, 19, 0.6);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
}

.cine-cd-val {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold-champagne);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cine-cd-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   STORY SECTION — THREE ACTS
   ========================================================================== */
.story-cine-section {
  padding: 6rem 0;
}

.story-acts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.act-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-dark);
  padding: 3rem 2rem;
  position: relative;
  transition: border-color 0.3s ease;
}

.act-card:hover {
  border-color: var(--gold-champagne);
}

.act-number {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-champagne);
  margin-bottom: 1rem;
}

.act-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.act-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   EVENT DETAILS — CANDLELIT CARDS
   ========================================================================== */
.events-cine-section {
  padding: 6rem 0;
  background: rgba(14, 13, 19, 0.4);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.events-cine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-cine-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold-subtle);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-cine-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.event-cine-meta {
  margin-top: 2rem;
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
}

.cine-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--silver-mist);
  margin-bottom: 0.75rem;
}

.cine-meta-row i {
  color: var(--gold-champagne);
  width: 16px;
  height: 16px;
}

.btn-cine-cal {
  background: transparent;
  color: var(--gold-champagne);
  border: 1px solid var(--gold-champagne);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-cine-cal:hover {
  background: var(--gold-champagne);
  color: #000;
}

/* ==========================================================================
   VENUE SECTION — KOWDIAR PALACE
   ========================================================================== */
.venue-cine-section {
  padding: 6rem 0;
}

.venue-cine-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.venue-cine-frame {
  border: 1px solid var(--border-gold-subtle);
  aspect-ratio: 16/10;
  overflow: hidden;
}

.venue-cine-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-cine-map {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold-champagne);
  color: #050507;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.btn-cine-map:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   GALLERY — MOODY STILLS
   ========================================================================== */
.gallery-cine-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-dark);
}

.gallery-cine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-cine-card {
  border: 1px solid var(--border-gold-subtle);
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-cine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(110%);
  transition: transform 0.8s ease;
}

.gallery-cine-card:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.cine-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.96);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.cine-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cine-lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  border: 1px solid var(--gold-champagne);
  object-fit: contain;
}

.cine-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  color: var(--gold-champagne);
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   FAMILY & BLESSINGS
   ========================================================================== */
.family-cine-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-dark);
}

.family-cine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.family-cine-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold-subtle);
  padding: 3rem 2rem;
  text-align: center;
}

/* ==========================================================================
   RSVP SECTION — VIP RECEPTION
   ========================================================================== */
.rsvp-cine-section {
  padding: 6rem 0;
  background: var(--bg-wine);
  border-top: 1px solid var(--border-gold-subtle);
}

.rsvp-cine-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cine-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-top: 2.5rem;
}

.cine-form-full {
  grid-column: span 2;
}

.cine-lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 0.5rem;
}

.cine-inp, .cine-sel {
  width: 100%;
  background: rgba(7, 7, 10, 0.7);
  border: 1px solid var(--border-gold-subtle);
  color: #fff;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.cine-inp:focus, .cine-sel:focus {
  border-color: var(--gold-champagne);
}

.btn-cine-submit {
  grid-column: span 2;
  background: var(--gold-champagne);
  color: #050507;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.15rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-cine-submit:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px rgba(223, 183, 108, 0.4);
}

/* Footer */
.cine-footer {
  background: #040406;
  color: var(--text-muted);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.cine-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cine-footer a {
  color: var(--gold-champagne);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .story-acts-grid, .events-cine-grid, .venue-cine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cine-links {
    display: none;
  }
  .countdown-cine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-cine-grid {
    grid-template-columns: 1fr;
  }
  .family-cine-grid {
    grid-template-columns: 1fr;
  }
  .cine-form {
    grid-template-columns: 1fr;
  }
  .cine-form-full, .btn-cine-submit {
    grid-column: span 1;
  }
  .cine-footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
