@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
:root{
    --accent: #5d50fa;
    --black: #131313;
    --gray: #f9f9f9;
    --blue-gray: #f7f7fb;
}
html{
    scroll-behavior: smooth;
}
body{
    min-height: 100vh;
}
section{
    min-width: 100%;
    min-height: 100vh;
    color: var(--black);
}
/* NAVBAR */
nav{
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black);
    background-color: white;
    padding: 30px 50px;
    transition: all 0.1s ease-out;
    filter: drop-shadow(5px 5px 10px transition);
}
/* Navbar Sticky */
nav.sticky{
    background-color: white;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}
/* Navbar Brand */
.brand{
    text-decoration: none;
    transition: all ease-in-out 0.3s;
    color: var(--black);
}
.brand h1{
    font-size: 32px;
    font-weight: bold;
}
.accent{
    color: var(--accent);
}
.brand:hover{
    opacity: 0.8;
}
/* Navbar Menu */
.menu{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
}
.menu a{
    display: inline-block;
    position: relative;
    color: var(--black);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
}
.menu a::after{
    color: var(--accent);
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    border-radius: 5px;
    height: 0.1em;
    bottom: 0;
    left: 0;
    background: currentColor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.menu a:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
}
.btn{
    color: rgb(0, 0, 0);
    font-size: 25px;
    cursor: pointer;
    display: none;
}



.btn-2{
    width: 160px;
    height: 50px;
    font-size: 20px;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: white;
    transition: all ease-in-out 0.2s;
    cursor: pointer;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0, 0,2));
}
.btn-2:hover{
    background-color: var(--black);
    filter: drop-shadow(5px 5px 10px rgba(0,0,0, 0,5));
}

/* Hero Page Section */
.hero-page{
    margin-top: 200px;
    display: flex;
    padding: 0px 50px;
    justify-content: space-between;
    overflow: hidden;
}
.hero-headlines{
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 652px;
}
.hero-headlines h1{
    font-size: 48px;
    font-weight: bold;
}
.hero-headlines p{
    font-size: 20px;
}
.btn-hero{
    width: 276px;
    height: 62px;
    font-size: 24px;
}
.hero-page-img{
    max-width: 100%;
    height: auto;
}

/* About  */

.about{
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 110px;
}
.about-container{
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    background-image: url(img/about_img.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 540px;
}
.about-container h1{
    font-size: 40px;
    font-weight: bold;
    width: 494px;
    text-align: center;
    margin-top: 67px;
}
.about-subline{
    font-size: 24px;
    width: 822px;
    text-align: center;
    opacity: 0.7;
}
.about-info{
    display: flex;
    position: absolute;
    top: 300px;
    gap: 50px;
    flex-wrap: wrap;
}
.about-info-item{
    display: flex;
    flex-direction: column;
    background-color: white;
    color: var(--black);
    padding: 0px 35px 47px 17px;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2));
    width: 380px;
    height: 414px;
    transition: all ease-out 0.3s;
}
.about-info-item:hover{
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.4));  
}
.about-hr{
    width: 100%;
    position: absolute;
    border: 16px solid var(--accent);
    color: var(--accent);
    left: 0px;
}
.about-info-item img{
    width: 178px;
    height: 178px;
    margin-top: 45px;
}
.about-info-item  h5{
    font-size: 32px;
}
.about-info-item p{
    font-size: 16px;
    margin-top: 8px;
}

/* Collection */
.slider {
    position: relative;
    width: 100%;
    height: 55%;
    border-radius: 32px;
    overflow: hidden;
}

.slide {
    width: 100%;
    display: none;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
.button-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    margin-top: 10px;
}
/* Collection page section end-start */

.collection{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}
.collection h1{
    font-size: 64px;
    font-weight: bold;
}
.collection-container{
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 50px;
    justify-content: center;
}
.collection-car-item{
    width: 430px;
    height: 500px;
    background-color: var(--gray);
    display: flex;
    flex-direction: column;
    border-radius: 32px;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.15));
    transition: all 0.3 ease-out;
}
.collection-car-item:hover{
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.25));
}
.collection-car-item img{
    border-radius: 32px;
}
.car-info,
.car-price,
.car-location{
    display: flex;
}
.car-info{
    justify-content: space-between;
    align-items: center;
}
.car-price{
    gap: 4px;
    align-items: center;
}
.car-price h5{
    font-size: 24px;
}
.car-price h6{
    font-size: 20px;
    opacity: 0.6;
}
.car-location{
    gap: 8px;
    align-items: center;
    opacity: 0.3;
}
.car-location i{
    font-size: 28px;
}
.car-location h6{
    font-size: 20px;
}
.car-info-container h2{
    font-size: 28px;
    margin-bottom: 33px;
    margin-top: 5px;
}
.btn-car{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 32px;
    width: 172px;
    height: 50px;
    font-size: 16px;
}
.btn-car i{
    font-size: 16px;
}
.btn-car:hover{
    gap: 8px;
}
.btn-herocar{
    width: 276px;
    height: 60px;
    border-radius: 0px;
    font-size: 24px;
    background-color: var(--black);
    color: white;
    margin-top: 32px;
    transition: all 0.3s ease-out;
}
.btn-herocar i{
    font-size: 24px;
}
.btn-herocar:hover{
    background-color: white;
    color: var(--black);
}
.car-info-container{
    padding: 20px 30px 30px 30px;
}

