*{
    margin: 0;
    padding: 0;
    scroll-padding-top: 1rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --main-color:#d90429;
    --text-color:#020102;
    --bg-color:#fff;
}
/* scroll bar */
html::-webkit-scrollbar{
    width: 0.7rem;
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    border-radius: 5rem;
    background:rgb(128, 127, 127);
}
section{
    padding: 4rem 0 2rem;
}
img{
    width: 100%;
}
body{
    color: var(--text-color);
}

.container{
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
}
header{
    width: 100%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index:100;
    transition: 0.2s ease;
}
header.shadow{
background: var(--bg-color);
box-shadow: 2px 4px 4px rgb(15 54 55 / 20%);
}
header.shadow #search-icon{
    color: var(--text-color);
}
.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 35px;
    /* background-color: #020102; */
}
#menu-icon{
    display: none;
    font-size: 24px;
    color: var(--text-color);
}
.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(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}
.navbar a:hover,
.navbar .active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#search-icon{
    color: #f6f6f6;
    font-size: 24px;
    cursor: pointer;
    border-bottom:  3px solid var(--main-color);
}
.search-box{
    width: 60%;
    position: absolute;
    top: 110%;
    left: 20%;
    background: var(--bg-color);
    box-shadow: 4px 4px 20px rgb(15 54 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.5s;
}
.search-box input{
width: 100%;
padding: 20px;
border: none;
outline: none;
background: transparent;
font-size: 1rem
}
.btn2{
    position: absolute;
    right: 5%;
    top: 15%;
    padding: 10px 22px;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 400;
}
.btn2:hover{
    background: #fd052f;
}
.home{
    max-width: 100%;
    margin: auto;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    background: url(img/Background-home.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center left;
}
.home-text{
    margin-left: 130px;
}
.home-text h1{
    font-size: 2.4rem;
}
.home-text span{
    color: var(--main-color);
}
.home-text p{
    font-size: 0.938rem;
    font-weight: 400;
    margin: 0.5rem 0 1.2rem;
}
.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 p{
    font-size: 0.938rem;
}
.cars-container{
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.cars-container .box{
    cursor: pointer;
    box-shadow: 5px 5px 30px rgb(204, 202, 202);
    flex: 1 1 17 rem;
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
}
.cars-container .box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    transition: 0.5s;
}
.cars-container .box img:hover{
    transform: scale(1.1);
}
.cars-container .box h2{
    transition: 0.5s;
    text-align: center;
    width: 40%;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-weight: 400;
    font-size: 1rem;
    background: var(--bg-color);
    padding: 8px;
    border-radius: 30px;
}

.cars-container .box:hover h2{
    background: var(--main-color);
    color: var(--bg-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;
}
.about-text p{
    font-size: 0.938rem;
    margin: 0.5rem 0 1.4rem;
}

.parts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.parts-container .box2{
    flex: 1 1 17rem;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f6f6f6;
    border-radius: 0.5rem;
}
.parts-container .box2 img{
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
}
.parts-container .box2 span{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
}
.parts-container .box2 i{
    font-size: 0.8rem;
    color: var(--main-color);
    margin: 0.8rem 0;
}
.parts-container .box2 .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 .box2 .details:hover{
    color: var(--main-color);
    text-decoration: underline;
}
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.blog-container .box3{
   flex:1 1 13rem;
   padding: 20px;
   transition: 0.5s;
}
.blog-container .box3:hover{
    background: #e2dfdf;
}
.blog-container .box3 span{
    font-size: 0.8rem;
    color: var(--main-color);
}
.blog-container .box3 h3{
   font-size: 1.2rem;
}
.blog-container .box3 p{
    font-size: 0.938rem;
    margin: 4px 0;
}
.blog-container .box3 .blog-btn{
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: var(--text-color);
}
.blog-container .box3 .blog-btn i{
    padding: 5px;
    font-size: 20px;
}
.blog-container .box3 .blog-btn:hover{
    color: var(--main-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;
}

.social a{
    font-size: 24px;
    color: var(--bg-color);
    margin-right: 1rem;
}
.social a: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);
}
.cars-fon{
    position: relative;
    width: 100%;
    height: 1000px;
    position: fixed;
    top: 0;
    left: 0%;
    background: rgb(174, 216, 238);
    background: linear-gradient(270deg, rgba(174, 216, 238, 0.9) 0%, rgba(255, 255, 255, 0.9) 80%);
    z-index: 99999999;
    display: none;
}
.tvyalner{
 position: absolute;
 width: 75%;
 height: 600px;
 background-color: #ac08ac;
 left: 12.5%;
 top: 5%;
}
.tvyalner h2{
    text-shadow: 5px 5px 10px black;
    color: #fc0303;
    font-size: 5rem;
    position: absolute;
    right: 10%;
    top: 30%;
}
.tvyalner span{
    text-shadow: 5px 5px 10px black;
    color: #ffffff;
    font-size: 2.5rem;
    position: absolute;
    right: 40%;
    top: 45%;
}
.tvyalner p{
    width: 60%;
    height: 250px;
    box-shadow: 5px 5px 10px black;
    position: absolute;
    right: 2%;
    top: 50%;
    font-size: 1.5rem;
}
.img{
    position: absolute;
    top: 5%;
    width: 65%;
    height: 550px;
    box-shadow: 5px 5px 10px black;
}
#close{
    width: 6%;
    height: 50px;
    position: absolute;
    right: 1%;
    top: 1%;
    border-bottom: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 10px;
    font-size: 30px;
    text-align: center;
    box-sizing: border-box;
    padding: 5px;
}
#close:hover{
    background: var(--main-color);
    color: whitesmoke;
}

