/* ==========================================================================
   Deshpande Ganapati Invitation - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (ROOT VARIABLES)
   ========================================================================== */
:root {
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --page-max: 1440px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
button,
a,
div {
  -webkit-tap-highlight-color: transparent;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
  font-family: 'Asar', serif;
  font-weight: 500;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  background: var(--ivory);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   3. CURTAIN OVERLAY
   ========================================================================== */
.curtain-container {
  z-index: 9999;
  pointer-events: auto;
  will-change: transform;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
  transform: translateZ(0);
}

/* --- Curtain Panel Base --- */
.curtain-panel {
  background-color: var(--ivory);
  background-blend-mode: multiply;
  will-change: transform;
  backface-visibility: hidden;
  background-size: 300px;
  width: 50vw;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: inset 0 0 100px rgba(123, 77, 25, 0.04);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Left Panel --- */
.curtain-panel.left {
  border-right: 3px solid var(--gold-2);
  box-shadow: -2px 0 20px var(--shadow-2), -1px 0 6px var(--shadow);
}

.curtain-panel.left .curtain-panel-decor {
  pointer-events: none;
  width: 50px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.curtain-panel.left .curtain-panel-decor::before {
  content: "";
  background: linear-gradient(180deg, transparent 0%, var(--gold-3) 15%, var(--gold) 50%, var(--gold-3) 85%, transparent 100%);
  opacity: 0.7;
  width: 1.5px;
  position: absolute;
  top: 3%;
  bottom: 3%;
  right: 8px;
}

.curtain-panel.left .curtain-panel-decor::after {
  content: "";
  background: linear-gradient(180deg, transparent 0%, var(--orange) 20%, var(--orange-2) 50%, var(--orange) 80%, transparent 100%);
  opacity: 0.35;
  width: 1px;
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: 16px;
}

.curtain-panel.left .curtain-decor-line {
  border-right: 1px dashed var(--gold-3);
  opacity: 0.22;
  width: 0;
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 26px;
}

.curtain-panel.left .curtain-decor-outer {
  border-right: 1px solid var(--gold-3);
  opacity: 0.15;
  width: 0;
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 20px;
}

.curtain-panel.left::before {
  content: "";
  background: linear-gradient(90deg, transparent 0%, transparent 60%, var(--border-soft) 100%);
  pointer-events: none;
  z-index: 1;
  position: absolute;
  inset: 0;
}

.curtain-panel.left::after {
  content: "";
  background: radial-gradient(ellipse at right center, var(--border-soft) 0%, transparent 70%);
  pointer-events: none;
  width: 60px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

/* --- Right Panel --- */
.curtain-panel.right {
  border-left: 3px solid var(--gold-2);
  box-shadow: -2px 0 20px var(--shadow-2), -1px 0 6px var(--shadow);
}

.curtain-panel.right .curtain-panel-decor {
  pointer-events: none;
  width: 50px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.curtain-panel.right .curtain-panel-decor::before {
  content: "";
  background: linear-gradient(180deg, transparent 0%, var(--gold-3) 15%, var(--gold) 50%, var(--gold-3) 85%, transparent 100%);
  opacity: 0.7;
  width: 1.5px;
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 8px;
}

.curtain-panel.right .curtain-panel-decor::after {
  content: "";
  background: linear-gradient(180deg, transparent 0%, var(--orange) 20%, var(--orange-2) 50%, var(--orange) 80%, transparent 100%);
  opacity: 0.35;
  width: 1px;
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 16px;
}

.curtain-panel.right .curtain-decor-line {
  border-left: 1px dashed var(--gold-3);
  opacity: 0.22;
  width: 0;
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 26px;
}

.curtain-panel.right .curtain-decor-outer {
  border-left: 1px solid var(--gold-3);
  opacity: 0.15;
  width: 0;
  position: absolute;
  top: 4%;
  bottom: 4%;
  right: 20px;
}

.curtain-panel.right::before {
  content: "";
  background: linear-gradient(270deg, transparent 0%, transparent 60%, var(--border-soft) 100%);
  pointer-events: none;
  z-index: 1;
  position: absolute;
  inset: 0;
}

.curtain-panel.right::after {
  content: "";
  background: radial-gradient(ellipse at left center, var(--border-soft) 0%, transparent 70%);
  pointer-events: none;
  width: 60px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

/* --- Curtain Corners --- */
.curtain-corner {
  pointer-events: none;
  z-index: 2;
  width: 28px;
  height: 28px;
  position: absolute;
}

.curtain-corner::before,
.curtain-corner::after {
  content: "";
  position: absolute;
}

.curtain-corner--top {
  top: 16px;
}

.curtain-corner--bottom {
  bottom: 16px;
}

/* Left panel corners */
.curtain-panel.left .curtain-corner--top,
.curtain-panel.left .curtain-corner--bottom {
  right: 34px;
}

.curtain-panel.left .curtain-corner--top::before {
  background: var(--gold-3);
  opacity: 0.5;
  width: 18px;
  height: 1px;
  top: 0;
  right: 0;
}

.curtain-panel.left .curtain-corner--top::after {
  background: var(--gold-3);
  opacity: 0.5;
  width: 1px;
  height: 18px;
  top: 0;
  right: 0;
}

.curtain-panel.left .curtain-corner--bottom::before {
  background: var(--gold-3);
  opacity: 0.5;
  width: 18px;
  height: 1px;
  bottom: 0;
  right: 0;
}

.curtain-panel.left .curtain-corner--bottom::after {
  background: var(--gold-3);
  opacity: 0.5;
  width: 1px;
  height: 18px;
  bottom: 0;
  right: 0;
}

/* Right panel corners */
.curtain-panel.right .curtain-corner--top,
.curtain-panel.right .curtain-corner--bottom {
  left: 34px;
}

.curtain-panel.right .curtain-corner--top::before {
  background: var(--gold-3);
  opacity: 0.5;
  width: 18px;
  height: 1px;
  top: 0;
  left: 0;
}

.curtain-panel.right .curtain-corner--top::after {
  background: var(--gold-3);
  opacity: 0.5;
  width: 1px;
  height: 18px;
  top: 0;
  left: 0;
}

.curtain-panel.right .curtain-corner--bottom::before {
  background: var(--gold-3);
  opacity: 0.5;
  width: 18px;
  height: 1px;
  bottom: 0;
  left: 0;
}

.curtain-panel.right .curtain-corner--bottom::after {
  background: var(--gold-3);
  opacity: 0.5;
  width: 1px;
  height: 18px;
  bottom: 0;
  left: 0;
}

/* --- Curtain Center Content (Seal) --- */
.curtain-center-content {
  z-index: 10000;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.curtain-seal-ring {
  border: 1px dashed var(--gold-3);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 50%;
  width: clamp(160px, 42vw, 200px);
  height: clamp(160px, 42vw, 200px);
  animation: 40s linear infinite ringRotate;
  position: absolute;
}

.curtain-seal-ring::before {
  content: "";
  background: var(--gold-3);
  width: 5px;
  height: 5px;
  opacity: 0.6;
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translate(-50%);
}

.curtain-seal-ring-inner {
  border: 1px solid var(--gold-3);
  opacity: 0.15;
  pointer-events: none;
  border-radius: 50%;
  width: clamp(175px, 46vw, 218px);
  height: clamp(175px, 46vw, 218px);
  animation: 60s linear infinite ringRotateReverse;
  position: absolute;
}

.curtain-seal {
  cursor: pointer;
  z-index: 2;
  background: radial-gradient(ellipse at 30% 20%, var(--gold-3) 0%, var(--gold) 35%, var(--gold-2) 65%, var(--gold) 100%);
  width: clamp(120px, 34vw, 150px);
  height: clamp(120px, 34vw, 150px);
  box-shadow: 0 0 40px var(--shadow-2), 0 0 80px var(--shadow), 0 8px 32px var(--shadow-2), inset 0 2px 6px rgba(255, 255, 255, 0.35), inset 0 -3px 8px var(--shadow);
  color: var(--ivory);
  -webkit-tap-highlight-color: transparent;
  border: none;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: transform 0.5s, box-shadow 0.5s;
  animation: 3.5s ease-in-out infinite sealBreath;
  display: flex;
  position: relative;
  overflow: hidden;
}

.curtain-seal::before {
  content: "";
  pointer-events: none;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  position: absolute;
  inset: 8px;
}

.curtain-seal::after {
  content: "";
  border: 1.5px solid var(--gold-3);
  opacity: 0.45;
  pointer-events: none;
  border-radius: 50%;
  position: absolute;
  inset: -5px;
}

.curtain-seal-text-hi {
  color: var(--ivory);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 2;
  font-family: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', serif;
  font-size: clamp(0.95rem, 3.5vw, 1.12rem);
  line-height: 1.2;
  position: relative;
}

.curtain-seal-text-en {
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ivory-2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
  font-family: 'Asar', serif;
  font-size: clamp(0.55rem, 2vw, 0.68rem);
  position: relative;
}

.curtain-seal-shine {
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(transparent 0deg 140deg, rgba(255, 255, 255, 0.28) 170deg, rgba(255, 255, 255, 0.45) 180deg, rgba(255, 255, 255, 0.28) 190deg, transparent 220deg 360deg);
  border-radius: 50%;
  animation: 4s linear infinite sealShine;
  position: absolute;
  inset: -2px;
  -webkit-mask-image: radial-gradient(circle, transparent 55%, black 70% 100%);
  mask-image: radial-gradient(circle, transparent 55%, black 70% 100%);
}

.curtain-seal:hover {
  box-shadow: 0 0 55px var(--shadow-2), 0 0 110px var(--shadow), 0 12px 42px var(--shadow-2), inset 0 2px 8px rgba(255, 255, 255, 0.45), inset 0 -3px 8px var(--shadow);
  transform: scale(1.04);
}

.curtain-seal:active {
  box-shadow: 0 0 30px var(--shadow-2), 0 0 60px var(--shadow), 0 4px 20px var(--shadow-2), inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -4px 10px var(--shadow);
  transform: scale(0.97);
}

/* --- Curtain Open/Hidden States --- */
.curtain-container.open .curtain-panel.left {
  transform: translateX(-100%);
}

.curtain-container.open .curtain-panel.right {
  transform: translateX(100%);
}

.curtain-container.open .curtain-center-content {
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.curtain-container.hidden {
  display: none;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  isolation: isolate;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.18) 18%, transparent 44%), linear-gradient(#f8f1e5 0%, #f3e7d3 48%, #f7f0e4 100%);
  width: 100vw;
  padding-top: 20px;
  padding-bottom: 5px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 22%), radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.24) 0%, transparent 18%), radial-gradient(circle at 50% 60%, rgba(198, 155, 62, 0.06) 0%, transparent 40%), repeating-linear-gradient(0deg, rgba(177, 139, 76, 0.02) 0 1px, transparent 1px 7px);
  position: absolute;
  inset: 0;
}

.hero::after {
  content: "";
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  position: absolute;
  inset: 0;
}

.hero__top-layer {
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(123, 77, 25, 0.1));
  width: min(42vw, 132px);
  position: absolute;
  top: -9px;
  left: -5px;
}

/* --- Music Button --- */
.hero__music {
  z-index: 8;
  width: 52px;
  height: 52px;
  color: var(--orange);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 248, 236, 0.92);
  border: 1px solid rgba(198, 155, 62, 0.18);
  border-radius: 50%;
  justify-content: center;
  place-items: center;
  padding: 0;
  transition: background 0.4s, transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  display: grid;
  position: absolute;
  top: 20px;
  right: 16px;
  box-shadow: 0 10px 18px rgba(123, 77, 25, 0.1), inset 0 1px rgba(255, 255, 255, 0.9);
}

.hero__music span {
  font-size: 23px;
  line-height: 1;
  transition: transform 0.4s, color 0.4s;
  transform: translateY(-1px);
}

.hero__music.is-playing {
  border-color: var(--gold-3);
  color: #fff8ef;
  background: linear-gradient(135deg, #e4b85a 0%, #d89a32 45%, #c98b22 100%);
  animation: 2s ease-in-out infinite musicPulse;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(216, 154, 50, 0.35), 0 0 20px rgba(228, 184, 90, 0.25);
}

.hero__music.is-playing span {
  color: #fff;
  animation: 2s ease-in-out infinite noteDance;
  transform: translateY(-1px) scale(1.1);
}

/* --- Hero Logo --- */
.hero__logo {
  z-index: 4;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  place-items: center;
  gap: 8px;
  width: 200px;
  height: 56px;
  display: grid;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%);
}

.hero__logo img {
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(123, 77, 25, 0.1));
  width: 30px;
  height: 30px;
}

.hero__tiny {
  margin: 0;
}

/* --- Hero Content --- */
.hero__content {
  z-index: 4;
  text-align: center;
  width: min(92vw, 430px);
  margin: 0 auto;
  padding: 63px 12px 0;
  position: relative;
}

.divider {
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(123, 77, 25, 0.08));
  width: min(48vw, 120px);
  margin: 8px auto;
}

.divider--thin {
  opacity: 0.95;
  width: min(72vw, 132px);
}

.hero__family {
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 6px 0 8px;
  font-family: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', serif;
  font-size: clamp(1rem, 4.6vw, 1.25rem);
}

.hero__title {
  width: min(92vw, 380px);
  max-width: 380px;
  margin: 8px auto 12px;
}

.hero__message {
  color: #5e3f23;
  margin: 8px 0 0;
  font-family: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', serif;
  font-size: clamp(1.02rem, 4.2vw, 1.18rem);
  line-height: 1.45;
}

.hero__welcome {
  color: var(--orange);
  margin: 7px 0 10px;
  font-family: 'Tiro Devanagari Marathi', 'Noto Serif Devanagari', serif;
  font-size: clamp(1rem, 4vw, 1.12rem);
  line-height: 1.1;
}

/* --- Hero Murti Image --- */
.hero__murti {
  z-index: 5;
  filter: drop-shadow(0 18px 24px rgba(199, 89, 21, 0.16));
  width: 110%;
  max-width: 110%;
  height: auto;
  margin: 28px auto 0;
  display: block;
  position: relative;
  left: 50%;
  transform: translate(-50%);
}

/* --- Hero Flowers --- */
.hero__flower {
  z-index: 4;
  pointer-events: none;
  user-select: none;
  opacity: 0.96;
  filter: drop-shadow(0 6px 10px rgba(123, 77, 25, 0.08));
  position: absolute;
}

.hero__flower--left {
  width: clamp(70px, 16vw, 110px);
  top: 400px;
  left: -15px;
  transform: rotate(20deg);
}

.hero__flower--right {
  width: clamp(70px, 16vw, 110px);
  top: 400px;
  right: -15px;
  transform: scaleX(-1) rotate(20deg);
}

/* --- Hero Divider & Tag --- */
.hero-divider {
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
}

.hero-divider img {
  width: 140px;
  height: auto;
  display: block;
}

.hero-tag {
  width: min(100%, 420px);
  margin: 0 auto;
  position: relative;
}

.hero-tag img {
  width: 110%;
  display: block;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  justify-content: center;
  margin: 28px 0 5px;
  animation: 2s ease-in-out infinite arrowFloat;
  display: flex;
}

/* ==========================================================================
   5. NIMANTRAK (INVITING FAMILY) SECTION
   ========================================================================== */

/* --- Shape Divider Top --- */
.custom-shape-divider-top-1781551738 {
  width: 100%;
  line-height: 0;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.custom-shape-divider-top-1781551738 svg {
  width: calc(100% + 1.3px);
  height: 67px;
  display: block;
  position: relative;
}

.custom-shape-divider-top-1781551738 .shape-fill {
  fill: #f7f0e4;
}

.nimantrak-section {
  background: radial-gradient(circle, #f58d30, #e56d18);
  margin-top: -3px;
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}

.nimantrak-header {
  text-align: center;
  padding: 0 20px;
}

.nimantrak-title {
  color: #fff8ef;
  margin-bottom: 20px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 3.7rem;
  font-weight: 800;
  line-height: 1;
}

.section-label {
  text-align: center;
  color: #f6d38b;
  letter-spacing: 1.2px;
  text-transform: none;
  margin-bottom: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.heading-ornament {
  width: 140px;
  margin: 0 auto 20px;
  display: block;
}

.nimantrak-subtitle {
  color: #fff6eb;
  max-width: 380px;
  margin: 15px auto 18px;
  font-family: 'Asar', serif;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- Family Plaque --- */
.family-plaque {
  text-align: center;
  background: #f8f1e5;
  border: 1px solid rgba(200, 155, 60, 0.25);
  border-radius: 28px;
  width: 300px;
  margin: 0 auto 40px;
  padding: 24px 20px;
  position: relative;
  overflow: visible;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(200, 155, 60, 0.08);
}

.plaque-content {
  z-index: 2;
  position: relative;
}

.family-plaque h3 {
  color: #593825;
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.plaque-flower {
  opacity: 0.95;
  width: 70px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.plaque-left {
  left: -18px;
}

.plaque-right {
  right: -18px;
  transform: translateY(-50%) scaleX(-1);
}

/* --- Family Carousel --- */
.family-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.family-swiper {
  padding: 40px 0 !important;
}

.family-card {
  background: #f8f1e5;
  border-radius: 16px;
  height: 100%;
  transition: transform 0.4s, opacity 0.4s;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.family-slide {
  transition: all 0.4s;
}

.family-nav-prev,
.family-nav-next {
  background: var(--ivory);
  border: 1px solid var(--border);
  width: 48px;
  height: 48px;
  color: var(--gold);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 20px var(--shadow);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: all 0.3s;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.family-nav-prev:hover,
.family-nav-next:hover {
  background: var(--gold);
  color: var(--ivory);
  transform: translateY(-50%) scale(1.1);
}

.family-nav-prev {
  left: 0;
}

.family-nav-next {
  right: 0;
}

.card-image {
  aspect-ratio: 3/4;
  width: 100%;
}

.card-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.card-name {
  color: #593825;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.7rem;
  font-weight: 900;
  display: flex;
}

/* --- Invite Message --- */
.invite-message {
  text-align: center;
  color: #fff8ef;
  margin-top: 40px;
  padding: 0 20px;
}

.invite-message p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.9;
}

.bottom-ornament {
  width: 140px;
  margin: 40px auto 0;
  display: block;
}

/* --- Shape Divider Bottom (Nimantrak) --- */
.custom-shape-divider-bottom-1781437587 {
  width: 100%;
  line-height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.custom-shape-divider-bottom-1781437587 svg {
  width: calc(173% + 1.3px);
  height: 178px;
  display: block;
  position: relative;
}

.custom-shape-divider-bottom-1781437587 .shape-fill {
  fill: #f8f1e5;
}

/* ==========================================================================
   6. UTSAV (EVENTS) SECTION
   ========================================================================== */
.utsav-section {
  background: #f8f1e5;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.utsav-header {
  text-align: center;
  margin-bottom: 80px;
}

.utsav-header .section-label {
  color: #b07d30;
  letter-spacing: 4px;
  margin-bottom: 0.5px;
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
}

.utsav-title {
  color: #593825;
  margin-bottom: 18px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(3.5rem, 8vw, 3.8rem);
  font-weight: 800;
  line-height: 0.1;
}

.utsav-ornament {
  width: 130px;
  margin: auto;
  display: block;
}

.utsav-subtitle {
  color: #7a5a45;
  max-width: 300px;
  margin: 25px auto 0;
  line-height: 1.8;
}

/* --- Timeline --- */
.timeline {
  max-width: 520px;
  margin: auto;
  position: relative;
}

.wave-line {
  background: linear-gradient(#f3d28a, #d89a32);
  border-radius: 50px;
  width: 6px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
}

.timeline-item {
  margin-bottom: 55px;
  display: flex;
  position: relative;
  opacity: 0;
  transition: all 0.8s;
  transform: translateY(40px);
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.right {
  justify-content: flex-end;
}

/* --- Event Cards --- */
.event-card {
  text-align: center;
  --r: 24px;
  background: radial-gradient(circle at 0 0, transparent var(--r), #fff9f0 calc(var(--r) + 0.5px)) 0 0, radial-gradient(circle at 100% 0, transparent var(--r), #fff9f0 calc(var(--r) + 0.5px)) 100% 0, radial-gradient(circle at 0 100%, transparent var(--r), #fff9f0 calc(var(--r) + 0.5px)) 0 100%, radial-gradient(circle at 100% 100%, transparent var(--r), #fff9f0 calc(var(--r) + 0.5px)) 100% 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
  background-repeat: no-repeat;
  background-size: 51% 51%;
  width: 220px;
  padding: 18px;
  position: relative;
}

.event-card::after {
  content: "✿";
  color: #d89a32;
  opacity: 0.4;
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.event-icon {
  background: #fff4d9;
  border: 2px solid #e3c47a;
  width: 70px;
  height: 70px;
  padding: 6px;
}

.timeline-item.left .event-card {
  transform: rotate(-3deg);
}

.timeline-item.left .event-card::after {
  content: "";
  background: #d89a32;
  width: 24px;
  height: 2px;
  position: absolute;
  top: 50%;
  right: -24px;
}

.timeline-item.right .event-card {
  --r: 24px;
  background: radial-gradient(circle at 0 0, transparent var(--r), #f5c98a calc(var(--r) + 0.5px)) 0 0, radial-gradient(circle at 100% 0, transparent var(--r), #f5c98a calc(var(--r) + 0.5px)) 100% 0, radial-gradient(circle at 0 100%, transparent var(--r), #efb56d calc(var(--r) + 0.5px)) 0 100%, radial-gradient(circle at 100% 100%, transparent var(--r), #efb56d calc(var(--r) + 0.5px)) 100% 100%;
  background-repeat: no-repeat;
  background-size: 51% 51%;
  transform: rotate(3deg);
  box-shadow: 0 12px 30px rgba(215, 146, 50, 0.18);
}

.event-card h3 {
  color: #4e2f1b;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.event-date {
  color: #c89b3c;
  margin-bottom: 6px;
  font-weight: 600;
  display: block;
}

.event-time {
  color: #7a5a45;
  font-size: 0.92rem;
  display: block;
}

.timeline-item.right .event-date {
  color: #9c5d12;
  font-weight: 700;
}

.timeline-item.right .event-time {
  color: #5e3a1c;
}

/* --- Utsav Message --- */
.utsav-message {
  text-align: center;
  max-width: 500px;
  margin: 70px auto 0;
}

.utsav-message-divider {
  width: 110px;
  margin: 0 auto 24px;
  display: block;
}

.utsav-message p {
  color: #6a4b35;
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 2;
}

.utsav-message span {
  color: #d89a32;
  font-size: 1.15rem;
  font-weight: 600;
}

/* ==========================================================================
   7. LOCATION SECTION
   ========================================================================== */
.location-section {
  background: linear-gradient(175deg, #fef3e2 0%, #fce8cc 35%, #fae0bd 65%, #f8d9b0 100%);
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.location-container {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: linear-gradient(rgba(255, 243, 224, 0.65) 0%, rgba(252, 232, 204, 0.45) 100%);
  border: 1px solid rgba(228, 168, 80, 0.18);
  border-radius: 36px;
  max-width: 550px;
  margin: auto;
  padding: 30px 20px;
  box-shadow: 0 8px 32px rgba(210, 140, 50, 0.1), inset 0 1px rgba(255, 255, 249, 1);
}

.location-label {
  text-align: center;
  color: #cf7a32;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.location-title {
  text-align: center;
  color: #5d3b29;
  margin-top: 0;
  margin-bottom: 10px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(3.5rem, 8vw, 3.8rem);
  font-weight: 800;
}

.location-divider {
  width: 120px;
  margin: auto;
  display: block;
}

.location-subtitle {
  text-align: center;
  color: #7a5a45;
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* --- Location Card --- */
.location-card {
  background: linear-gradient(#fff6e8 0%, #fef0da 50%, #fceacb 100%);
  border: 1px solid rgba(224, 160, 70, 0.22);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(200, 120, 40, 0.12), 0 4px 12px rgba(200, 120, 40, 0.06);
}

.map-container {
  background: linear-gradient(#e6b04d, #d89a32);
  border-bottom: 1px solid rgba(212, 169, 93, 0.15);
  border-radius: 28px 28px 0 0;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  filter: grayscale(40%) saturate(0.9) brightness(1.03) contrast(1.02);
  width: 100%;
  height: 100%;
  border: 0;
}

.location-content {
  text-align: center;
  padding: 32px 28px 40px;
}

.location-content h3 {
  color: #5d3b29;
  margin-bottom: 20px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 2.3rem;
  font-weight: 800;
}

.location-address {
  color: #6a4b35;
  margin-bottom: 30px;
  line-height: 2;
}

.maps-button {
  color: #fff;
  background: linear-gradient(135deg, #e8913a, #d47828);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 62px;
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  box-shadow: 0 6px 20px rgba(212, 120, 40, 0.28);
}

.maps-button:hover {
  background: linear-gradient(135deg, #ec9a45, #d88030);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 120, 40, 0.38);
}

.location-note {
  color: #7a5a3e;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* --- Shape Divider Bottom (Location) --- */
.custom-shape-divider-bottom-1781516738 {
  width: 100%;
  line-height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.custom-shape-divider-bottom-1781516738 svg {
  width: calc(119% + 1.3px);
  height: 137px;
  display: block;
  position: relative;
}

.custom-shape-divider-bottom-1781516738 .shape-fill {
  fill: #f8f1e5;
}

/* ==========================================================================
   8. BLESSINGS SECTION
   ========================================================================== */
.blessings-section {
  background: #f8f1e5;
  padding: 110px 20px;
  position: relative;
  overflow: hidden;
}

.blessings-container {
  text-align: center;
  max-width: 650px;
  margin: auto;
}

.blessings-label {
  color: #d4a95d;
  letter-spacing: 5px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  display: block;
}

.blessings-title {
  color: #593825;
  margin-top: 1px;
  margin-bottom: 14px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(3.5rem, 8vw, 4rem);
  font-weight: 700;
}

.blessings-divider {
  width: 120px;
  margin: 0 auto 50px;
  display: block;
}

/* --- Blessing Card --- */
.blessing-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(#d97a22 0%, #c96b17 100%);
  border: 1px solid rgba(212, 169, 93, 0.15);
  border-radius: 38px;
  outline: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 50px 35px;
  transition: all 0.4s;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.blessing-card::after {
  content: "";
  pointer-events: none;
  background: radial-gradient(rgba(255, 220, 130, 0.35), transparent 70%);
  width: 250px;
  height: 250px;
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translate(-50%);
}

.blessing-card:hover {
  transform: translateY(-3px);
}

.blessing-card::before {
  content: "";
  opacity: 0.08;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.card-flower {
  opacity: 0.45;
  pointer-events: none;
  width: 130px;
  position: absolute;
}

.flower-left {
  bottom: -10px;
  left: -20px;
}

.flower-right {
  top: -10px;
  right: -20px;
  transform: rotate(180deg);
}

.quote-star {
  color: #ffe4a6;
  margin-bottom: 25px;
  font-size: 1.5rem;
  animation: 2s infinite pulseStar;
}

.blessing-text {
  color: #fff7ea;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  text-align: center;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  min-height: 180px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2.1;
  transition: opacity 0.4s, transform 0.4s;
  display: flex;
}

.blessing-text.fade {
  opacity: 0;
  transform: translateY(15px);
}

.tap-message {
  color: #9a6823;
  letter-spacing: 0.5px;
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   9. GALLERY SECTION
   ========================================================================== */
.gallery-section {
  background: #f8f1e5;
  margin-bottom: -2px;
  padding: 110px 20px;
  position: relative;
  overflow: hidden;
}

.gallery-container {
  max-width: 650px;
  margin: auto;
}

.gallery-label {
  text-align: center;
  color: #d4a95d;
  letter-spacing: 4px;
  margin-bottom: 15px;
  font-size: 0.8rem;
  display: block;
}

.gallery-title {
  text-align: center;
  color: #593825;
  margin-bottom: 10px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(3.4rem, 8vw, 3.8rem);
  font-weight: 700;
  line-height: 55px;
}

.gallery-divider {
  width: 120px;
  margin: auto;
  display: block;
}

.gallery-subtitle {
  text-align: center;
  color: #7a5a45;
  margin-top: 18px;
  margin-bottom: 45px;
  line-height: 1.8;
}

/* --- Gallery Grid --- */
.featured-photo {
  background: #fff9f0;
  border-radius: 30px;
  margin-bottom: 30px;
  padding: 2px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.featured-photo img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 22px;
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  display: grid;
}

.gallery-card {
  background: #fff9f0;
  border-radius: 18px 28px 20px 24px;
  padding: 2px;
  transition: all 0.35s;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.gallery-card img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  display: block;
}

.tilt-left {
  transform: rotate(-2deg);
}

.tilt-right {
  transform: rotate(2deg);
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* --- Gallery Message --- */
.gallery-message {
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  display: flex;
}

.gallery-message img {
  width: 110px;
  margin-bottom: 20px;
}

.gallery-message p {
  color: #6a4b35;
  max-width: 420px;
  margin: auto;
  line-height: 2;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.ganpati-footer {
  background: linear-gradient(#e46f1a 0%, #d96415 20%, #c95a10 60%, #b84d0c 100%);
  padding: 75px 1px 25px;
  position: relative;
  overflow: hidden;
}

.footer-top-fade {
  pointer-events: none;
  background: linear-gradient(#f8f1e5 0%, rgba(248, 241, 229, 0) 100%);
  width: 100%;
  height: 120px;
  position: absolute;
  top: 0;
  left: 0;
}

.footer-content {
  text-align: center;
  max-width: 650px;
  margin: auto;
  position: relative;
}

.footer-flower {
  opacity: 0.12;
  pointer-events: none;
  width: 130px;
  position: absolute;
}

.footer-left {
  top: -40px;
  left: -40px;
}

.footer-right {
  bottom: -15px;
  right: -40px;
  transform: rotate(180deg);
}

.footer-divider {
  width: 120px;
  margin: auto auto 40px;
  display: block;
}

.footer-blessing h2 {
  color: #fff8ea;
  max-width: 650px;
  margin: auto;
  font-size: clamp(1.9em, 7vw, 3.1rem);
  font-weight: 500;
  line-height: 1.7;
}

.footer-family {
  color: #ffe4a6;
  text-align: right;
  letter-spacing: 0.5px;
  margin-top: 20px;
  margin-right: 25px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-credit {
  color: #ffe4a6 !important;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 70px;
  font-size: 0.85rem;
}

/* ==========================================================================
   11. ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* --- Curtain Ring Rotations --- */
@keyframes ringRotate {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringRotateReverse {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* --- Seal Animations --- */
@keyframes sealShine {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sealBreath {
  0%,
  100% {
    box-shadow: 0 0 40px var(--shadow-2), 0 0 80px var(--shadow), 0 8px 32px var(--shadow-2), inset 0 2px 6px rgba(255, 255, 255, 0.35), inset 0 -3px 8px var(--shadow);
  }
  50% {
    box-shadow: 0 0 50px var(--shadow-2), 0 0 100px var(--shadow), 0 10px 38px var(--shadow-2), inset 0 2px 6px rgba(255, 255, 255, 0.4), inset 0 -3px 8px var(--shadow);
  }
}

/* --- Music Button Animations --- */
@keyframes musicPulse {
  0% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(216, 154, 50, 0.35), 0 0 20px rgba(228, 184, 90, 0.25);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(216, 154, 50, 0.5), 0 0 28px rgba(228, 184, 90, 0.4);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(216, 154, 50, 0.35), 0 0 20px rgba(228, 184, 90, 0.25);
  }
}

@keyframes noteDance {
  0%,
  100% {
    transform: translateY(-1px) scale(1.1);
  }
  25% {
    transform: translateY(-3px) scale(1.1) rotate(-5deg);
  }
  75% {
    transform: translateY(1px) scale(1.1) rotate(5deg);
  }
}

/* --- Scroll Indicator Arrow --- */
@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* --- Blessing Star Pulse --- */
@keyframes pulseStar {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   12. INTERACTIVE ELEMENT TRANSITIONS
   ========================================================================== */
button,
.maps-button {
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s !important;
}

button:hover,
.maps-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 77, 25, 0.15);
}

button:active,
.maps-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(123, 77, 25, 0.1);
}

.hero__music:active {
  transform: scale(0.95) !important;
}

.family-card,
.gallery-card {
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.family-card:hover,
.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(123, 77, 25, 0.12);
}

/* ==========================================================================
   13. RESPONSIVE / MEDIA QUERIES
   ========================================================================== */

/* --- Small screens (max 360px) --- */
@media (max-width: 360px) {
  .curtain-seal {
    width: 110px;
    height: 110px;
  }

  .curtain-seal-ring {
    width: 145px;
    height: 145px;
  }

  .curtain-seal-ring-inner {
    width: 158px;
    height: 158px;
  }

  .curtain-seal-text-en {
    letter-spacing: 1.5px;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  .event-card {
    width: 190px;
  }

  .event-icon {
    width: 64px;
    height: 64px;
  }

  .blessing-card {
    min-height: 300px;
    padding: 40px 24px;
  }

  .blessing-text {
    font-size: 1.8rem;
    line-height: 1.9;
  }

  .card-flower {
    width: 95px;
  }

  .gallery-grid {
    gap: 14px;
  }

  .ganpati-footer {
    padding: 80px 0 35px;
  }

  .footer-blessing h2 {
    line-height: 1.6;
  }

  .footer-credit {
    letter-spacing: 3px;
    font-size: 0.75rem;
  }

  .footer-flower {
    width: 90px;
  }
}

/* --- Tablet portrait (max 767px) --- */
@media (max-width: 767px) {
  .custom-shape-divider-top-1781551738 svg {
    width: calc(100% + 1.3px);
    height: 40px;
  }

  .custom-shape-divider-bottom-1781437587 svg {
    width: calc(173% + 1.3px);
    height: 78px;
  }

  .custom-shape-divider-bottom-1781516738 svg {
    width: calc(134% + 1.3px);
    height: 80px;
  }

  .family-nav-prev,
  .family-nav-next {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .family-swiper .swiper-slide {
    opacity: 0.85;
    transform: scale(0.96);
  }

  .family-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Tablet landscape (min 760px) --- */
@media (min-width: 760px) {
  .hero__content {
    width: min(78vw, 560px);
    padding-top: 66px;
  }

  .hero__title {
    width: min(76vw, 330px);
  }

  .hero__murti {
    width: 110%;
    max-width: 680px;
  }

  .hero__flower--left {
    width: clamp(100px, 12vw, 140px);
    top: 180px;
    left: 2%;
  }

  .hero__flower--right {
    width: clamp(100px, 12vw, 140px);
    top: 180px;
    right: 2%;
  }
}

/* --- Tablet (min 768px) --- */
@media (min-width: 768px) {
  .family-swiper .swiper-slide {
    opacity: 0.8;
    transform: scale(0.95);
  }

  .family-swiper .swiper-slide-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
  }

  .curtain-corner {
    width: 36px;
    height: 36px;
  }
}

/* --- Desktop (min 1024px) --- */
@media (min-width: 1024px) {
  .hero {
    min-height: 820px;
  }

  .hero__content {
    width: min(70vw, 620px);
  }

  .hero__top-layer {
    width: 190px;
  }

  .hero__title {
    width: 360px;
  }
}

/* ==========================================================================
   14. ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
