
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    line-height: 1.6;
}

/* Navigation */
header {
    background-color: #111827;
    color: white;
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h2 {
    color: #facc15;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    color: #facc15;
}

/* Main Banner */
.hero {
    min-height: 450px;
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    ), url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #facc15;
    color: #111827;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background-color: #eab308;
}

/* Featured Cars */
.cars {
    padding: 50px 7%;
    text-align: center;
    background-color: #f3f4f6;
}

.cars h2,
.about h2,
.contact h2 {
    font-size: 30px;
    margin-bottom: 25px;
}

.car-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.car-card {
    background: white;
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px #00000015;
}

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.car-card h3 {
    margin: 10px 0;
}

.car-card h4 {
    color: #15803d;
    margin-top: 10px;
}

/* About Section */
.about {
    padding: 50px 10%;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: auto;
}

/* Contact Section */
.contact {
    background-color: #e5e7eb;
    padding: 50px 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Mobile Screens */
@media (max-width: 600px) {
    header {
        flex-direction: column;
    }

    nav a {
        margin: 0 7px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .car-card {
        width: 100%;
    }
}
