/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden; /* Tetap pertahankan ini */
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: #f8f8f8;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 110px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #333;
  transition: color 0.3s, border-bottom 0.3s ease;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
  display: block;
}

nav ul li a:hover {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

.menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

/* Hero */
.hero {
  background-color: #f8f9fa;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title-bg {
  background-size: cover;
  background-position: center;
  color: #333;
  padding: 3rem 2rem;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  max-width: 500px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.8);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/banner-toko-ez-wash-water-no-logo-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-title-bg h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-title-bg p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-image {
  display: none;
}

/* Buttons (General) */
.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-primary {
  background-color: #007bff;
  color: #fff;
  border: none;
}
.btn-primary:hover { background-color: #0056b3; }

/* Product Sections */
.products {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f8f9fa;
}
.products .container { padding: 0; }

/* Judul Section Umum */
.products h2, .about h2, .contact h2, .features h2, .usage h2 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

/* Navigasi Produk */
.product-navigation {
    margin-bottom: 2rem; display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 0.5rem 1rem;
}
.product-navigation a {
    padding: 8px 15px; border-radius: 20px; background-color: #e9ecef;
    color: #495057; font-weight: 500; transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
}
.product-navigation a:hover { background-color: #007bff; color: white; }
.category-separator {
  width: 6px; height: 6px; background-color: #adb5bd; margin: 0 5px;
  border-radius: 50%; display: inline-block;
}

/* Judul Kategori Produk */
#all-products h3, #single-pod h3, #3in1-pod h3, #4in1-pod h3 {
  font-size: 1.6rem; text-align: center; margin-bottom: 1rem;
  margin-top: 1rem; color: #333; font-weight: 600;
}

/* Product Grid & Card */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem; justify-content: center; gap: 2rem;
}
.product-card {
  background: white; padding: 1.2rem; border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column;
  margin-bottom: 1rem; flex: 1; transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto; overflow: visible;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.product-info {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; text-align: center; flex-grow: 1;
}
.product-info > img {
  max-width: 100%; width: 250px; height: 250px; object-fit: cover;
  border-radius: 8px; margin-bottom: 1rem; display: block;
}
.product-info h3 {
    margin-top: 0; margin-bottom: 0.5rem; font-size: 1.2rem;
    font-weight: 600; color: #212529;
}
.product-info p {
    font-size: 0.9rem; color: #6c757d; margin-bottom: 1rem; /* Beri margin bawah sebelum tombol video */
    line-height: 1.5; padding: 0 0.5rem; flex-grow: 1;
}


/* === STYLING UNTUK MODAL POP-UP VIDEO === */

/* Tombol Pemicu Modal (Gunakan gaya tombol pink Anda) */
.open-video-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #e54d9f; /* Warna tombol pink Anda */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(196, 55, 132, 0.25);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    /* margin-top: 1rem; (Dihapus, karena p akan memberi margin) */
}
.open-video-modal-btn::before { /* Ikon play jika masih mau digunakan */
    content: ''; display: inline-block; width: 0; height: 0; margin-right: 10px;
    border-top: 6px solid transparent; border-bottom: 6px solid transparent;
    border-left: 9px solid #ffffff; opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.3s ease;
}
.open-video-modal-btn:hover {
    background-color: #c43784; transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 55, 132, 0.35);
}
.open-video-modal-btn:hover::before { transform: scale(1.1); opacity: 1; }
.open-video-modal-btn:active {
    transform: translateY(0px); background-color: #b32f73;
    box-shadow: 0 1px 3px rgba(196, 55, 132, 0.2);
}


/* Lapisan Overlay Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Diubah oleh JS menjadi flex */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Konten Modal (Kotak Video) */
.modal-content {
    position: relative;
    background-color: #000;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Tombol Close Modal */
.modal-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 35px; /* Sesuaikan agar X ditengah */
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}
.modal-close-btn:hover {
    background-color: #e54d9f;
    transform: rotate(90deg);
}

/* Wrapper untuk Iframe di dalam Popup (untuk aspect ratio) */
.video-iframe-popup-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px; /* Agar iframe mengikuti radius modal */
}

