/* General Body & Reset */
body {
    font-family: 'R', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}
body.no-scroll {
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.container {
    margin: 0 auto;
}
/* Styling Video Background Section (Full Cover) */
.video-background-section {
    position: relative; /* Untuk menempatkan video dan overlay */
    width: 100%;
    height: 100vh; /* Menggunakan viewport height agar setinggi layar */
    min-height: 550px; /* Tinggi minimum jika konten lebih pendek dari layar */
    overflow: hidden; /* Pastikan video tidak meluap */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Warna teks di atas video */
    text-align: center;
    z-index: 0; /* Pastikan di bawah header (jika header fixed) atau di posisi yang tepat */
}

.video-background-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Pastikan video di belakang konten */
    transform: translate(-50%, -50%);
    object-fit: cover; /* Memastikan video menutupi area tanpa distorsi (crop jika perlu) */
    filter: brightness(85%); /* Membuat video sedikit lebih gelap agar teks lebih mudah dibaca */
}

.video-overlay-content {
    position: relative;
    z-index: 1; /* Pastikan konten di atas video */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Sedikit overlay untuk teks */
    border-radius: 8px;
    /* Tambahkan properti berikut untuk memposisikan konten di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-overlay-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.video-overlay-content p {
    font-size: 1.2em;
}

/* Pastikan main content berada di bawah video cover */
main {
    /* ... styling main content Anda lainnya ... */
    position: relative;
    z-index: 1; /* Pastikan konten utama berada di atas video */
    margin-top: 0; /* Hapus margin top agar menempel di bawah video */
    border-top-left-radius: 0; /* Hapus border radius atas agar menyambung */
    border-top-right-radius: 0;
}

/* Atur header agar tetap di atas video (jika diinginkan) */
header {
    position: fixed; /* Membuat header tetap di atas saat di-scroll */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2; /* Pastikan header di atas video dan konten overlay */
    /* ... styling header Anda lainnya ... */
}

/* Jika header tidak fixed, Anda mungkin perlu menambahkan margin-top pada main */
/* body {
    margin-top: [tinggi header]px;
} */
.container-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.container-section p {
  font-size: 1.2em;
}

a {
    text-decoration: none;
    color: #eee;
}

a:hover {
    color: #8c7e5d;
}

h1, h2, h3 {
    margin-top: 0;
    color: #b19123;
}
/* style.css (atau all_min.css) */

/* =========== Header Styling (Existing) =========== */
.main-header {
    background-color: #8c7e5d;
 /* Contoh warna latar belakang */
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(39, 39, 39, 0.904);
    position: fixed; /* Penting! Agar header tetap di atas saat scroll */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100; /* Pastikan z-index header tinggi */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Sesuaikan lebar maksimum */
    margin: 0 auto;
}
.main-header.hidden {
    transform: translateY(-100%); /* Geser header ke atas, keluar dari pandangan */
}
.logo-area {
    display: flex;
    align-items: center;
}

.company-logo {
    height: 60px; /* Sesuaikan ukuran logo */
    margin-right: 15px;
}

.company-name {
    font-weight: bold;
    color: #ffffff;
}

/* =========== Desktop Navigation (Existing) =========== */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-size: large;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #2a2b2a; /* Warna kuning dari logo */
}

/* =========== Mobile Menu Toggle Button =========== */
.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 110; /* Lebih tinggi dari header jika perlu, tapi hati-hati */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animasi Hamburger Icon saat dibuka (opsional) */
.menu-toggle.open .hamburger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Container untuk Carousel */
.logo-carousel-container {
    width: 100%; /* Atau lebar tetap seperti 1000px */
    max-width: 2500px; /* Batasi lebar maksimum */
    overflow: hidden; /* Pastikan konten di luar tidak terlihat */
    position: relative; /* Untuk positioning jika ada elemen lain */
    padding: 20px 0; /* Memberi sedikit ruang di atas/bawah */
}

.logo-track {
    display: flex; /* Menggunakan Flexbox untuk tata letak horizontal */
    width: fit-content; /* Lebar akan menyesuaikan dengan total lebar logo-item */
    animation: scrollLogos 40s linear infinite; /* Animasi berulang */
}

.logo-track:hover {
    animation-play-state: paused; /* Opsional: Jeda animasi saat hover */
}

