/* === IMPORT FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&family=Poppins:wght@300;400;600&display=swap");

/* === BASE STYLES === */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #fff0f5, #ffffff);
  color: #4a4a4a;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  text-align: center;
}

h1,
h2 {
  font-family: "Dancing Script", cursive;
  font-size: 40px;
  color: #a20052;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(255, 192, 203, 0.2);
}

p {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #5a5a5a;
}

/* === PAGE STRUCTURE === */
.page {
  min-height: 100vh;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.hidden {
  display: none;
}

/* === PAGE 1 === */
#page-1 h1,
#page-1 p {
  font-family: "Dancing Script", cursive;
  color: #8e005c;
  font-size: 28px;
  animation: fadeInUp 2s ease forwards;
  opacity: 0;
}

#page-1 h1:nth-child(1) {
  animation-delay: 0.5s;
}

#page-1 h1:nth-child(2) {
  animation-delay: 1.5s;
}

#page-1 p {
  font-size: 22px;
  animation-delay: 2.5s;
  margin-top: 10px;
}

/* === GALLERY === */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  padding: 15px;
  border-radius: 16px;
  background: #fff0f4;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-caption:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.photo-caption img {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 12px;
  object-fit: contain;
  background-color: #ffffff;
}

.photo-caption p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #444;
  margin-top: 10px;
  line-height: 1.6;
  text-align: center;
}

/* === VIDEO === */
video {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 3s ease forwards;
  opacity: 0;
  animation-delay: 3s;
}

/* === BUTTON === */
button {
  padding: 12px 24px;
  background-color: #d63384;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

button:hover {
  background-color: #a20052;
}

/* === SURAT === */
.surat {
  font-family: "Dancing Script", cursive;
  font-size: 26px;
  font-style: italic;
  color: #8e005c;
  line-height: 1.8;
  max-width: 700px;
  margin: 20px auto;
  text-shadow: 1px 1px 2px rgba(255, 192, 203, 0.3);
}

/* === ANIMASI === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.5s ease-out forwards;
}

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

.floating {
  animation: floating 3s ease-in-out infinite;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .page {
    padding: 30px 15px;
  }

  h1,
  h2 {
    font-size: 28px;
  }

  #page-1 h1,
  #page-1 p {
    font-size: 22px;
  }

  .photo-caption {
    width: 90%;
    max-width: 280px;
  }

  .photo-caption img {
    max-height: 200px;
  }

  .surat {
    font-size: 22px;
    padding: 0 10px;
  }

  button {
    font-size: 14px;
    padding: 8px 16px;
  }
}
