* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    transition: all 0.5s ease;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav .logo-container {
    /* Kelas baru untuk kontainer logo */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav .logo-text {
    /* Kelas baru untuk teks logo */
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    text-decoration: none;
    /* Hapus underline default */
}

nav ul li a.active::after,
/* Perbaikan efek underline aktif */
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1c40f;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

nav ul li a::after {
    /* Efek underline saat hover/aktif */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1c40f;
    transform: scaleX(0);
    /* Sembunyikan secara default */
    transform-origin: bottom right;
    /* Titik asal animasi */
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    /* Tampilkan saat hover */
    transform-origin: bottom left;
    /* Arah animasi saat hover */
}

nav ul li a.active::after {
    transform: scaleX(1);
    /* Selalu tampilkan saat aktif */
    transform-origin: bottom left;
}

.swiper {
    width: 100%;
    height: 100vh;
    position: relative;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.overlay h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.overlay p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.cta-btn {
    background: #f1c40f;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

.swiper-button-next,
.swiper-button-prev {
    color: #f1c40f;
}

/* Styling untuk ikon media sosial di footer */
.social-icons a {
    /* Umum untuk semua link ikon */
    display: inline-block;
    /* Agar transform hover bekerja dengan baik */
    transition: transform 0.3s ease;
    /* Efek transisi saat hover */
    /* margin: 0 0.7rem; -- Ini dihapus karena sudah ada di inline style HTML */
}

.social-icons a:hover {
    transform: scale(1.2);
    /* Efek membesar saat hover */
}

.social-icons a img {
    /* Styling untuk gambar ikon (Instagram, Facebook) */
    vertical-align: middle;
    /* Menjaga agar sejajar */
    height: 24px;
    /* Atur Ukuran gambar agar konsisten */
    width: 24px;
    /* Atur Ukuran gambar agar konsisten */
}

.social-icons a .fab.fa-tiktok {
    /* Styling khusus untuk ikon Font Awesome TikTok */
    color: white;
    /* Membuat ikon TikTok menjadi putih */
    font-size: 24px;
    /* Sesuaikan Ukuran Font Awesome agar sama dengan gambar */
    vertical-align: middle;
    /* Menjaga agar sejajar */
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
    transition: all 0.5s ease;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #0a466e;
}

/* Pastikan aturan untuk galeri tetap ada dan terpisah */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Sesuaikan minmax jika Anda ingin Ukuran yang berbeda dari produk */
    gap: 2rem;
    /* Jarak antar item galeri */
    max-width: 1200px;
    /* Sesuaikan dengan lebar maksimum kontainer Anda */
    margin: 3rem auto;
    /* Pusatkan galeri */
    padding: 0 1.5rem;
    /* Padding samping */
}

/* Aturan ini akan menimpa margin-bottom default untuk h2 di dalam section #produk */
#produk h2 {
    margin-bottom: 3rem;
    /* Sesuaikan nilai ini sesuai keinginan Anda */
}

/* Styling untuk Product Grid (Kode yang sama dengan sebelumnya, tapi sekarang terpisah) */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin-top: 0rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Styling untuk Setiap Item Produk (Kartu) */
.produk-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: auto;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Efek Hover pada Kartu Produk */
.produk-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Styling untuk Gambar Produk */
.produk-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Styling untuk Judul Produk */
.produk-item h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 1.5rem 1.2rem 0.8rem;
    line-height: 1.3;
}

