/* =========================================================
   DESIGN TOKENS
   Royal Maroon & Gold — Sanjana & Siva Krishna · #Sanjiva
========================================================= */
:root{
  --maroon-deep:   #2B0A14;
  --maroon-rich:   #5C1626;
  --maroon-panel:  #3E0F1C;
  --gold:          #D4AF37;
  --gold-light:    #F0D687;
  --ivory:         #F8F1E4;
  --teal-accent:   #158A80;
  --blush:         #E8B4B8;
  --marigold:      #F4A93A;

  --font-display: 'Cinzel', serif;
  --font-elegant: 'Cormorant Garamond', serif;
  --font-utility: 'Poppins', sans-serif;

  --radius-lg: 18px;
  --radius-sm: 8px;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  position:relative;
  background: var(--maroon-deep);
  color: var(--ivory);
  font-family: var(--font-elegant);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,175,55,0.045) 0px, rgba(212,175,55,0.045) 1px, transparent 1px, transparent 16px),
    repeating-linear-gradient(-45deg, rgba(212,175,55,0.035) 0px, rgba(212,175,55,0.035) 1px, transparent 1px, transparent 16px);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

/* =========================================================
   SCROLL PROGRESS BAR
========================================================= */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--marigold), var(--gold));
  z-index:70;
  transition:width 0.1s linear;
}

/* =========================================================
   CURSOR STAR SPRINKLE
========================================================= */
.cursor-star{
  position:fixed; top:0; left:0; z-index:60;
  pointer-events:none;
  color:var(--gold-light);
  font-size:14px;
  will-change:transform, opacity;
  animation:starPop 0.85s ease-out forwards;
}
@keyframes starPop{
  0%   { opacity:1; transform:translate(-50%,-50%) scale(0.4) rotate(0deg); }
  60%  { opacity:0.9; }
  100% { opacity:0; transform:translate(-50%,-50%) translateY(-26px) scale(1.1) rotate(140deg); }
}

/* =========================================================
   PETAL CANVAS
========================================================= */
#petal-canvas{
  position:fixed; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:5;
}

/* =========================================================
   SOUND TOGGLE
========================================================= */
.sound-toggle{
  position:fixed; top:18px; right:18px; z-index:50;
  display:flex; align-items:center; gap:8px;
  background:rgba(43,10,20,0.75);
  border:1px solid var(--gold);
  color:var(--gold-light);
  font-family:var(--font-utility);
  font-size:0.72rem; letter-spacing:0.06em;
  padding:8px 14px; border-radius:999px;
  cursor:pointer; backdrop-filter:blur(6px);
  transition:background 0.3s ease, transform 0.2s ease;
}
.sound-toggle:hover{ transform:translateY(-1px); background:rgba(92,22,38,0.85); }
.sound-toggle.playing .sound-icon{ animation:pulse 1.2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

/* =========================================================
   TEMPLE MOTIFS — reused across sections
========================================================= */
.gopuram-watermark{
  position:absolute;
  opacity:0.9; pointer-events:none; z-index:0;
  filter:drop-shadow(0 4px 18px rgba(0,0,0,0.4));
}
.gopuram-watermark--hero{
  width:200px; bottom:0; left:50%; transform:translateX(-50%);
  opacity:0.85;
}

.toran-strip{
  display:block; width:100%; height:10px; color:var(--gold);
  opacity:0.55;
}
.toran-strip--hero{ position:absolute; top:0; left:0; z-index:2; opacity:0.7; }
.toran-strip--section{ position:relative; margin-bottom:20px; }

.elephants-divider-real{
  display:flex; align-items:center; justify-content:center; gap:56px;
  margin:28px auto 8px;
}
.elephants-divider-real--footer{ margin:18px auto 22px; opacity:0.85; }
.elephant-icon{
  width:min(24vw, 100px); height:auto; opacity:0.9;
  filter:drop-shadow(0 0 6px rgba(212,175,55,0.25));
}
.elephant-icon--right{ transform:scaleX(-1); }

.invocation{
  font-family:var(--font-elegant); font-style:italic;
  font-size:0.95rem; color:var(--gold-light);
  opacity:0.85; margin-bottom:10px; letter-spacing:0.04em;
}

/* =========================================================
   GATE / HERO
========================================================= */
.gate{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  isolation:isolate;
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.gate-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center 20%;
  filter:saturate(0.9) brightness(0.55);
  transform:scale(1.05);
}
.gate-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at center, rgba(43,10,20,0.35) 0%, rgba(43,10,20,0.88) 70%),
    linear-gradient(180deg, rgba(43,10,20,0.55) 0%, rgba(43,10,20,0.9) 100%);
}

