
/*
 * TABLE OF CONTENTS
 * -----------------
 * 1. Global Imports
 * 2. Root Variables
 * 3. Global Styles
 * 4. Body Section
 * 5. Hero Section
 * 6. Customer Services Section
 * 7. Vehicule Section
 * 8. Reviews Section
 * 9. Contact us Section
 * 10. Partners Section
 * 11. Best Prices Section
 * 12. Footer Section
 * 13. Media Queries
 */


/* 1. Global Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* 2. Root Variables */
:root{
    --main-color:#E4C043;
    --secondary-color:#fff;
    --text-color:#000;
    --gray-color:#B9B2B2;
    --light-main-color:rgb(228,192,67, 0.14);
    --light-gray-color:#D9D9D9;
}

 /* 3. Global styles */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
/* Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px; 
    height: 10px; 
}

::-webkit-scrollbar-track {
    background: var(--light-main-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color); 
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}


html {
    scroll-behavior: smooth;
    scrollbar-color: var(--main-color) var(--light-main-color); 
    scrollbar-width: thin; 
    overflow-x: hidden;

}
select {
    -webkit-appearance: none;
    appearance: none;
  }
.logo{
    color: var(--main-color);
}

.elements_width{
    width: 1140px;
}

.subtitle {
    color: var(--gray-color);
}

.btn{
    background-color: var(--main-color);
    padding: 10px 20px;
    border-radius: 14px;
    outline: 0;
    border: 0;
    width: 200px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease; 
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
    border-radius: 14px;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:hover::before {
    left: 100%; 
}

section {
    padding: 60px 0;
}



 .dots:hover, .dots.active {
    background-color: var(--light-gray-color);
}


h2 span.highlight {
    color: var(--main-color);
}
h2 span.underline_text {
    border-bottom: 2px solid var(--main-color); 
}
h2 span.highlight {
    color: var(--main-color);
}

/* 4. Body Section */
body{
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
}

/* 5. Hero Section */
header{
    height: 70px;
    padding: 12px 0;
    transition: height 0.3s ease-in-out;
}

header.scrolled{
    height: 75px;
}

#mobileMenu {
    top: 0;
    right: 0;
    width: 75%;
    background-color: #fff;
    height: 100vh;
    position: fixed;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

 ul li a {
    position: relative;
    transition: color 0.4s ease-in-out;
    text-transform: uppercase;
  }
  
 ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; 
    width: 100%;
    height: 2px; 
    background-color: transparent; 
    transition: background-color 0.4s ease-in-out;
  }
  
  ul li a:hover::after {
    background-color: var(--main-color); 
  }

  .hero_section{
    background-image: url('../images/cars.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    text-align: center;
    height: 100vh
}

.hero_section::after{
    content:"";
    position:absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.hero_section .hero_child{
    max-width: 940px;
    position: relative;
    z-index: 2;
}
.reservation_box{
    border-radius: 14px;
}

.reservation_box select, .reservation_box input {
    border-radius: 14px;
    border: 1px solid var(--light-gray-color);
    padding: 8px 12px;
    width: 245px;
    outline: 0;
    font-size: 15px;
}

.reservation_box input::-webkit-datetime-edit {
    color: var(--gray-color)
}

/* 6. Customer Services Section */
.customer_service .service_box{
    background-color: var(--light-main-color);
    border-radius: 14px;
}

.customer_service .service_box i{
    color: var(--main-color);
    font-size: 40px;
}

/* 7. Vehicule Section */
.vehicule_section{
    background-color: var(--light-main-color);
}

.vehicule_section .vehicule_box{
    border-radius: 14px;
    background-image: url('../images/car1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.vehicule_section .vehicule_box::after{
    content: '';
    border-radius: 14px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    opacity: 0.4;
}

/* 8. Reviews Section */

.reviews_section {
    background-image: url('../images/reviews-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 70vh;
}


.reviews_section .review_box {
    background-color: #2F2F2F;
    border-radius: 14px;
}
.reviews_section .review_box .avatar{
    border-radius: 50px;
    width: 86px;
    height: 86px;
    background-repeat: no-repeat;
    background-size: cover;
}

.reviews_section .review_box .avatar[data-avatar="1"] {
    background-image: url('../images/smile2.jpg');
}

.reviews_section .review_box .avatar[data-avatar="2"] {
    background-image: url('../images/smile.jpg'); 
}

.reviews_section .review_box .avatar[data-avatar="3"] {
    background-image: url('../images/smile3.jpg'); 
}

.reviews_section .review_box .quote_style{
    right: 10px;
    top: 20px;
    color: var(--main-color);
    font-size: 70px;
    opacity: 0.4;
}
.reviews_section .stars{
    color: var(--main-color);
    font-size: 18px;
}

.reviews_section .quote_style_second{
    left: 10px;
    bottom:-10px;
    color: var(--main-color);
    font-size: 70px;
    opacity: 0.4;
    transform: rotate(180deg);
}

.reviews_section .review_box {
    display: none;
}
.reviews_section .review_box.active {
    display: block;
}

/* 9. Contact Us Section */

 .contact_form input, .contact_form textarea{
    background-color: var(--light-main-color);
    padding: 10px 16px;
    border-radius: 10px;
    width: 100%;
    outline:0;
    border: 0;
    font-size: 15px;
    color: var(--text-color);
}
.contact_section .contact_form input::placeholder{
    color: var(--gray-color);
}

/* 10. Partners Section */

.partners_section{
    background-color: rgb(217, 217, 217, 0.39);
}

.partners_section img{
    width: 150px;
    object-fit: contain;
}

/* 11. Best Prices Section */
.bestprices_section {
    background-color: var(--main-color);
}

.bestprices_section .black_btn{
    color: var(--secondary-color);
    background-color: var(--text-color);
}

/* 12. Footer Section */

footer {
    padding: 60px 0 30px 0;
}

footer p {
    color: var(--gray-color);
}

/* Go to the top button */
#goUpBtn{
    display: none;
    background-color: var(--text-color);
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}

/* Loading State */
.loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;  
    position: fixed;  
    width: 100%; 
    background-color: var(--secondary-color);
    top: 0;
    left: 0;
    z-index: 1000; 
}

.fa-car-side {
    font-size: 55px; 
    color: var(--main-color); 
    animation: drive 2s ease-in-out infinite;
}

@keyframes drive {
    0% {
        transform:  translateX(0);
    }
    50% {
        transform:  translateX(10%);
    }
    100% {
        transform:  translateX(0);
    }
}


/* Media Queries */

@media (max-width: 1240px) {

    html, body {
        width: 100%;
        overflow-x: hidden;
    } 
    .header, .elements_width {
        width: 90%;
    }

}
@media (max-width: 768px) {
    .header, .elements_width {
        width: 100%;
    }
    section{
        padding: 60px 16px;
    }
   
    #mobileMenu li a {
        width: 100%;
        text-align: left;
      }
    .hero_section .hero_child{
        width: 100%;
        max-width: 90%;
    }
    .reservation_box select, .reservation_box input {
        width: 100%;
        font-size: 14px;
    }
    .reviews_section{
        height: 100%;
    }
    footer {
        padding: 60px 16px 30px 16px;
    }
    
}

@media (min-width: 768px) {
    .header, .elements_width {
        width: 90%;
    }
    .reservation_box select, .reservation_box input {
        width: 245px;
    }
}
