@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Navbar */
#navbar {
    width: 100%;
    display: flex;
    height: 70px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: #e3dcdc;
    position: fixed;
    top: 0;
    z-index: 1000;
}

#logo img {
    width: 200px;
    height: auto;
}

#menu {
    display: flex;
    gap: 30px;
}

#menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 18px;
}

#menu a:hover {
    color: orangered;
    transform: translateY(-3px);
}

#menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Home Section */
#home {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(background.png) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 100px 20px 20px;
    flex-wrap: wrap;
    position: relative;
}

.home-content {
    max-width: 500px;
    color: #fff;
    animation: fadeInLeft 1.5s ease forwards;
}

.home-content h1 {
    font-size: 60px;
    line-height: 1.2;
    font-weight: bold;
    color: gray;

}

.home-content h3 {
    font-size: 40px;
    color: gray;
    font-weight: 600;
}

.home-content h2 {
    font-size: 20px;
    color: rgb(50, 49, 49);
    font-weight: 700;

}

.home-content p {
    color: gray;
    margin-top: 20px;
}

.home-content h1 span,
.home-content h3 span {
    color: #e31732;
}

.home-content .btn {
    margin-top: 20px;
}

#car img {
    width: 105%;
    max-width: 900px;
    position: relative;
    left: -20px;
    /* height: auto; */
    animation: fadeInRight 2s ease forwards;
}

/* About Section */
#about {
    padding: 100px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.about-left img {
    width: 100%;
    max-width: 550px;
    border-radius: 10px;
    animation: fadeInLeft 3s ease forwards;
}

.about-right {
    flex: 1;
    min-width: 300px;
     animation: fadeInRight 3.5s ease forwards;
}

.about-right h2 {
    color: orangered;
}

.about-right h1 {
    font-size: 40px;
    margin: 10px 0;
}

.about-right p {
    margin: 20px 0;
}

.about-right ul {
    list-style: disc;
    padding-left: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #e31732;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #fff;
    color: orangered;
    border: 1px solid orangered;
}

/* Browse Cars Section FIXED */
#bottom {
    width: 100%;
    padding: 80px 20px;
    background-color: #e3dcdc;
    /* background: url(full-width-img-01.png) no-repeat center/cover; */
}

.bottom-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Left Image Area */
.bottom-image {
    height: 600px;

    flex: 1;
    background: url(full-width-img-01.png) no-repeat center/cover;
}

/* Right Content */
.bottom-content {
    flex: 1;
    padding: 40px;
    text-align: center;
}

.bottom-content button{
    display: inline-block;
    padding: 10px 25px;
    background:#e31732;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;

}

.car-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.car-list ul{
    margin-left: 50px;
}

.car-list ul li{
    text-align: start;
}



/* Responsive */
@media (max-width:768px) {
    .bottom-wrapper {
        flex-direction: column;
    }

    .about-right li{
        text-align: start;
    }

    .bottom-content {
        padding: 20px;
    }

    .bottom-image {
        width: 100%;
        height: 250px;
    }
}

/* Services Section */
#services {
    background: #e3dcdc;
    padding: 80px 20px;
    text-align: center;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.service {
    background: #fff;
    padding: 20px;
    flex: 1 1 250px;
    border-radius: 10px;
    transition: 0.3s;
    opacity: 0;
    animation: slideup 2s ease forwards;
}

@keyframes slideup {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service:hover {
    background: orangered;
    color: #fff;
}

.service i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Footer */
#footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px 20px;
    background: #000000;
    color: #fff;
    gap: 20px;
}

.footer-logo img {
    width: 200px;
    height: auto;
}

.footer-address,
.footer-contact {
    max-width: 300px;
}

.footer-contact .social-icons a {
    margin-right: 10px;
    font-size: 24px;
    color: #fff;
}

.footer-contact .social-icons a:hover {
    color: orangered;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width:1024px) {
    #home {
        flex-direction: column;
        padding-top: 150px;
    }
}

@media (max-width:768px) {
    #menu {
        display: none;
        flex-direction: column;
        background: #e3dcdc;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        padding: 20px;
    }

    #menu.active {
        display: flex;
    }

    #menu-toggle {
        display: block;
        color: #000;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-right li{
        text-align: start;
    }

    .services-container {
        flex-direction: column;
    }

    .car-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width:480px) {
    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 28px;
    }

    .home-content h2 {
        font-size: 18px;
    }

    .about-right h1 {
        font-size: 28px;
    }
}
