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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    scroll-behavior: smooth;

}

:root {
    --primary-color: #0000;
    --second-color: #BEB7A4;
    --text-color: #FFFFFC;
}

/* Responsive Base */
html {
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Nav Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #000;
    width: 100%;
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
}

nav .logo img {
    width: 100px;
    margin-left: 10px;
}

nav .navlinks ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-right: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

nav .navlinks ul li a {
    text-decoration: none;
    color: var(--text-color);
}

nav .navlinks ul li a:hover {
    color: #ffffff73;
}

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.menu-toggle span {
    background-color: var(--text-color);
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Home section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('/Assets/img/Car/car8-flou.jpg');
    background-size: cover;
    background-position: center;
}

.home .home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

.home .home-container .home-text p {
    font-size: 1rem;
    color: #ffffff;
    margin: 10px 0;
    text-align: center;
}

.home .home-container .home-text h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 20px;
    text-align: center;
}

.home .home-container .button button {
    margin-top: 30px;
    background-color: var(--second-color);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.home .home-container .button button a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    text-transform: uppercase;
}

/* Services section */
.services {
    background-color: #000;
    padding: 50px 0;
    height: auto;
}

.services .services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.services .services-container .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.services .services-container .row .card {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

/* Card */
.services .services-container .row .card {
    background-color: var(--second-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.services .services-container .row .card .img {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.services .services-container .row .card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.services .services-container .row .card .img p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

/* button */
.services .services-container .button button {
    margin-top: 50px;
    background-color: var(--second-color);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.services .services-container .button button a {
    text-decoration: none;
    color: #ffffff;
}

/* Slider loop  */
.partenaire {
    padding: 50px 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.partenaire h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.wrapper {
    width: 100%;
    margin-inline: auto;
    position: relative;
    height: 100px;
    margin-top: 3rem;
    overflow: hidden;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 80%,
            rgba(0, 0, 0, 0));
}

@keyframes scrollLeft {
    to {
        left: -200px;
    }
}

.item {
    width: 200px;
    height: 100px;
    border-radius: 6px;
    margin-left: 50px;
    position: absolute;
    left: max(calc(200px * 8), 100%);
    animation-name: scrollLeft;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.item1 {
    animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2 {
    animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3 {
    animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4 {
    animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5 {
    animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6 {
    animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7 {
    animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8 {
    animation-delay: calc(30s / 8 * (8 - 8) * -1);
}

.wrapper .item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease-in-out;
}

/* Footer section */
footer {
    margin-top: 50px;
    background: #000;
    color: #fff;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .row .top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

footer .row .top img {
    width: 100px;
}

footer .row .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    align-items: center;
}

/* footer icon part */
footer .row .bottom .column {
    flex: 1;
    min-width: 200px;
}

footer .row .bottom .column .icon {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

footer .footer-container .row .bottom .column .icon p a {
    color: #fff;
    text-decoration: none;
}

/* Footer Link part */
footer .row .bottom .column-links {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

footer .row .bottom .column-links ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .row .bottom .column-links ul li a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}

/* footer social media part */
footer .row .bottom .column .social-medias {
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .row .bottom .column .social-medias a {
    color: var(--text-color);
    font-size: 1.5rem;
}

/* copyright */
footer .footer-container .copy {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
}

footer .footer-container .copy p {
    color: var(--text-color);
    font-size: .8rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    nav .logo img {
        margin-left: 20px;
        width: 80px;
    }
    
    .menu-toggle {
        display: flex;
        margin-right: 20px;
    }
    
    nav .navlinks {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease-in-out;
        z-index: 100;
    }
    
    nav .navlinks.active {
        right: 0;
    }
    
    nav .navlinks ul {
        flex-direction: column;
        text-align: center;
        margin-right: 0;
    }
    
    nav .navlinks ul li {
        margin: 15px 0;
    }
    
    
    /* Home Section */
    .home .home-container .home-text h1 {
        font-size: 2rem;
    }
    
    /* Services */
    .services {
        padding: 30px 0;
    }
    
    .services .services-container .row {
        grid-template-columns: 1fr;
    }
    
   /* Footer */
   footer .row .top  {
    display: flex;
    justify-content: center;
}
footer .row .bottom {        
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

footer .row .top img {
    margin-left: 0;
}

footer .row .bottom .column .icon {
    margin-left: 0;
    justify-content: center;
}

footer .row .bottom .column-links ul {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}

footer .row .bottom .column-links ul li {
    margin: 5px 0;
}
}

@media (max-width: 480px) {
    
    /* Home Section */
    .home .home-container .home-text h1 {
        font-size: 1.5rem;
    }
    
    .home .home-container .home-text p {
        font-size: 0.9rem;
    }
    
    /* Services compact view */
    .services .services-container .row .card .img p {
        font-size: 20px;
    }
    
    /* Footer more compact */
    footer .row .bottom .column-links ul {
        align-items: center;
    }
}