:root {
  --bg-dark: #14101b;
  --bg-dark-deep: #0c0910;
  --panel-bg: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(226, 192, 123, 0.22);
  --accent-gold: #d9b56b;
  --accent-gold-light: #f2ddac;
  --text-light: #f6f1ea;
  --text-sub: #cdc4d9;
}

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

html {
  font-size: 17px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(217, 181, 107, 0.10), transparent 60%),
    var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding-top: 76px;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.3);
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.logo .dot {
  color: #ff5533;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  transform: rotate(0deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg);
  background: #ff5533;
  color: #ffffff;
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--accent-gold);
  opacity: 0.85;
}

.ornament::before,
.ornament::after {
  content: '';
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.ornament .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background: url('../../assets/images/wedding/hindu/loading-hindu.webp') top/cover no-repeat;
  filter: brightness(0.3) saturate(0.95) blur(0.5px);
  z-index: -2;
  transform: scale(1.1);
}

.ambient-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 181, 107, 0.12) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.glow-1 { top: -120px; left: -120px; }
.glow-2 { bottom: -120px; right: -120px; }

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

h1, h2, h3, .brand-font {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  font-weight: 600;
}

#loading-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../../assets/images/wedding/hindu/loading-hindu.webp') top/cover,
    radial-gradient(900px 500px at 50% -10%, rgba(217, 181, 107, 0.10), transparent 60%),
    var(--bg-dark);
  background-attachment: fixed;
  filter: brightness(0.3) saturate(0.95) blur(0.5px);
  z-index: -1;
}

#loading-gate > * {
  position: relative;
  z-index: 1;
}

#loading-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 0 26px rgba(217, 181, 107, 0.28);
  margin: 0 auto 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ganapathi-image {
  background-image: url('../../assets/images/wedding/hindu/ganapathi.webp');
}

.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #241708;
  box-shadow: 0 10px 24px -8px rgba(217, 181, 107, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(217, 181, 107, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-gold);
}

.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 20px 72px 20px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

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

.hero {
  text-align: center;
  padding: 68px 32px 56px;
  position: relative;
}

.hero-avatar-wrapper {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 28px auto;
}

.hero-avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(217, 181, 107, 0.6), transparent 70%);
  animation: rotateGlow 7s linear infinite;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 0 30px rgba(217, 181, 107, 0.3);
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .subtitle-top {
  color: var(--accent-gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero .invite-text {
  font-size: 1.05rem;
  letter-spacing: 2.5px;
  color: var(--text-sub);
  margin-bottom: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

.names-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 32px 0;
  gap: 2px;
}

.name-primary {
  font-family: 'Cinzel', serif;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent-gold-light);
  text-shadow: 0 2px 24px rgba(217, 181, 107, 0.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.name-weds {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-gold);
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.name-weds::before,
.name-weds::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(217, 181, 107, 0.4);
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  background: rgba(217, 181, 107, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--accent-gold-light);
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 1.05rem;
}

.section-title {
  text-align: center;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  font-size: 2rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.section-title-wrap .ornament {
  margin-top: 14px;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.family-card {
  padding: 38px 36px;
}

.family-card h3 {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.family-card .member-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}

.family-card .field-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-gold);
  margin-bottom: 4px;
  margin-top: 16px;
}

.family-card .field-label:first-of-type {
  margin-top: 0;
}

.family-card p {
  color: var(--text-sub);
  line-height: 1.75;
  font-size: 1.05rem;
}

.event-card {
  padding: 50px 38px;
  text-align: center;
}

.event-card h2 {
  font-size: 2rem;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.event-card .ornament {
  margin: 14px 0 26px;
}

.event-info-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 34px 0;
}

.event-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 34px;
  position: relative;
}

.event-info-item + .event-info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--panel-border);
}

.event-info-item .info-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.event-info-item .info-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .event-info-row { flex-direction: column; gap: 20px; }
  .event-info-item { padding: 0; }
  .event-info-item + .event-info-item::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
  }
  .event-info-item + .event-info-item { padding-top: 20px; }
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.timer-box {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px 26px;
  display: inline-flex;
  gap: 26px;
  justify-content: center;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  min-width: 58px;
}

.timer-val {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.timer-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: 1.2px;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-content {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-right: 40px;
  font-weight: 500;
}

.marquee-content span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.site-credit {
  text-align: center;
  padding: 8px 0 4px;
  font-size: 0.85rem;
  color: var(--text-sub);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.site-credit a:hover {
  color: var(--accent-gold);
}

.audio-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-gold);
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}

.audio-control:hover {
  transform: scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 900px) {
  html { font-size: 18px; }

  .main-container { max-width: 1000px; padding: 90px 40px 100px; gap: 52px; }

  .hero { padding: 84px 60px 68px; }
  .hero .subtitle-top { font-size: 1.05rem; letter-spacing: 3.5px; }
  .hero .invite-text { font-size: 1.15rem; letter-spacing: 3px; }
  .name-primary { font-size: 5rem; }
  .name-weds { font-size: 2.2rem; }
  .hero-date-badge { font-size: 1.15rem; padding: 14px 32px; }
  .hero-avatar-wrapper { width: 152px; height: 152px; }

  .section-title { font-size: 2.4rem; }

  .family-card { padding: 46px 44px; }
  .family-card h3 { font-size: 1.55rem; }
  .family-card .member-name { font-size: 2.3rem; }
  .family-card p { font-size: 1.12rem; }

  .event-card { padding: 60px 48px; }
  .event-card h2 { font-size: 2.4rem; }
  .event-info-item { padding: 4px 46px; }
  .event-info-item .info-value { font-size: 1.85rem; }
  .event-info-item .info-label { font-size: 0.8rem; }
  .timer-val { font-size: 1.9rem; }
  .timer-lbl { font-size: 0.8rem; }
  .btn { font-size: 1.05rem; padding: 17px 36px; }

  .marquee-content span { font-size: 1.2rem; }
}

@media (max-width: 720px) {
  .name-primary { font-size: 2.5rem; }
  .name-weds { font-size: 1.35rem; }
  .event-card h2 { font-size: 1.6rem; }
  .section-title { font-size: 1.65rem; }
  .main-container { padding: 44px 16px 60px; gap: 34px; }
}

@media (max-width: 600px) {
  .name-primary { font-size: 2.15rem; }
  .hero-avatar-wrapper { width: 108px; height: 108px; }
  .gate-img { width: 108px; height: 108px; }
  .timer-box { gap: 12px; padding: 14px; }
  .timer-segment { min-width: 40px; }
  .timer-val { font-size: 1.25rem; }
  .btn { width: 100%; justify-content: center; }
  .family-card, .event-card { padding: 32px 24px; }
}
