/* --- Reset default browser style --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "TradeGothicNextLTPro-Rg";
}

.main-container {
  display: flex;
  flex-direction: column;
  background-color: black;
  min-height: 100vh;
}

/* --- Navbar container --- */
.navbar {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  padding-block: 15px;
  padding-inline: clamp(5%, 8vw, 10%);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* --- Left & Right menus --- */
.navbar-left ul,
.navbar-right ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.navbar-left ul li a,
.navbar-right ul li a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: bolder;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.704);
  transition: color 0.3s ease;
}

.navbar-left ul li a:hover,
.navbar-right ul li a:hover {
  color: #ec2027;
}

/* --- Logo di tengah --- */
.logo img {
  height: 60px;
  object-fit: contain;
}

/* --- Hamburger menu (hidden by default) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
}

/* --- Mobile Menu (hidden default) --- */
.nav-menu-mobile {
  display: flex;
  flex-direction: column;
  justify-content: center; /* menu di tengah vertikal */
  align-items: center; /* menu di tengah horizontal */
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.95); /* hitam elegan */
  list-style: none;
  transform: translateX(100%); /* mulai di luar layar kanan */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1000;
}

.nav-menu-mobile li {
  margin: 20px 0;
}

.nav-menu-mobile li a {
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

.nav-menu-mobile li a:hover {
  color: #ec2027; /* aksen biru saat hover */
}

/* Close button */
.close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

/* Aktifkan animasi saat menu terbuka */
.nav-menu-mobile.active {
  transform: translateX(0);
  opacity: 1;
}

.nav-menu-mobile li {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-menu-mobile.active li {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu-mobile.active li:nth-child(1) {
  transition-delay: 0.1s;
}
.nav-menu-mobile.active li:nth-child(2) {
  transition-delay: 0.2s;
}
.nav-menu-mobile.active li:nth-child(3) {
  transition-delay: 0.3s;
}
.nav-menu-mobile.active li:nth-child(4) {
  transition-delay: 0.4s;
}
.nav-menu-mobile.active li:nth-child(5) {
  transition-delay: 0.5s;
}
.nav-menu-mobile.active li:nth-child(6) {
  transition-delay: 0.6s;
}

.homepage {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("assets/bg.png");
  background-size: cover;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
}

.homepage img {
  max-width: 90%;
  height: auto;
}

.content-video {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("assets/bg-video.svg");
  background-size: cover;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 5%;
}

.content-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.section1 {
  display: flex;
  justify-content: center;
  gap: 10rem;
  align-items: center;
  background-image: url("assets/bg2.svg");
  background-size: cover;
  min-height: 200vh;
  background-repeat: no-repeat;
  background-position: center;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 5%;
  flex-direction: column;
}

.text-berjalan {
  flex-direction: column;
  max-height: 100vh;
  display: flex;
}

#karaoke-text {
  font-size: clamp(0.5rem, 5vw + 1rem, 50px); /* min 0.9rem, max 50px */
  line-height: 1.6;
  font-weight: bolder;
  text-align: center;
  color: #ec2027; /* warna dasar */
}

#karaoke-text span {
  color: #ec2027; /* default abu */
  transition: color 0.2s ease;
}

#karaoke-text span.active {
  color: white; /* warna highlight karaoke */
}

/* Accordion Button */
.accordion2 {
  width: 100%;
  padding: 16px 20px;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 600;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;
  margin: 8px 0;
  transition: background 0.3s ease;
  border-bottom: 2px solid white;
  color: #fff;
  text-align: center;
}

.accordion2:hover {
  background: transparent;
}
.accordion2.active {
  background: transparent;
}

/* Panel (hidden by default) */
.panel2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: transparent;
  margin-bottom: 8px;
}

.panel2 p,
.panel2 h2 {
  padding: 12px 20px;
  margin: 0;
  color: white;
  font-size: clamp(1.5rem, 1.5vw, 1rem);
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

/* Active state */
.accordion2.active {
  background: transparent;
  border-radius: 8px 8px 0 0;
}

.panel2.show {
  max-height: 1000px; /* cukup besar agar muat isi panjang */
  padding: 10px 0;
}

.section2 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-image: url("assets/bg3.svg");
  background-size: cover;
  min-height: 200vh;
  background-repeat: no-repeat;
  background-position: center;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 5%;
  flex-direction: column;
}