.mandala-corner{
  position:absolute; width:180px; height:180px; opacity:0.5; z-index:1;
  background:
    repeating-conic-gradient(from 0deg, var(--gold) 0deg 4deg, transparent 4deg 18deg);
  border-radius:50%;
  mask: radial-gradient(circle, black 55%, transparent 78%);
  -webkit-mask: radial-gradient(circle, black 55%, transparent 78%);
}
.mandala-tl{ top:-40px; left:-40px; }
.mandala-tr{ top:-40px; right:-40px; }
.mandala-bl{ bottom:-40px; left:-40px; }
.mandala-br{ bottom:-40px; right:-40px; }

.gate-content{
  position:relative; z-index:3;
  text-align:center;
  padding:32px;
  max-width:560px;
}

.hashtag-badge{
  display:inline-block;
  font-family:var(--font-utility);
  font-size:0.78rem; letter-spacing:0.1em;
  color:var(--maroon-deep);
  background:var(--gold-light);
  padding:6px 18px;
  border-radius:999px;
  margin-bottom:22px;
  font-weight:500;
}

.eyebrow{
  font-family:var(--font-utility);
  font-size:0.7rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:18px;
}
.divider-motif{ display:flex; justify-content:center; margin:14px 0 20px; color:var(--gold); }
.divider-svg{ width:220px; height:34px; }

.temple-bells{
  display:block; width:min(100%, 420px); height:auto; color:var(--gold);
  margin:0 auto;
}
.temple-bells--hero{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  z-index:2; opacity:0.9;
  animation:bellSway 4s ease-in-out infinite;
  transform-origin:center top;
}
@keyframes bellSway{
  0%,100%{ transform:translateX(-50%) rotate(-1deg); }
  50%{ transform:translateX(-50%) rotate(1deg); }
}