.video-iframe-popup-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* === AKHIR STYLING MODAL POP-UP VIDEO === */


/* Sisa CSS Anda ... */
.contact-details {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 1.8rem; margin-top: 1rem; flex-wrap: wrap;
}
.contact-item { display: flex; align-items: center; justify-content: center; }
.contact-item a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.contact-item a:hover { transform: translateY(-2px); opacity: 0.8; }
.contact-item img, .marketplace-icons img {
  width: 32px; height: 32px; object-fit: contain; display: block; margin-right: 0;
}

.contact { padding: 4rem 0; text-align: center; background-color: #f8f9fa; }
.contact form {
  display: flex; flex-direction: column; max-width: 500px; margin: 1.5rem auto 0;
}
.contact input, .contact textarea {
  margin-bottom: 1rem; padding: 0.8rem; border: 1px solid #ced4da;
  border-radius: 4px; font-size: 1rem;
}
.contact textarea { height: 150px; }

.about {
  padding: 4rem 0; transition: all 0.3s ease; overflow: hidden; position: relative;
}
.about .container {
  display: flex; align-items: center; gap: 3rem; position: relative; z-index: 1;
}
.about-image { width: 40%; max-width: 400px; position: relative; flex-shrink: 0; }
.about-image img {
  width: 100%; height: auto; object-fit: contain; border-radius: 8px;
  transition: transform 0.5s ease;
}
.about-image:hover img { transform: rotate(3deg) scale(1.03); }
.about-image::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.05); border-radius: 8px; opacity: 0;
  transition: opacity 0.3s ease; pointer-events: none;
}
.about-image:hover::before { opacity: 1; }
.about-content { width: auto; flex-grow: 1; text-align: left; }
.about-content h2 {
  text-align: left; color: #333; margin-bottom: 1rem; font-size: 2rem;
}
.about-content p { text-align: left; margin-bottom: 0; color: #555; line-height: 1.7; }

.features { padding: 4rem 0; text-align: center; }
.features > .container > p {
  margin-bottom: 2.5rem; color: #555; max-width: 700px; margin-left: auto; margin-right: auto;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.feature-card {
  background: white; padding: 1.8rem; border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); text-align: center; display: flex;
  flex-direction: column; align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.feature-card h3 { margin-top: 0.5rem; margin-bottom: 0.8rem; font-size: 1.1rem; font-weight: 600; }
.feature-card p { font-size: 0.9rem; color: #6c757d; line-height: 1.6; }
.feature-card .feature-icon { max-width: 48px; height: auto; margin-bottom: 1rem; display: block; }

footer {
  background-color: #000000; color: #ffffff; padding: 1.5rem 0;
  text-align: center; margin-top: 3rem;
}
footer p { font-size: 1rem; }

.usage { padding: 4rem 0; text-align: center; position: relative; overflow: hidden; }
.usage .container {
  max-width: 800px; margin: 0 auto; padding: 2.5rem; border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); position: relative; z-index: 1;
  background-color: white; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.08);
}
.usage .container::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("images/banner-usage.png"); background-size: cover;
  background-position: center; opacity: 0.15; filter: blur(8px) grayscale(50%);
  z-index: -1; border-radius: inherit;
}
.usage h2 {
  margin-bottom: 1.5rem; font-size: 2.2rem; color: #333; font-weight: 700; text-shadow: none;
}
.usage > .container > p {
  margin-bottom: 1.5rem; color: #495057; font-size: 1rem; line-height: 1.7;
  text-align: center; max-width: 650px; margin-left: auto; margin-right: auto; text-shadow: none;
}
.usage ol {
  margin: 2rem auto; text-align: left; display: inline-block; max-width: 550px;
  padding-left: 1.5rem; list-style-position: outside;
}
.usage ol li {
  margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; color: #495057;
  font-weight: 400; text-shadow: none;
}
.usage ol li::marker { font-weight: 600; color: #007bff; font-size: 1rem; }
.usage > .container > p:last-of-type {
  margin-top: 2rem; font-weight: 500; text-align: center; color: #495057;
}

.products-main-banner {
  width: 100%; margin: 0 auto 2rem; border-radius: 10px; overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.products-main-banner img { width: 100%; display: block; object-fit: cover; height: auto; }

.contact-info-extra {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 2rem 3rem; margin-top: 2.5rem; max-width: 600px; margin-left: auto;
    margin-right: auto; padding-bottom: 20px; text-align: left;
}
.contact-info-item {
    display: flex; align-items: flex-start; line-height: 1.6;
    flex-basis: calc(50% - 1.5rem); min-width: 220px;
}
.contact-detail-icon {
    width: 20px; height: auto; margin-right: 10px; margin-top: 4px;
    flex-shrink: 0; color: #555;
}
.contact-info-item span { flex-grow: 1; }
.contact-info-item strong { margin-right: 5px; font-weight: 600; }
.contact-info-item a { color: #007bff; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; color: #0056b3; }
@media (max-width: 550px) { .contact-info-item { flex-basis: 100%; } }

.marketplace-section {
  text-align: center; margin-top: 3rem; margin-bottom: 3rem; padding: 0 1rem;
}
#contact .section-subtitle, .marketplace-section > h3 {
    font-size: 1.4rem; font-weight: 600; color: #333; text-align: center;
    margin-top: 3rem; margin-bottom: 1.5rem; line-height: 1.4;
}
.marketplace-section > h3 { margin-top: 0; }
.marketplace-icons {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 1.8rem; margin-top: 0; margin-bottom: 1.5rem; padding: 0 10px;
}
.marketplace-icons a {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.marketplace-icons a:hover { transform: translateY(-2px); opacity: 0.8; }

/* Responsive Design */
@media (max-width: 768px) {
  header .container { flex-direction: column; align-items: flex-start; }
  header nav { margin-top: 1rem; width: 100%; }
  header nav ul.active { display: flex; /* Gunakan flex agar flex-direction: column bekerja */ }
  header nav ul { display: none; flex-direction: column; gap: 1rem; }
  .menu-toggle { display: block; align-self: flex-end; }

  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { width: 100%; padding: 0; margin-bottom: 2rem; }

  .products h2, .about h2, .contact h2, .features h2, .usage h2 { font-size: 1.8rem; }

  .about .container { flex-direction: column; gap: 1.5rem; }
  .about-image, .about-content { width: 90%; max-width: none; text-align: center; }
  .about-content h2, .about-content p { text-align: center; }
  .about-image { margin-bottom: 1.5rem; }

  .contact-details, .marketplace-icons { gap: 1.5rem; margin-bottom: 1.5rem; }
  #contact .section-subtitle, .marketplace-section > h3 {
      font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 1.2rem;
  }
  .marketplace-section > h3 { margin-top: 0; }

  .product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
  .product-card { padding: 1rem; }

  /* Penyesuaian Tombol Video Modal di Mobile */
  .open-video-modal-btn { padding: 8px 18px; font-size: 0.9em; }
}

@media (max-width: 600px) {
    .products h2, .about h2, .contact h2, .features h2 { font-size: 1.6rem; }
    .usage h2 { font-size: 2rem; }

    #contact .section-subtitle, .marketplace-section > h3 {
        font-size: 1.2rem; margin-bottom: 1rem; margin-top: 2rem;
    }
    .marketplace-section > h3 { margin-top: 0; }

    .contact-details, .marketplace-icons { gap: 1.2rem; margin-bottom: 1.2rem; }
    .product-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .open-video-modal-btn { padding: 7px 15px; font-size: 0.85em; }
}
/* Akhir File */