.logo-item {
    /* Gaya untuk setiap item logo (tanpa border, background, shadow) */
    flex-shrink: 0; /* Penting: mencegah item mengecil */
    width: 160px; /* Lebar tetap untuk setiap item */
    height: 100px; /* Tinggi tetap untuk setiap item */
    padding: 0; /* Tanpa padding internal */
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Hilangkan properti animasi awal dari script.js */
    /* transition: none; */ /* Tidak perlu transisi ini lagi */
    opacity: 1; /* Selalu terlihat */
    transform: none; /* Tanpa translateY awal */
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}
.logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}
/* --- product info --- */
.product-showcase {
    display: flex; /* Menggunakan flexbox untuk tata letak produk */
    justify-content: center; /* Memusatkan produk */
    gap: 20px; /* Jarak antar kotak produk */
    flex-wrap: wrap; /* Memungkinkan wrap ke baris baru pada layar kecil */
    margin-top: -100px; /* Mengangkat bagian ini agar overlap dengan hero banner */
    position: relative; /* Penting untuk z-index */
    z-index: 10; /* Memastikan kotak produk di atas hero banner */
}

.product-item {
    width: 280px; /* Lebar tetap untuk setiap item produk */
    height: 320px; /* Tinggi tetap untuk setiap item produk */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px; /* Sudut sedikit membulat */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sedikit bayangan */
    padding: 20px;
    box-sizing: border-box; /* Memastikan padding tidak menambah lebar */
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px); /* Efek angkat saat hover */
}


/* Specific product item colors */
.product-item:nth-child(1) { /* Tumble Dryer */
    background-color: #292929;;
    color: #ffffff;
}

.product-item:nth-child(2) { /* Flatwork Ironer */
    background-color: #292929; /* Kuning */
    color: white;
}

.product-item:nth-child(3) { /* C-Series */
    background-color: #292929; /* Biru */
    color: white;
}
.product-item:nth-child(4) { /* Flatwork Ironer */
    background-color: #292929; /* Kuning */
    color: white;
}

.product-item img {
    max-width: 220px; /* Ukuran gambar produk */
    height: auto;
    margin-bottom: 25px;
}

.product-item h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}

.product-item p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: inherit; /* Mengambil warna dari parent */
}

/* Company Intro Section */
.company-intro {
    text-align: center;
    max-width: 900px; /* Lebar maksimum untuk teks */
    margin: 80px auto 50px auto; /* Margin atas, otomatis kiri/kanan, margin bawah */
    padding: 0 20px;
}

.company-intro h2 {
    font-size: 2.5em;
    color: #8c7e5d;/* Warna biru tua */
    margin-bottom: 20px;
    position: relative; /* Untuk underline */
    display: inline-block; /* Agar underline pas dengan teks */
}

.company-intro h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px; /* Posisi underline di bawah teks */
    width: 60px; /* Lebar underline */
    height: 4px; /* Tinggi underline */
    background-color: #bbbab2; /* Warna kuning untuk underline */
    border-radius: 2px;
}

.company-intro p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Hero Banner */
.hero-banner {
    color: rgb(187, 0, 0);
    text-align: center;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgb(26, 26, 26);
}

.hero-banner p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Product Page Layout (Sidebar + Products) */
.product-page-layout {
    display: grid;
    gap: 30px;
    padding-bottom: 50px;
}

/* Sidebar */
.sidebar {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #e7b322;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.product-categories {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-categories li {
    margin-bottom: 10px;
}

.product-categories li a {
    display: block;
    padding: 10px 15px;
    background-color: #f0f4f8;
    color: #555;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-categories li a:hover,
.product-categories li a.active {
    background-color: #e7b322;
    color: white;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95em;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.apply-filters-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-filters-btn:hover {
    background-color: #218838;
}

/* Product Listing */
.product-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #0a0d0f;
}

.product-card .product-description {
    font-size: 0.9em;
    color: #666;
    padding: 0 15px;
    flex-grow: 1; /* Allows description to take available space */
}

.product-card .product-price {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: #8c7e5d;
    margin: 15px 0;
}

.product-card .btn-primary {
    display: inline-block;
    background-color:#8c7e5d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 15px 15px; /* Margin at the bottom of the card */
    transition: background-color 0.3s ease;
}

.product-card .btn-primary:hover {
    background-color: #2a2b2a;
}

.menu-item {
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Sembunyikan secara default */
    position: absolute;
    background-color: #d6d5d5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    width: 100%; /* Sesuaikan lebar submenu */
    top: 100%; /* Tempatkan di bawah menu utama */
    left: 0;
}

.submenu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
}

