* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

/* === FULL PAGE SCROLL EFFECT === */
html,
body {
  height: 100%;
  scroll-behavior: smooth; /* biar transisi scroll halus */
  /* scroll-snap-type: y mandatory; aktifkan snap scroll vertikal */
  /* overflow-y: scroll; */
}

/* Semua section akan memenuhi 1 layar penuh */
section {
  height: 100vh;
  scroll-snap-align: start;
  transition: transform 0.8s ease-in-out;
  padding: 80px 0;
}

body {
  background: linear-gradient(180deg, #2a2381, #150f45);
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  font-size: 18px;
  z-index: 999;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* Default warna link berdasarkan kelas */
#navbar.nav-text-white a {
  color: white;
}

#navbar.nav-text-black a {
  color: black;
}

/* Container kiri (logo) */
.nav-left {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px; /* jarak antar logo biar tidak menempel */
}

/* Gambar logo */
.nav-logo {
  height: 60px;
  width: auto;
  cursor: pointer;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Container tengah (link navigasi) */
.nav-center {
  display: flex;
  gap: 40px;
}

/* Link */
/* Default warna link berdasarkan kelas */
#navbar.nav-text-white a {
  color: white;
}

#navbar.nav-text-black a {
  color: black;
}

/* Hover dan active state tetap berjalan */
nav a {
  text-decoration: none;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    color 0.3s ease; /* tambahkan transition warna */
}

nav a:hover,
nav a.active {
  opacity: 1;
  border-bottom: 2px solid currentColor;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* tampilkan gambar 100% tanpa crop */
  z-index: -1;
}

/* Optional overlay */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* hitam 50% opacity */
  z-index: 1;
}

.hero h1,
.hero h2,
.icon {
  position: relative;
  z-index: 2; /* biar teks & icon di atas overlay */
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3em;
}

.hero h2 {
  font-size: 14px;
  font-weight: 500;
  color: #00f5a0;
  line-height: 1.6em;
  max-width: 550px; /* 👉 inilah kunci agar sejajar dari “mendukung” sampai “Anda” */
  margin: 10px auto 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 24px;
    width: 90%;
    line-height: 1.3;
  }

  .hero h2 {
    font-size: 14px;
    width: 85%;
  }
}

.hero .icon {
  position: absolute;
  width: 70px;
  animation: float 3s ease-in-out infinite;
}

/* ICONS  */
.icon {
  position: absolute;
  width: 70px;
  animation: float 3s ease-in-out infinite;
}

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

/* POSITIONING ICONS */
.icon1 {
  top: 20%;
  left: 15%;
}
.icon2 {
  top: 60%;
  left: 20%;
}
.icon3 {
  top: 22%;
  right: 15%;
}
.icon4 {
  top: 60%;
  right: 20%;
}

/* CART FLOAT BUTTON */
/* CART FLOAT BUTTON */
.cart-btn {
  position: fixed;
  bottom: 40px;
  right: 60px;
  display: inline-block; /* biar ukurannya pas mengikuti gambar */
  cursor: pointer;
  box-shadow: none; /* opsional: hilangkan bayangan jika tidak diinginkan */
}

.cart-btn img {
  width: 58px; /* kamu bisa ubah ukuran ini sesuai kebutuhan */
  height: auto;
  display: block;
}

/* SECTION FEATURES (Android | Konven) */
.tab-btn {
  font-weight: bold;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.tab-btn.active-tab {
  background: #f22c2c;
  color: #fff;
}
/* Tambahkan garis vertical di kanan Android */
/* #tab-android.active-tab {
  position: relative;
} */

#tab-android.active-tab::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background: #ccc;
  border-radius: 2px;
}
#tab-konven.active-tab {
  position: relative;
}

#tab-konven.active-tab::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background: #ccc;
  border-radius: 2px;
}
.product-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  width: 100%;
  max-width: 1300px; /* ubah dari 1000px → muat 5 card penuh */
}
/* Tambahan viewport fix */
.product-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 1200px; /* sesuai lebar carousel kamu */
  margin: 0 auto;
  padding-right: 10px;
  position: relative;
}
.product-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  width: 100%; /* penting agar responsive */
  align-items: stretch;
}
.product-carousel.center-mode {
  justify-content: center;
}

/* Product card: auto-fit 5 per viewport */
.product-card {
  flex: 0 0 calc((100% - 80px) / 5); /* 5 card, total gap 4 * 20px = 80px */
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 15px;
  height: 360px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible; /* agar badge / hover tidak terpotong */
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
/* .product-card:hover {
  transform: translateY(-5px);
} */

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  pointer-events: none;
  background: #ff5252;
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Gambar produk */
.product-img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* kotak persegi rapi */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #f8f8f8;
  border-radius: 12px;
}

/* Nama Produk */
.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 5px 0 8px 0;
  flex-shrink: 0;
}

/* Harga */
.price-before {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin: 0;
}
.price-now {
  color: #e53935;
  font-size: 18px;
  font-weight: bold;
  margin: 3px 0 10px 0;
}

/* Garis pembatas */
.divider {
  height: 1px;
  background: #ddd;
  width: 100%;
  margin: 8px auto;
}

