/* ==============================
   GLOBAL STYLE
============================== */
.wow {
  /* visibility: hidden; */
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Playwrite IT Moderna", serif;
  scroll-behavior: smooth;

  overflow: hidden;
  /* Supaya tidak scroll di cover */
  height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Playwrite IT Moderna", serif;
  font-weight: 600;
  letter-spacing: 2px;
}

.gold {
  color: #d4af37;
}

/* ==============================
   COVER (Tampilan Awal)
============================== */
.cover {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Atas - Tengah - Bawah */
  align-items: center;
  background: url("cv.webp") center/cover no-repeat;
  /*background: rgba(255, 255, 255, 0.8);*/
  color: #fff;
  text-align: center;
  z-index: 999;
  transition: opacity 1s ease;
  overflow: hidden;
}

/* Overlay gradasi + blur */
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(1px);
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  /* di atas overlay */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 1rem;
}

.cover-top h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 2px;
}

.cover-top h2 {
  margin: 0;
}

.cover-middle p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

/* Tombol */
.btn {
  background: #d4af37;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  margin: 5px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #b5942e;
}

/* Hilang setelah klik */
.cover.hidden {
  opacity: 0;
  pointer-events: none;
}

.bx {
  font-size: 2.5rem;
}




.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: url("bg.webp") center/cover no-repeat;*/
  background: rgba(255, 255, 255, 0.8);
  z-index: -1;
  /* selalu di belakang */
}



/* ==============================
   SECTION UMUM
============================== */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
   background: url("bg.webp") center/cover no-repeat fixed; 
  overflow: hidden;
}

/* Scroll-down animasi */
.scroll-down {
  margin-top: 60px;
  animation: bounce 2s infinite;
  cursor: pointer;
  opacity: 0.8;
}

.scroll-down svg {
  width: 30px;
  height: 30px;
  fill: #141414;
  /* Bisa diganti #d4af37 */
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

/* ==============================
   WEDDING SECTION
============================== */
#wedding .content {
  transform: translateY(-40px);
  /* Naik ke atas sedikit */
}

#wedding h1 {
  font-size: 3rem;
  color: #d4af37;
  margin: 0;
}

#wedding h2 {
  font-size: 2rem;
  color: #333;
  margin: 0.3rem 0;
}

#wedding p {
  font-size: 1.2rem;
  color: #333;
}

/* Utility */
.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ==============================
   MEMPELAI 1 (Foto + Box)
============================== */
#mempelai {
  background: url("bg.webp") center/cover no-repeat fixed;
  padding: 3rem 1rem;
  text-align: center;
}

.mempelai-wrapper {
  max-width: 90%;
  margin: auto;
}

.foto-mempelai img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 20px auto;
}

.mempelai-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mempelai-box .inisial {
  font-size: 2rem;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 1rem;
}

.mempelai-box p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #333;
}

/* Animasi masuk */
@keyframes fadeZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foto-mempelai img,
.mempelai-box {
  opacity: 0;
  transform: translateY(40px);
}

.foto-mempelai.show img {
  animation: fadeZoomIn 1s ease-out forwards;
}

.mempelai-box.show {
  animation: fadeSlideUp 1s ease-out 0.3s forwards;
}

/* ==============================
   MEMPELAI 2 (Dua Box)
============================== */
#mempelai2 {
  padding: 60px 20px;
  text-align: center;
}

.mempelai2-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.mempelai2-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 120px;
  padding: 20px 20px 50px 20px;
  max-width: 80%;
  border: 2px solid #d4af37;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.mempelai2-box.show {
  opacity: 1;
  transform: translateY(0);
}

.mempelai2-box:hover {
  transform: translateY(-5px);
}

/* Foto dalam box */
.mempelai2-foto {
  width: 200px;
  height: 260px;
  border-radius: 50% / 35%;
  overflow: hidden;
  margin: 0 auto 15px auto;
  border: 4px solid #d4af37;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s ease-out;
}

.mempelai2-foto.show {
  opacity: 1;
  transform: scale(1);
}

.mempelai2-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text box */
.mempelai2-box h1 {
  font-size: 2.5rem;
  margin-bottom: 1px;
}

.mempelai2-box h2 {
  font-size: 1.5rem;
  margin: 0;
}

.mempelai2-box h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.mempelai2-box p {
  font-size: 0.95rem;
  color: #444;
}

/* Delay animasi */
.mempelai2-box:nth-child(1) {
  transition-delay: 0.3s;
}

.mempelai2-box:nth-child(2) {
  transition-delay: 0.6s;
}

