/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #343a40;
    line-height: 1.7;
    background-color: #f8f9fa;
    /* Ganti nilai ini */
    padding-top: 40px; /* Coba naikkan dari 90px untuk lebih banyak ruang */
    /* Jika masih terlalu dekat, coba 120px */
}

/* Header */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .navbar-brand {
    font-weight: 700;
    color: #343a40;
    display: flex;
    align-items: center;
}

.header .logo-img {
    height: 40px; /* Sesuaikan ukuran logo */
}

.header .nav-link {
    font-weight: 600;
    color: #343a40 !important; /* Warna teks default */
    padding: 0.5rem 1rem; /* Penting untuk memberikan ruang pada underline */
    transition: color 0.3s ease; /* <<< INI PENTING: Transisi warna teks */
    position: relative; /* <<< INI PENTING: Untuk pseudo-element ::after */
    text-decoration: none; /* Pastikan tidak ada underline default */
}

.header .nav-link:hover,
.header .nav-link.active {
    color: #32CD32 !important; /* Warna hijau terang saat hover atau active */
}


.header .nav-link::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px; /* Tebal garis underline */
    bottom: -5px; /* Posisi garis di bawah teks. Sesuaikan jika perlu */
    left: 50%; /* Mulai dari tengah */
    background-color: #32CD32; /* Warna underline, gunakan warna hijau terang Anda */
    transition: all 0.3s ease; /* Transisi untuk lebar dan posisi garis */
    transform: translateX(-50%); /* Kembali ke tengah setelah lebar berubah */
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 100%; 
    bottom: 0; 
}
.modal-product-img {
    max-height: 300px; /* OK: Batasi tinggi */
    object-fit: contain; /* OK: Pastikan seluruh gambar terlihat */
    width: auto; 
    display: block; 
    margin: 0 auto 1rem auto; /* OK: Pusatkan gambar */
}

/* Hero Section */
.hero-section {
    background-color: #343a40; /* Fallback background */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay gelap */
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Common Section Styling */
section {
    padding: 80px 0;
}

section h2, section h3 {
    font-weight: 700;
}

/* Card Styles */
.card {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 30px;
}

.card-body i {
    color: #007bff;
    margin-bottom: 20px;
}

/* Contact Page Enhancements */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
}

/* Form Styles (Bootstrap already handles most) */
.needs-validation .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.needs-validation .form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* Footer */
.footer {
    background: #212529 !important;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer .list-unstyled li a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.footer .list-unstyled li a:hover {
    color: #007bff !important;
    text-decoration: none;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #007bff;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Animations (simple fade and slide) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animated-fade-in { animation: fadeIn 1s ease-out forwards; }
.animated-slide-left { animation: slideLeft 1s ease-out forwards; }
.animated-slide-right { animation: slideRight 1s ease-out forwards; }
.animated-zoom-in { animation: zoomIn 0.8s ease-out forwards; }

/* Animation Delays */
.delay-100ms { animation-delay: 0.1s; }
.delay-200ms { animation-delay: 0.2s; }
.delay-300ms { animation-delay: 0.3s; }
.delay-400ms { animation-delay: 0.4s; }
.delay-500ms { animation-delay: 0.5s; }


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #343a40;
        margin-top: 10px;
        border-radius: 5px;
    }
    .navbar-nav .nav-item {
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p.lead {
        font-size: 1.1em;
    }
    .col-lg-6.animated-slide-left, .col-lg-6.animated-slide-right {
        animation: none; /* Disable complex animations on small screens for performance */
        opacity: 1;
        transform: none;
    }
    .animated-zoom-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/* -----------------------------------------------------
   [MODIFIKASI] Gaya Khusus Produk Grid - Tanpa Memotong
   ----------------------------------------------------- */

.products-grid .card img {
    /* 1. Atur lebar gambar agar mengisi penuh container-nya */
    width: 100%;
    
    /* 2. TETAPKAN tinggi untuk semua gambar. Ganti '220px' sesuai kebutuhan Anda. */
    height: 220px; 
    
    /* 3. Properti KUNCI untuk MENCEGAH PEMOTONGAN: */
    /* 'contain' memastikan SELURUH gambar terlihat di dalam kotak.
       Ini akan menciptakan ruang kosong (whitespace) di sekitar gambar jika rasio aspeknya berbeda. */
    object-fit: contain; 
    
    /* Tambahan: Atur latar belakang card-nya menjadi putih atau warna solid 
       agar ruang kosong terlihat seragam, terutama jika gambar Anda PNG transparan. */
    background-color: #ffffff; 

    /* Pastikan tidak ada margin bawah bawaan dari Bootstrap */
    margin-bottom: 0 !important; 
    
    /* Pastikan sudut atas gambar membulat */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.whatsapp-float {
    position: fixed; /* Membuat elemen melayang */
    bottom: 20px;    /* Jarak dari bawah */
    right: 20px;     /* Jarak dari kanan */
    z-index: 1000;   /* Memastikan tombol di atas elemen lain */
    cursor: pointer; /* Menunjukkan bahwa ini bisa diklik */
    transition: transform 0.3s ease-in-out; /* Efek transisi saat hover */
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Sedikit membesar saat di-hover */
}

.whatsapp-icon {
    width: 60px; /* Ukuran icon WhatsApp */
    height: 60px; /* Sesuaikan jika perlu */
    border-radius: 50%; /* Membuat icon terlihat bulat (jika PNG Anda memiliki latar belakang transparan) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Bayangan untuk efek 3D */
}

/* Opsional: Untuk responsivitas pada layar kecil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
}