/* Area tombol bawah */
.buy-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-shrink: 0;
}
.wa-btn {
  border: none;
  background: none;
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.wa-btn::after {
  content: "|";
  color: #ccc;
  margin: 0 8px;
  font-weight: normal;
}
.cart-btn-features {
  border: none;
  background: none;
  color: #e53935;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.wa-btn:hover,
.cart-btn:hover {
  color: #ff0000;
}
/* Grup ikon keranjang + tombol beli */
.cart-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tombol Beli Sekarang */
.buy-btn {
  background: #f60000;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.buy-btn:hover {
  background: #ff0000;
}
/* Pastikan tidak ada efek hover yang sembunyikan tombol */
.product-card .cart-btn-features,
.product-card .buy-btn {
  opacity: 1 !important;
  visibility: visible !important;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.slide-btn.prev,
.slide-btn.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 30px;
  color: #e53935;
  cursor: pointer;
  z-index: 2;
}
.slide-btn.prev {
  left: 10px;
}
.slide-btn.next {
  right: 10px;
}
/* tombol disabled style */
.slide-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* RESPONSIVE: tablet & mobile */
@media (max-width: 1199px) {
  .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
  } /* 3 cards */
}
@media (max-width: 767px) {
  .product-card {
    flex: 0 0 calc(100%);
  } /* 1 card */
}
/*end of section features */

#navbar.nav-text-white a {
  color: white !important;
}

#navbar.nav-text-black a {
  color: black !important;
}

.report-card {
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.report-card.active {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
#aboutus .btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-btn-plain {
  background: none; /* tidak ada background */
  border: none; /* hilangkan border */
  padding: 0; /* rapat ke gambar */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.nav-btn-plain:hover {
  transform: scale(1.1); /* efek zoom halus saat hover */
}

.arrow-icon {
  width: 45px; /* sesuaikan ukuran gambar */
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.card-item {
  width: 300px;
  min-height: 220px;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  background: white;
  color: #1e1e1e;
  transition:
    opacity 0.4s ease-in-out,
    background-image 0.4s ease-in-out;
  box-sizing: border-box;
}
.card-item h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.card-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
}

.card-item.active {
  background: #0026b3;
  color: white;
  transform: scale(1.03);
  transition: none;
}

.nav-btn {
  background: white;
  border: none;
  color: #0026b3;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.45s ease;
}
.nav-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* fade class for product image */
#product-image.fade {
  opacity: 0;
}

/* Responsive: jika layar sangat kecil, biarkan wrap dan tumpuk (opsional) */
@media (max-width: 980px) {
  /* allow stacked layout on small screens */
  div[style*="flex-wrap:nowrap"] {
    flex-wrap: wrap;
  } /* re-enable wrap for the outer container */
  /* #product-image {
    min-width: 100%;
    height: 260px;
  } */
  #card-viewport {
    width: 100%;
    margin-top: 18px;
  }
}

/* products list */
/* Product Detail Styles */
.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.product-image {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 20px 0;
}

.product-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Price Section */
.price-section {
  margin-bottom: 20px;
}

.current-price {
  font-size: 32px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 5px;
}

.original-price {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 10px;
}

.discount-badge {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Features */
.product-features {
  margin: 25px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.feature-item i {
  color: #27ae60;
  margin-right: 10px;
  font-size: 18px;
}

/* Description */
.product-description {
  margin: 25px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.product-description p {
  line-height: 1.6;
  color: #555;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.buy-now-btn,
.whatsapp-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy-now-btn {
  background: #e74c3c;
  color: white;
}

.buy-now-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* Additional Info */
.additional-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
}

.info-item i {
  margin-right: 10px;
  color: #007bff;
}

/* ====================== */
/* FULLSCREEN LOADING */
/* ====================== */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* Bisa diganti warna lain */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.4s ease;
}

.loading-logo {
  width: 320px; /* sesuaikan */
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* .image-box {
  flex: 1 1 450px;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  height: auto; 
  display: flex;
}

.image-box img {
  width: 100%; 
  height: auto; 
  display: block;
}

#aboutus-img {
  transition: opacity 0.4s ease;
}

#aboutus-img.fade {
  opacity: 0;
} */

.aboutus-image-box {
  flex: 1 1 520px;
  min-width: 520px;
  height: 80vh;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden; /* ⬅ WAJIB agar video tidak keluar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#aboutus-video {
  width: 100%;
  height: 100%;
  background-color: black;
  object-fit: contain; /* video tidak terpotong */
  position: absolute;
  top: 0;
  left: 0;
  display: none; /* default: hidden sampai tombol play ditekan */
}

.video-play-btn {
  position: absolute;
  inset: 0; /* auto center secara absolut */
  margin: auto;

  width: 74px;
  height: 74px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);

  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-size: 26px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 5;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

/* Hover efek */
.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.1);
}

/* Saat video tampil, tombol benar-benar hilang */
.video-play-btn.hidden {
  display: none !important;
}
/* 
.loading-logo {
  width: 110px; 
  height: auto;
} */

/* Default desktop */
#navbar-mobile {
  display: none;
}

/* Mobile only */
@media (max-width: 768px) {
  #navbar {
    display: none !important;
  }
  #navbar-mobile {
    display: flex !important;
    height: 44px;
  }
}