/* Styling untuk Deskripsi Produk */
.produk-item p {
    font-size: 0.98rem;
    color: #666;
    margin: 0 1.2rem 1.8rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Styling untuk Tombol "Lihat Detail" */
.produk-item .button {
    background-color: #f1c40f;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efek Hover pada Tombol */
.produk-item .button:hover {
    background-color: #e0b40e;
    transform: translateY(-2px);
}

/* Penyesuaian untuk layar yang lebih kecil */
@media (max-width: 600px) {
    .produk-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .produk-item h3 {
        font-size: 1.4rem;
    }

    .produk-item p {
        font-size: 0.9rem;
    }

    /* Jika galeri juga butuh penyesuaian di mobile */
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}

.galeri-grid img {
    transition: transform 0.3s ease;
    border-radius: 10px;
    width: 100%;
    /* Pastikan gambar mengisi kotak */
    height: auto;
    /* Jaga rasio aspek */
    display: block;
    /* Hapus spasi bawah yang tidak diinginkan */
}

.galeri-grid img:hover {
    transform: scale(1.05);
}

.faq h3 {
    cursor: pointer;
    color: #0a466e;
    margin-top: 1rem;
    position: relative;
    /* Untuk ikon panah */
    padding-right: 25px;
    /* Ruang untuk ikon */
}

.faq h3::after {
    /* Ikon panah untuk FAQ */
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out;
}

.faq h3.active::after {
    /* Ikon panah saat aktif */
    content: '-';
    transform: translateY(-50%) rotate(0deg);
    /* Rotasi jika mau */
}


.faq-answer {
    display: none;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    /* Warna border dasar, sedikit transparan */
    border-left-color: #f1c40f;
    /* Warna border yang berputar, gunakan warna aksen Anda */
    border-radius: 50%;
    /* Membuatnya bulat sempurna */
    width: 40px;
    /* Lebar spinner */
    height: 40px;
    /* Tinggi spinner */
    animation: spin 1s linear infinite;
    /* Animasi putaran */
    margin: 20px auto;
    /* Pusatkan spinner secara horizontal */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    /* Awal putaran */
    100% {
        transform: rotate(360deg);
    }

    /* Akhir putaran (satu putaran penuh) */
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #f1c40f;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    transform: scale(1.2);
}

.map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .overlay h1 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1rem;
    }
}

.wa-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 999;
    background: #25d366;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.wa-float:hover {
    transform: scale(1.2);
}


.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode header {
    background: rgba(0, 0, 0, 0.9);
}

.dark-mode nav ul li a {
    color: #e0e0e0;
}

.dark-mode section {
    background-color: #1e1e1e;
}

.dark-mode .produk-item {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.dark-mode .cta-btn {
    background-color: #f1c40f;
    color: #000;
}

.dark-mode h2 {
    color: #f1c40f;
}

.dark-mode h3 {
    color: #f8f8f8;
    /* Warna yang lebih terang untuk judul di dark mode */
}

/* Jika Anda ingin mengubah warna border FAQ */
.dark-mode .faq-answer {
    border-top: 1px solid #444;
    /* Border yang lebih gelap */
}

/* Jika Anda ingin menyesuaikan placeholder text di dark mode */
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #999;
    /* Warna placeholder yang sesuai */
}

/* Pastikan warna teks logo juga berubah di dark mode, meskipun sudah putih, konfirmasi saja */
.dark-mode nav .logo-text {
    color: #f8f8f8;
    /* Atau #fff jika ingin tetap putih */
}

/* Dark mode toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-left: 1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}


.dark-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    /* Keep this for the absolute positioning of its icons (sun/moon) */
}

.icon-wrapper {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
}

.icon-wrapper span {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
    font-size: 1.4rem;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1;
}

.icon-sun.hidden,
.icon-moon.hidden {
    opacity: 0;
    pointer-events: none;
}

.icon-sun,
.icon-moon {
    opacity: 1;
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .overlay h1 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
        order: 1;
        /* Posisikan di paling kiri */
    }

    nav {
        /* Tetap display flex dan space-between agar hamburger kiri, toggle kanan */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        /* Sedikit kurang padding untuk mobile */
    }

    nav .logo-container {
        flex-grow: 1;
        /* Biarkan logo container mengambil sisa ruang */
        justify-content: center;
        /* Pusat konten di dalamnya (gambar dan teks) */
        text-align: center;
        /* Untuk memastikan teks dan gambar terpusat */
        order: 2;
        /* Posisikan di tengah */
    }

    nav .logo-text {
        font-size: 1.3rem;
        /* Sedikit perkecil Ukuran font di mobile */
    }

    nav ul {
        display: flex;
        /* Pertahankan flex untuk layout item */
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 0, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        /* Posisikan di kiri atau kanan */
        width: 100%;
        max-height: 0;
        /* Awalnya 0 tinggi */
        overflow: hidden;
        /* Sembunyikan konten yang meluap */
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        /* Animasi transisi */
        opacity: 0;
        /* Mulai dengan transparan */
        pointer-events: none;
        /* Nonaktifkan interaksi saat tersembunyi */
        padding: 0;
        /* Hapus padding awal agar transisi lebih mulus */
    }

    nav ul.active {
        max-height: 500px;
        /* Atur tinggi maksimum yang cukup untuk semua item menu */
        opacity: 1;
        /* Tampilkan */
        pointer-events: all;
        /* Aktifkan interaksi */
        padding: 1rem 0;
        /* Berikan padding saat aktif */
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .dark-toggle {
        /* Hapus posisi absolut yang menyebabkan tumpang tindih */
        /* position: absolute; */
        /* HAPUS BARIS INI */
        /* top: 1rem; */
        /* HAPUS BARIS INI */
        /* right: 1rem; */
        /* HAPUS BARIS INI */
        order: 3;
        /* Posisikan di paling kanan */
        margin-left: 0.5rem;
        /* Tambahkan sedikit margin agar tidak terlalu dekat */
    }
}

