/* hero.css — Aarav & Riya Wedding */

/* ===================== HERO ===================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 18, 48, 0.62) 0%, rgba(10, 22, 58, 0.28) 42%, rgba(8, 15, 38, 0.72) 100%);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap video,
.hero__video-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__video { position: relative; z-index: 1; opacity: 0; transition: opacity .35s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__video-fallback { z-index: 0; }

.hero__video--desktop { display: block; }
.hero__video--mobile { display: none; }

@media (max-width: 767px) {
  .hero__video--desktop { display: none; }
  .hero__video--mobile { display: block; }
}

/* Primary hero name lockup — balanced, legible, and independent from the video crop. */
#hero .hero__name-lockup {
  position: absolute;
  top: 21%;
  left: 50%;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 3vw, 2.8rem);
  width: min(92vw, 980px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
}
#hero .hero__name {
  color: #fffaf1;
  font-family: var(--font-script);
  font-size: clamp(4.4rem, 10vw, 8.8rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: .015em;
  text-shadow: 0 7px 24px rgba(4,12,27,.42);
  transition: color .4s ease, transform .45s cubic-bezier(.16,1,.3,1), text-shadow .4s ease;
}
#hero .hero__name--groom { justify-self: end; }
#hero .hero__name--bride { justify-self: start; }
#hero .hero__name-lockup .hero__amp {
  display: grid;
  place-items: center;
  width: clamp(2.4rem, 5vw, 4.2rem);
  height: clamp(2.4rem, 5vw, 4.2rem);
  border: 1px solid rgba(247,201,148,.82);
  border-radius: 50%;
  color: #f7c994;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  text-shadow: 0 4px 16px rgba(4,12,27,.32);
  transition: color .35s ease, background-color .35s ease, transform .45s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
#hero .hero__name:hover { color: #f7c994; transform: translateY(-8px) scale(1.035); text-shadow: 0 12px 30px rgba(4,12,27,.52); }
#hero .hero__amp:hover { color: #182943; background: #f7c994; transform: rotate(10deg) scale(1.1); box-shadow: 0 10px 24px rgba(4,12,27,.3); }
#hero .hero__name--groom { animation: hero-name-enter-left 1s .2s both cubic-bezier(.16,1,.3,1); }
#hero .hero__amp { animation: hero-amp-enter .8s .42s both cubic-bezier(.16,1,.3,1); }
#hero .hero__name--bride { animation: hero-name-enter-right 1s .3s both cubic-bezier(.16,1,.3,1); }
@keyframes hero-name-enter-left { from { opacity: 0; transform: translateX(-46px) rotate(-3deg); filter: blur(5px); } to { opacity: 1; transform: translateX(0) rotate(0); filter: blur(0); } }
@keyframes hero-name-enter-right { from { opacity: 0; transform: translateX(46px) rotate(3deg); filter: blur(5px); } to { opacity: 1; transform: translateX(0) rotate(0); filter: blur(0); } }
@keyframes hero-amp-enter { from { opacity: 0; transform: scale(.45) rotate(-25deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 700px) {
  #hero .hero__name-lockup { top: 24%; grid-template-columns: 1fr; gap: 1.15rem; width: min(90vw, 30rem); }
  #hero .hero__name, #hero .hero__name--groom, #hero .hero__name--bride { justify-self: center; font-size: clamp(4.4rem, 18vw, 6.5rem); }
  #hero .hero__name-lockup .hero__amp { width: 2.65rem; height: 2.65rem; font-size: 2rem; }
}
@media (max-height: 680px) and (min-width: 701px) { #hero .hero__name-lockup { top: 17%; } #hero .hero__name { font-size: clamp(3.7rem, 8vw, 6.5rem); } }
@media (prefers-reduced-motion: reduce) { #hero .hero__name, #hero .hero__amp { animation: none; transition: none; } }

/* Fresh hero name lockup: simple text rows, no character transforms or overlap. */
#hero .hero__name-lockup { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.55rem, 1.4vw, 1.15rem); width: 100%; }
#hero .hero__name-lockup .hero__names { display: block; overflow: visible; font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 400; line-height: 1.08 !important; letter-spacing: .04em; margin: 0 !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }
#hero .hero__name-lockup .hero__names .char { display: inline; transform: none !important; opacity: inherit; }
#hero .hero__name-lockup .hero__amp { display: block; font-family: var(--font-script); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1 !important; margin: 0 !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }

@media (max-height: 760px) and (min-width: 768px) {
  #hero .hero__content { padding-block: 1rem; }
  #hero .hero__name-lockup .hero__names { font-size: clamp(2.6rem, 6vw, 4.8rem); }
  #hero .hero__name-lockup { gap: .45rem; }
}

.hero__video-fallback {
  background: linear-gradient(135deg, #1B2A6B 0%, #0D1A3A 30%, #1A5C4A 60%, #B5541A 100%);
  position: absolute;
  inset: 0;
}

/* Bride-first hero lockup: Kirti left, Rohit right. */
#hero .hero__name-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(.8rem, 3vw, 2.8rem);
  width: min(92vw, 980px);
}
#hero .hero__name--bride { justify-self: end; animation: hero-name-enter-left 1s .2s both cubic-bezier(.16,1,.3,1); }
#hero .hero__name--groom { justify-self: start; animation: hero-name-enter-right 1s .3s both cubic-bezier(.16,1,.3,1); }

@media (max-width: 700px) {
  #hero .hero__name-lockup { grid-template-columns: 1fr; gap: 1.15rem; width: min(90vw, 30rem); }
  #hero .hero__name--bride,
  #hero .hero__name--groom { justify-self: center; }
}

/* Animated palace silhouette as fallback bg */
.hero__video-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(212,160,23,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(27,42,107,0.6) 0%, transparent 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13,26,58,0.92) 0%, rgba(13,26,58,0.4) 40%, rgba(13,26,58,0.2) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

#hero .hero__content {
  color: #fff9e8;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.88), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.hero__together {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--gold-pale);
  display: block;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: .35rem;
  overflow: hidden;
  display: block;
  position: relative;
  z-index: 1;
}

#hero-names { margin-bottom: .35rem; }

.hero__names .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
}

.hero__amp {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--gold);
  display: block;
  line-height: 1;
  margin: 0;
  opacity: 0;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
  opacity: 0;
}

.hero__divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__divider svg { width: 24px; height: 24px; }

.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: .16em;
  color: var(--gold-pale);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0;
}

