html {
  scroll-behavior: smooth;
}

/* Mengatur posisi berhenti scroll */
#home {
  scroll-margin-top: 110px; 
}

#tentang {
  scroll-margin-top: -50px; 
}

#unit {
  scroll-margin-top: 140px; 
}

#galeri {
  scroll-margin-top: 220px; 
}

#footer {
  scroll-margin-top: 110px; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "inter", "montserrat", "poppins", "helvetica", sans-serif;
}

body {
  background: #f1f1f1;
  overflow-x: hidden;
  color: #000;
}

/* ============================= NAVBAR ============================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;

  padding: 0 50px;
  top: 0;
  width: 100%;
  height: 90px;

  /* KUNCI UTAMA */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0)
  );

  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
  z-index: 100;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px; /* jarak menu & tombol WA */
}

/* LOGO */
.logo img {
  height: 40px;
  max-width: 330px;
  object-fit: contain;
}

/* MENU NAVBAR */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 999px;

  text-decoration: none;
  color: #fff;
  font-weight: 400;

  background: rgba(255, 255, 255, 0);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav-links a:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
}

/* WHATSAPP */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  background: #1f8f5f;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.25s ease;
}

.wa-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wa-btn:hover {
  background: #177a50;
  transform: translateY(-1px);
}

/* ================= NAVBAR SCROLL ================= */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: 90px;
}

/* menu jadi hitam */
.navbar.scrolled .nav-links a {
  color: #000;
}

/* hover menu */
.navbar.scrolled .nav-links a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* WA button tetap kontras */
.navbar.scrolled .wa-btn {
  background: #1f8f5f;
}

.logo {
  position: relative;
}

.logo img {
  height: 40px;
  transition: opacity 0.3s ease;
}

/* default */
.logo-scroll {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* saat scroll */
.navbar.scrolled .logo-default {
  opacity: 0;
}

.navbar.scrolled .logo-scroll {
  opacity: 1;
}

/* ============================= HEADER ============================= */
/* HERO */
.hero {
  position: relative;
  height: 57vh;
  width: 100%; 

  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 160px;
}

/* layer background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 18s infinite;
  will-change: transform, opacity;
}

/* overlay gelap */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.05);
  z-index: 1;
}

/* konten di atas */
.hero-content {
  position: relative;
  z-index: 2;

}

/* track panjang */
.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 600%;
  animation: heroSlidePause 18s infinite;
}

/* 4 slide → 100% / 4 */
.hero-slide {
  width: calc(100% / 6);
  height: 100%;
  background-size: cover;
  background-position: center;
}

.bg1 { background-image: url("images/landingpage2.jpg"); }
.bg2 { background-image: url("images/landingpage3.jpg"); }
.bg3 { background-image: url("images/landingpage4.jpg"); }

