@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;500&display=swap");
@font-face {
    font-family: 'Blueberry Personal Use';
    src: url('fonts/Blueberry_Personal_Use.woff') format('woff'),
         url('fonts/Blueberry_Personal_Use.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
  --pastel-purple: #d8bfd8;
  --light-purple: #e6e6fa;
  --medium-purple: #c8a2c8;
  --dark-purple: #9370db;
  --kyaa-purple: #B65CFF ;
  --cream: #fffdd0;
  --light-cream: #fdf5e6;
  --text-dark: #4a3b5a;
}

/* Body */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--light-cream), var(--light-purple));
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='24' font-size='24'>💜</text></svg>") 16 16, auto;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass Card */
.glass-card {
  background: #fffdf7; 
  background: linear-gradient(180deg, #fffdf7, #fef6ff); 
  border: 2px solid rgba(147, 112, 219, 0.25);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(147, 112, 219, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.glass-card:hover { transform: translateY(-4px); }

/* Fonts */
.dancing-font {
  font-family: "Dancing Script", cursive;
  color: var(--dark-purple);
  text-shadow: 0 0 12px rgba(147, 112, 219, 0.35);
}

.cute-font {
  font-family: 'Blueberry Personal Use', sans-serif;
  color: var(--kyaa-purple);
  text-shadow: 0 0 12px rgba(147, 112, 219, 0.35);
}


/* Heart Beat */
.heart {
  color: var(--dark-purple);
  animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Slideshow */
.slide {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  width: 100%;
  height: 100%;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(147, 112, 219, 0.25);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--light-cream);
  transition: transform 0.5s ease;
}
.slide-image:hover { transform: scale(1.03); }

.slide-image.portrait {
  width: auto;
  max-width: 100%;
  height: 100%;
}
.slide-image.landscape {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
}

/* Navigation dots */
.navigation-dot {
  width: 12px;
  height: 12px;
  background: var(--pastel-purple);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.navigation-dot.active {
  background: var(--dark-purple);
  transform: scale(1.2);
}

/* Floating Hearts */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.floating-heart {
  position: absolute;
  color: var(--pastel-purple);
  font-size: 20px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: translateY(50vh) rotate(180deg); opacity: 0.9; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}


/* Music Controls */
.music-controls {
  position: fixed;
  bottom: 20px;
  right: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 7px;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 112, 219, 0.2);
  transition: all 0.3s ease;
}
.music-controls.hidden {
  transform: translateX(100%);
  opacity: 0;
}

.music-btn {
  background: var(--dark-purple);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.music-btn:hover {
  background: var(--medium-purple);
  transform: scale(1.05);
}

.volume-container { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.volume-icon { color: var(--dark-purple); width: 20px; height: 20px; }

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(147, 112, 219, 0.3);
  border-radius: 2px;
  outline: none;
  transition: background 0.3s ease;
}
.volume-slider:hover { background: rgba(147, 112, 219, 0.5); }

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dark-purple);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.volume-slider::-webkit-slider-thumb:hover { background: var(--medium-purple); transform: scale(1.1); }
.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dark-purple);
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-volume-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--dark-purple);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.toggle-volume-btn:hover { background: var(--medium-purple); transform: scale(1.1); }

/* Loading Curtain */
.loading-curtain {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  overflow: hidden;
}

.curtain-half {
  flex: 1;
  height: 100%;
  background: linear-gradient(135deg, var(--pastel-purple), var(--light-purple));
  transition: transform 1.5s ease-in-out;
}
.curtain-left { transform: translateX(0); }
.curtain-right { transform: translateX(0); }
.loading-curtain.open .curtain-left { transform: translateX(-100%); }
.loading-curtain.open .curtain-right { transform: translateX(100%); }

.curtain-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-family: "Dancing Script", cursive;
  color: var(--cream);
  z-index: 10000;
  animation: pulseText 1s ease-in-out infinite alternate;
  transition: opacity 1s ease;
}
@keyframes pulseText {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* Fade text hilang smooth */
.loading-curtain.open .curtain-text { opacity: 0; }

.fade-text {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-text.visible {
  opacity: 1;
  transform: translateY(0);
}