/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

::selection {
  background-color: #ffcc00; /* Warna latar belakang highlight */
  color: #000000;            /* Warna teks saat di-highlight */
}
/* ===== BODY & SCROLL ===== */
html, body {
  /*scroll-snap-type: y proximity;  smooth tapi tetap snap */
  height: 100%;
  scroll-behavior: smooth;
}

body {

  overflow-y: scroll;
}
header {
  position: fixed;
  top: 0;
  z-index: 1000;  
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* tinggi header */
  background: #b3422b;
  z-index: 1000;
}


.navbar {
  max-width: 1200px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.navbar a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 5px 0;
}

/* garis (hidden dulu) */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* saat hover */
.navbar a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-right:20px
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: 0.3s;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .navbar ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #b3422b;

    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
  }

  .navbar ul.active {
    max-height: 300px;
    padding: 20px 0;
  }

  .navbar ul li {
    margin: 10px 0;
  }
}

.logo img {
  height: 60px; /* coba 35 / 50 */
}

.logo img:hover {
  transform: scale(1.05);
}

.logo a {
  text-decoration: none;
}

.logo img {
  display: block;
}

.logo a::after {
  display: none !important;
}

.overlay {
  transition: 0.4s;
}
/* ===== SECTION HERO ===== */
.hero-nh {
 
  min-height: 100vh;
  position: relative;
  color: white;
  background: url('images/hero-benangkarung.jpg') center/cover no-repeat;
}

/* overlay gelap halus */
.hero-nh::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.35),
  rgba(0,0,0,0.15),
  rgba(0,0,0,0.4)
);
}

/* TEXT ATAS */
.hero-top {
  position: absolute;
  top: 200px;
  width: 100%;
  text-align: left;
  z-index: 2;
  padding-left:50%;
}

.hero-top h1 {
  font-size: 48px;
  letter-spacing: 5px;
  line-height:1px;
  color:#fff;
}

.hero-top h2 {
  font-size: 28px;
  letter-spacing: 1px;  
  color:#fff;
}

.hero-top p {
  margin-top: 10px;
  font-size: 20px;
  opacity: 0.9;
  line-height:50px;
}

/* BAGIAN BAWAH */
.hero-stats {
  position: absolute;
  bottom: 40px;
  width: 100%;
  z-index: 2;
  color:#fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat:last-child {
  border-right: none;
}

.stat h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.stat p {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {

  /* ganti gambar */
  .hero-nh {
    background: url('images/hero-mobile.jpg') center/cover no-repeat;
    min-height: 100dvh;
    padding-top: 177%; /* ratio 1920/1080 */    
  }

  /* TEXT */
  
.hero-top {
  position: absolute;
  top: 130px;
  width: 100%;
  text-align: center;
  z-index: 2; 
  padding:0px;
}

.hero-top h1 {
  font-size: 48px;
  letter-spacing: 2px;
}

.hero-top h2 {
  font-size: 22px;
  letter-spacing: 2px;  
}

  .hero-top p {
    font-size: 16px;
  }

  /* STATS JADI 2x2 */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
  }

  .stat {
    border: none;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    padding: 15px;
  }
}


/* ===== SECTION FULL SCREEN ===== */
.section {
  min-height: 100vh;
  height: auto;
  scroll-snap-align: start;

  /* ? HAPUS ini */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */

  padding: 40px;
}

/* ===== WARNA PER SECTION (BIAR JELAS) ===== */
.section:nth-child(1) {
  background: #111;
  color: white;
}

.section:nth-child(2) {
  background: #f5f5f5;
}

.section:nth-child(3) {
  background: #eaeaea;
}

.section:nth-child(4) {
  background: #222;
  color: white;
}

/* ===== CONTAINER BIAR RAPI ===== */
.container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

/* ===== BUTTON ===== */
.lang-btn {
  border: none;
  background:none;
  color: white; /* Teks putih */
  cursor: pointer;
  font-size: 16px;
  font-weight:20px;
}

/* Hover effect */
.lang-btn:hover {
  text-decoration:underline;
}
.lang-mobile {
  display: none;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #f7b500;
  color: black;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 20px;
  transition: 0.3s;
}

.btn:hover {
  background: #ffcc00;
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* sembunyikan EN di navbar atas */
  #lang-btn-desktop {
    display: none;
  }

  /* tampilkan EN di dalam menu */
  .lang-mobile {
    display: block;
    margin-top: 10px;
  }

  .lang-mobile button {
    background: none;
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 20px;
  }
}
/* ===== CONTACT ===== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}

/* kiri */
.contact-left {
  position: relative;
}

