/* --- CSS DASAR DAN NAVBAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    /*background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), 
                url('bcsunandar.jpeg') no-repeat center center fixed;*/
    background: url('bcsunandar.jpg') no-repeat center center fixed;;
    background-size: cover;
    color: rgb(1, 12, 1);
    line-height: 1.6;
    justify-content: center;
    align-items: center;
    box-sizing: content-box;
        
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: #0a0a42;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: #f08308;
    font-size: 1.2rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1px 5px;
    text-decoration: none;
    color: #fdfbfb;
    font-weight: 500;
    transition: color 0.3s;
    text-align: center;
}

.nav-link:hover {
    color: #007bff;
}

/* --- STYLING DROPDOWN (DESKTOP) --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #043aadc2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    list-style: none;
    min-width: 150px;
    display: none; /* Tersembunyi di awal */
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 1px 5px;
    text-decoration: none;
    color: #f7f8f8;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #ff7f07e8;
    color: #f1f5fa;
    border-radius: 5px;
}

/* Munculkan dropdown saat hover di layar komputer */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* --- TOGGLE BURGER MENU (MOBILE) --- */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger-bar {
    width: 25px;
    height: 3px;
    background-color: #bcdaf7;
    transition: all 0.3s ease;
}

/* --- RESPONSIVE STYLE (MOBILE LAYOUT) --- */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%; /* Sembunyi di sisi kiri layar */
        width: 100%;
        height: calc(40vh - 25px);
        background-color: #0b0235de;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 5px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    /* Saat menu aktif (setelah burger diklik) */
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    /* Penyesuaian Dropdown di Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 10px;
        width: 100%;
        background-color: #ffffff09;
        text-align: center;
        
    }

    /* Kelas active ditambahkan via JS saat Kontak diklik */
    .dropdown-menu.active {
        display: block;
    }

    /* Animasi Burger Menjadi Silang (X) */
    .burger-menu.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.active .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- SISA CSS UNTUK SKELETON (HERO & CARDS) --- */
.hero { color: rgb(34, 35, 37); padding: 60px 0; text-align: center; }
.hero h1 { margin-bottom: 10px; }
.btn-wa { display: inline-block; background: #25d366; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; margin-top: 15px; font-weight: bold; }
.fleet { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: rgba(255, 255, 255, 0.568); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: center; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; }
.price { color: #018607; font-weight: bold; margin: 10px 0; }
.btn-book { display: block; background: #007bff; color: white; padding: 10px; text-decoration: none; border-radius: 5px; }
footer { background: #333; color: white; text-align: center; padding: 20px 0; margin-top: 40px; }
/* --- EFEK FADEOUT & ZOOM PADA GRID ARMADA --- */

/* 1. Atur container grid agar bisa mendeteksi hover pada anak-anaknya */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    transition: all 0.4s ease-in-out;
}

/* 2. Berikan transisi halus pada setiap kartu mobil */
.card {
    background: rgba(255, 255, 255, 0.63);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    text-align: center;
    
    /* Penting untuk animasi yang mulus */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* 3. FADEOUT: Ketika grid disorot, buat SEMUA kartu di dalamnya sedikit memudar */
.grid:hover .card {
    opacity: 0.5; /* Menurunkan kejelasan kartu lain */
}

/* 4. ZOOM: Ketika kartu TERTENTU disorot, buat kartu itu membesar dan kembali terang menderang */
.grid .card:hover {
    transform: scale(1.05); /* Memperbesar ukuran kartu sebesar 5% */
    opacity: 1; /* Mengembalikan kejelasan penuh */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Memberikan efek bayangan yang lebih dalam */
    z-index: 10; /* Memastikan kartu yang membesar berada di lapisan paling atas */
}
