.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #000;
  color: #f5f5f5;
}

/* background image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/depan.jpg"); /* pastikan path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* overlay supaya teks aman */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.65)
  );
  z-index: 1;
}

/* konten di atas overlay */
.hero main {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  max-width: 90%;
}

/* ================= TEXT ================= */

.hero h3 {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
}

.hero h1 {
  font-family: "Great Vibes", cursive;
  font-size: 4.8rem;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0,0,0,.45);
}

.subjar {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 500;
}

.hero h5 {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  margin-top: 3rem;
  color: rgba(255,255,255,.85);
}

.hero h2 {
  font-family: "Marck Script", cursive;
  font-size: 2rem;
  margin-top: .5rem;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,.4);
}

/* ================= BUTTON ================= */

.hero a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 34px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 40px;
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: all .35s ease;
}

.hero a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.undangan {
	background-image: url('img/undangan.jpg');
  background-color: #ccc9c6;
	background-size: cover;
	padding-bottom: 5rem;
	z-index: -1;
  overflow: hidden;
  position: relative;
  height: 100vh;
}

.undangan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.65)
  );
  z-index: 1;
}

.undangan .atas {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  max-width: 90%;
}

.undangan h3 {
	font-family: "Oswald", sans-serif;
	font-size: 1.3rem;
	font-weight: 100;
	text-align: justify;
}

.undangan h2 {
	font-family: "Oswald", sans-serif;
	font-weight: thin;
	font-size: 1.5rem;
}

.undangan .card {
	border-radius: 15px;
}

.undangan .married h3 {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
  text-align: center;
}

.undangan img {
	border-radius: 15px;
	position: center;
}

.home {
  background-image: url('img/bg-semen.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  padding-bottom: 5rem;
}

.home h2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 100;
  text-align: justify;
}

.home .couple {
  margin-top: 50px;
}

.home .couple h3 {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
}

.home h3 {
  font-family: "Noto Sans Arabic", sans-serif;
  font-size: 2rem;
}

.home .couple p {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 100;
}

.home .couple .dann {
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  font-weight: 100;
  padding-bottom: 2rem;
}

.home .couple img {
  width: 60%;
}

.info {
	padding-top: 6rem;
	padding-bottom: 8rem;
	background-image: url('img/bg-semen.jpg');
	background-size: cover;
	min-height: 100vh;
}

.info h2 {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
}

.info p, .info a {
	font-family: "Oswald", sans-serif;
	font-weight: 100;
	font-size: 1.1rem;
}

.info .card {
	background-color: rgba(255, 255, 255, 0.2) !important;
	color: white !important;
	border: 1px solid #999;
}

.info .card-header {
	background-color: grey;
	border-bottom: 1px solid #999;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
}

.info .card-footer, .info .card-body {
	background-color: grey;
	font-size: 1rem;
}

.arrow-bounce {
    display: inline-block;
    animation: bounceArrow 1.2s infinite;
}

/* contoh styling carousel */
.carousel-container {
  max-width: 350px;
  margin: auto;
  padding: 20px 0;
}
.slick-vertical .slick-slide {
  border: 2px solid #ddd;
  background: #f8f9fa;
  padding: 8px;
}
.slick-slide img {
  display: block;
  margin: auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.galeri {
	padding-top: 10rem;
  padding-bottom: 8rem;
	background-image: url('img/bg-semen.jpg');
  background-size: cover;
  min-height: 100vh;
}

.galeri h2 {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
}

.book-container {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  perspective: 2000px;
}

.book {
  position: relative;
  width: 350px;
  height: 250px;
  transform-style: preserve-3d;
}

/* halaman */
.page {
  animation-play-state: paused;
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform-style: preserve-3d;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* gambar */
.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  border-radius: 6px;
}

/* sisi belakang halaman */
.page::after {
  content:"";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('img/webp/cover_buku.webp');
  transform: rotateY(180deg);
  backface-visibility: hidden;
  border-radius: 8px;
}

/* urutan z-index */
.page:nth-child(1) { z-index: 5; }
.page:nth-child(2) { z-index: 4; }
.page:nth-child(3) { z-index: 3; }
.page:nth-child(4) { z-index: 2; }
.page:nth-child(5) { z-index: 1; }

/* ===================== */
/* 🎬 ANIMASI AUTO FLIP */
/* ===================== */

.book.play .page:nth-child(1) {
  animation: flip1 16s infinite ease-in-out;
}
.book.play .page:nth-child(2) {
  animation: flip2 16s infinite ease-in-out;
}
.book.play .page:nth-child(3) {
  animation: flip3 16s infinite ease-in-out;
}
.book.play .page:nth-child(4) {
  animation: flip4 16s infinite ease-in-out;
}
.book.play .page:nth-child(5) {
  animation: flip5 16s infinite ease-in-out;
}

/* aktifkan animasi saat play */
.book.play .page {
  animation-play-state: running;
}

@keyframes flip1 {
  0%, 20% { transform: rotateY(0); }
  30%, 100% { transform: rotateY(-160deg); }
}

@keyframes flip2 {
  0%, 30% { transform: rotateY(0); }
  40%, 100% { transform: rotateY(-160deg); }
}

@keyframes flip3 {
  0%, 40% { transform: rotateY(0); }
  50%, 100% { transform: rotateY(-160deg); }
}

@keyframes flip4 {
  0%, 50% { transform: rotateY(0); }
  60%, 100% { transform: rotateY(-160deg); }
}

@keyframes flip5 {
  0%, 60% { transform: rotateY(0); }
  70%, 100% { transform: rotateY(-160deg); }
}

.galeri-grid img:hover {
  transform: scale(1.05);
}

#lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.gift {
	background-image: url('img/bg-semen.jpg');
	background-size: cover;
	min-height: 80vh;
	padding-bottom: 2rem;
	padding-top: 5rem;
	z-index: -1;
}

