@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Great+Vibes&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 🎨 Palet 1 – Sweet Romantic */
  --bg: linear-gradient(-45deg, #ff9a9e, #fecfef, #fecfef, #ff9a9e);
  --bg-main: #ffe4ec; /* soft pink */
  --bg-card: #ffffff; /* putih bersih */
  --text-title: #e91e63; /* pink tua / cerise */
  --text-desc: #555555; /* abu tua */
  --accent: #ff7e9e; /* pink coral */
  --timeline-line: #ff4f7d; /* hot pink */
  --white: #ffffff;
  --pink: #ff69b4;
  --pink-gradient : linear-gradient(45deg, #ff9ae4b9, #fecfef);
}

body {
  font-family: "Dancing Script", sans-serif;
  background: var(--bg);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

body.lock-scroll {
  overflow-y: hidden;
  height: 100vh; /* supaya tidak bisa geser */
}

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

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.falling-heart {
  position: fixed;
  top: -20px;
  font-size: 24px;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.heart {
  position: absolute;
  color: var(--pink);
  font-size: 20px;
  animation: floatUp 8s infinite linear;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 1;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }
  100% {
    transform: translateY(-10vh) scale(0);
    opacity: 0;
  }
}

.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 20px; */
}

.hero-section {
  text-align: center;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.love-title {
  font-size: 4.2rem;
  color: var(--text-title);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  animation: pulse 2s infinite;
  background-clip: text;
}

.love-name {
  font-size: 3.5rem;
  color: var(--text-title);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  /* animation: pulse 2.3s infinite; */
  background-clip: text;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-title);
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.love-button {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.love-button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

.message-section {
  background: rgba(255, 255, 255, 0.043);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 60px;
  margin: 50px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.066);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.message-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.love-message {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--accent);
  text-align: center;
  text-shadow: 1px 1px 1px rgba(172, 172, 172, 0.571);
  margin-bottom: 30px;
}

.interactive-heart {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: #ff69b4;
  cursor: pointer;
  z-index: 100;
  animation: heartbeat 1.5s infinite;
  display: none;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.countdown-section {
  text-align: center;
  padding: 50px;
  background: rgba(223, 119, 231, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  margin: 30px 0;
  border: 1px solid rgba(218, 59, 163, 0.2);
}

.countdown-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.time-unit {
  text-align: center;
  background: rgba(191, 18, 18, 0.2);
  padding: 20px;
  border-radius: 15px;
  min-width: 80px;
  backdrop-filter: blur(10px);
}

.time-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  display: block;
}

.time-label {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 5px;
}

.music-player {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-player:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.music-player.hidden {
  display: none;
}

.music-icon {
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .love-title {
    font-size: 2rem;
  }

  .message-section {
    padding: 40px 20px;
    margin: 30px 10px;
  }

  .countdown-timer {
    gap: 15px;
  }

  .time-number {
    font-size: 1.8rem;
  }
}

.sparkle {
  position: absolute;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0;
  }
}

/* Memory Timeline Styles */
.memory-timeline {
  padding: 50px 20px;
  background: linear-gradient(180deg, #ffe6f0 0%, #fff5f9 100%);
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.memory-timeline .section-title {
  font-size: 2rem;
  color: var(--pink);
  margin-bottom: 40px;
  font-weight: bold;
}

/* =========================== */
/* Timeline */
/* =========================== */

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 20px 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease both;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  border: 4px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-content {
  position: relative;
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
}

/* Segitiga untuk card kiri */
.timeline-content .left::after {
  content: "";
  position: absolute;
  top: 40px; /* posisinya di atas */
  right: -15px; /* keluar sedikit dari kotak */
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent rgb(255, 255, 255);
}

/* Segitiga untuk card kanan */
.timeline-content .right::after {
  content: "";
  position: absolute;
  top: 40px; /* posisinya di atas */
  left: -15px; /* keluar sedikit dari kotak */
  border-width: 8px;
  border-style: solid;
  border-color: transparent rgb(255, 255, 255) transparent transparent;
}

.timeline-content h3 {
  color: #e91e63;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.timeline-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.timeline-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #ff6b6b, #ff8e8e, #ffa8a8);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
  text-align: left;
}

.timeline-icon:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* =========================== */
/* Interactive Gallery Styles */
/* =========================== */
.interactive-gallery {
  padding: 80px 20px;
}

.interactive-gallery .section-title {
  font-size: 2rem;
  color: var(--pink);
  margin-bottom: 40px;
  font-weight: bold;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-card {
  position: relative;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  background: var(--pink-gradient);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.photo-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.photo-image{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.photo-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.photo-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

.photo-label {
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.view-text {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==================== */
/* Special Moments Styles */
/* ==================== */
.special-moments {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.05);
}

.special-moments .section-title {
  font-size: 2rem;
  color: var(--pink);
  margin-bottom: 40px;
  font-weight: bold;
  text-align: center;
}

.moments-container {
  font-family: "Poppins", sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.moment-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.moment-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.moment-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.moment-card:hover::before {
  animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

.moment-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.moment-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.moment-card p {
  color: #ff8e8e;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: bold;
}

.moment-description {
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: normal !important;
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Photo Modal Styles */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--pink-gradient);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #ff6b6b;
  transform: scale(1.2);
}

.modal-photo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 170px;
  border-radius: 20px;
  background: linear-gradient(45deg, #ff9a9e, #fecfef);
  margin: 20px auto;
  overflow: hidden;
}

.modal-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-description {
  color: #fff;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Image Gallery */
.image-gallery{
  padding: 40px;
  margin: 50px 0;
}

.image-gallery h1{
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--pink);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 20px;
    text-align: left;
  }

  /* Semua segitiga di mobile mengarah ke kiri */
  .timeline-content .left::after,
  .timeline-content .right::after {
    left: -8px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
  }

  .timeline-icon {
    left: 1px;
    transform: translateX(0);
  }

  .timeline-icon:hover {
    transform: translateX(0) scale(1.2);
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .moments-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .subtitle {
    font-size: 1.5rem;
  }
}

/* baru */

/* QUIZZZ */
/* Tombol pembuka modal */
.quiz-section {
  text-align: center;
}
.open-quiz-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
  animation: bounce 2s infinite;
}
.open-quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

/* Modal */
.quiz-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeInModal 0.3s ease-in-out;
}

/* Konten Modal */
.quiz-modal-content {
  position: relative;
  background: linear-gradient(135deg, #ffe6f0, #fff0f5);
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(255, 105, 180, 0.4);
}

.quiz-modal-content h2 {
  color: #d63384;
}

.quiz-modal-content p {
  font-weight: bold;
  margin: 10px 0;
  color: #ff1493;
}

/* Tombol close */
.quiz-close {
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ff1493;
}
.quiz-close:hover {
  color: #d63384;
}

/* Input dan tombol dalam modal */
.quiz-modal-content input {
  padding: 10px;
  width: 80%;
  margin-top: 5px;
  border-radius: 25px;
  border: 2px solid #ff69b4;
  outline: none;
  text-align: center;
  transition: 0.3s ease;
}
.quiz-modal-content input:focus {
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.4);
}

.quiz-modal-content button {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: white;
  font-size: 1rem;
  padding: 8px 20px;
  margin-top: 10px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}
.quiz-modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

#quizResult {
  margin-top: 10px;
  font-weight: bold;
}

/* Animasi Modal */
@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
