/* Custom CSS for Rijo & Aleena's Wedding Website (Pastel Blue & Cream Theme - Editorial Edition) */

/* Custom Fonts & Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Typography fallbacks matching "Olivia & Ralph" and "Our love story" */
.font-cursive {
  font-family: 'Great Vibes', cursive;
  line-height: 1.45 !important;
  padding-top: 0.12em;
  padding-bottom: 0.12em;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

/* Custom Blue Gradient Text & Backgrounds */
.text-blue-gradient {
  background: linear-gradient(135deg, #1A365D 0%, #2B5F8F 50%, #5E81AC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-blue-gradient {
  background: linear-gradient(135deg, #1A365D 0%, #2B5F8F 50%, #5E81AC 100%);
}

.border-blue-gradient {
  border-image: linear-gradient(135deg, #1A365D 0%, #2B5F8F 50%, #5E81AC 100%) 1;
}

/* Glassmorphism Template (Pastel Cream & Blue) */
.glass-card {
  background: rgba(250, 249, 246, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(43, 95, 143, 0.15);
  box-shadow: 0 8px 32px 0 rgba(43, 95, 143, 0.04);
}

.glass-card-dark {
  background: rgba(227, 236, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(43, 95, 143, 0.2);
  box-shadow: 0 8px 32px 0 rgba(43, 95, 143, 0.08);
}

/* Asymmetric Editorial Arch Container */
.editorial-arch {
  border-radius: 200px 200px 28px 28px;
  overflow: hidden;
  border: 2px solid rgba(43, 95, 143, 0.2);
  box-shadow: 0 20px 45px rgba(43, 95, 143, 0.08);
}

/* 💌 Interactive Envelope Design */
.gatefold-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 520px;
  margin: 50px auto;
  overflow: hidden; /* Hide doors when they translate off-side */
  border-radius: 28px;
  box-shadow: 0 25px 55px rgba(43, 95, 143, 0.15);
  border: 1.5px solid rgba(43, 95, 143, 0.18);
  z-index: 10;
}

/* Left sliding gate door */
.gate-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: #2B5F8F;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-right: 1.5px solid rgba(250, 249, 246, 0.2);
  transform: translateX(0%);
  transition: transform 0.1s ease-out;
}

/* Right sliding gate door */
.gate-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  background: #2B5F8F;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-left: 1.5px solid rgba(250, 249, 246, 0.2);
  transform: translateX(0%);
  transition: transform 0.1s ease-out;
}

/* Split seal - Left Half */
.gate-seal-left {
  width: 28px;
  height: 56px;
  border-radius: 56px 0 0 56px;
  background: #FAF9F6;
  border: 2px solid #2B5F8F;
  border-right: none;
  box-shadow: -4px 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  color: #2B5F8F;
  font-size: 15px;
  transform: translateX(0px);
  pointer-events: none;
}

/* Split seal - Right Half */
.gate-seal-right {
  width: 28px;
  height: 56px;
  border-radius: 0 56px 56px 0;
  background: #FAF9F6;
  border: 2px solid #2B5F8F;
  border-left: none;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  color: #2B5F8F;
  font-size: 15px;
  transform: translateX(0px);
  pointer-events: none;
}

/* Invitation Details Card (Revealed behind gates) */
.gatefold-card {
  position: absolute;
  inset: 0;
  background: #FAF9F6;
  z-index: 5;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* 🖼️ Polaroid Wishes Card board */
.wish-polaroid {
  background: #FAF9F6;
  border: 1px solid rgba(43, 95, 143, 0.12);
  box-shadow: 0 10px 25px rgba(43, 95, 143, 0.04);
  padding: 16px;
  padding-bottom: 24px;
  border-radius: 2px;
  display: flex;
  flex-col: column;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: grab;
}

.wish-polaroid:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 0 15px 35px rgba(43, 95, 143, 0.12);
  z-index: 10;
}

/* Light Rays behind Couple Portrait in Wreath */
.light-rays {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(227, 236, 245, 0.4) 50%, rgba(250, 249, 246, 0) 75%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}

/* Twilight Sunset Sky Gradient background */
.bg-twilight {
  background: linear-gradient(to top, #FAF9F6 0%, #E3EDF6 30%, #CADBF0 65%, #9EBCE0 100%);
}

/* Candle Flame Flicker Animation */
@keyframes flame-flicker {
  0% { transform: scale(1) rotate(-1deg); filter: drop-shadow(0 2px 4px rgba(254, 215, 170, 0.5)); }
  20% { transform: scale(0.9, 1.1) rotate(1deg); filter: drop-shadow(0 3px 6px rgba(254, 215, 170, 0.6)); }
  40% { transform: scale(1.1, 0.9) rotate(-2deg); filter: drop-shadow(0 2px 4px rgba(254, 215, 170, 0.4)); }
  60% { transform: scale(0.95, 1.05) rotate(1.5deg); filter: drop-shadow(0 4px 8px rgba(254, 215, 170, 0.7)); }
  80% { transform: scale(1.05, 0.95) rotate(-1deg); filter: drop-shadow(0 3px 5px rgba(254, 215, 170, 0.5)); }
  100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 2px 4px rgba(254, 215, 170, 0.5)); }
}

.candle-flame {
  animation: flame-flicker 1.8s infinite ease-in-out;
  transform-origin: bottom center;
}

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

::-webkit-scrollbar-track {
  background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
  background: #2B5F8F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1A365D;
}

/* Wreath Reveal Zoom Animation */
@keyframes reveal-zoom {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.reveal-zoom-effect {
  animation: reveal-zoom 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sparkle Floating Animation */
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

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

/* Music Disk Rotation */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Leaflet/Custom Pins Pulse */
@keyframes pulse-pin {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-pin-effect {
  animation: pulse-pin 2s infinite ease-in-out;
}

/* Hidden but accessible audio volume slider thumb styling */
input[type="range"]::-webkit-slider-thumb {
  background: #2B5F8F;
  border: 2px solid #FAF9F6;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  background: #2B5F8F;
  border: 2px solid #FAF9F6;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
}

/* 🌀 Infinite Horizontal Marquee guestbook */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

/* Faded side mask filters */
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, white 12%, white 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 12%, white 88%, transparent);
}