.couple-names{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(2.2rem, 9vw, 3.6rem);
  line-height:1.25;
  color:var(--ivory);
  text-shadow:0 2px 24px rgba(0,0,0,0.5);
}
.couple-names span{ display:block; }
.couple-names .amp{
  font-family:var(--font-elegant);
  font-style:italic;
  font-size:0.55em;
  color:var(--gold);
  margin:0.1em 0;
}
.tagline{
  font-size:1.15rem; font-style:italic;
  color:var(--blush);
  margin-top:14px;
}
.gate-date{
  font-family:var(--font-utility);
  letter-spacing:0.18em;
  font-size:0.85rem;
  color:var(--gold-light);
  margin-top:16px;
}
.open-invite-btn{
  margin-top:34px;
  font-family:var(--font-display);
  font-size:0.85rem; letter-spacing:0.12em;
  background:transparent;
  border:1px solid var(--gold);
  color:var(--gold-light);
  padding:14px 38px;
  border-radius:999px;
  cursor:pointer;
  transition:background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.open-invite-btn:hover, .open-invite-btn:focus-visible{
  background:var(--gold);
  color:var(--maroon-deep);
  box-shadow:0 0 28px rgba(212,175,55,0.45);
  outline:none;
}

.gate.closing{
  opacity:0;
  transform:scale(1.08);
  pointer-events:none;
}

/* =========================================================
   OPENING SEQUENCE
========================================================= */
.opening-sequence{
  position:fixed; inset:0; z-index:40;
  display:none;
  align-items:center; justify-content:center;
  flex-direction:column;
  background:radial-gradient(ellipse at center, var(--maroon-rich) 0%, var(--maroon-deep) 75%);
  text-align:center;
}
.opening-sequence.active{ display:flex; }

.opening-hashtag{
  position:relative; z-index:1;
  font-family:var(--font-display);
  font-size:clamp(1.6rem, 6vw, 2.4rem);
  color:var(--gold-light);
  opacity:0;
  animation:openingTextIn 1s ease forwards 0.35s;
}
.opening-sub{
  position:relative; z-index:1;
  font-family:var(--font-elegant);
  font-style:italic;
  color:var(--ivory);
  opacity:0;
  margin-top:10px;
  animation:openingTextIn 1s ease forwards 0.7s;
}
@keyframes openingTextIn{
  from{ opacity:0; transform:translateY(10px) scale(0.94); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.opening-sequence.fade-out{ animation:openingFadeOut 0.7s ease forwards; }
@keyframes openingFadeOut{ to{ opacity:0; } }

/* =========================================================
   OPENING RING SPINNER
========================================================= */
.opening-ring{
  position:absolute;
  width:260px; height:260px;
  border-radius:50%;
  border:1px solid rgba(212,175,55,0.5);
  border-top-color:var(--gold);
  animation:spinRing 2.6s linear infinite;
}
.opening-ring--inner{
  width:190px; height:190px;
  border-top-color:transparent;
  border-bottom-color:var(--gold);
  animation-duration:1.8s;
  animation-direction:reverse;
  opacity:0.7;
}
@keyframes spinRing{ to{ transform:rotate(360deg); } }

/* permanent bells header video — three side-by-side, tight spacing, fading into the page at the bottom */
.bells-header{
  display:flex; justify-content:center; align-items:flex-start;
  gap:1.5vw;
  width:100%;
  max-width:460px;
  margin:0 auto;
}
.bells-header video{
  display:block; width:31%; height:auto;
  -webkit-mask-image:linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
  mask-image:linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
}
@media (min-width:601px){
  .bells-header{ max-width:560px; gap:10px; }
}

/* =========================================================
   MAIN CONTENT / SECTIONS
========================================================= */
.main-content{ position:relative; z-index:2; }

.section{
  position:relative;
  padding:80px 24px;
  max-width:720px;
  margin:0 auto;
  text-align:center;
  border-bottom:1px solid rgba(212,175,55,0.15);
  overflow:hidden;
}
.section--wide{ max-width:1000px; }

.section::before{
  content:'';
  position:absolute;
  top:-60px; left:50%;
  width:420px; height:420px;
  transform:translateX(-50%);
  background:repeating-conic-gradient(from 0deg, rgba(212,175,55,0.06) 0deg 3deg, transparent 3deg 16deg);
  border-radius:50%;
  mask:radial-gradient(circle, black 40%, transparent 72%);
  -webkit-mask:radial-gradient(circle, black 40%, transparent 72%);
  z-index:-1;
  pointer-events:none;
}

.section-title{
  font-family:var(--font-display);
  font-size:clamp(1.5rem, 5vw, 2.1rem);
  color:var(--gold-light);
  margin:8px 0 14px;
}
.section-sub{
  font-size:1.05rem; color:var(--ivory);
  opacity:0.85; max-width:440px; margin:0 auto;
}
.section--wide .section-sub{ max-width:600px; }

.couple-quote{
  font-style:italic;
  font-size:1.2rem;
  color:var(--blush);
  max-width:560px;
  margin:6px auto 0;
}

.reveal{ opacity:0; transform:translateY(24px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =========================================================
   COUNTDOWN — MUHURTHAM CLOCK
========================================================= */
.muhurtham-clock{
  position:relative;
  width:230px; height:230px;
  margin:40px auto 0;
}
.clock-ring{ width:100%; height:100%; transform:rotate(-90deg); }
.ring-track{ fill:none; stroke:rgba(212,175,55,0.15); stroke-width:4; }
.ring-progress{
  fill:none; stroke:var(--gold); stroke-width:4; stroke-linecap:round;
  stroke-dasharray:628; stroke-dashoffset:628;
  transition:stroke-dashoffset 1s linear;
}
.clock-face{
  position:absolute; inset:0;
  display:grid; grid-template-columns:1fr 1fr; gap:6px 0;
  align-content:center; justify-items:center;
}
.clock-unit{ display:flex; flex-direction:column; align-items:center; }
.clock-unit span{
  font-family:var(--font-display); font-size:1.7rem; color:var(--ivory);
  font-variant-numeric:tabular-nums;
}
.clock-unit label{
  font-family:var(--font-utility); font-size:0.6rem;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--gold-light);
  margin-top:2px;
}

/* =========================================================
   COUPLE PORTRAITS — marigold wreath + sepia-to-color reveal
========================================================= */
.couple-grid{
  display:flex; align-items:center; justify-content:center; gap:36px;
  flex-wrap:wrap;
  margin-top:34px;
}
.portrait-card{
  width:min(38vw, 320px);
  text-align:center;
}
.portrait-frame{
  position:relative;
  width:100%;
  border-radius:20px;
  overflow:hidden;
  background:var(--maroon-panel);
  box-shadow:0 12px 32px rgba(0,0,0,0.35);
}
.portrait-img{
  width:100%; height:400; object-fit:cover; display:block; object-position: top center;
  filter:grayscale(0.85) sepia(0.45) brightness(0.92);
  transition:filter 1.3s ease 0.25s;
}
.portrait-card.in-view .portrait-img{
  filter:grayscale(0) sepia(0) brightness(1);
}
.wreath-ring{
  position:absolute; inset:-2px; width:calc(100% + 4px); height:calc(100% + 4px);
  z-index:2; pointer-events:none;
}
.wreath-base{
  fill:none; stroke:var(--gold); stroke-width:3;
  stroke-dasharray:1370; stroke-dashoffset:1370;
  transition:stroke-dashoffset 1.6s ease;
}
.wreath-petals{
  fill:none; stroke:var(--marigold); stroke-width:9;
  stroke-dasharray:15 13; stroke-linecap:round;
  opacity:0; transition:opacity 0.9s ease 1.2s;
}
.portrait-card.in-view .wreath-base{ stroke-dashoffset:0; }
.portrait-card.in-view .wreath-petals{ opacity:0.8; }

.portrait-card figcaption{
  font-family:var(--font-display); font-size:1.05rem;
  padding:14px 8px; color:var(--gold-light);
}
.portrait-card figcaption span{
  display:block; font-family:var(--font-utility); font-size:0.62rem;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--ivory); opacity:0.7; margin-top:3px;
}
.couple-emblem{
  font-family:var(--font-elegant); font-style:italic; font-size:2.8rem; color:var(--gold);
}

/* =========================================================
   CELEBRATION SCHEDULE
========================================================= */
.schedule-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
  margin-top:12px;
}
.schedule-card{
  position:relative;
  background:linear-gradient(160deg, var(--maroon-panel), var(--maroon-rich));
  border:1px solid rgba(212,175,55,0.4);
  border-radius:var(--radius-lg);
  padding:26px 18px;
  text-align:left;
  transition:transform 0.25s ease, border-color 0.25s ease;
  overflow:hidden;
}
.schedule-card:hover{ transform:translateY(-4px); border-color:var(--gold); }
.schedule-card--highlight{
  border-color:var(--gold);
  box-shadow:0 0 24px rgba(212,175,55,0.25);
}
.schedule-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--gold);
  color:var(--gold-light);
  margin-bottom:14px;
  overflow:hidden;
}
.schedule-icon svg{ width:26px; height:26px; }
.schedule-icon img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.schedule-icon--highlight{ color:var(--marigold); border-color:var(--marigold); }
.schedule-tag{
  font-family:var(--font-utility); font-size:0.62rem; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--gold-light);
}
.schedule-title{
  font-family:var(--font-display); font-size:1.1rem;
  color:var(--ivory); margin:8px 0 10px; line-height:1.3;
}
.schedule-title span{ display:block; font-size:0.72em; font-family:var(--font-elegant); font-style:italic; color:var(--blush); }
.schedule-time{ font-size:1rem; color:var(--gold-light); font-family:var(--font-utility); letter-spacing:0.03em; }
.schedule-directions{
  display:inline-block; margin-top:10px;
  font-family:var(--font-utility); font-size:0.75rem; letter-spacing:0.03em;
  color:var(--marigold); text-decoration:none; border-bottom:1px solid rgba(244,169,58,0.5);
}
.schedule-directions:hover{ border-color:var(--marigold); }
.schedule-venue{
  margin-top:30px;
  font-size:1.15rem; font-weight:700;
  color:var(--ivory); opacity:0.95;
}
.banana-leaf{
  position:absolute; width:64px; height:32px; color:var(--gold); opacity:0.5;
}
.banana-leaf--tl{ top:-6px; left:-8px; }
.banana-leaf--br{ bottom:-6px; right:-8px; transform:rotate(180deg); }

