@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 1rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

/* variables */
:root {
    --main-color: #d90429;
    --text-color: #000000;
    --bg-color: #fff;
}

/* Custom Scroll Bar */
html::-webkit-scrollbar {
    width: 0.5rem;
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    border-radius: 5rem;
    background: var(--main-color);
}

section {
    padding: 4rem 0 2rem;
}

img {
    width: 100%;
}

body {
    color: var(--text-color);
}

.container {
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
}

header {
    background: var(--text-color);
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    white-space: nowrap;
}

header.shadow {
    background: var(--text-color);
    box-shadow: 0px 11px 15px #c10929;
    transition: 0.5s ease;
}

header.shadow #menu-icon {
    color: var(--bg-color);
}

header.shadow #search-icon {
    color: var(--bg-color);
}

header.shadow a {
    color: var(--bg-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
    max-width: 87%;
}

#menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
    display: none;
}

.logo1 {
    max-width: 150px;
    margin-left: 0px;
    margin-top: 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--main-color);
}

.navbar {
    display: flex;
    column-gap: 2rem;
}

.navbar a {
    color: var(--bg-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav a:hover,
.navbar .active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#search-icon {
    font-size: 24px;
    cursor: pointer;
    color: var(--bg-color);
}

.search-box {
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background: var(--bg-color);
    box-shadow: 4px 4px 20px rgb(15 45 55 /10%);
    border: 1px solid var(--main-color);
    border-radius: 0.5rem;
    clip-path: circle(0% at 100% 0%);
}

.search-box.active {
    clip-path: circle(144% at 100% 0%);
    transition: 0.4s;
}

.search-box input {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.home {
    max-width: 1300px;
    margin: auto;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center left;
    position: absolute;
    z-index: 5;


}

/*--------MERCEDES BENZ START-------------*/
section.standard-content {
    display: flex;
    margin-top: 5%;
}

.widget-title {
    color: var(--main-color);
}

form {
    row-gap: 2rem;
    width: 100%;
}

.labels-form {
    color: var(--main-color);
}

.contain {
    width: 50%;
    color: var(--bg-color);
    padding: 3rem;
}

.contain2 {
    row-gap: 2rem;
    padding: 3rem;
    width: 50%;
    display: flex;
    flex-wrap: wrap;
}

.form-field2 {
    height: 48px;
    width: 100%;
}

.form-field {
    padding: 5px;
    height: 48px;
    width: 100%;
    border: none;
    outline: none;
    background: #191919;
    color: var(--bg-color);
    font-size: 1rem;
    border-radius: 10px;

}

.form-field-textarea {
    height: 40%;
    width: 100%;
    border: none;
    outline: none;
    background: #191919;
    color: var(--bg-color);
    font-size: 1rem;
    border-radius: 10px;
    padding: 5px;
}

.btn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    margin-top: 10px;
    justify-content: center;
    align-items: center;
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 10px;
    width: 220px;
    transition: ease .20s;

}

.btn:hover {
    background: #fd052f;
    border: 2px solid #d90429;
    background: transparent;
    transform: scale(1.1);

}

.pic {
    padding: 20px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.pic1 {
    align-items: center;
    justify-content: center;
    gap: 2rem;
    display: flex;
}

.pic-pic {
    width: 25%;
    box-shadow: 2px 2px 21px rgba(227, 227, 227, 20%);
}

.contain-text-footer {
    color: var(--bg-color);
    padding: 3rem;
}

/*--------MERCEDES BENZ END-------------*/
@keyframes fade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.home-text {
    padding-left: 130px;
}

.home-text h1 {
    font-size: 2.4rem;
    color: #fff;
    text-decoration: none;


}

.home-text span {
    color: var(--main-color);
}

.home-text p {
    font-size: 0.938rem;
    font-weight: 300;
    margin: 0.5rem 0 1.2rem;
    color: #fff;
}

.btn {
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
}

.btn:hover {
    background: #fd052f;
}

.heading {
    text-align: center;
}

.heading span {
    font-weight: 500;
    color: var(--main-color);
}

.heading h2 {
    color: var(--bg-color);
}

.heading p {
    font-size: 0.938rem;
    font-weight: 300;
    color: var(--bg-color);
}

.cars-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.cars-container .box {
    flex: 1 1 17rem;
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.cars-container .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.cars-container .box img:hover {
    transform: scale(1.1);
    transition: 0.5s;
}

.cars-container .box h2 {
    position: absolute;
    bottom: 0.2rem;
    left: 0.2rem;
    font-weight: 400;
    font-size: 0.6rem;
    background: var(--bg-color);
    padding: 8px;
    border-radius: 0.5rem;
}

.cars-container .box:hover h2 {
    background: var(--main-color);
    color: var(--text-color);
}

.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.about-img {
    flex: 1 1 21rem;
}

.about-text {
    flex: 1 1 21rem;
}

.about-text span {
    font-weight: 500;
    color: var(--main-color);
}

.about-text h2 {
    font-size: 1.7rem;
    color: var(--bg-color);
}

.about-text p {
    font-size: 0.938rem;
    margin: 0.5rem 0 1.4rem;
    color: var(--bg-color);
}

.parts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.parts-container .box {
    flex: 1 1 17rem;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f6f6f6;
    border-radius: 0.5rem;
}

.parts-container .box img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
}

.parts-container .box h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.parts-container .box span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
}

.parts-container .box .bx {
    color: var(--main-color);
    margin: 0.8rem 0;
}

.parts-container .box .btn {
    max-width: 120px;
}

.parts-container .box .details {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 1.8rem;
    right: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.parts-container .box .details:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-container .box {
    flex: 1 1 13rem;
    padding: 20px;

}

.blog-container .box:hover {
    background: var(--main-color);
}

.blog-container .box span {
    font-size: 0.8rem;
    color: var(--main-color);
}

.blog-container .box:hover span {
    font-size: 0.8rem;
    color: var(--text-color);
}


.blog-container h3 {
    font-size: 1.2rem;
    color: var(--bg-color);
}

.blog-container .box p {
    font-size: 0.938rem;
    margin: 4px 0;
    color: var(--bg-color);
}

.blog-container .box blog-btn {
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: var(--text-color);
}

.blog-container .box .blog-btn .bx {
    font-size: 20px;
}

.blog-container .box .blog-btn:hover {
    color: var(--text-color);
    column-gap: 0.7rem;
    transition: 0.4s;
}

.footer {
    background: var(--text-color);
    color: #f6f6f6;
    border-top: 2px solid var(--main-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer-container .logo {
    color: var(--bg-color);
    margin-bottom: 1rem;
}

.footer-container .footer-box {
    display: flex;
    flex-direction: column;
}

.social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social a {
    font-size: 24px;
    color: var(--bg-color);
    margin-right: 1rem;
}

.sociala:hover {
    color: var(--main-color);
}

.footer-box h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.footer-box a,
.footer-box p {
    color: #818181;
    margin-bottom: 10px;
}

.footer-box a:hover {
    color: var(--main-color);
}

.copyright {
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
    background: var(--text-color);
}

/* Making Responsive */
@media(max-width:1620px){
    section.standard-content {
        padding: 0;
        margin-top: 12%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 87%;
    }
    

}
@media(max-width:1440px){
    section.standard-content {
        padding: 0;
        margin-top: 8%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 87%;
    }

}
@media (max-width:1080px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    section.standard-content {
        padding: 0;
        margin-top: 10%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 87%;
    }


}

@media (max-width: 991px) {
    .nav {
        padding: 15px 0px;
    }

    section {
        padding: 3rem 0 1rem;
    }

    .home-text {
        padding-left: 2rem;
    }

    .home-text h1 {
        font-size: 2.1rem;
    }
    section.standard-content {
        padding: 0;
        margin-top: 10%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }


}

@media (max-width: 920px) {
    #search-icon {
        color: var(--bg-color)
    }

    .home {
        min-height: 50px;
        font-size: 20px;
        position: absolute;
        margin-top: 120px;

    }

    .home-text h1 {
        font-size: 18px;

    }

    .home-text p {
        font-size: 12px;
    }

    .btn {
        font-size: 10px;
    }

    .slideshow-container {
        position: relative;
    }
    section.standard-content {
        padding: 0;
        margin-top: 10%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .search-box input {
        padding: 15px;
    }

    .nav {
        padding: 10px 0;
    }

    #menu-icon {
        display: initial;
    }

    header.shadow #search-icon {
        color: var(--bg-color);

    }

    header.shadow a {
        color: var(--text-color);
    }


    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        row-gap: 0.5rem;
        text-align: center;
        box-shadow: 4px 4px 20px rgb(15 54 55 / 20%);
        clip-path: circle(0% at 0% 0%);
        transition: 0.6s;
    }

    .navbar a {
        color: var(--text-color);
        display: block;
        padding: 15px;
    }

    .navbar a:hover,
    .navbar.active {
        border-bottom: none;
        background: var(--bg-color);
        color: var(--main-color);
    }

    .navbar.active {
        clip-path: circle(144% at 0% 0%);
    }

    .blog-container .box {
        padding: 4px;
    }

    .home {
        min-height: 25px;
        font-size: 20px;
        position: absolute;
        margin-top: 70px;

    }

    .home-text h1 {
        font-size: 20px;

    }

    .home-text p {
        font-size: 10px;
    }

    .btn {
        font-size: 10px;
    }
    section.standard-content {
        padding: 0;
        margin-top: 15%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width:722px) {
    .contain {
        width: 100%;
    }

    .contain2 {
        width: 100%;
    }

    section.standard-content {
        display: block;
    }

    .heading span {
        font-size: 0.9rem;
    }

    .heading h2 {
        font-size: 1.4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .home {
        min-height: 25px;
        font-size: 20px;
        position: absolute;
        margin-top: 70px;

    }

    .home-text h1 {
        font-size: 20px;

    }

    .home-text p {
        font-size: 10px;
    }

    .btn {
        font-size: 10px;
    }

    .slideshow-container {
        position: relative;
    }
    section.standard-content {
        padding: 0;
        margin-top: 10%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width:607px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home {
        min-height: 25px;
        font-size: smaller;
        position: absolute;
        margin-top: 50px;

    }

    .home-text h1 {
        font-size: 12px;

    }

    .home-text p {
        font-size: 10px;
    }

    .slideshow-container {
        position: relative;
    }
    section.standard-content {
        padding: 0;
        margin-top: 15%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }


}

@media (max-width:470px) {
    .envelope {
        font-size: 16px;
    }

    .envelope-two {
        font-size: 16px;
    }

    .envelope-icon {
        display: flex;
    }

    .mySlides {
        margin-top: 10%;
    }

    .home-text {
        margin-top: -15%;
    }

    .cars-container {
        margin-top: 4%;
    }
    section.standard-content {
        padding: 0;
        margin-top: 15%;
    }
    .logo1{
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }

}

@media (max-width:450px) {
    .search-box input {
        padding: 11px;
    }

    .home {
        min-height: 200px;
        margin-top: 0;
    }

    .home-text h1 {
        font-size: 12px;
    }

    .home-text p {
        font-size: 8px;
        margin-right: 150px;

    }

    .btn {
        font-size: 8px;
    }

    .home-text p br {
        display: contents;
    }

    .slideshow-container {
        position: relative;
    }

    section.standard-content {
        padding: 0;
        margin-top: 15%;
    }

    .logo1 {
        max-width: 150px;
    }
    .nav{
        max-width: 100%;
    }

}