.gift p {
	font-family: "Oswald", sans-serif;
	font-size: 1.5rem;
}

.gift h2 {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
}

.ucapan {
	padding-top: 5rem;
	background-image: url('img/bg-semen.jpg');
	background-size: cover;
	min-height: 100vh;
}

.ucapan h2 {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
}

.ucapan h4 {
	font-family: "Oswald", sans-serif;
	font-size: 1.2rem;
	font-weight: 100;
}

.listUcapan h6 {
	font-family: "Oswald", sans-serif;
	font-size: 1.3rem;
	font-weight: 100;
}

.listUcapan p {
	font-family: "Oswald", sans-serif;
	font-size: 1.1rem;
}

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


/* Media Queries */

/* Laptop */
@media (max-width: 992px) {
  html {
  	font-size: 100%;
  }

  .simply-countdown-circle > .simply-section {
	width: 90px;
	height: 90px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  html {
  	font-size: 95%;
  }

  .simply-countdown-circle > .simply-section {
	width: 80px;
	height: 80px;
  }
}

/* Handphone */
@media (max-width: 576px) {
  html {
    font-size: 80%;
  }

  .simply-countdown-circle > .simply-section {
	width: 106px;
	height: 106px;
  }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 480px;
    background: #ded8d3;
    border-radius: 15px 15px 0 0;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  /* Link item */
  .bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  /* Ikon */
  .bottom-nav .nav-item i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
  }

  /* Aktif */
  .bottom-nav .nav-item.active {
    color: #fff;
  }

  .bottom-nav .nav-item.active i {
    transform: scale(1.1);
  }

  /* Hover efek (desktop) */
  @media (hover: hover) {
    .bottom-nav .nav-item:hover {
      color: #fff;
    }
  }

#listUcapan {
	max-height: calc(140px * 3); /* 3 card saja */
	overflow-y: auto;
}

.vertical-label {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Gradient untuk Akad */
.vertical-label.akad {
  background: linear-gradient(180deg, transparent, #6c63ff);
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
}

/* Gradient untuk Resepsi */
.vertical-label.resepsi {
  background: linear-gradient(180deg, transparent, #20c997);
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
}

.jam {
	font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 100;
}

.cd {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: url('img/cd.png') center/cover no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 9999;
  cursor: pointer; /* jadi tombol */
}

/* animasi muter saat audio playing */
.spin {
  animation: spin 4s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.thanks {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("img/webp/ucapan.webp") no-repeat center center/cover;
  display: flex;
  align-items: flex-start; /* ⬅️ bukan center lagi */
  justify-content: center;
  color: white;
  text-align: center;
  filter: grayscale();
  padding-top: 4rem; /* jarak dari atas */
  padding-bottom: 3rem;
}

.thanks .container {
  margin-top: 10px; /* naikkan seluruh teks ke atas */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* efek gelap supaya teks lebih terbaca */
  display: flex;
}

.penutup {
	font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem;
}

.thanks h4 {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
}