@font-face {
  font-family: 'Maleha';
  src: url('maleha.regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- Custom Keyframe Animations --- */

/* Background grain noise texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0),
                    radial-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 0);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  pointer-events: none;
  z-index: 1000;
}

/* Floating Flower Drifts */
@keyframes float-drift-1 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-20px) translateX(10px) rotate(15deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes float-drift-2 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-30px) translateX(-15px) rotate(-20deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes float-drift-3 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-15px) translateX(-5px) rotate(10deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.animate-float-1 { animation: float-drift-1 12s ease-in-out infinite alternate; }
.animate-float-2 { animation: float-drift-2 15s ease-in-out infinite alternate; }
.animate-float-3 { animation: float-drift-3 10s ease-in-out infinite alternate; }
.animate-float-4 { animation: float-drift-1 14s ease-in-out infinite alternate-reverse; }
.animate-float-5 { animation: float-drift-2 11s ease-in-out infinite alternate; }


/* Couple Illustration Bottom Vignette Blend */
.couple-img-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, rgba(245, 228, 215, 0) 0%, #F5E4D7 100%);
  pointer-events: none;
}

/* Mandap Illustration Bottom Vignette Blend */
.mandap-img-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, rgba(245, 228, 215, 0) 0%, #F5E4D7 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .mandap-img-container::after {
    height: 100px;
  }
}

@media (max-width: 600px) {
  .mandap-img-container::after {
    height: 60px;
  }
}


/* Sound Wave bars in music player pill */
@keyframes sound-bar {
  0% { height: 4px; }
  100% { height: 16px; }
}

.music-control.playing .music-wave span:nth-child(1) { animation: sound-bar 1.2s ease-in-out infinite alternate; }
.music-control.playing .music-wave span:nth-child(2) { animation: sound-bar 0.8s ease-in-out infinite alternate 0.2s; }
.music-control.playing .music-wave span:nth-child(3) { animation: sound-bar 1.4s ease-in-out infinite alternate 0.1s; }
.music-control.playing .music-wave span:nth-child(4) { animation: sound-bar 1s ease-in-out infinite alternate 0.3s; }

/* --- JavaScript Class State Transitions --- */

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: crosshair;
  transition: opacity 0.5s ease-out;
}

/* Canvas scratching fade out states */
.scratch-canvas.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Scratch card expansion */
.scratch-card-wrapper.expanded {
  height: auto;
  min-height: 400px;
}

@media (max-width: 600px) {
  .scratch-card-wrapper.expanded {
    min-height: 450px;
  }
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Text Gradient */
.text-brand-gradient {
  background: linear-gradient(90deg, #381A2E 0%, #AF6095 50%, #381A2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Falling Flowers Shower */
.falling-flower {
  position: fixed;
  top: -50px;
  pointer-events: none;
  z-index: 999;
  will-change: transform;
  animation-name: fall-shower-key;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes fall-shower-key {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(115vh) translateX(var(--sway-x, 80px)) rotate(var(--rot-deg, 360deg));
    opacity: 0;
  }
}

/* Intro Splash Screen */
#intro-splash {
  transition: opacity 0.75s ease;
}
#intro-splash.dismissed {
  opacity: 0;
  pointer-events: none;
}

@keyframes splash-ring-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(191, 149, 63, 0.35); }
  50%       { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(191, 149, 63, 0); }
}

.splash-pulse {
  animation: splash-ring-pulse 2s ease-in-out infinite;
}

/* Custom Background Gradient */
.bg-brand-gradient {
  background: linear-gradient(90deg, #381A2E 0%, #AF6095 50%, #381A2E 100%);
}

/* Skeleton Loader */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-loader {
  background: linear-gradient(90deg, #e6d0c4 25%, #f3e5dc 50%, #e6d0c4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.skeleton-loader-dark {
  background: linear-gradient(90deg, #452044 25%, #6a3267 50%, #452044 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.skeleton-loader.fade-out,
.skeleton-loader-dark.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* --- Event Cards styling (Minimal Full Border Style) --- */
.event-card {
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(191, 149, 63, 0.18);
  border-radius: 0.75rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-card:hover {
  background: rgba(0, 0, 0, 0.14);
  border-color: rgba(243, 229, 171, 0.75); /* brand-gold-light */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 149, 63, 0.06);
}

.event-card-featured {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(191, 149, 63, 0.25);
  border-radius: 0.75rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-card-featured:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(243, 229, 171, 0.85); /* brand-gold-light */
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(191, 149, 63, 0.12);
}