.section2 h2 {
  font-size: clamp(1rem, 5vw + 1rem, 60px);
  font-weight: bolder;
  text-align: center;
  color: white;
  margin-bottom: 5rem;
}

.section2 p {
  font-size: clamp(1.5rem, 1.5vw, 1rem);
  font-weight: bolder;
  text-align: center;
  color: white;
  text-align: justify;
  line-height: 1.6;
}

.maps {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 5%;
  flex-direction: column;
}

.maps img {
  max-width: 100%;
  height: auto;
}

.grid-container {
  display: grid;
  grid-auto-flow: column; /* isi ke bawah dulu */
  grid-template-rows: repeat(3, auto); /* default 3 baris (desktop) */
  gap: 0.5rem 3rem;
  margin-block: 5rem;
  justify-content: center;
}

.grid-container p {
  margin: 0;
  font-size: clamp(1.5rem, 1.5vw, 1rem);
  font-weight: bold;
  color: white;
}

.informasi-pengunjung {
  display: flex;
  min-height: 100vh;
  background-image: url("assets/bg-infopengunjung.svg");
  flex-direction: column;
}

.informasi-pengunjung h2 {
  font-size: clamp(0.8rem, 3vw + 1rem, 60px);
  font-weight: bolder;
  text-align: center;
  color: white;
  background-color: #ec2027;
  margin-bottom: 3rem;
}

.informasi-pengunjung p {
  font-size: clamp(1.5rem, 1.5vw, 1rem);
  font-weight: bolder;
  text-align: center;
  color: white;
  text-align: justify;
  line-height: 1.6;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 2%;
}

.informasi-pengunjung iframe {
  max-width: 100%;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 2%;
}