.mempelai2-box:nth-child(1) .mempelai2-foto {
  transition-delay: 0.6s;
}

.mempelai2-box:nth-child(2) .mempelai2-foto {
  transition-delay: 0.9s;
}

/* ==============================
   TRANSISI FOTO
============================== */
#transisi-foto1,
#transisi-foto2,
#transisi-foto3 {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Foto */
#transisi-foto1 {
  background-image: url("transisi-1.webp");
}

#transisi-foto2 {
  background-image: url("transisi-2.webp");
}

#transisi-foto3 {
  background-image: url("galeri1.webp");
}

/* Blur atas & bawah */
#transisi-foto1::before,
#transisi-foto2::before,
#transisi-foto3::before,
#transisi-foto1::after,
#transisi-foto2::after,
#transisi-foto3::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
}

#transisi-foto1::before,
#transisi-foto2::before,
#transisi-foto3::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

#transisi-foto1::after,
#transisi-foto2::after,
#transisi-foto3::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.3), transparent);
}

#transisi-foto1 p,
#transisi-foto2 p,
#transisi-foto3 p {
  top: 20%;
  color: white;
  font-size: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
}

#transisi-foto1 h2,
#transisi-foto2 h2,
#transisi-foto3 h2 {
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.7);
}

/* ==============================
   ACARA
============================== */
#acara {
  background: #fdf6f0;
}

/* Countdown */
#countdown {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
}

.time-box {
  text-align: center;
  flex: 1;
}

.time-box span {
  display: block;
  font-size: 30px;
  font-weight: bold;
  color: #333;
}

.time-box small {
  display: block;
  font-size: 14px;
  margin-top: 5px;
  letter-spacing: 1px;
  color: #444;
  text-transform: uppercase;
}

/* Card acara */
.acara-card {
  position: relative;
  width: 90%;
  height: auto;
  margin: 20px auto;
  padding: 80px 20px;
  text-align: center;
  /* background: #fdf6f0; */
  z-index: 1;
}

.acara-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 20px;
  /* background: url("bg.webp") round; */
  /* -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.acara-card h2 {
  font-size: 35px;
  margin-bottom: 10px;
  color: #3a2a19;
}

.acara-card h3 {
  font-size: 25px;
  color: #6a4b2a;
  margin: 5px 0;
}

.acara-card p {
  font-size: 15px;
  color: #333;
  margin: 10px 0;
}

.acara-card .it {
  font-style: italic;
}

.acara-card button {
  margin-top: 15px;
  padding: 8px 20px;
  background: #c9a236;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

/* ==============================
   FLORAL DECORATION
============================== */
.floral1 {
  position: absolute;
  top: 100px;
  left: 25%;
  width: 750px;
  /* tentukan ukuran container */
  height: 750px;
  display: flex;
  /* biar img di tengah */
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  z-index: 1;

  transform-origin: center center;
  /* titik putar di tengah */
  animation: floral1-spin 100s linear infinite;
}

.floral1 img {
  max-width: 100%;
  max-height: 100%;
}

@keyframes floral1-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.floral2 {
  position: absolute;
  top: 600px;
  right: 25%;
  width: 1000px;
  /* tentukan ukuran container */
  height: 1000px;
  display: flex;
  /* biar img di tengah */
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  z-index: 1;

  transform-origin: center center;
  /* titik putar di tengah */
  animation: floral1-spin 150s linear infinite;
}

.floral2 img {
  max-width: 100%;
  max-height: 100%;
}

@keyframes floral2-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==============================
   GALERI FOTO
============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* variasi grid */
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery h2 {
  font-size: 2rem;
}

/* ==============================
   GIFT
============================== */
.rekening-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 20px auto;
}



/* ==============================
   UCAPAN
============================== */
#ucapan {
  background: #fdf6f0;
  text-align: center;
}

#ucapan h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

#ucapan p {
  margin-top: 0;
  color: #555;
}

#ucapan form {
  width: 80%;
}

#ucapan textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border: 2px solid #d4af37;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

#ucapan button {
  margin-top: 10px;
}

#listUcapan {
  margin-top: 30px;
  max-width: 600px;
  width: 90%;
}

.ucapan-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: left;
}

.ucapan-item p {
  margin: 0;
  color: #333;
  white-space: pre-wrap;
  /* Supaya enter di textarea tetap muncul */
}

.ucapan-item small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
}


#listUcapan {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.ucapan-item {
  margin-bottom: 10px;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: #d4af37;
  color: white;
  padding: 1rem;
  text-align: center;
}