/* Footer */

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 250px;
}
.callout{
    background-image: url(img/callout-img-desktop.png);
    position: absolute;
    top: -200px;
    margin: 0px 50px;
    height: 350px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.callout h2{
    font-size: 40px;
}
.callout-description{
    font-size: 18px;
    width: 886px;
    text-align: center;
}
.callout-buttons{
    display: flex;
    gap: 20px;
    margin-top: 25px;
}
.btn-callout{
    width: 240px;
    height: 60px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    background-color: white;
    color: black;
    border-radius: 8px;
}
.btn-callout:hover{
    background-color: var(--black);
    color: white;
    gap: 8px;
}
.btn-callout-black{
    background-color: var(--black);
    color: white;
}
.btn-callout-black:hover{
    background-color: white;
    color: var(--black);
}
.footer-bottom{
    width: 100%;
    height: 277px;
    background-color: var(--black);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 30px 100px;
}
.footer-brand{
    font-size: 40px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all ease-out 0.3s;
}
.footer-brand:hover{
    opacity: 0.6;
}
.socials{
    display: flex;
    gap: 18px;
}
.social-item{
    width: 50px;
    height: 50px;
    border-radius: 100%;
    border: 2px solid white;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.social-item i{
    color: white;
    font-size: 20px;
}
.fb,
.tele,
.ins{
    transition: all ease-in-out 0.4s;
}
.fb:hover{
    background-color: #1877F2;
}
.tele:hover{
    background-color: #24a1de;
}
.ins:hover{
    background: #833ab4;
    background: linear-gradient(to right, #833ab4,#fd1d1d,#fcb045);
}

/* Collection Page Section */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-whatsapp {
    background-color: var(--accent);
    color: white;
}

.btn-whatsapp:hover {
    background-color: var(--black);
}
/*hoho*/

#collection-page{
    margin-top: 90px;
    margin-bottom: 150px;
}
#collection-car-item-page{
    height: 520px;
}
.collection-category{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0px 50px;
    margin-top: 100px;
}
.collection-category h1{
    font-size: 48px;
}
.collection-category h2{
    font-weight: 500;
}
#collection-page-img{
    margin: 18px;
}
.btn-collection-page{
    width: 100%;
    border-radius: 12px;
    font-size: 20px;
}
.collection-footer{
    margin-top: 300px;
}

/* Contact Page */
.contact{
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(img/contact-img.png);
    background-repeat: no-repeat;
    background-size: cover;
}
.contact h1{
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.contact p{
    font-size: 24px;
    width: 700px;

}
.car-select{
    background-color: #efefef;
    width: 90vw;
    height: 153px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
}
.car-select-item{
    display: flex;
    flex-direction: column;
}
.car-select-item label{
    font-size: 24px;
}
.car-select-input{
    width: 270px;
    height: 45px;
    border-radius: 32px;
    padding: 10px;
    font-size: 16px;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
}
.contact-form input{
    height: 60px;
    border: none;
    border-bottom: 1px solid var(--black);
    font-size: 32px;
    color: var(--black);
    font-weight: 600;
    background-color: transparent;
    outline: none;
}
.contact-form button{
    width: 260px;
    height: 50px;
    border-radius: 0px;
}
.contact-footer{
    margin-top: 300px;
}

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-top: 10px;
}
.flag-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    padding: 0;
    transition: all 0.4s;
}
.flag-btn:hover{
    scale: 1.1;
}
.flag-btn img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

/* General RTL styles */
body.rtl {
    direction: rtl;
    text-align: right;
  }
  
  /* Navigation RTL adjustments */
  body.rtl .menu {
    margin-left: 0;
  }
  
  body.rtl .menu a {
    margin-right: 0;
    margin-left: 40px;
  }
  
  body.rtl .language-selector {
    margin-left: 0;
    margin-right: 20px;
  }
  
  /* Collection page RTL adjustments */
  body.rtl .collection-container {
    direction: rtl;
  }
  body.rtl .collection-car-item h2{
    text-align: left;
  }
  body.rtl .car-info {
    flex-direction: row-reverse;
  }
  
  body.rtl .car-location {
    left: 2px;
  }
  body.rtl .slider-btn.prev {
    left: auto;
    right: 10px;
  }
  body.rtl .collection-car-item h2{
    margin-left: 0;
  }
  body.rtl .slider-btn.next {
    right: auto;
    left: 10px;
  }
  
  /* Contact page RTL adjustments */
  body.rtl .contact-form {
    text-align: right;
  }
  
  body.rtl .car-select-item {
    text-align: right;
  }
  
  body.rtl .callout {
    text-align: right;
  }
  
  /* Footer RTL adjustments */
  body.rtl .footer-bottom {
    flex-direction: row-reverse;
  }
  
  body.rtl .socials {
    margin-left: 0;
  }


