/* ============================= */
/* GLOBAL STYLE */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow: hidden;
  scroll-behavior: smooth;
}

/* ============================= */
/* PAGE BASE STYLE */
/* ============================= */
.page {
  min-height: 100vh; /* ubah dari height ke min-height */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* agar isi vertikal */
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #c3efff, #b8e0ff);
  color: #004d80;
  padding: 5rem;
}

/* Halaman Pembuka tetap full layar */
.cover {
  height: 100vh;
  background: url('img/mermaid2.png') no-repeat center/cover;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.cover .content {
  position: relative;
  z-index: 2;
}

/* Font elegan untuk judul utama */
.elegant-title {
  font-family: "Great Vibes", cursive;
  font-size: 2.8rem;
  color: #b24ea6;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.audrey-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  margin-bottom: 3rem;
}

.to-box {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  text-align: left;
}

#guestName {
  font-size: 1.4rem;
  color: #0082a0;
  font-weight: bold;
}

.cover button {
  background: #ff7dc2;
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 2rem;
  transition: background 0.3s;
}

.cover button:hover {
  background: #ff56b0;
}

.countdown {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  color: #004d80;
}

/* ============================= */
/* MERMAID DECORATION */
/* ============================= */
.mermaid {
  position: absolute;
  max-width: 200px;
  opacity: 0.9;
}

.deco1 {
  bottom: 10px;
  right: 20px;
}

.deco2 {
  top: 20px;
  left: 10px;
}

.deco3 {
  bottom: 0;
  right: 0;
}

/* ============================= */
/* TEXT & GENERAL SPACING */
/* ============================= */
.text {
  max-width: 700px;
  line-height: 1.8;
}

.page h1, 
.page h2, 
.page p {
  margin: 1.5rem 0;
}

.page .text > * {
  margin: 1.2rem 0;
}

.map-container {
  margin-top: 2rem;
}

/* ============================= */
/* GALERI PAGE */
/* ============================= */
#gallery {
  background: linear-gradient(180deg, #c8f7ff, #e3f9ff);
  flex-direction: column;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  width: 100%;
  max-width: 900px;
}

.gallery-item {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ============================= */
/* SCROLLING CONTROL */
/* ============================= */
.scroll-enabled {
  overflow-y: auto;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

/* HP sangat kecil (≤400px) */
@media (max-width: 400px) {
  body {
    font-size: 14px;
  }

  .page {
    padding: 0.8rem;
  }

  .elegant-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .audrey-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .cover button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .text {
    max-width: 95%;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #guestName {
    font-size: 1rem;
  }

  iframe {
    height: 220px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-item {
    border-radius: 10px;
  }

  .countdown {
    font-size: 1rem;
  }

  .mermaid {
    max-width: 120px;
  }

  section {
    margin-top: 0px;
    padding: 1px;
  }
}

/* HP kecil (401px – 600px) */
@media (min-width: 401px) and (max-width: 600px) {
  .page {
    padding: 2rem;
  }

  .elegant-title {
    font-size: 1.8rem;
  }

  .audrey-photo {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
  }

  .text {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Tablet (601px – 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .page {
    padding: 3rem;
  }

  .elegant-title {
    font-size: 2.2rem;
  }

  .audrey-photo {
    width: 160px;
    height: 160px;
  }

  .text {
    max-width: 85%;
    font-size: 1rem;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
}

/* Laptop besar (≥1025px) */
@media (min-width: 1025px) {
  .page {
    padding: 5rem 7rem;
  }

  .elegant-title {
    font-size: 3rem;
  }

  .text {
    max-width: 700px;
    font-size: 1.05rem;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
