@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

html {
    scroll-behavior: smooth;
}

ul,
li,
a {
    list-style: none;
    text-decoration: none;
    color: #000;
}

body {
    width: 100%;
    height: 100%;
}

.driver-wrapper {
    width: 100%;
    overflow-x: clip;
    font-family: "Montserrat", serif;
    max-width: 1350px;
    margin: 0 auto;
    min-width: 347px;
}



@media (min-width: 2000px) {
    .driver-wrapper {
        max-width: 1350px;
    }
}

@media (min-width: 1920px) {
    .driver-wrapper {
        max-width: 1600px;
    }
}


/* ================================= SCROLL BTN & WHATSAPP ICON START ================================= */

.whatsapp-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1;
    display: flex;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.pulse {
    position: fixed;
}

.pulse:after {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 40px;
    border: 3px solid #4caf50;
    position: absolute;
    top: -3px;
    left: -3px;
    animation: pulse 2s ease 0s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 0;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}


.scroll-button-2 {
    position: fixed;
    bottom: 107px;
    right: 32px;
    background: radial-gradient(circle at center, #0089b5 0%, white 0%);
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #0089b5;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-button-2 img {
    width: 40px;
    height: 40px;
}


.roll-in-blurred-right {
    -webkit-animation: roll-in-blurred-right 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation: roll-in-blurred-right 0.65s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@-webkit-keyframes roll-in-blurred-right {
    0% {
        -webkit-transform: translateX(1000px) rotate(720deg);
        transform: translateX(1000px) rotate(720deg);
        -webkit-filter: blur(50px);
        filter: blur(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes roll-in-blurred-right {
    0% {
        -webkit-transform: translateX(1000px) rotate(720deg);
        transform: translateX(1000px) rotate(720deg);
        -webkit-filter: blur(50px);
        filter: blur(50px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0) rotate(0deg);
        transform: translateX(0) rotate(0deg);
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

/* ======================= HEADER ==================== */
.header-container {
    background: #fcfdff;
    width: 100%;
    position: relative;
    transition: all 0.5s ease-in-out;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    max-width: 1350px;
    margin: 0 auto;
}

.header-container.scroll-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .driver-logo {
    height: 70px;
    width: 70px;
}

header .header-btn {
    padding: 10px 10px;
    border-radius: 5px;
    background: #404afd;
    color: white;
    border: none;
    box-shadow: 2px 2px 4px 0px rgba(0, 5, 109, 0.1);
    font-size: 19px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.4s ease-in-out;
}

.sidebar .sidebar-btn {
    padding: 10px 12px;
    border-radius: 5px;
    background: #404afd;
    color: white;
    border: none;
    box-shadow: 2px 2px 4px 0px rgba(0, 5, 109, 0.1);
    font-size: 19px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.4s ease-in-out;
}

header .header-btn:hover,
.sidebar .sidebar-btn:hover {
    border: 1px solid #404afd;
    background: #fff;
    color: #404afd;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

header .header-link:hover {
    color: blue;
}

header .header-link.active {
    color: blue;
    font-weight: bold;
}

header .header-link {
    transition: all .3s ease-in-out;
}


header .sidebar-links a:hover {
    color: blue;
}

header .sidebar-links a.active {
    color: blue;
    font-weight: bold;
}

header .sidebar,
header .menu-toggle,
header .overlay {
    display: none;
}

/* ============ MEDIUM LAPTOP SCREEN =========== */
@media (min-width: 1025px) and (max-width: 1280px) {
    .driver-wrapper {
        padding: 2rem;
    }

    header {
        justify-content: space-between;
        padding: 7px 48px;
    }
}

@media (min-width: 767px) and (max-width: 1024px) {
    header {
        justify-content: space-between;
        padding: 16px 10px;
    }
}

/* IPAD PRO */
@media only screen and (max-width: 1024px) and (device-height: 1366px) {
    header {
        justify-content: space-between;
        padding: 29px 10px;
    }
}


@media only screen and (device-width: 1024px) and (device-height: 600px) {
    .driver-wrapper {
        padding: 0.7rem 2rem;
    }

    header {
        justify-content: space-between;
        padding: 21px 48px;
    }
}

@media only screen and (device-width: 1280px) and (device-height: 800px) {
    header {
        justify-content: space-between;
        padding: 29px 48px;
    }
}

@media (min-width: 769px) {
    .overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }
}

@media (max-width: 670px) {
    header .driver-logo {
        height: 60px;
        width: 60px;
    }

    header ul,
    header .header-btn {
        display: none;
    }

    .sidebar .sidebar-links {
        display: flex;
        align-items: flex-start;
        padding: 27px;
        flex-direction: column;
        position: relative;
        z-index: 999;
    }

    .sidebar-links .close-sidebar {
        position: absolute;
        top: 20px;
        left: 20px;
        cursor: pointer;
        font-size: 30px;
    }

    .sidebar-links .close-sidebar:hover {
        color: #404afd;
    }
    
    header .sidebar {
        display: flex;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: #f4f8f9;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }

    header .sidebar.open {
        right: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 99;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-out, visibility 0s linear 0.3s;
    }


    .overlay.active {
        display: block;
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease-out, visibility 0s linear 0s;
    }

    header .menu-toggle {
        display: flex;
        position: absolute;
        top: 7px;
        right: 13px;
        font-size: 44px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-toggle:hover {
        color: #404afd;
    }
}


/* ================ HERO SECTION =================== */
.driver-wrapper .description-section {
    display: flex;
    justify-content: space-between;
    max-width: 1350px;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.driver-wrapper .description-section .driving-image img {
    width: 500px;
    height: 605px;
    border-radius: 10px;
}

.driver-wrapper .description-section .driver-description {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-end;
}



.driver-wrapper .description-section .driver-description h1 {
    color: #252525;
    font-size: 57px;
    font-style: normal;
    font-weight: 600;
    line-height: 102.236%;
}

.driver-wrapper .description-section .driver-description p {
    width: 560px;
    color: #313131;
    font-size: 23px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.driver-wrapper .description-section .driver-description button {
    padding: 10px 25px;
    border-radius: 5px;
    background: #404afd;
    color: white;
    border: none;
    font-size: 19px;
    box-shadow: 2px 2px 4px 0px rgba(0, 5, 109, 0.1);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.4s ease-in-out;
    margin-bottom: auto;
}

.driver-wrapper .description-section .driver-description button:hover {
    border: 1px solid #404afd;
    background: #fff;
    color: #404afd;
}

.driver-wrapper .description-section .driver-description .driver-qualities {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 37px;
}

.driver-qualities .quality {
    display: flex;
    align-items: center;
}


@media (min-width: 1600px) {
    .driver-wrapper .description-section {
        margin-top: 2rem;
    }
}

@media (max-width: 1100px) {
    .driver-wrapper .description-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .driver-wrapper .description-section .driver-description p {
        width: 100%;
    }

}

@media only screen and (max-width: 1024px) and (device-height: 1366px) {
    .driver-wrapper .description-section .driver-description h1 {
        font-size: 44px;
    }
}

@media (min-width: 800px) and (max-width: 910px) {
    .driver-wrapper .description-section .driving-image {
        width: 100%;
    }

    .driver-wrapper .description-section .driving-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .driver-wrapper .description-section .driving-image {
        width: 100%;
    }

    .driver-wrapper .description-section .driving-image img {
        width: 100%;
        height: auto;
    }

}


@media (max-width: 768px) {
    .driver-wrapper .description-section {
        align-items: flex-start;
        gap: 2rem;
    }

    .driver-wrapper .description-section .driver-description h1,
    .driver-wrapper .description-section .driver-description p {
        width: 100%;
    }

    .driver-qualities .quality {
        flex-direction: column;
    }

    .driver-wrapper .description-section .driving-image {
        width: 100%;
    }

    .driver-wrapper .description-section .driving-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 590px) {

    .driver-wrapper .description-section .driver-description {
        margin-top: 1rem;
    }

    .driver-wrapper .description-section .driver-description h1 {
        font-size: 29px;
    }

    .driver-wrapper .description-section .driver-description p {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .driver-wrapper .description-section .driver-description p {
        font-size: 16px;
    }

    .driver-wrapper .description-section .driver-description .driver-qualities {
        gap: 24px;
    }
}

/* =============== ABOUT ME SECTION ===============  */
.about-me-section {
    background: #f8f8fd;
    border-radius: 10px;
    max-width: 1350px;
    margin: 2rem auto;
    padding: 1rem;
    background-image: url(./assets/img/card-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
}

/* sections animation trigger on view */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}


.about-me-section .about-me {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 4rem 0;
    gap: 9rem;
}

.about-me-section .about-me .about-imgs {
    position: relative;
}

.about-me-section .about-me .about-imgs .main-img {
    width: 389px;
    border-radius: 10px;
}

.about-me-section .about-me .about-imgs .second-img {
    position: absolute;
    top: 13%;
    right: -25%;
    height: 359px;
    width: 201px;
    border-radius: 10px;
    box-shadow: -10px 4px 30px -8px #00000085;
    border: 1px solid #fff;
}

.about-me-section .about-me h2 {
    color: #252525;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 102.236%;
    margin-bottom: 1.5rem;
}

.about-me-section .about-me p {
    width: 560px;
    color: #313131;
    font-family: Montserrat;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.about-me-section .about-me p span {
    color: #404AFD;
    font-weight: 700;
}


@media (max-width: 1140px) {
    .about-me-section .about-me {
        flex-direction: row;
        gap: 4rem;
    }

    .about-me-section .about-me p {
        width: 100%;
        font-size: 19px;
    }

    .about-me-section .about-me .about-imgs .second-img {
        right: -7%;
    }
}

@media (min-width: 800px) and (max-width: 1200px) {
    .about-me-section .about-me {
        align-items: center;
    }

    .about-me-section .about-me h2 {
        font-size: 30px;
    }
}


@media (max-width:820px) {
    .about-me-section .about-me {
        flex-direction: column-reverse;
    }

    .about-me-section .about-me .about-imgs {
        width: 100%;
    }

    .about-me-section .about-me .about-imgs .main-img {
        width: 100%;
        height: 100%;
    }

    .about-me-section .about-me .about-imgs .second-img {
        top: 22%;
        right: 1%;
        height: 400px;
        width: 250px;
    }
}


@media (max-width: 768px) {
    .about-me-section .about-me {
        flex-direction: column-reverse;
    }

    .about-me-section .about-me .about-imgs {
        width: 100%;
    }

    .about-me-section .about-me .about-imgs .main-img {
        width: 100%;
        height: 100%;
    }

    .about-me-section .about-me .about-imgs .second-img {
        top: 22%;
        right: 1%;
    }

    .about-me-section .about-me p {
        width: 100%;
    }
}

@media (max-width: 590px) {
    .about-me-section .about-me {
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .about-me-section .about-me h2 {
        font-size: 28px;
    }

    .about-me-section .about-me p {
        font-size: 20px;
    }


    .about-me-section .about-me .about-imgs .second-img {
        top: 17%;
        right: 0%;
        height: 280px;
        width: 160px;
    }
}

@media (max-width: 375px) {
    .about-me-section .about-me h2 {
        font-size: 28px;
    }

    .about-me-section .about-me p {
        font-size: 16px;
    }

}

/* ============== CAR CARDS SECTION ============== */
.car-cards-section {
    max-width: 1350px;
    margin: 0 auto;
    padding: 1rem;
}

.cards-info {
    margin-bottom: 3rem;
    max-width: 800px;
}

.cards-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.cards-info p {
    color: #666;
    line-height: 1.6;
}

.car-cards {
    display: flex;
    align-items: self-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.card-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(100% - 1rem);
    display: flex;
    flex-direction: column;
}


.card-card .card-cars {
    display: flex;
    transform-style: preserve-3d;
    justify-content: space-around;
    flex-wrap: wrap;
}


.card-card span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}


.card-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.details-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.personne,
.type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c7f8c;
    white-space: nowrap;
}

.card-card .card-details button {
    background: #404afd;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
    margin-left: auto;
    text-transform: capitalize;
}

.card-card .card-details button a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

a .card-card .card-details button:focus {
    background: #fbfaff;
    color: rgb(211, 206, 206);
}

.card-card .card-details button:hover {
    background: #484ebb;
}

@media (max-width: 1140px) {
    .cards-info h2 {
        font-size: 2rem;
    }

    .cards-info p {
        font-size: 24px;
    }
}

@media (min-width: 800px) and (max-width: 920px) {
    .card-details {
        justify-content: space-around;
    }

    .card-card .card-details button {
        margin-left: inherit;
    }
}


@media (max-width: 768px) {
    .car-cards {
        flex-direction: column;
        align-items: center;
    }

    .card-card:nth-of-type(1),
    .card-card:nth-of-type(2) {
        width: calc(100%);
    }
}

@media (max-width: 590px) {
    .car-cards-section {
        margin-bottom: 2rem;
    }

    .card-card .card-details button {
        margin-left: inherit;
    }

    .cards-info h2 {
        font-size: 24px;
    }

    .cards-info p {
        font-size: 20px;
        line-height: normal;
    }

    .card-card .card-cars {
        gap: 20px;
    }

    .card-card .card-cars img {
        width: 100%;
    }

}

@media (max-width: 375px) {
    .cards-info p {
        font-size: 16px;
    }
}

/* ======================= FOOTER ===================== */
.footer-container {
    margin: 0 auto;
}

footer {
    background: #F8F8FD;
    padding: 2.5rem 10rem;
    width: 100%;
}

.footer-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1350px;
    margin: 0 auto;
}


footer .left-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .left-content h1 {
    text-transform: uppercase;
}

footer .left-content p span {
    color: #404AFD;
    font-weight: 700;
}

footer .left-content p {
    width: 500px;
    color: #252525;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

footer .middle-content {
    display: flex;
}

footer .middle-content .footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer .middle-content .footer-links a {
    color: #000;
    white-space: nowrap;
    transition: all .4s ease-in-out;
}

footer .middle-content .footer-links a:hover {
    color: blue;
}

footer .middle-content .footer-links a.active {
    color: blue;
    font-weight: bold;
}

footer .right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .social-links .link {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .social-links .link a {
    transition: all .4s ease-in-out;
}

footer .social-links .link a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .4s ease-in-out;
}

footer .social-links .link svg path {
    transition: fill 0.3s ease;
}

/* facebook */
footer .social-links .facebook:hover svg path {
    fill: #1877F2;
}

/* instagram */
footer .social-links .instagram:hover svg path {
    fill: url(#instagramGradient);
}

/* instagram */
footer .social-links .x:hover svg path {
    fill: #000;
}

footer .copyright {
    max-width: 1350px;
    margin: 0 auto;
}

footer .copyright p {
    font-size: small;
    margin-top: 2rem;
}

footer .copyright p .our-web:hover {
    text-decoration: underline !important;
}

/* ============ MEDIUM LAPTOP SCREEN =========== */
@media (min-width: 1025px) and (max-width: 1280px) {
    footer {
        padding: 2.5rem 3rem;
    }
}

@media only screen and (device-width: 1280px) and (device-height: 800px) {
    footer {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 1230px) {
    footer {
        padding: 2.5rem;
    }

    footer .copyright {
        text-align: center;
    }
}

@media (max-width: 590px) {
    footer {
        padding: 2rem;
    }

    footer .left-content p {
        width: 100%;
    }

    footer .middle-content .footer-links {
        gap: 13px;
    }

    footer .copyright {
        text-align: center;
        padding-top: 1rem;
    }
}

@media (max-width: 390px) {
    footer {
        padding: 1rem;
    }

    footer .middle-content .footer-links {
        flex-wrap: wrap;
    }
}