/* =========================================================
   FAMILY
========================================================= */
.family-photos{
  display:flex; gap:14px; justify-content:center; margin:20px 0; flex-wrap:wrap;
}
.family-photos img{
  width:min(45vw, 210px); height:210px; object-fit:cover;
  border-radius:var(--radius-lg); border:1px solid var(--gold);
}
.family-names{ font-family:var(--font-display); font-size:1.15rem; color:var(--gold-light); margin-top:8px; }
.family-role{ font-size:1rem; color:var(--ivory); opacity:0.8; margin-top:6px; }

/* =========================================================
   GALLERY + LIGHTBOX
========================================================= */
.gallery-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-top:28px;
}
.gallery-grid img{
  width:100%; height:150px; object-fit:cover; border-radius:var(--radius-sm);
  cursor:pointer; border:1px solid rgba(212,175,55,0.4);
  transition:transform 0.3s ease, filter 0.3s ease;
}
.gallery-grid img:hover{ transform:scale(1.04); filter:brightness(1.1); }

.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(20,4,8,0.94);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; pointer-events:none;
  transition:opacity 0.3s ease;
}
.lightbox.active{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:100%; max-height:85vh; border-radius:var(--radius-sm); border:1px solid var(--gold); }
.lightbox-close{
  position:absolute; top:20px; right:24px;
  background:none; border:none; color:var(--gold-light);
  font-size:2rem; cursor:pointer; line-height:1;
}