.submenu li a:hover {
    background-color: #e0e0e0;
}
/* Style for the active menu item */
.submenu li.active a {
  color: #007bff; /* Example: blue text color */
  font-weight: bold; /* Example: bold font */
  /* Add any other styles you want for the active state */
  /* For instance, a background color: */
  /* background-color: #e9ecef; */
  /* Or a border: */
  /* border-left: 3px solid #007bff; */
}

/* Optional: To make the parent menu item also appear active */
.menu-item.active > a {
  color: #007bff; /* Example: blue text color for the parent link */
}
/* Gaya baru untuk informasi kontak di pop-up */
.contact-info {
    margin-top: 20px;
    text-align: center;
}

.contact-info p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}
/* Footer */
.main-footer {
    background-color: #2a2b2a;
    color: white;
    padding: 40px 0 20px;
    font-size: 0.95em;
    padding: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 40px 0 20px;
}

.footer-section h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section p, .footer-section ul {
    color: #bbbbbb;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bbbbbb;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-section.contact p i {
    margin-right: 10px;
    color: #8c7e5d;
    font-size: 1.1em;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #aaaaaa;
}


/* Responsive Design */
@media (max-width: 992px) {
    .product-page-layout {
        grid-template-columns: 1fr; /* Stack sidebar and products */
    }

    .sidebar {
        margin-bottom: 30px;
    }

    .hero-banner h1 {
        font-size: 2.5em;
    }
    .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Untuk menyejajarkan item menu secara horizontal */
}

.main-nav li {
    margin-left: 25px; /* Jarak antar item navigasi */
}

.main-nav a {
    text-decoration: none;
    color: #bdc3c7; /* Warna teks link navigasi, disesuaikan untuk background gelap */
    font-weight: 500;
    padding: 5px 0;
    font-size: 1em; /* Ukuran font link navigasi */
    transition: color 0.3s ease;
}
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav on small screens */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding-bottom: 10px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    .main-nav ul li a::after {
        display: none; /* Hide hover effect on mobile menu */
    }

    .nav-toggle {
        display: block; /* Show toggle button */
    }

    .company-intro p{
        text-align: center;
    }

    .hero-banner h1 {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
        min-width: unset;
        width: 100%;
    }

    .footer-section.contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-card h3 {
        font-size: 1.2em;
    }

    .product-card .product-price {
        font-size: 1em;
    }

    .product-card .btn-primary {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .video-background-section{
        background-position: top center;
    }
    
}
/* =========== Media Queries for Mobile Styling =========== */
@media (max-width: 768px) { /* Sesuaikan breakpoint Anda */
    .menu-toggle {
        display: block; /* Tampilkan tombol hamburger di mobile */
    }

    .main-nav {
        position: fixed; /* Menu akan menutupi layar */
        top: 0; /* Awalnya dari atas */
        left: 0;
        width: 100%;
        height: 100%; /* Full height */
        background-color: #fff; /* Semi-transparan */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Sembunyikan di luar layar */
        transition: transform 0.3s ease-in-out;
        z-index: 10; /* Penting! Lebih rendah dari header (z-index: 100) */
        padding-top: 60px; /* Tambahkan padding agar tidak menutupi header */
        box-sizing: border-box; /* Include padding in width/height */
    }

    .main-nav.open {
        transform: translateX(0); /* Geser masuk saat terbuka */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .main-nav ul li a {
        font-size: 1.6em;
        color: #8c7e5d;
        font-weight: bold;
    }

    /* Agar konten utama tidak tumpang tindih dengan fixed header */
    main {
        margin-top: 80px; /* Sesuaikan dengan tinggi header Anda */
    }

    /* Media Queries for Mobile Adjustments (if needed, but object-fit handles much) */
@media (max-width: 768px) {
    .video-background-section-vidio{
        background-position: top center;

}}
}
