@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: "Playfair Display", serif;
}

/* text */
.text-container {
  max-height: 200px;
  /* Adjust based on the image height */
  overflow: hidden;
  position: relative;
}

.text-container.expanded {
  max-height: none;
}

.read-more {
  display: none;
}

.text-container:not(.expanded)+.read-more {
  display: block;
}

/* Scroll to top button styling */

#scrollToTopBtn {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#scrollToTopBtn.show {
  display: block;
  opacity: 1;
}

.custom-underline {
  position: relative;
  display: inline-block;
  font-size: 32px;
}

.custom-underline::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -10px;
  width: 229px;
  height: 1.7px;
  background-color: #71ba74;
}

.custom-underline1 {
  position: relative;
  display: inline-block;
  font-size: 32px;
}

.custom-underline1::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -10px;
  width: 275px;
  height: 1.7px;
  background-color: #71ba74;
}

.bg-transparent {
  background-color: transparent;
  color: white;
}

.bg-solid-white {
  background-color: #ffffff;
  color: black;
}

.nav-link {
  transition: color 0.3s;
}

.bg-solid-white .nav-link {
  color: black;
}

.logo {
  transition: color 0.3s;
}

.btn {
  transition: color 0.3s;
}

.bg-transparent .logo {
  color: white;
}

.bg-transparent .btn {
  color: white;
}

.bg-solid-white .logo {
  color: black;
}

.bg-solid-white .btn {
  color: black;
}

/* slider */

.gallery {
  width: 100%;
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 400px;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
}

.gallery-item {
  height: 200px;
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 330px;
  z-index: 0;
  border-radius: 15px;
  background-size: contain;
}

.gallery-item-1 {
  left: 15%;
  opacity: 0.4;
  transform: translateX(-50%);
}

.gallery-item-2 .gallery-item-4 {
  height: 250px;
  opacity: 0.8;
  width: 380px;
  z-index: 1;
}

.gallery-item-2 {
  left: 30%;
  transform: translateX(-50%);
}

.gallery-item-3 {
  box-shadow: -2px 5px 33px 6px rgba(0, 0, 0, 0.35);
  height: 300px;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  z-index: 2;
}

.gallery-item-4 {
  left: 70%;
  transform: translateX(-50%);
}

.gallery-item-5 {
  left: 85%;
  opacity: 0.4;
  transform: translateX(-50%);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  height: 100px;
}

.gallery-controls button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-size: 30px;
  margin: 0 50px;
  padding: 0 12px;
  text-transform: capitalize;
}

.gallery-controls button:focus {
  outline: none;
}

.gallery-controls-previous {
  position: relative;
}

.gallery-controls-previous::before {
  border: solid #000;
  border-width: 0 5px 5px 0;
  content: "";
  display: inline-block;
  height: 5px;
  left: -30px;
  padding: 10px;
  position: absolute;
  top: 25%;
  transform: rotate(135deg) translateY(-50%);
  transition: left 0.15s ease-in-out;
  width: 5px;
}

.gallery-controls-previous:hover::before {
  left: -40px;
}

.gallery-controls-next {
  position: relative;
}

.gallery-controls-next::before {
  border: solid #000;
  border-width: 0 5px 5px 0;
  content: "";
  display: inline-block;
  height: 5px;
  right: -30px;
  padding: 10px;
  position: absolute;
  top: 45%;
  transform: rotate(-45deg) translateY(-50%);
  transition: right 0.15s ease-in-out;
  width: 5px;
}

.gallery-controls-next:hover::before {
  right: -40px;
}

.gallery-nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery li {
  background: #ccc;
  border-radius: 50%;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}

/* wa btn */

.floating-wa-btn {
  position: fixed;
  bottom: 80px;
  right: 10px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.floating-wa-btn:hover {
  background-color: #1da851;
}

.floating-wa-btn i {
  font-size: 24px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  /* Adjusted value to position back-to-top button below the WhatsApp button */
  right: 20px;
  opacity: 0;
  border-radius: 50%;
  /* Initial state hidden */
  transition: opacity 0.3s ease;
  z-index: 10;
}

#scrollToTopBtn.show {
  opacity: 1;
  /* Show when scrolling */
}

