:root {
    --primary-blue: #011d3a;
    --text-black: #333333;
    --bg-white: #ffffff;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    /* padding-left: var(--sidebar-width); */
}

/* Sidebar Navigation */
nav {
    background-color: var(--primary-blue);
    position: fixed;
    z-index: 1000;
    padding: 0rem 1rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: bold;
    /* margin-bottom: 3rem; */
    text-align: center;
    display: flex;
    align-items: center;

    .fas {
        padding: 1rem;
    }
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 1rem 0;
}

.nav-links a {
    color: var(--bg-white);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.8rem 1rem;
    display: block;
    text-align: center;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-blue);
    border: none;
    color: var(--bg-white);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
}

/* Sections */
section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

#home {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1485291571150-772bcfc10da5?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    /* height: 100vh; */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Cars Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.car-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s;
    overflow: hidden;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

/* Tambahkan ini di bagian car-card styles */
.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%;
    text-align: center;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-button i {
    margin-right: 8px;
}

.car-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.car-details {
    margin-top: 1rem;
}

.car-details p {
    margin-bottom: 0.5rem;
}

/* Address and Contact */
#address, #contact {
    background-color: var(--bg-white);
    text-align: center;
}

h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.address-content, .contact-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--text-black);
    color: var(--bg-white);
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }

    nav {
        background-color: var(--primary-blue);
        position: fixed;
        z-index: 1000;
        padding: 0rem 1rem;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }



    .menu-toggle {
        display: none;
    }

    .car-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .car-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        margin: 2rem;
        display: block;
    }

    nav.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    nav {
        transform: translateX(-100%);
        background-color: var(--primary-blue);
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        padding: 2rem 1rem;
        flex-direction: column;
        align-items: center;
        display: block;
        transition: transform 0.3s ease;

    }

    #cars {
        padding-bottom: 0rem;
        h2 {
            margin-bottom: 0rem;
        }
    }

    .car-card {
        padding: 1rem 2rem;
    }

    .maps {
        margin: 0rem 0rem;
    }

    .bawah_alamat {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 2rem 0rem;
        gap: 2rem;
    }

    .isi_bawah_alamat {
        padding: 1rem;
        border-radius: 2rem;
    }

    .nav-links {
        display: block;
    }

    #address {
        margin: 0rem;
        padding: 1rem 2rem;
    }

    iframe {
        padding: 2rem 0rem;
    }

#contact {
    padding: 2rem;
    h2 {
        margin-bottom: 1rem;
    }
}

    .instagram {
        width: 13rem;
        height: 13rem;
        margin: 2rem auto;
        padding: 2rem 0rem;
        background: rgb(163, 19, 136);
        background: linear-gradient(90deg, rgba(163, 19, 136, 1) 0%, rgba(255, 177, 8, 1) 50%, rgba(255, 0, 91, 1) 100%);
        color: white;
        border-radius: 2rem;
        box-shadow: 0 20px 15px rgba(0, 0, 0, 0.5);

        a {
            color: white;
            text-decoration: none;
        }

        i {
            font-size: 7rem;
        }
    }

    .whatsapp {
        width: 13rem;
        height: 13rem;
        margin: 2rem auto;
        padding: 2rem 0rem;
        background: #25D366;
        color: white;
        border-radius: 2rem;
        box-shadow: 0 20px 15px rgba(0, 0, 0, 0.5);

        a {
            color: white;
            text-decoration: none;
        }

        i {
            font-size: 7rem;
        }
    }
}