@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS Variables & Base Theme
   ========================================================================== */
:root {
  --color-gold-light: #F5E7A3;
  --color-gold: #D4AF37;
  --color-gold-dark: #AA8822;
  --color-rose: #E07A8A;
  --color-rose-glow: rgba(224, 122, 138, 0.35);
  --color-bg-dark: #0B0C10;
  --color-card-bg: rgba(18, 20, 29, 0.85);
  --color-card-border: rgba(212, 175, 55, 0.2);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--color-bg-dark);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #E2E8F0;
  background-color: var(--color-bg-dark);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

/* Optimasi Sentuhan Tombol & Kartu pada Smartphone */
button, a, .gallery-card, .flip-card, #envelope-seal-btn {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* Tipografi Khusus */
.font-serif-cinematic {
  font-family: 'Cormorant Garamond', serif;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

.font-signature {
  font-family: 'Alex Brush', cursive;
}

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

::-webkit-scrollbar-track {
  background: #090A0E;
}

::-webkit-scrollbar-thumb {
  background: #2A2D3A;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* ==========================================================================
   Animasi Sinematik
   ========================================================================== */

/* Heartbeat (Detak Jantung Alami Romantis) */
@keyframes heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(224, 122, 138, 0.4));
  }
  14% {
    transform: scale(1.26);
    filter: drop-shadow(0 0 16px rgba(224, 122, 138, 0.85));
  }
  28% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(224, 122, 138, 0.4));
  }
  42% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 12px rgba(224, 122, 138, 0.75));
  }
  70% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(224, 122, 138, 0.4));
  }
}

.animate-heartbeat {
  animation: heartbeat 1.8s ease-in-out infinite;
  transform-origin: center;
}

/* Detak Jantung Intens saat Diklik */
@keyframes heartbeatFast {
  0% { transform: scale(1); }
  25% { transform: scale(1.35); filter: drop-shadow(0 0 20px rgba(224, 122, 138, 1)); }
  50% { transform: scale(1); }
  75% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.animate-heartbeat-fast {
  animation: heartbeatFast 0.6s ease-in-out;
}

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

.animate-vinyl-spin {
  animation: spinVinyl 8s linear infinite;
}

.animate-vinyl-paused {
  animation-play-state: paused;
}

/* Equalizer Bars */
@keyframes equalize1 { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@keyframes equalize2 { 0%, 100% { height: 16px; } 50% { height: 6px; } }
@keyframes equalize3 { 0%, 100% { height: 8px; } 50% { height: 20px; } }

.eq-bar-1 { animation: equalize1 0.75s ease-in-out infinite; }
.eq-bar-2 { animation: equalize2 0.65s ease-in-out infinite; }
.eq-bar-3 { animation: equalize3 0.85s ease-in-out infinite; }

.eq-paused {
  animation-play-state: paused !important;
  height: 4px !important;
}

/* Efek Shimmer Emas pada Teks */
@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-shimmer-gold {
  background: linear-gradient(90deg, #F5E7A3 0%, #D4AF37 30%, #FFF4CC 50%, #D4AF37 70%, #F5E7A3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s ease infinite;
}

/* Efek Melayang Lembut (Float) */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

/* ==========================================================================
   Interactive 3D Flip Cards ("7 Alasan Aku Mencintaimu")
   ========================================================================== */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

.flip-card-inner {
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* ==========================================================================
   Interactive Envelope (Surat Cinta dengan Segel Lilin)
   ========================================================================== */


/* Riak Cahaya Cinta saat Mengirim Detak Jantung */
@keyframes rippleGlow {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 9999px;
  border: 2px solid rgba(224, 122, 138, 0.8);
  box-shadow: 0 0 15px rgba(224, 122, 138, 0.6);
  pointer-events: none;
  animation: rippleGlow 0.9s ease-out forwards;
}

/* Partikel Hati Melayang saat Layar Disentuh / Diklik */
@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -90px) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -160px) scale(1.4) rotate(-20deg);
  }
}

.click-heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatUpFade 1.3s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  will-change: transform, opacity;
}

/* Mode Bioskop (Cinema Mode) Transition */
.cinema-element {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.cinema-mode-active .cinema-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

body.cinema-mode-active #hero-video {
  filter: brightness(0.85) contrast(1.05) !important;
}

body.cinema-mode-active #cinema-exit-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ==========================================================================
   Scroll Reveal (Intersection Observer)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   Komponen Khusus
   ========================================================================== */

/* Glassmorphism Card Sinematik */
.cinematic-glass {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.cinematic-glass:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px -10px rgba(212, 175, 55, 0.15);
}

/* Masonry Column Break Helper */
.masonry-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* Efek Vignette Overlay */
.cinematic-vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(11, 12, 16, 0.85) 90%, #0B0C10 100%);
}

/* Timeline Glowing Line */
.timeline-glow-line {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.6) 15%, rgba(224, 122, 138, 0.6) 50%, rgba(212, 175, 55, 0.6) 85%, rgba(212, 175, 55, 0) 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

/* Canvas Stardust */
#stardust-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Lightbox Modal Animation */
#lightbox-modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox-modal.hidden-custom {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#lightbox-modal.visible-custom {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   Layar Pembuka Sinematik (Welcome Curtain / Romantic Invitation)
   ========================================================================== */


/* ==========================================================================
   Museum Frame Foto Tanpa Crop (Zero-Cropping Photo Architecture)
   ========================================================================== */
.uncropped-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(8, 9, 13, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.uncropped-frame:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.ambient-photo-blur {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  filter: blur(28px) saturate(1.4) brightness(0.45);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.8s ease;
}

.uncropped-frame:hover .ambient-photo-blur {
  opacity: 0.75;
  transform: scale(1.08);
}

.photo-contain-layer {
  position: relative;
  z-index: 10;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.65rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  margin: 0 auto;
}

.uncropped-frame:hover .photo-contain-layer {
  transform: scale(1.025);
}

/* ==========================================================================
   Widget Gembok Janji Cinta Abadi (Eternal Love Lock)
   ========================================================================== */


/* Banner Lirik Romantis */
.lyric-card {
  background: linear-gradient(135deg, rgba(18, 20, 29, 0.9) 0%, rgba(26, 22, 28, 0.85) 50%, rgba(18, 20, 29, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.08);
}

