/**
 * Hero Section & Floating Header Navigation
 * Looping background Video 2, high-fashion editorial typography & floating audio
 */

/* Main Site Wrapper initially hidden until white reveal */
.main-site {
  opacity: 0;
  transition: opacity 0.8s var(--ease-cinematic);
  position: relative;
  z-index: 2;
}

.main-site.site-visible {
  opacity: 1;
}

/* Floating Audio Control (Fixed Bottom Right) */
.floating-sound-control {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
}

.sound-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 4px 16px rgba(50, 32, 22, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(190, 147, 88, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sound-toggle-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(190, 147, 88, 0.45);
  box-shadow:
    0 6px 20px rgba(50, 32, 22, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 0 0 1px rgba(190, 147, 88, 0.35);
}

/* Audio Waveform Bars */
.sound-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 13px;
}

.sound-bar {
  width: 2px;
  height: 100%;
  background-color: #8b5745;
  border-radius: 1px;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

.sound-toggle-btn.playing .sound-bar:nth-child(1) {
  animation: soundBounce 1.1s ease-in-out infinite alternate;
}
.sound-toggle-btn.playing .sound-bar:nth-child(2) {
  animation: soundBounce 0.85s ease-in-out infinite alternate 0.2s;
}
.sound-toggle-btn.playing .sound-bar:nth-child(3) {
  animation: soundBounce 1.25s ease-in-out infinite alternate 0.35s;
}
.sound-toggle-btn.playing .sound-bar:nth-child(4) {
  animation: soundBounce 0.95s ease-in-out infinite alternate 0.15s;
}

.sound-toggle-btn.muted .sound-bar {
  height: 2.5px !important;
  opacity: 0.45;
  animation: none !important;
}

@keyframes soundBounce {
  0% { height: 3px; }
  100% { height: 13px; }
}

/* ==================================================
   HERO SECTION
   ================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  padding: 6rem 5vw 4rem;
}

/* Video 2 background exclusively in Hero */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle Cinematic Film Scrim — Keeps video vibrant while grounding contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

/* Hero Content Layer */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Luxury Wedding Invitation Card Container */
.hero-invitation-card {
  position: relative;
  width: 100%;
  background: rgba(254, 253, 252, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(206, 179, 126, 0.45);
  border-radius: 28px;
  padding: clamp(2.4rem, 5vh, 3.6rem) clamp(1.4rem, 4.5vw, 3rem);
  box-shadow:
    0 18px 45px rgba(50, 32, 22, 0.08),
    0 2px 8px rgba(206, 179, 126, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Inset inner double-border matching royal stationery */
.hero-invitation-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(206, 179, 126, 0.28);
  border-radius: 20px;
  pointer-events: none;
}

/* Lord Ganesha & Sacred Shloka Header */
.hero-god-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(1.2rem, 2.5vh, 1.8rem);
  text-align: center;
}

.hero-god-img {
  width: clamp(52px, 11vw, 66px);
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}

.hero-shloka {
  font-family: 'Tiro Devanagari Hindi', 'Nirmala UI', 'Mangal', serif;
  font-size: clamp(0.76rem, 1.7vw, 0.92rem);
  color: #7c422e; /* Sampled terracotta/bronze matching reference */
  line-height: 1.65;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.hero-shloka span {
  display: block;
}

/* Blessings Header */
.hero-blessings {
  max-width: 520px;
  margin: 0 auto clamp(1.6rem, 3.5vh, 2.4rem);
}

.blessings-line,
.blessings-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #64493a;
  line-height: 1.5;
  letter-spacing: 0.015em;
  margin: 0;
}

.blessings-line {
  margin-bottom: 0.35rem;
}

/* Person Block (Groom / Bride) */
.hero-person-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-person-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 7.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #7c422e;
  margin: 0 0 0.4rem 0;
  padding: 0.1em 0;
  text-shadow: 0 1px 2px rgba(124, 66, 46, 0.12);
}

.hero-person-relation {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  font-weight: 400;
  color: #40322c;
  letter-spacing: 0.025em;
  line-height: 1.45;
  margin: 0;
}

/* Center Ampersand Divider */
.hero-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 260px;
  margin: clamp(1.2rem, 2.8vh, 1.8rem) auto;
}

.divider-gold-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ceb37e);
}

.hero-card-divider .divider-gold-line:last-child {
  background: linear-gradient(90deg, #ceb37e, transparent);
}

.divider-ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  color: #bc984f;
  line-height: 1;
  display: inline-block;
}

/* Scroll Affordance */
.hero-scroll-affordance {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #9e8c83;
  font-weight: 600;
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-scroll-affordance:hover {
  color: #7c422e;
  transform: translateY(2px);
}

.scroll-line {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(180deg, #ceb37e 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
