@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&family=Pinyon+Script&family=Inter:wght@300;400;500&family=Noto+Serif+Devanagari:wght@400;600&display=swap');

:root {
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #A07820;
  --maroon: #6B1E1E;
  --deep-maroon: #3D0A0A;
  --saffron: #C45E17;
  --cream: #FFF8E7;
  --cream-dim: #F5E6C8;
  --dark-bg: #0D0500;
  --dark-warm: #1a0a00;
  --overlay: rgba(10,3,0,0.55);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Pinyon Script', cursive;
  --font-deva: 'Noto Serif Devanagari', serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark-bg);
  color: var(--cream);
  font-family: var(--font-serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes omPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(212,175,55,0.6); }
  50% { transform: scale(1.08); text-shadow: 0 0 50px rgba(212,175,55,1), 0 0 80px rgba(212,175,55,0.4); }
}
@keyframes sealGlow {
  0% { box-shadow: 0 0 20px rgba(212,175,55,0.3), inset 0 0 15px rgba(212,175,55,0.05); }
  100% { box-shadow: 0 0 40px rgba(212,175,55,0.6), 0 0 60px rgba(212,175,55,0.2), inset 0 0 25px rgba(212,175,55,0.12); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) rotate(90deg); }
  50% { transform: translateY(8px) rotate(90deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes goldShimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes petalFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(212,175,55,0.4); }
  50% { border-color: rgba(212,175,55,0.8); }
}

#intro-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  overflow: hidden;
  cursor: pointer;
}
#intro-screen video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.intro-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(5,0,0,0.5) 0%, rgba(10,3,0,0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-content {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.om-symbol {
  font-family: var(--font-deva);
  font-size: 80px;
  color: var(--gold);
  animation: omPulse 3s ease-in-out infinite;
  line-height: 1;
  text-shadow: 0 0 30px rgba(212,175,55,0.8);
}
.intro-tagline {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-light);
  animation: fadeInUp 2s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
  text-shadow: 0 0 20px rgba(240,208,96,0.4);
}
.wax-seal-btn {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a0a00 0%, #1a0500 60%, #0d0300 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.2), 0 0 25px rgba(212,175,55,0.4), inset 0 0 20px rgba(212,175,55,0.08);
  animation: sealGlow 2.5s ease-in-out infinite alternate;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.wax-seal-btn:active { transform: scale(0.95); }
.seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.seal-top { color: var(--gold); font-size: 16px; }
.seal-text {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.seal-divider {
  font-size: 10px;
  color: var(--gold-dark);
  letter-spacing: 2px;
}
.tap-hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,248,231,0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

#video-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}
#video-screen video {
  width: 100%; height: 100%;
  object-fit: cover;
}
#video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  background: transparent;
}

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(5,0,0,0.25) 0%, rgba(10,3,0,0.55) 60%, rgba(13,5,0,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 28px;
}
.deva-text {
  font-family: var(--font-deva);
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 50px;
  font-weight: 300;
  color: var(--gold);
  text-shadow: 0 0 50px rgba(212,175,55,0.5);
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream-dim);
  font-size: 18px;
  margin: 16px 0 12px;
}
.hero-names {
  font-family: var(--font-script);
  font-size: 52px;
  color: var(--gold-light);
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(240,208,96,0.3);
}
.hero-amp {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--saffron);
  display: block;
  margin: 4px 0;
}
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px auto;
  max-width: 200px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-diamond { color: var(--gold); font-size: 10px; }
.scroll-down-indicator {
  margin-top: 40px;
}
.scroll-chevron {
  font-size: 20px;
  color: var(--gold);
  display: block;
  transform: rotate(90deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.7;
}

#couple {
  background: var(--dark-warm);
  padding: 80px 28px;
  text-align: center;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.03) 0%, transparent 60%);
}
.section-top-ornament {
  font-family: var(--font-serif);
  font-size: 12px;
  color: rgba(212,175,55,0.4);
  letter-spacing: 4px;
  margin: 20px 0;
}
.couple-block { margin: 40px 0; }
.name-wrap { margin-bottom: 30px; }
.name-script {
  font-family: var(--font-script);
  font-size: 68px;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(212,175,55,0.3);
  transition: opacity 1s ease, transform 1s ease;
}
.slide-left { transform: translateX(-60px); opacity: 0; }
.slide-right { transform: translateX(60px); opacity: 0; }
.parents-text {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: 1.5px;
  margin-top: 6px;
  font-style: italic;
}
.name-and-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  justify-content: center;
}
.and-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
}
.and-symbol {
  font-family: var(--font-script);
  font-size: 52px;
  color: var(--saffron);
  text-shadow: 0 0 20px rgba(196,94,23,0.3);
}

