:root {
  --background: 0 0% 5%;
  --foreground: 40 40% 95%;

  --card: 0 0% 100%;
  --card-foreground: 0 0% 10%;

  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 10%;

  --primary: 345 80% 25%;
  --primary-foreground: 40 60% 90%;

  --secondary: 30 80% 55%;
  --secondary-foreground: 0 0% 10%;

  --muted: 40 30% 90%;
  --muted-foreground: 0 0% 40%;

  --accent: 40 80% 50%;
  --accent-foreground: 0 0% 10%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 40 30% 80%;
  --input: 40 30% 80%;
  --ring: 40 80% 50%;
  --radius: 0.5rem;

  /* Wedding-specific tokens */
  --wedding-maroon: 345 80% 25%;
  --wedding-gold: 40 80% 50%;
  --wedding-gold-light: 40 60% 70%;
  --wedding-cream: 40 40% 95%;
  --wedding-saffron: 25 90% 55%;
  --wedding-turmeric: 45 95% 55%;
  --wedding-green: 145 60% 30%;
  --wedding-red: 0 75% 45%;
  --wedding-deep-red: 350 85% 20%;

  --font-display: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

html {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
  background: #0a0204;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

#main-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
}

.wedding-section {
  position: relative !important;
  width: 100vw !important;
  min-width: 100vw !important;
  flex: 0 0 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  scroll-snap-align: start !important;
  overflow: hidden !important;
}

.wedding-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wedding-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.font-display {
  font-family: var(--font-display);
}

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-royal-gold {
  color: #C49B3C;
  background: linear-gradient(to bottom, #E8D080 0%, #C49B3C 50%, #8A6E2F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f0208;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #E8D080, #C49B3C);
  border-radius: 10px;
}

/* Animations */
@keyframes slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

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

@keyframes petal-fall {
  0% { transform: translate(0, -10%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translate(100px, 110vh) rotate(360deg); opacity: 0; }
}

.animate-slow-zoom {
  animation: slow-zoom 20s ease-in-out infinite alternate;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-rotate-slow {
  animation: rotate-slow 15s linear infinite;
}

.animate-petal-fall {
  animation: petal-fall linear infinite;
}

.glass-morphism {
  background: rgba(15, 2, 8, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 155, 60, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.text-shadow-gold {
  text-shadow: 0 0 10px rgba(196, 155, 60, 0.5), 0 0 20px rgba(196, 155, 60, 0.3);
}

.text-shadow-premium {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes bokeh-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33% { transform: translate(30px, -50px) scale(1.2); opacity: 0.6; }
  66% { transform: translate(-20px, -100px) scale(0.8); opacity: 0.4; }
  100% { transform: translate(0, -150px) scale(1); opacity: 0; }
}

@keyframes shimmer-gold {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-bokeh {
  animation: bokeh-drift 15s linear infinite;
}

.animate-shimmer-gold {
  background: linear-gradient(90deg, transparent, rgba(232, 208, 128, 0.8), transparent);
  background-size: 200% 100%;
  animation: shimmer-gold 3s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.animate-diya-flicker {
  animation: diya-flicker 3s ease-in-out infinite;
}

@keyframes diya-flicker {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 5px #f59e0b); }
  50% { opacity: 1; filter: drop-shadow(0 0 15px #f59e0b); }
}

/* Hide scrollbar for base snap layout on some browsers */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Section specific styling for reveal */
.reveal-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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