/* Responsiveness for Mobile */

@media (max-width: 767px) {

  /* Mengatur ukuran font untuk mode mobile */
  #navbar .text-2xl {
    font-size: 1.5rem;
    /* Ubah sesuai kebutuhan */
  }

  #navbar .text-3xl {
    font-size: 2rem;
    /* Ubah sesuai kebutuhan */
  }

  #navbar .logo {
    font-size: 20px;
    /* Ubah sesuai kebutuhan */
  }

  .mt-mobile {
    margin-top: 10px;
    position: relative;
    z-index: 2;
    /* Pastikan nilai z-index lebih tinggi dari slider */
  }

  .gallery {
    margin-top: 170px;
    position: relative;
    z-index: 1;
    /* Ganti nilai z-index sesuai kebutuhan */
  }

  .gallery-container {
    height: auto;
    padding: 20px;
  }

  .gallery-item {
    height: 150px;
    width: 250px;
  }

  .gallery-item-2 .gallery-item-4 {
    height: 200px;
    width: 300px;
  }

  .gallery-item-3 {
    height: 250px;
    width: 350px;
  }

  .gallery-item-4 {
    height: 200px;
    width: 300px;
  }

  .gallery-controls {
    height: auto;
    margin: 12px 0;
  }

  .gallery-controls button {
    font-size: 24px;
    margin: 0 20px;
  }

  .gallery-nav {
    bottom: -30px;
  }

  .gallery-controls button:focus {
    outline: none;
  }
}

/* more gallery */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.popup img {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  color: #dc0000;
  font-size: 24px;
}

#navbar ul {
  display: none;
  /* Default sembunyikan menu */
  flex-direction: column;
  /* Tata letak vertikal */
  position: absolute;
  top: 100%;
  left: 50%;
  width: 50%;
  background-color: white;
  color: black;
  justify-content: flex-end;
  text-align: center;
}

/* Atur tata letak navigasi untuk muncul dari atas ke bawah */

@media (min-width: 700px) {
  #navbar ul {
    flex-direction: row;
    /* Tata letak horizontal */
    position: static;
    /* Kembalikan ke posisi statis */
    width: auto;
    /* Hilangkan aturan lebar */
    justify-content: flex-end;
    /* Sesuaikan dengan tata letak horizontal */
    background-color: transparent;
    /* Sesuaikan dengan tata letak horizontal */
    color: white;
    /* Sesuaikan dengan tata letak horizontal */
    text-align: center;
    /* Sesuaikan dengan tata letak horizontal */
  }
}

/* Tampilkan navigasi saat kelas hidden dihapus */

#navbar ul:not(.hidden) {
  display: flex;
}

/* ============================================
   Image Quality Enhancement - Hide Pixelation
   ============================================ */

/* Cinematic image filter - stronger blur to hide pixelation */
.img-cinematic {
  filter: blur(0.8px) contrast(1.1) brightness(0.92) saturate(1.15);
  transform: scale(1.02);
  /* Compensate for blur edge cropping */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Alternative: Slight softening for hero images */
.img-soft {
  filter: blur(0.5px) contrast(1.05) brightness(0.95);
  transform: scale(1.01);
}

/* Grainy overlay for editorial look (apply to parent container) */
.img-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.img-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* Vignette effect - darken edges to hide pixelation there */
.img-vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      transparent 40%,
      rgba(0, 0, 0, 0.2) 80%,
      rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Hero image enhancement - extra dark for text readability */
.hero-img-enhanced {
  filter: blur(1px) contrast(1.15) brightness(0.85) saturate(1.1);
  transform: scale(1.03);
}

/* Gallery image enhancement with hover */
.gallery-img {
  filter: blur(0.5px) contrast(1.08) saturate(1.12);
  transform: scale(1.01);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img:hover {
  filter: blur(0.3px) contrast(1.12) saturate(1.2) brightness(1.02);
  transform: scale(1.08);
}

/* Duotone/color wash for editorial look */
.img-duotone {
  filter: blur(0.6px) contrast(1.1) saturate(0.9) sepia(0.1);
  transform: scale(1.01);
}