* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #1e003d, #3a0066, #6a0080, #c94b8b, #f8a5c2);
  height: 100vh;
  overflow: hidden;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Bulan di sudut */
body::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: #fff9c4;
  border-radius: 50%;
  top: 8%;
  right: 6%;
  box-shadow: 
    0 0 30px 6px rgba(255, 235, 156, 0.4),
    8px -8px 20px rgba(255, 255, 255, 0.3);
  z-index: 1;
}

/* Bintang berkedip */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1px 1px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(1px 1px at 40% 70%, white, transparent),
    radial-gradient(1px 1px at 60% 50%, white, transparent),
    radial-gradient(1px 1px at 90% 80%, white, transparent),
    radial-gradient(1px 1px at 10% 60%, white, transparent),
    radial-gradient(1px 1px at 50% 20%, white, transparent),
    radial-gradient(1px 1px at 30% 90%, white, transparent),
    radial-gradient(1px 1px at 70% 40%, white, transparent),
    radial-gradient(1px 1px at 25% 55%, white, transparent);
  background-size: 100px 100px;
  animation: twinkle 6s infinite alternate;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  z-index: 10;
  padding: 20px;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: floatText 3s ease-in-out infinite;
  text-shadow: 
    0 5px 15px rgba(255, 105, 180, 0.4),
    0 0 25px rgba(255, 182, 193, 0.6);
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
}

@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 90%;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

button {
  padding: 12px 26px;
  font-size: 1.1rem;
  background: linear-gradient(45deg, #ff6b9d, #ff4081);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 0.5px;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 7px 20px rgba(255, 105, 180, 0.6);
}

/* Hati asli menggunakan clip-path */
.heart {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #ff6b9d;
  clip-path: path('M15,3 C18,0 24,2 24,7 C24,12 15,18 15,18 C15,18 6,12 6,7 C6,2 12,0 15,3 Z');
  animation: floatHeart 18s ease-in-out infinite;
  opacity: 0;
  z-index: 1;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(1.4);
    opacity: 0;
  }
}

/* Debu cinta */
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: floatSparkle 12s linear forwards;
  z-index: 2;
}

@keyframes floatSparkle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 0.7; }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

.confetti {
  position: absolute;
  pointer-events: none;
}

/* GALLERY MODAL */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-container {
  background: linear-gradient(to bottom, #3a004d, #200033);
  padding: 25px;
  border-radius: 20px;
  max-width: 90%;
  max-height: 80vh;
  width: 90%;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 105, 180, 0.6);
  border: 2px solid rgba(255, 105, 180, 0.5);
}

.gallery-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f8a5c2;
  text-shadow: 0 3px 10px rgba(255, 182, 193, 0.5);
  font-weight: bold;
}

.message-box {
  padding: 15px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #fff;
}

/* Responsif */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  button {
    font-size: 1rem;
    padding: 10px 22px;
  }

  .gallery-container {
    padding: 20px;
    width: 95%;
  }

  .gallery-container h2 {
    font-size: 1.8rem;
  }

  .message-box {
    font-size: 1rem;
  }
}