/* Laptop and Tablet */
@media (max-width: 1024px) and (min-width: 768px){
    nav{
        padding: 30px 20px;
    }
    .brand h1{
        font-size: 24px;
    }
    .menu{
        gap: 28px;
    }
    .menu a{
        font-size: 20px;
    }
    .nav .btn-2{
        width: 118px;
        height: 35px;
        font-size: 14px;
        font-weight: 500;
    }
    .hero-page{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-headlines{
        align-items: center;
        gap: 11px;
        margin-bottom: 30px;
    }
    /* About */
    .about{
        margin-bottom: 700px;
    }
    .about-subline{
        width: 567px;
    }
    .about-info{
        gap: 12px;
        justify-content: center;
        top: 350px;
    }
    .about-info-item{
        width: 358px;
        height: 450px;
    }
    /* Collection */
    .collection-container{
        gap: 12px;
    }
    .collection-car-item{
        width: 358px;
        height: 450px;
    }
    .collection-car-item h2{
        font-size: 24px;
    }
    /* Footer */
    .index-footer{
        margin-top: 300px;
    }
    .callout{
        padding: 50px;
        background-color: var(--accent);
        background-image: none;
    }
    .callout h2{
        font-size: 40px;
        width: 300px;
        text-align: center;
    }
    .callout-description{
        width: 100%;
        font-size: 20px;
    }
    /* Collection Page*/
    .collection-category{
        padding: 0px 20px;
    }
    #collection-car-item-page{
        height: 488px;
    }
    /* Contact Page*/
    .contact h1{
        font-size: 40px;
    }
    .contact p{
        width: 567px;
        text-align: center;
    }
    .car-select{
        width: 95vw;
        gap: 44px;
    }
    .car-select-input{
        width: 190px;
        height: 45px;
    }
}

@media (max-width: 767px) {
    /* NAVBAR */
    nav {
        padding: 15px 20px;
    }

    .brand h1 {
        font-size: 24px;
    }
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 110px;
        right: 40px;
        width: 80%;
        padding: 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.593));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        border: 1px solid var(--accent);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        font-size: 18px;
        margin-bottom: 10px;
        color: var(--accent);
        padding: 10px;
        border: 1px solid var(--accent);
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.033), rgba(255, 255, 255, 0.007));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    .btn {
        display: block;
    }

    /* Hero Page Section */
    .hero-page {
        margin-top: 100px;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
    }

    .hero-headlines {
        width: 100%;
        text-align: center;
    }

    .hero-headlines h1 {
        font-size: 32px;
    }

    .hero-headlines p {
        font-size: 16px;
    }

    .btn-hero {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }

    .hero-page-img {
        display: none;
    }

    /* About */
    .about {
       display: none;
    }

    .about-container {
        display: none;
    }

    .about-container h1 {
        display: none;
    }

    .about-subline {
        display: none;
    }

    .about-info {
        display: none;
    }

    /* Collection */
    .c{
        width: 50px;
    }
    .collection{
        margin-top: 40px;
    }
    .collection h1 {
        font-size: 32px;
    }

    .collection-container {
        gap: 20px;
    }

    .collection-car-item {
        width: 90%;
        height: auto;
    }
    .car-location{
        margin-left: 10px;
    }
    .car-location i{
        font-size: 20px;
    }
    .car-location h6{
        font-size: 17px;
    }
    /* Footer */
    footer {
        margin-top: 100px;
    }

    .callout {
        /* top: -100px;
        height: auto;
        padding: 20px;
        width: 95%; */
        display: none;
    }

    .callout h2 {
        font-size: 24px;
    }

    .callout-description {
        font-size: 14px;
        width: 100%;
    }

    .callout-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-callout {
        width: 50%;
        height: 50px;
        font-size: 16px;
        border-radius: 32px;
    }

    .footer-bottom {
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        justify-content: space-between;

    }

    .footer-brand {
        font-size: 24px;
        margin-bottom: 20px;
        left: 0;
    }

    .socials {
        justify-content: center;
    }
    .fb{
        background-color: #1877F2;
    }
    .ins{
        background: #833ab4;
        background: linear-gradient(to right, #833ab4,#fd1d1d,#fcb045);
    }
    .tele{
        background-color: 	#24A1DE;
    }

    /* Collection Page */
    #collection-page {
        margin-top: 60px;
    }

    .collection-category {
        padding: 0 20px;
    }

    .collection-category h1 {
        font-size: 32px;
    }

    /* Contact Page */
    .contact {
        margin-top: 80px;
        padding: 0 20px;
    }

    .contact h1 {
        font-size: 28px;
    }

    .contact p {
        font-size: 16px;
        width: 100%;
    }

    .car-select {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .car-select-item {
        width: 90%;
    }

    .car-select-input {
        width: 100%;
    }

    .contact-form input {
        font-size: 24px;
    }

    .contact-form button {
        width: 100%;
    }
    .language-selector{
        justify-content: space-evenly;
        align-items: center;
        display: flex;
    }
}