@keyframes heroSlidePause {
  /* BG 1 */
  0%, 22% {
    transform: translateX(0);
  }

  /* ke BG 2 */
  28% {
    transform: translateX(-16.666%);
  }
  50% {
    transform: translateX(-16.666%);
  }

  /* ke BG 3 */
  56% {
    transform: translateX(-33.333%);
  }
  
  78% {
    transform: translateX(-33.333%);
  }

  /* ke BG 1 (DUPLIKAT) */
  84% {
    transform: translateX(-50%);
  }

  /* DIAM di duplikat (visual sama dg awal) */
  100% {
    transform: translateX(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
  text-align: center;

  margin-top: auto;
  margin-bottom: 80px;
}

.hero-content h1 {
  font-size: 80px;
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 18px;
  text-align: center;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WHITEBOX */
.box {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whitebox {
  width: 100%;
  max-width: 1200px;
  height: 230px;

  margin-top: 30px;
  border-radius: 16px;

  padding: 2px;

  background: #fff;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.1);
}

.klik-box {
  display: flex;
  flex-direction: column; /* Berubah dari rows ke column */
  width: 100%;
  height: 100%;
  padding: 20px 40px; /* Memberi ruang di dalam box */
  box-sizing: border-box;
}

.item-row {
  display: flex;
  justify-content: space-between; /* Brand di kiri, tombol di kanan */
  align-items: center;
  padding: 15px 0;
  flex: 1; /* Agar membagi ruang sama rata */
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 20px; /* Jarak antara logo dan teks */
}

.logo-img1 {
  width: 50px; /* Sesuaikan ukuran logo */
  height: 50px;
  object-fit: contain;
}

.logo-img2 {
  width: 50px; /* Sesuaikan ukuran logo */
  height: 50px;
  object-fit: contain;
}

.brand-name {
  font-size: 24px;
  color: #000;
  font-family: sans-serif;
}

.btn-pesan {
  background-color: #00a1c5; /* Warna oranye sesuai gambar */
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-pesan:hover {
  background-color: #00c5ef;
}

/* Garis pemisah tipis antar baris */
.separator {
  border: 0;
  border-top: 1px solid #dadada;
  margin: 0;
  width: 100%;
}

/* ============================= TENTANG KAMI ============================= */
.body {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  padding-top: 190px;
  gap: 12px;
}

.judul h1 {
  color: #828282;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.teks1 p {
  font-size: 32px;
  font-weight: 700;
  color: #000;
}

.teks2 {
  max-width: 1190px;
  display: flex;
  flex-direction: column;
  gap: 16px; 
  padding-bottom: 50px;
}

.teks2 p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  text-align: justify;

  text-justify: inter-word; 
}

/* ============================= LIST MOBIL ============================= */
.car-section {
  width: 100%;
  max-width: 1190px;
  margin-top: 15px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* CARD */
.car-card {
  background: #fff;
  border-radius: 16px;
  display: flex;
  gap: 20px;
  padding: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* GAMBAR */
.car-img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

/* INFO */
.car-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-info h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ICON INFO */
.car-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #5f5f5f;
}

.car-meta span i {
  color: #acacac;
}

/* BOTTOM */
.car-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HARGA */
.price small {
  font-size: 12px;
  color: #888;
}

.price strong {
  display: block;
  color: #ce7d2e;
  font-size: 18px;
}

.price span {
  font-size: 12px;
  color: #777;
}

/* BUTTON */
.btn-detail {
  padding: 10px 16px;
  background: #00a1c5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s ease;
}

.btn-detail:hover {
  background: #00c5ef;
}

/* ============================= BOOKING NOW ============================= */
.booking {
  margin-top: 80px;
  padding: 65px 0 80px 0;
  background: #e0efff;
  width: 100%;
}

.book-layout {
  max-width: 1210px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ============================= GALLERY ============================= */
.gallery {
  width: 100%;
  padding: 10px 0 10px 0;
}

.gallery-grid {
  max-width: 1190px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* FOTO */
.gallery-grid img {
  width: 100%;
  height: 180px;

  object-fit: cover;
  border-radius: 10px;

  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* HOVER */
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 150px;
  }
}

/* ============================= OUR PARTNER ============================= */
.partner {
  padding: 40px 0;
  width: 100%;
}

.partner-layout {
  max-width: 1210px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partner-slider {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
}

.partner-window {
  overflow: hidden;
  width: 100%;
}

.partner-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.partner-track img {
  width: 220px;
  height: 100px;
  object-fit: contain;
  margin: 0 28px;

  filter: none;
  opacity: 1;
}

.partner-track img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* PANAH */
.partner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ddd;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 5;
}

.partner-btn.left {
  left: -50px;
}
.partner-btn.right {
  right: -50px;
}

.partner-btn:hover {
  background: #ff9f1a;
  color: #fff;
}

/* ============================= FOOTER ============================= */
.footer {
  background: #0f1118;
  color: #ddd;
  margin-top: 20px;
}

.footer-top {
  max-width: 65%;
  margin: auto;
  padding: 80px 20px 40px;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 35px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ff9f1a;
  position: absolute;
  left: 0;
  bottom: -10px;
}

.footer-col p {
    max-width: 90%;
  font-size: 14px;
  line-height: 1.8;
  color: #bbb;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  font-size: 14px;
  color: #bbb;
}

.footer-col i {
  margin-right: 8px;
  color: #ff9f1a;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ff9f1a;
}

.footer-copy {
  font-size: 13px;
  color: #777;
}

/* ============================= MODAL DETAIL ============================= */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  margin: 12% auto;
  padding: 0;
  border-radius: 16px;
  width: 80%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
}

.modal-img-container {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modalImg {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.modal-details {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.modal-details h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-meta {
  margin: 20px 0;
}

.modal-meta p {
  margin: 10px 0;
  font-size: 16px;
  color: #555;
}

.modal-meta i {
  width: 25px;
  color: #00a1c5;
}

.modal-price {
  margin: 25px 0;
  padding: 15px;
  background: #f0faff;
  border-radius: 8px;
}

.modal-price h3 {
  color: #ce7d2e;
  font-size: 24px;
}

.btn-book-now {
  display: block;
  text-align: center;
  background: #1f8f5f;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-book-now:hover {
  background: #177a50;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-body { flex-direction: column; }
  .modal-content { width: 95%; margin: 10% auto; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================================
   RESPONSIVE DESKTOP KECIL / LAPTOP
   =================================================== */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 32px;
  }

  .hero-content h1 {
    font-size: 64px;
  }

  .whitebox {
    max-width: 95%;
  }

  .car-section {
    padding: 0 20px;
  }

  .gallery-grid {
    padding: 0 20px;
  }
}

/* ===================================================
   RESPONSIVE TABLET
   =================================================== */
@media (max-width: 992px) {
  /* NAVBAR */
  .navbar {
    padding: 0 24px;
  }

  .nav-right {
    gap: 20px;
  }

  /* HERO */
  .hero {
    height: auto;
    padding-top: 140px;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 16px;
  }

  .whitebox {
    height: 200px;
  }

  /* TENTANG KAMI */
  .teks1 p {
    font-size: 26px;
    text-align: center;
  }

  .teks2 {
    padding: 0 20px 40px;
  }

  /* LIST MOBIL */
  .car-grid {
    grid-template-columns: 1fr;
  }

  .car-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .car-img {
    width: 220px;
  }

  .car-bottom {
    width: 100%;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* PARTNER */
  .partner-btn {
    display: none;
  }

  .partner-track img {
    width: 180px;
    margin: 0 12px;
  }
}

/* ===================================================
   RESPONSIVE HP BESAR
   =================================================== */
@media (max-width: 768px) {
  /* NAVBAR */
  .nav-links {
    display: none;
  }

  .wa-btn span {
    display: none;
  }

  /* HERO */
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .whitebox {
    height: 180px;
  }

  /* LIST MOBIL */
  .car-img {
    width: 200px;
  }

  /* FOOTER */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===================================================
   RESPONSIVE HP KECIL
   =================================================== */
@media (max-width: 576px) {
  /* HERO */
  .hero {
    padding-top: 120px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  /* TENTANG KAMI */
  .teks1 p {
    font-size: 22px;
  }

  .teks2 p {
    font-size: 14px;
  }

  /* LIST MOBIL */
  .car-img {
    width: 180px;
  }

  .car-info h3 {
    font-size: 16px;
  }

  .price strong {
    font-size: 16px;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 150px;
  }

  /* PARTNER */
  .partner-track img {
    width: 150px;
  }
}

/* ===================================================
   RESPONSIVE LAPTOP KECIL
   =================================================== */
@media (max-width: 1200px) {
  .navbar {
    padding: 0 32px;
  }

  .hero-content h1 {
    font-size: 64px;
  }

  .whitebox {
    max-width: 95%;
  }

  .car-section,
  .gallery-grid {
    padding: 0 20px;
  }

  .footer-top {
    max-width: 90%;
  }
}

/* ===================================================
   RESPONSIVE TABLET
   =================================================== */
@media (max-width: 992px) {
  /* NAVBAR */
  .nav-right {
    gap: 20px;
  }

  /* HERO */
  .hero {
    height: auto;
    padding-top: 140px;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 16px;
  }

  .whitebox {
    height: 200px;
  }

  /* TENTANG */
  .teks1 p {
    font-size: 26px;
    text-align: center;
  }

  .teks2 {
    padding: 0 20px 40px;
  }

  /* LIST MOBIL */
  .car-grid {
    grid-template-columns: 1fr;
  }

  .car-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .car-img {
    width: 220px;
  }

  .car-bottom {
    width: 100%;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* PARTNER */
  .partner-btn {
    display: none;
  }

  .partner-track img {
    width: 180px;
    margin: 0 14px;
  }
}