/* Pastikan .form-group sudah ada */
.form-group {
    margin-bottom: 1.5rem;
    /* Tambah sedikit ruang antar grup */
}

.form-group label {
    display: block;
    /* Pastikan label di baris baru */
    margin-bottom: 0.5rem;
    /* Beri sedikit ruang antara label dan input */
    font-weight: 600;
    /* Tebalkan label */
    color: #0a466e;
    /* Sesuaikan warna dengan heading atau warna brand */
}

.dark-mode .form-group label {
    color: #f1c40f;
    /* Warna label di dark mode */
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    /* Sedikit lebih besar padding */
    border-radius: 8px;
    /* Sudut lebih membulat */
    border: 1px solid #dcdcdc;
    /* Warna border yang lebih halus */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    /* Efek bayangan dalam untuk kedalaman */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Transisi untuk fokus */
    font-size: 1rem;
    /* Ukuran font standar */
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #f1c40f;
    /* Warna border saat fokus */
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2);
    /* Efek ring saat fokus */
    outline: none;
    /* Hapus outline default browser */
}

.dark-mode input[type="text"],
.dark-mode input[type="tel"],
.dark-mode textarea {
    background-color: #333;
    /* Background gelap */
    border-color: #555;
    /* Border gelap */
    color: #eee;
    /* Warna teks terang */
}

.dark-mode input[type="text"]:focus,
.dark-mode input[type="tel"]:focus,
.dark-mode textarea:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.3);
}

/* Styling untuk pesan error */
.error-message {
    color: #e74c3c;
    /* Merah untuk error */
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    /* Pastikan error message di baris baru */
    visibility: hidden;
    /* Sembunyikan secara default */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-message.active {
    visibility: visible;
    opacity: 1;
}

/* Styling untuk input yang invalid */
input.invalid,
textarea.invalid {
    border-color: #e74c3c !important;
    /* Merah terang untuk input invalid */
}

/* Styling untuk tombol submit */
#formPenawaran .cta-btn {
    width: 100%;
    /* Tombol memenuhi lebar formulir */
    padding: 1.2rem;
    /* Ukuran lebih besar */
    font-size: 1.1rem;
    /* Ukuran font tombol lebih besar */
    border: none;
    /* Hapus border */
    cursor: pointer;
    margin-top: 1.5rem;
    /* Sedikit jarak dari input terakhir */
}

/* Tambahan untuk pesan konfirmasi */
#form-confirmation-message {
    background-color: #e0f7fa;
    /* Warna latar yang lebih netral */
    color: #00796b;
    /* Warna teks yang kontras */
    border: 1px solid #b2ebf2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    /* Lebih bulat */
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: none;
    /* Sembunyikan secara default */
}

/* Styling baru untuk pesan error form umum */
.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.success-message {
    background-color: #e0f7fa;
    color: #00796b;
    border: 1px solid #b2ebf2;
}

.error-message-box {
    background-color: #ffe0e0;
    /* Latar belakang merah muda */
    color: #cc0000;
    /* Teks merah gelap */
    border: 1px solid #ff9999;
}

.dark-mode .success-message {
    background-color: #263238;
    color: #80cbc4;
    border-color: #4db6ac;
}

/* Warna pesan error di Dark Mode */
body.dark-mode .error-message {
    color: lightcoral;
}

.dark-mode .error-message-box {
    background-color: #420000;
    color: #ffcccc;
    border-color: #800000;
}

.dark-mode #form-confirmation-message {
    background-color: #263238;
    color: #80cbc4;
    border-color: #4db6ac;
}

/* Styling untuk spinner */
#loadingSpinner {
    display: none;
    /* Pastikan ini disembunyikan secara default */
    text-align: center;
    margin-top: 30px;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    /* Sedikit lebih tebal */
    border-left-color: #f1c40f;
    width: 50px;
    /* Ukuran lebih besar */
    height: 50px;
    margin-bottom: 10px;
}

.dark-mode .spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: #f1c40f;
}
