/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Root colors */
:root {
    --primary-color: #009688;
    --secondary-color: #333;
    --text-color: #555;
    --bg-color: #f4f4f4;
    --white: #fff;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 10;
}
.navbar h1 {
    color: var(--white);
    font-size: 24px;
}
.navbar nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s ease;
}
.navbar nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-image: url('h.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 150px 20px;
    color: var(--white);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero h2 {
    font-size: 3rem;
    animation: fadeIn 2s ease-out;
}
.hero p {
    font-size: 1.5rem;
    margin-top: 10px;
    animation: fadeIn 2.5s ease-out;
}
.hero button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease;
    animation: fadeIn 3s ease-out;
}
.hero button:hover {
    background-color: #00796b;
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 50px;
    background-color: var(--bg-color);
}
.feature {
    text-align: center;
    width: 30%;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    animation: fadeInUp 0.5s ease forwards;
}
.feature h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.feature p {
    color: var(--text-color);
}
.feature:hover {
    transform: scale(1.05);
}

/* Popular Cars Section */
.popular-cars {
    background: var(--white);
    padding: 50px;
    text-align: center;
}
.popular-cars h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}
.car-card {
    display: inline-block;
    width: 300px;
    margin: 10px;
    text-align: center;
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.car-card:hover {
    transform: translateY(-5px);
}
.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.car-card h3 {
    color: var(--secondary-color);
    margin: 15px 0;
}
.car-card p {
    color: var(--primary-color);
    font-size: 1.2rem;
}
.car-card button {
    padding: 10px 20px;
    margin: 15px 0;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.car-card button:hover {
    background-color: #00796b;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-color);
    padding: 50px;
    text-align: center;
}
.testimonials h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}
.testimonial {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}
.testimonial span {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
}

/* Contact Section */
.contact-form {
    background-color: var(--bg-color);
    padding: 50px;
    text-align: center;
}
.contact-form h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.contact-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.contact-form button {
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form button:hover {
    background-color: #00796b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature {
        width: 80%;
        margin-bottom: 20px;
    }
    .car-card {
        width: 90%;
    }
    .navbar h1 {
        font-size: 18px;
    }
    .navbar nav a {
        font-size: 14px;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
}