/* =========================================================
   VIDEO
========================================================= */
.video-frame{
  position:relative; width:100%; padding-top:56.25%;
  margin-top:26px; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--gold);
  background:#000;
}
.video-thumb{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.video-frame iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
.video-play-btn{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  background:rgba(43,10,20,0.55);
  border:none; border-radius:50%;
  width:88px; height:88px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:transform 0.25s ease, background 0.25s ease;
}
.video-play-btn:hover{ transform:translate(-50%,-50%) scale(1.08); background:rgba(43,10,20,0.75); }

/* =========================================================
   MAP
========================================================= */
.map-embed-card{
  margin-top:24px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--gold);
  height:320px;
}
.map-embed-card iframe{ width:100%; height:100%; border:0; }
.directions-btn{
  display:inline-block; margin-top:20px;
  font-family:var(--font-utility); font-size:0.8rem; letter-spacing:0.08em;
  background:var(--gold); color:var(--maroon-deep);
  padding:14px 34px; border-radius:999px; text-decoration:none;
  font-weight:500;
  transition:transform 0.2s ease;
}
.directions-btn:hover{ transform:translateY(-2px); }

/* =========================================================
   ACTIONS — calendar + share
========================================================= */
.action-buttons{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
}
.action-btn{
  font-family:var(--font-utility); font-size:0.82rem; letter-spacing:0.04em;
  background:transparent; border:1px solid var(--gold); color:var(--gold-light);
  padding:13px 28px; border-radius:999px; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  transition:background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.action-btn:hover{ background:var(--gold); color:var(--maroon-deep); transform:translateY(-2px); }

/* =========================================================
   FOOTER
========================================================= */
.footer{
  position:relative;
  text-align:center;
  color:var(--gold);
  border-bottom:none;
  padding:0;
  overflow:visible;
}
.footer::before{ content:none; }
.footer-inner{
  padding:60px 24px 10px;
}
.footer-names{ font-family:var(--font-display); font-size:1.3rem; color:var(--gold-light); }
.footer-hashtag{ font-family:var(--font-utility); font-size:0.85rem; letter-spacing:0.08em; color:var(--gold); margin-top:6px; }
.footer-note{ font-size:0.95rem; font-style:italic; color:var(--ivory); opacity:0.7; margin-top:8px; }

.footer-temple{
  display:block;
  width:100%;
  height:auto;
  margin-top:24px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (min-width:640px){
  .gallery-grid img{ height:190px; }
}

@media (max-width:860px){
  .schedule-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:600px){
  .section{ padding:60px 18px; }
  .schedule-grid{ grid-template-columns:1fr; }
  .couple-grid{ gap:18px; }
  .portrait-card{ width:min(80vw, 320px); }
  .portrait-img{ height:340px; }
  .couple-emblem{ display:none; }
  .map-embed-card{ height:240px; }
  .hashtag-badge{ font-size:0.7rem; padding:5px 14px; }
  .invocation{ font-size:0.82rem; }
  .video-play-btn{ width:64px; height:64px; }
  .video-play-btn svg{ width:40px; height:30px; }
  .opening-ring{ width:190px; height:190px; }
  .opening-ring--inner{ width:130px; height:130px; }
  .gopuram-watermark--hero{ width:150px; }
  .elephants-divider-real{ gap:10px; }
  .elephant-icon{ width:22vw; }
  .action-buttons{ flex-direction:column; align-items:center; }
  .action-btn{ width:min(260px, 80vw); justify-content:center; }
}