.faq {
  display: flex;
  min-height: 100vh;
  background-image: url("assets/faq.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  flex-direction: column;
}

.faq h2 {
  font-size: clamp(0.8rem, 3vw + 1rem, 60px);
  font-weight: bolder;
  text-align: center;
  color: white;
  background-color: #ec2027;
  margin-bottom: 2rem;
}

/* --- Gaya Dasar FAQ (dari CSS lama Anda) --- */
.faq {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  display: flex;
}

.faq h2 {
  font-size: clamp(0.8rem, 3vw + 1rem, 60px);
  font-weight: bolder;
  width: 100%;
  line-height: 1;
  background-color: #ec2027;
  padding: 0px;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-container {
  padding-inline: 10%;
  padding-block: 3rem;
  width: 100%;
  gap: 1rem;
  display: flex;
  flex-direction: column;

  /* --- Tambahan untuk fungsi "Baca Selengkapnya" --- */
  max-height: 500px; /* Batasi tinggi untuk 5 item, sesuaikan jika perlu */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

/* Efek gradien untuk menandakan ada konten tersembunyi */
.faq-container:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;

  pointer-events: none;
}

/* --- Kelas yang ditambahkan oleh JS saat tombol diklik --- */
.faq-container.expanded {
  max-height: none;
}

.faq-item {
  background-color: #ec2027;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* --- Perbaikan pada panel agar bisa transisi --- */
.panel3 {
  padding: 0 10px;
  color: rgb(0, 0, 0);
  max-height: 0; /* Ubah dari 'display: none' agar bisa transisi */
  overflow: hidden;
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
}

.panel3 p {
  font-size: clamp(1.2rem, 1.5vw, 0.7rem);
  padding-bottom: 20px;
  color: #fff;
  font-weight: 400;
  text-align: justify;
  line-height: 1.6;
}

/* --- Gaya baru untuk tombol accordion --- */
.accordion {
  background-color: transparent; /* Gunakan warna item yang sudah ada */
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: clamp(1.5rem, 2vw + 1rem, 1.5rem);
  transition: background-color 0.4s ease;
  font-weight: bold;
}

.accordion:after {
  content: "\002B";
  float: right;
  font-weight: bold;
}

.accordion.active:after {
  content: "\2212";
}

.panel3.show {
  padding-inline: 10px;
}

/* Tombol Read More */
.read-more-btn {
  display: none;
  font-size: clamp(1.5rem, 2vw + 1rem, 1.5rem);
  margin: 20px auto; /* Tampilkan di tengah */
  padding: 20px 20px;
  background-color:#ec2027;
  color: white;
  border: none;
  width: 80%;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.tiket {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tiket h2 {
  font-size: clamp(0.8rem, 3vw + 1rem, 60px);
  font-weight: bolder;
  width: 100%;
  line-height: 1;
  background-color: #ec2027;
  padding: 0px;
  text-align: center;
}


.content-tiket {
  background-image: url("assets/bg.png");
  background-size: cover;
  min-height: 80vh;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-inline: clamp(5%, 8vw, 10%);
  padding-block: 5%;
  align-items: center;

}

.content-tiket a {
  text-decoration: none;
  justify-content: center;
  display: flex;
  align-items: center;
}

.banner-tiket {
  display: block;
  width: 40%;              /* ikut lebar parent */
  max-width: 1200px;        /* batas maksimal biar nggak terlalu besar */
  height: auto;             /* jaga rasio */
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.content-tiket button {
  padding: 20px 40px;
  background-color: #ec2027;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
}

.content-tiket p {
  font-size: 1.2rem;
  font-weight: bolder;
  text-align: center;
  color: white;
  text-align: justify;
  line-height: 1.6;
}

/* --- Wrapper untuk Pemicu Scroll (Tanpa Tinggi Tetap) --- */
.scroll-trigger-section {
  position: relative;
  overflow: hidden;
  background-image: url("assets/slide-bg.svg");
  background-size: cover;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;

  /* Tinggi akan diatur oleh JavaScript */
}

/* --- CSS untuk Galeri --- */
/* Galeri secara default tidak terlihat dan bukan fixed */
.gallery {
  width: 100vw;
  height: 70vh;
  perspective: 800px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

/* Kelas ini ditambahkan oleh JS untuk membuat galeri fixed dan terlihat */
.gallery.active {
  position: fixed;
  opacity: 1;
  pointer-events: auto;
}

.room {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(-150px);
}

.image-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 65%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.8s, opacity 0.8s;
}

.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-frame.prev {
  opacity: 0.7;
  /* Geser ke atas dan jauhkan dari kamera */
  transform: translate(-50%, -90%) rotateX(-60deg) translateZ(-50px);
  z-index: 2;
  width: 80%;
}

.image-frame.next {
  opacity: 0.7;
  /* Geser ke bawah dan jauhkan dari kamera */
  transform: translate(-50%, 60%) rotateX(60deg) translateZ(-50px);
  z-index: 2;
  width: 80%;
}

/* Penyesuaian untuk .image-frame.current */
.image-frame.current {
  opacity: 1;
  /* Posisikan di tengah dan lebih dekat ke kamera */
  transform: translate(-50%, -30%) rotateX(0deg) translateZ(100px);
  z-index: 3;
  width: 70%;
  height: 100%;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.form-container h2 {
  font-size: clamp(0.8rem, 3vw + 1rem, 60px);
  font-weight: bolder;
  width: 100%;
  line-height: 1;
  background-color: #ec2027;
  padding: 0px;
  text-align: center;
  margin-bottom: 7%;
}

.form-container input,
.form-container textarea,
.form-container button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.form-container button {
  background: #ec2027;
  color: #fff;
  border-radius: 0;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.contact-form {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100vw;
  padding-inline: clamp(5%, 8vw, 10%);
}

.left-contact-form {
  width: 40%;
}
.right-contact-form {
  width: 60%;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.popup.show {
  visibility: visible;
  opacity: 1;
}
.popup-content {
  background: black;
  color:white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.popup-content h3 {
  margin-bottom: 15px;
}
.popup-content button {
  margin-top: 2rem;
  background: #ec2027;
  padding: 0.5rem 1.5rem;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.alamat {
  padding-block: 3rem;
  display: flex;
  width: 100vw;
  padding-inline: clamp(5%, 8vw, 10%);
  flex-direction: row;
  gap: 2rem;
  display: flex;
}

.left-alamat {
  width: 40%;
}
.right-alamat {
  width: 60%;
  text-align: right;
}

.alamat p {
  color: #fff;
  font-size: 1rem;
}

.footer {
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-inline: clamp(5%, 8vw, 10%);
}

.footer .left-footer {
  flex: 1;
  margin-bottom: 20px;
  width: 60%;
}

.footer .left-footer img {
  width: 30%;
}

.footer .left-footer p {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.footer .sosmed-logo {
  margin-top: 15px;
}

.footer .right-footer {
  flex: 1;
  width: 40%;
  margin-bottom: 20px;
  text-align: right;
}

.footer .right-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .right-footer ul li {
  margin-bottom: 8px;
}

.footer .right-footer ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer .right-footer ul li a:hover {
  color: #ec2027; /* highlight warna merah */
}

.footer p {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 20px;
  width: 100%;
  color: #bbb;
}

.footer .sosmed-logo {
  margin-top: 15px;
}

.footer .sosmed-logo a {
  display: inline-block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  margin-right: 8px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer .sosmed-logo a:hover {
  background: #ec2027; /* warna hover */
  transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid #fff; 
    padding-top: 20px;
}




/* --- Responsive: Tablet & Mobile --- */
@media (max-width: 900px) {
  .navbar-left,
  .navbar-right ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* When active, show menu */
  .nav-menu-mobile.active {
    right: 0;
    display: flex;
  }

  .logo img {
    height: 40px;
    object-fit: contain;
  }

  .accordion2 {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .panel2 p,
  .panel2 h2 {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .section1 {
    min-height: 120vh;
    gap: 3rem;
  }

  #karaoke-text {
    font-size: 1.4rem; /* lebih kecil untuk HP */
  }

  .section2 p {
    font-size: 0.9rem;
  }

  .section2 h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .grid-container {
    grid-template-rows: repeat(6, auto);
    grid-template-columns: repeat(2, auto);
  }

  .grid-container p {
    font-size: 0.9rem;
  }

  .informasi-pengunjung p {
    font-size: 0.9rem;
  }

  .accordion {
    font-size: 1rem;
  }
  
  .panel3 p {
    font-size: 0.9rem;
  }

  .content-tiket {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 5%;
    padding-block: 10%;
  }

  .content-tiket a {
    color: #333;
  }

  .banner-tiket {
    width: 90%;            /* biar ada padding kiri kanan */
  }

  .content-tiket button {
    font-size: 16px;
    margin-bottom: 1rem;
  }

  .content-tiket p {
    font-size: 0.9rem;
  }

  .contact-form {
    flex-direction: column;
    gap: 1rem;
  }

  .left-contact-form,
  .right-contact-form {
    width: 100%;
  }

  .alamat {
    flex-direction: column;
    gap: 1rem;
  }

  .left-alamat,
  .right-alamat {
    width: 100%;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding-inline: 5%;
  }

  .footer .left-footer {
    width: 100%;
    align-items: start;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0;
  }
  .footer .right-footer {
    width: 100%;
    align-items: end;
  }

  .footer .left-footer img {
    width: 150px;
    display: block;
  }

  .footer .right-footer ul {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin: 0;
  }

  .footer .right-footer ul li {
    display: inline-block;
    margin: 0 10px 10px 10px;
  }



}


/* --- Penyesuaian untuk Tablet (Tergantung Kebutuhan) --- */
@media (max-width: 1024px) {
  /* Sesuaikan tinggi galeri dan perspektif */
  .gallery {
      height: 60vh;
      perspective: 700px;
  }

  /* Sesuaikan posisi dan ukuran elemen di dalam galeri */
  .image-frame.prev {
      transform: translate(-50%, -50%) rotateX(-50deg) translateZ(-40px);
      width: 100%;
  }
  
  .image-frame.next {
      transform: translate(-50%, 55%) rotateX(50deg) translateZ(-40px);
      width: 100%;
  }
  
  .image-frame.current {
      transform: translate(-50%, -20%) rotateX(0deg) translateZ(80px);
      width: 85%;
      height: 100%;
  }
}

/* --- Penyesuaian Utama untuk Mobile --- */
@media (max-width: 768px) {
  /* Atur ulang posisi gambar agar lebih di tengah */
  .image-frame.current {
      /* Posisikan di tengah vertikal dan sedikit lebih maju */
      transform: translate(-50%, -50%) rotateX(0deg) translateZ(30px);
      width: 80%;
      height: 80%;
  }

  .image-frame.prev {
      /* Geser ke atas dan lebih dekat */
      transform: translate(-50%, -100%) rotateX(-50deg) translateZ(-10px);
      width: 90%;
  }

  .image-frame.next {
      /* Geser ke bawah dan lebih dekat */
      transform: translate(-50%, 0%) rotateX(50deg) translateZ(-10px);
      width: 90%;
  }
}

@media (max-width: 768px) {
  /* Menggunakan Flexbox pada body untuk pemusatan vertikal */
  body {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      overflow-x: hidden; /* Mencegah scroll horizontal */
  }

  /* Mengubah posisi dan menghapus margin */
  .scroll-trigger-section {
      padding: 0;
      margin: 0;
      position: static;
  }

  /* Kurangi tinggi galeri untuk mencegah terlalu banyak scroll */
  .gallery {
      height: 50vh;
      /* Kurangi perspektif untuk efek 3D yang lebih pas di layar kecil */
      perspective: 500px;
      position: relative; /* Pastikan posisi relatif */
      top: 0;
      left: 0;
  }

  /* Posisikan ruangan agar lebih pas di tengah */
  .room {
      transform: rotateX(0deg) translateZ(-50px);
  }
  
  /* Atur ulang ukuran dan posisi semua frame */
  .image-frame {
      width: 80%; /* Beri sedikit padding samping */
      height: 60%;
  }
  
  /* Atur ulang posisi gambar sebelumnya (di atas) */
  .image-frame.prev {
      /* Geser ke atas dan lebih dekat */
      transform: translate(-50%, -15%) rotateX(-25deg) translateZ(-30px);
      width: 100%;
  }

  /* Atur ulang posisi gambar selanjutnya (di bawah) */
  .image-frame.next {
      /* Geser ke bawah dan lebih dekat */
      transform: translate(-50%, 90%) rotateX(60deg) translateZ(-10px);
      width: 100%;
  }

  /* Atur ulang posisi gambar yang sedang aktif (di tengah) */
  .image-frame.current {
      /* Posisikan di tengah vertikal dan sedikit lebih maju */
      transform: translate(-50%, 0%) rotateX(0deg) translateZ(40px);
      width: 87%;
      height: 100%;
  }

  

}



.container-3d {
  width: 100vw;
  height: 100dvh;
  position: relative;
  transform-style: preserve-3d;
  perspective: 900px;
  transform: rotateX(-30deg) rotateY(0deg) translateZ(50px);
}

.top-cube,
.bottom-cube,
.middle-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;

  background-size: 100% auto; /* penuh horizontal */
  background-position: bottom; /* mulai dari bawah */
  background-repeat: repeat-y; /* supaya loop terus */
  animation: scroll 20s linear infinite;
}

/* Dinding tengah */
.middle-cube {
  width: 75dvw;
  height: 74dvh;
  transform: translate(-50%, -50%) translateZ(0px);
  background-image: url("assets/middle-cube.png");
}

/* Atap */
.top-cube {
  width: 94dvw;
  height: 50dvh;
  transform: translate(-50%, -130%) rotateX(-45deg) translateZ(60px)
    translateY(150px);
  transform-origin: 50% -10%;
  background-image: url("assets/top-cube.png");
  filter: blur(0.2em);
}

/* Lantai */
.bottom-cube {
  width: 94dvw;
  height: 50dvh;
  transform: translate(-50%, 50%) rotateX(95deg) translateZ(60px)
    translateY(-150px);
  transform-origin: 50% 90%;
  background-image: url("assets/bottom-cube.png");
  filter: blur(0.2em);
}

/* Animasi background jalan ke atas */
@keyframes scroll {
  0% {
    background-position-y: 0;
  }
  100% {
    background-position-y: 200%; /* makin besar = makin cepat panjang jalan */
  }
}

@media screen and (max-width: 600px) {
  @keyframes scroll {
    0% {
      background-position-y: 0;
    }
    100% {
      background-position-y: 1000%; /* makin besar = makin cepat panjang jalan */
    }
  }
}

@media screen and (max-width: 900px) {
  @keyframes scroll {
    0% {
      background-position-y: 0;
    }
    100% {
      background-position-y: 500%; /* makin besar = makin cepat panjang jalan */
    }
  }
}