@media(max-width:1080px){
    #close{
        width: 10%;
    }
    .tvyalner{
        top: 0;
        left: 7.5%;
        width: 85%;
    }
    .tvyalner h2{
        right: 15%;
        top: 60%;
    }
    .tvyalner span{
        right: 15%;
        top: 55%;
    }
    .img{
        top: 10%;
        right: 10%;
        width: 80%;
        height: 400px;
    }
    .tvyalner p{
        right: 0;
        width: 100%;
        background-color: greenyellow;
        top: 70%;
        height: 200px;
    }
    .cars-container .box h2{
        width: 50%;
    }
    .container{
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
@media(max-width:991px){
    #close{
        width: 10%;
    }
    .tvyalner{
        top: 0;
        left: 7.5%;
        width: 85%;
    }
    .tvyalner h2{
        right: 15%;
        top: 60%;
    }
    .tvyalner span{
        right: 15%;
        top: 55%;
    }
    .img{
        top: 10%;
        right: 0;
        width: 80%;
        height: 400px;
    }
    .tvyalner p{
        right: 0;
        width: 100%;
        background-color: greenyellow;
        top: 70%;
        height: 200px;
    }
    .cars-container .box h2{
        width: 50%;
    }
    .home-text{
        margin-left: 40px;
    }
    .nav{
        padding: 15px 20px;
    }
    section{
        padding: 3rem 0 1rem;
    }
    .home-text{
        padding-left: 2rem;
    }
    .home-text h1{
        font-size: 2.1rem;
    }
}
@media(max-width:920px){
    #close{
        width: 10%;
    }
    .tvyalner{
        top: 0;
        left: 7.5%;
        width: 85%;
    }
    .tvyalner h2{
        top: 60%;
    }
    .tvyalner span{
        top: 55%;
    }
    .img{
        top: 10%;
        width: 100%;
        height: 400px;
    }
    .tvyalner p{
        width: 100%;
        background-color: greenyellow;
        top: 70%;
        height: 200px;
        right: 0;
    }
    .cars-container .box h2{
        width: 50%;
    }
#search-icon{
    color: var(--text-color);
  }
}
@media(max-width:768px){
    #close{
        width: 10%;
    }
    .tvyalner{
        top: 0;
        left: 7.5%;
        width: 85%;
    }
    .tvyalner h2{
        top: 60%;
    }
    .tvyalner span{
        top: 55%;
    }
    .img{
        top: 10%;
        width: 100%;
        height: 400px;
    }
    .tvyalner p{
        width: 100%;
        background-color: greenyellow;
        top: 70%;
        height: 200px;
        right: 0;
    }
    .btn2{
        top: 10%;
    }
    #menu-icon{
        display: block;
    }
 .search-box input{
     padding: 15px;
 }
 .nav{
     padding: 10px 0;
 }
 .navbar{
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-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.5s;
 }
 .navbar a{
     display: block;
     padding: 15px;
 }
 .navbar a:hover,
 .navbar .active{
     border-bottom: none;
     background: var(--main-color);
     color: var(--bg-color);
 }
 .navbar.active{
    clip-path: circle(144% at 0% 0%);
 }
 .blog-container .box{
     padding: 4px;
 }
 .cars-container .box h2{
     width: 50%;
 }
}
@media(max-width:727px){
    #close{
        width: 17%;
    }
    .tvyalner{
        top: 0;
        left: 7.5%;
        width: 85%;
    }
    .tvyalner h2{
        top: 60%;
    }
    .tvyalner span{
        top: 55%;
    }
    .img{
        top: 10%;
        width: 100%;
        height: 400px;
    }
    .tvyalner p{
        width: 100%;
        background-color: greenyellow;
        top: 70%;
        height: 200px;
        right: 0;
    }
    .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;
    }
}
@media(max-width:670px){
    .cars-container .box{
        height: 300px;
    }
    .footer-container{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
@media(max-width:360px){
    #close{
        width: 17%;
    }
    .tvyalner{
        top: 0;
        left: 2.5%;
        width: 95%;
    }
    .tvyalner h2{
        top: 40%;
    }
    .tvyalner span{
        top: 35%;
    }
    .img{
        top: 10%;
        width: 100%;
        height: 300px;
    }
    .tvyalner p{
        width: 100%;
        background-color: greenyellow;
        top: 50%;
        height: 200px;
        right: 0;
    }
    .search-box{
        width: 80%;
        left: 10%;
    }
    .btn2{
        top: 2.5%;
    }
    .cars-container .box{
        height: 200px;
    }
    .search-box input{
        padding: 11px;
    }
    .home{
        min-height:500px;
    }
    .home-text h1{
        font-size: 2rem;
    }
    .home-text p br{
        display: contents;
    }
}