#scratch-section {
  background: linear-gradient(135deg, var(--deep-maroon) 0%, #4a1010 50%, var(--deep-maroon) 100%);
  padding: 80px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scratch-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
}
.scratch-hint {
  font-family: var(--font-serif);
  font-size: 13px;
  color: rgba(255,248,231,0.6);
  letter-spacing: 2px;
  font-style: italic;
  margin-bottom: 30px;
}
.scratch-card-wrapper {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 30px rgba(212,175,55,0.15), 0 0 60px rgba(212,175,55,0.05);
}
.scratch-hidden {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--deep-maroon), #6B1E1E);
}
.scratch-date {
  font-family: var(--font-script);
  font-size: 44px;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: goldShimmerText 3s linear infinite;
}
.scratch-stars {
  color: var(--gold);
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 8px;
}
#scratch-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
  touch-action: none;
  border-radius: 12px;
}
.corner-ornament {
  position: absolute;
  width: 40px; height: 40px;
}
.corner-ornament.top-left { top: 20px; left: 20px; border-top: 1px solid rgba(212,175,55,0.4); border-left: 1px solid rgba(212,175,55,0.4); }
.corner-ornament.top-right { top: 20px; right: 20px; border-top: 1px solid rgba(212,175,55,0.4); border-right: 1px solid rgba(212,175,55,0.4); }
.corner-ornament.bottom-left { bottom: 20px; left: 20px; border-bottom: 1px solid rgba(212,175,55,0.4); border-left: 1px solid rgba(212,175,55,0.4); }
.corner-ornament.bottom-right { bottom: 20px; right: 20px; border-bottom: 1px solid rgba(212,175,55,0.4); border-right: 1px solid rgba(212,175,55,0.4); }

#date-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2000;
  background: rgba(5,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  background: linear-gradient(135deg, var(--deep-maroon) 0%, #3a0808 100%);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 60px rgba(212,175,55,0.2), 0 0 120px rgba(212,175,55,0.08);
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }
.modal-om {
  font-family: var(--font-deva);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
  animation: omPulse 3s infinite;
}
.modal-label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(212,175,55,0.6);
  margin-bottom: 12px;
}
.modal-date {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}
.modal-day {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--cream-dim);
  font-style: italic;
  margin-top: 4px;
}
.modal-time {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--saffron);
  letter-spacing: 2px;
  margin-top: 6px;
}
.gold-divider.small { max-width: 120px; margin: 16px auto; }
.modal-blessing {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--cream-dim);
  font-style: italic;
  line-height: 1.5;
}

#functions {
  background: var(--dark-bg);
  padding: 60px 0 80px;
}
.functions-header {
  text-align: center;
  padding: 0 28px 40px;
}
.functions-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.functions-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream-dim);
  font-size: 15px;
  margin-top: 12px;
}
.functions-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0 20px;
  max-width: 440px;
  margin: 0 auto;
}
.function-card {
  position: relative;
  background: linear-gradient(180deg, rgba(13,5,0,0.9) 0%, rgba(26,10,0,0.95) 100%);
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.06), 0 0 30px rgba(212,175,55,0.1);
  overflow: visible;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.function-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.card-corner {
  position: absolute;
  font-size: 10px;
  color: var(--gold);
  z-index: 2;
}
.card-corner.tl { top: -6px; left: -6px; }
.card-corner.tr { top: -6px; right: -6px; }
.card-corner.bl { bottom: -6px; left: -6px; }
.card-corner.br { bottom: -6px; right: -6px; }
.card-label {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 20px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.card-oneliner {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--gold-light);
  padding: 16px 20px 8px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.card-image-wrap {
  width: 100%;
  overflow: hidden;
}
.card-image {
  width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.card-footer {
  padding: 18px 20px 22px;
  background: rgba(10,3,0,0.95);
  border-top: 1px solid rgba(212,175,55,0.15);
}
.card-date {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
  margin-bottom: 4px;
}
.card-time {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-venue {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 2px;
}
.card-address {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,248,231,0.6);
  margin-bottom: 10px;
}
.map-link {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--saffron);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.map-link:hover { color: var(--gold-light); }

#venue-rsvp {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--deep-maroon) 100%);
  padding: 70px 28px 80px;
  text-align: center;
}
.rsvp-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.rsvp-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--cream-dim);
  margin: 16px 0 30px;
  line-height: 1.5;
}
.map-container {
  margin-bottom: 30px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212,175,55,0.1);
}
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a07820, #D4AF37 40%, #F0D060 60%, #D4AF37 80%, #a07820);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a0500;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(212,175,55,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rsvp-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.music-btn {
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 500;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  animation: musicPulse 2s ease-in-out infinite;
  transition: background 0.3s;
}
.music-btn.muted {
  animation: none;
  opacity: 0.5;
}

#footer {
  background: var(--dark-bg);
  padding: 40px 24px 50px;
  text-align: center;
  border-top: 1px solid rgba(212,175,55,0.1);
}
.footer-om {
  font-family: var(--font-deva);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--cream-dim);
  margin-bottom: 6px;
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 12px;
  color: rgba(212,175,55,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

#main-content { min-height: 100vh; }

.petal {
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 390px) {
  .om-symbol { font-size: 64px; }
  .intro-tagline { font-size: 24px; }
  .wax-seal-btn { width: 140px; height: 140px; }
  .seal-text { font-size: 11px; letter-spacing: 2px; }
  .hero-title { font-size: 40px; letter-spacing: 2px; }
  .hero-names { font-size: 42px; }
  .name-script { font-size: 56px; }
  .and-symbol { font-size: 42px; }
  .scratch-date { font-size: 36px; }
  .modal-date { font-size: 36px; }
  .functions-title { font-size: 30px; }
  .card-oneliner { font-size: 20px; }
  .rsvp-title { font-size: 28px; }
  .rsvp-btn { font-size: 14px; padding: 16px 28px; letter-spacing: 2px; }
}

@media (min-width: 768px) {
  #main-content {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0,0,0,0.5);
  }
  #hero { max-width: 430px; margin: 0 auto; }
}