.contact-left iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* ?? penting */
}

/* kanan */
.contact-right {
  position: relative;
  background: url('images/mesin.jpg') center/cover no-repeat;
}



@media (max-width: 768px) {
 .contact-right {
   background: url('images/mesin-mobile.jpg') center/cover no-repeat;
 } 
}

/* overlay text */
.contact-split .overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.4)
  );
}

.overlay h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.overlay p {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    height: auto;

  }

  .contact-left,
  .contact-right {
    height: 500px;
    
  }
}

/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;

  background-color: #25D366;
  border-radius: 50%;

  display: inline-flex; /* ?? aman tanpa garis */
  align-items: center;
  justify-content: center;

  text-decoration: none;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 999;
}

/* ICON WA */
.wa-float i {
  font-size: 32px; /* ?? BESAR tapi lingkaran tetap */
  color: white;
  line-height: 1;
}

/* HOVER EFFECT */
.wa-float:hover {
  transform: scale(1.1);
  transition: 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  p {
    font-size: 16px;
  }

  .section {
    padding: 20px;
  }
}
/* ===== SECTION BANNER ===== */
.banner {
  position: relative;
  min-height: 100vh;
  padding: 120px;
  color: #fff;
 
}


/* overlay gelap */
.banner-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1); /* atur tingkat gelap */
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-color:#ebeaf0;
  background: url('images/benangkarung_warna.jpg')#ebeaf0 center/cover no-repeat;
  z-index: 1;
}



.banner2-bg {
  position: absolute;
  inset: 0;
  background: url('images/mesin_jahit.jpg') center/cover no-repeat;
  z-index: 1;
}
@media (max-width: 768px) {
  .banner-bg {
    background: url('images/benangkarung_warna-mobile.jpg') center/cover no-repeat;
  }
  .banner2-bg {
    background: url('images/mesin_jahit-mobile.jpg') center/cover no-repeat;
  }
} 
/* ===== HEADER ===== */
.banner-head {
  position: relative;
  z-index: 3;
  text-align: center;
  min-width:250px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .banner-head {
    min-width:250px;
    margin-left:-50px;
  }
}

.banner-head h1 {
  font-size: 42px;
  margin-bottom: 10px;
  color:#000;
}

.banner-head p {
  font-size: 18px;
  opacity: 0.9;
  color:#000;
}

/* ===== SECTION APLIKASI (HERO) ===== */
.aplikasi {
  position: relative;
  min-height: 100vh;
  padding: 120px;
  color: white;
}

/* background */
.aplikasi-bg {
  position: absolute;
  inset: 0;
  background: url('images/aplikasi-bg.jpg') center/cover no-repeat;
  z-index: 1;  
}

/* overlay */
.aplikasi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.1),
    rgba(0,0,0,0.4)
  );
  z-index: 2;
}

/* ===== HEADER ===== */
.aplikasi-head {
  position: relative;
  z-index: 3;
  text-align: center;
}

.aplikasi-head h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.aplikasi-head p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== TOMBOL + ===== */
.toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  position: relative;
  z-index: 3;
}

.toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: white;
  color: black;
  font-size: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: 0.3s;

  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.toggle-btn:hover {
  background: black;
  color: white;
}

.toggle-btn.active {
  background: black;
  color: white;
  transform: rotate(45deg);
}

/* ===== DETAIL SECTION (DI BAWAH) ===== */
.aplikasi-detail-section {
  background: #fff;
  color: #111;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition: all 0.6s ease;
}

/* saat muncul */
.aplikasi-detail-section.show {
  max-height: 4000px;
  opacity: 1;
  padding: 100px 20px;
}

/* ===== ROW (ZIG-ZAG) ===== */
.aplikasi-detail-section .container {
  max-width: 1200px;
  margin: auto;
}

.row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 100px;
}

.row.reverse {
  flex-direction: row-reverse;
}

/* gambar */
.img img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
}

/* text */
.text {
  max-width: 500px;
}

.text h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.text p {
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .aplikasi-head h1 {
    font-size: 28px;
  }

  .aplikasi-head p {
    font-size: 16px;
  }

  .row {
    flex-direction: column;
    text-align: center;
  }

  .row.reverse {
    flex-direction: column;
  }

  .toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

}
/* khusus kanan contact */
.contact-info {
  text-align: left;
  align-items: flex-start;
  padding: 40px;
}

