/* ==========================================================================
   GAYA KUSTOM SITUS ULANG TAHUN KE-45 IBU DILA NOVAYANTI
   Desain: Elegan, Hangat, Ramah Seluler, Bernuansa Rose Gold & Champagne Gold
   ========================================================================== */

/* 1. Pengaturan Dasar & Scrollbar Halus */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FAF6F0;
  color: #2D2D2D;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
  background: #D4A373;
  border-radius: 9999px;
  border: 2px solid #FAF6F0;
}
::-webkit-scrollbar-thumb:hover {
  background: #C88EA7;
}

/* 2. Seleksi Teks Bernuansa Emas */
::selection {
  background-color: #F3DB9A;
  color: #1F1E1D;
}

/* 3. Efek Kertas Surat Mewah (Heartfelt Letter) */
.parchment-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FBF6EE 50%, #FFFDF9 100%);
  position: relative;
  box-shadow: 
    0 10px 30px -5px rgba(212, 163, 115, 0.15),
    0 25px 50px -12px rgba(45, 45, 45, 0.08);
}

.parchment-border {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.parchment-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  white-space: nowrap;
  color: #D4AF37;
}

/* Wax Seal Hiasan Surat */
.wax-seal {
  background: radial-gradient(circle at 35% 35%, #D68EA8, #B06F8C 60%, #8E516F 100%);
  box-shadow: 
    0 4px 12px rgba(176, 111, 140, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  border: 2px solid #FDFBF7;
}

/* 4. Bingkai Foto Utama (Hero Arch) */
.hero-arch-frame {
  position: relative;
  border-radius: 180px 180px 32px 32px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px -15px rgba(212, 163, 115, 0.35),
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 6px rgba(212, 175, 55, 0.4);
}

/* 5. Kartu Foto Polaroid Realistis */
.polaroid-card {
  background: #FFFFFF;
  padding: 12px 12px 24px 12px;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  transform-origin: center center;
}

.polaroid-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0deg) !important;
  box-shadow: 
    0 25px 40px -10px rgba(200, 142, 167, 0.25),
    0 12px 20px -8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Selotip / Washi Tape Hiasan Polaroid */
.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 90px;
  height: 24px;
  background-color: rgba(243, 219, 154, 0.65);
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 2px dashed rgba(212, 175, 55, 0.3);
  border-right: 2px dashed rgba(212, 175, 55, 0.3);
  z-index: 5;
  pointer-events: none;
}

/* 6. Animasi Mengapung Halus (Floating Elements) */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

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

/* Animasi Pulse Halus untuk Tombol Utama */
@keyframes warmPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.5), 0 10px 25px -5px rgba(200, 142, 167, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(212, 163, 115, 0), 0 15px 30px -5px rgba(200, 142, 167, 0.6);
    transform: scale(1.025);
  }
}

.animate-warm-pulse {
  animation: warmPulse 2.8s infinite;
}

/* Putaran Piringan Vinyl Musik */
@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.paused {
  animation-play-state: paused !important;
}

/* 7. Animasi Hati Melayang (Floating Hearts) saat Klik Pelukan */
@keyframes heartFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(var(--tw-tx, 20px), -180px) scale(1.15) rotate(var(--tw-rot, 20deg));
  }
  100% {
    opacity: 0;
    transform: translate(var(--tw-tx, -30px), -360px) scale(0.9) rotate(var(--tw-rot, -35deg));
  }
}

.floating-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: heartFly 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 8. Kelopak Bunga Gugur / Partikel Cahaya Latar Belakang */
.petal-particle {
  position: fixed;
  top: -40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.65;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(105vh) rotate(540deg) translateX(80px);
    opacity: 0;
  }
}

/* 9. Lightbox Modal */
.lightbox-backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(31, 30, 29, 0.85);
}

/* 10. Aksesibilitas: Menghargai Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .petal-particle {
    display: none !important;
  }
}