.hero__date-week { font-size: clamp(1.35rem, 4vw, 2.45rem); font-weight: 700; letter-spacing: .18em; }
.hero__date-day { font-size: clamp(1.7rem, 5vw, 3.25rem); font-weight: 500; letter-spacing: .08em; line-height: 1.05; }
.hero__date-year { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: .18em; line-height: .9; color: var(--gold); }
.hero__date-week, .hero__date-day, .hero__date-year { animation: hero-date-rise .9s both cubic-bezier(.16,1,.3,1); }
.hero__date-day { animation-delay: .12s; }
.hero__date-year { animation-delay: .24s; }
@keyframes hero-date-rise { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__date-week, .hero__date-day, .hero__date-year { animation: none; } }

.hero__location {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.2em;
  color: rgba(250,243,224,0.7);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Floating hero elements */
.hero__float {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.hero__mandala {
  top: 5%;
  right: 5%;
  width: clamp(100px, 20vw, 220px);
  opacity: 0.12;
  animation: slow-spin 30s linear infinite;
}

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

.hero__peacock {
  bottom: 8%;
  left: 3%;
  width: clamp(60px, 12vw, 130px);
  opacity: 0.7;
  animation: float-bob 4s ease-in-out infinite;
}

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

.hero__garland-left {
  top: 0; left: 0;
  width: clamp(60px, 15vw, 160px);
  opacity: 0.5;
  animation: sway-left 6s ease-in-out infinite;
  transform-origin: top center;
}

.hero__garland-right {
  top: 0; right: 0;
  width: clamp(60px, 15vw, 160px);
  opacity: 0.5;
  animation: sway-right 6s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes sway-left {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes sway-right {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero__scroll-indicator svg { width: 24px; height: 24px; opacity: 0.6; }

/* Final lockup override: keeps the hero names in the intended two-column layout. */
#hero .hero__name-lockup { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: clamp(.8rem,3vw,2.8rem); width: min(92vw,980px); }
#hero .hero__name-lockup .hero__name { display: block; position: relative; width: auto; left: auto; top: auto; transform: none; margin: 0; padding: 0; opacity: 1; }
#hero .hero__name-lockup .hero__amp { position: relative; left: auto; top: auto; transform: none; margin: 0; opacity: 1; }
@media (max-width: 700px) { #hero .hero__name-lockup { grid-template-columns: 1fr; gap: 1.15rem; width: min(90vw,30rem); } #hero .hero__name-lockup .hero__name { justify-self: center; } }

/* Mobile-safe ampersand: its own centered row, never inherited from the old absolute hero rules. */
#hero .hero__name-lockup .hero__amp {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: grid !important;
  place-items: center;
  justify-self: center;
  margin-inline: auto !important;
  transform: none;
  animation: hero-amp-orbit 1.1s .5s both cubic-bezier(.16,1,.3,1);
}
#hero .hero__name-lockup .hero__amp::before,
#hero .hero__name-lockup .hero__amp::after {
  content: '';
  position: absolute;
  width: .32rem;
  height: .32rem;
  border-radius: 50%;
  background: #f7c994;
  opacity: .9;
  animation: hero-amp-spark 1.8s .9s ease-in-out infinite;
}
#hero .hero__name-lockup .hero__amp::before { left: -1rem; top: .15rem; }
#hero .hero__name-lockup .hero__amp::after { right: -1rem; bottom: .15rem; animation-delay: 1.2s; }
@keyframes hero-amp-orbit { from { opacity: 0; transform: scale(.25) rotate(-35deg); } 65% { opacity: 1; transform: scale(1.12) rotate(8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes hero-amp-spark { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.35); opacity: 1; } }
@media (max-width: 700px) { #hero .hero__name-lockup .hero__amp { grid-column: 1; grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { #hero .hero__name-lockup .hero__amp, #hero .hero__name-lockup .hero__amp::before, #hero .hero__name-lockup .hero__amp::after { animation: none; } }

/* Final name-order override: bride first on desktop, centered stack on mobile. */
#hero .hero__name-lockup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(.8rem, 3vw, 2.8rem); width: min(92vw, 980px); }
#hero .hero__name--bride { justify-self: end; animation: hero-name-enter-left 1s .2s both cubic-bezier(.16,1,.3,1); }
#hero .hero__name--groom { justify-self: start; animation: hero-name-enter-right 1s .3s both cubic-bezier(.16,1,.3,1); }
@media (max-width: 700px) {
  #hero .hero__name-lockup { grid-template-columns: 1fr; gap: 1.15rem; width: min(90vw, 30rem); }
  #hero .hero__name--bride, #hero .hero__name--groom { justify-self: center; }
}