/* judul utama */
.contact-info h2 {
  margin-bottom: 20px;
}

/* tiap lokasi */
.info-block {
  margin-bottom: 20px;
}

/* judul kota */
.info-block h3 {
  margin-bottom: 5px;
  font-size: 18px;
  color: #fff;
}

/* isi */
.info-block p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}
/* ===== FOOTER ===== */
.footer {  
  background: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 5px 0px;
}

.footer a{  
  color: #333;
  text-decoration:none;
}

.footer a:hover{  
  text-decoration:underline;
  color: #333;  
}

.footer-content p {
  margin: 5px 0;
  font-size: 14px;
}

/* kondisi awal (hidden) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

/* saat muncul */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION ===== */
.katalog {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px;
}

/* ===== BACKGROUND ===== */
.katalog-bg {
  position: absolute;
  inset: 0;
  background: url('images/mesin.jpg') center/cover no-repeat;
  z-index: 1;
}

@media (max-width: 768px) {
 .katalog-bg {
   background: url('images/mesin-mobile.jpg') center/cover no-repeat;
 }
} 

/* ===== OVERLAY ===== */
.katalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.5)
  );
  z-index: 2;
}

/* ===== CONTENT ===== */
.katalog-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.katalog-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.katalog-content p {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ===== BUTTON ===== */
.katalog .btn {
  background: #f7b500;
  color: black;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.katalog .btn:hover {
  background: #ffcc00;
}

@media (max-width: 768px) {

  .katalog-content h1 {
    font-size: 28px;
  }

  .katalog-content p {
    font-size: 16px;
  }

}

/* ===== SPESIFIKASI SECTION ===== */
/* ===== SECTION ===== */
.spesifikasi {
  background: #f5f5f5;
  color: #333;
  padding: 80px 20px;
}

/* ===== CONTAINER ===== */
.spesifikasi-container {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* ===== KOLOM ===== */
.spesifikasi-left,
.spesifikasi-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ===== ITEM ===== */
.item h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* ===== LIST ===== */
.item ul {
  padding-left: 18px;
}

.item ul li {
  margin-bottom: 6px;
}

/* ===== VIDEO ===== */
.video-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===== OPTIONAL: SHADOW BIAR LEBIH HIDUP ===== */
.video-wrap {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .spesifikasi-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .item h3 {
    font-size: 18px;
  }

  .item p {
    font-size: 14px;
  }

}


/* ===== SECTION WRAPPER ===== */
.product-section {
  padding: 60px 20px;
  min-height: 540px; /* sesuaikan dengan tinggi gambar */

  align-items: center;
}

.product-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* ===== IMAGE (KIRI tapi mepet kanan) ===== */
.product-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  height:540px;
}

.product-image img {
  max-width: 360px;
  max-height:450px;
  transition: opacity 0.3s ease;
  width:100%;  
  transition:0.3s;   
}

@media (max-width:768px){

    .product-image img{
        width:55%;
        display:block;
        margin:auto;
    }

}

/* ===== OPTIONS (KANAN tapi mepet kiri) ===== */
.product-options {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-options h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ===== COLOR GRID (7 per baris) ===== */
.color-options {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

/* ===== BUTTON STYLE ===== */


.color-options button {
  width:48px;
  height:48px;
  border:none;
  border-radius:12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

/* hover effect */
.color-options button:hover {
  transform: scale(1.12); /* membesar */
  transform:translateY(-2px);/* naik ke atas */
}
.color-options button:hover{
    
}

/* active state (optional JS nanti) */
.color-options button.active {
  border: 3px solid #000;
  transform: scale(1.1);
}

/* nomor kecil (optional) */
.color-options button span {
  position: absolute;
  bottom: -18px;
  font-size: 10px;
  width: 100%;
  text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .product-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .product-image {
    justify-content: center;
  }

  .product-options {
    align-items: center;
    text-align: center;
  }

  /* grid lebih kecil biar muat */
  .color-options {
    grid-template-columns: repeat(4, 42px);
    justify-content: center;
  }
}

.download-katalog{
    width:100%;
    margin-top:10px;

    height:48px;
    border-radius:12px;
    background:#f7b500;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    text-decoration:none;
    font-size:14px;
    font-weight:600;

    transition:0.25s;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.download-katalog:hover{
    background:#f7b500;
    transform:translateY(-2px);
}

