
:root {

    --primary-color: #6a9b0c;

    --highlight-color: #91a830;

    --header-bg-color: #f7f7f7;

    --text-color: #333;

    --white-color: #fff;

    --black-color: #000;

}



/* Base Styles */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: 'Cairo', sans-serif;

    color: var(--text-color);

    line-height: 1.6;

    background-color: var(--white-color);

}



.container {

    max-width: 100%;
    padding: 0 8px;
    margin: 0 auto;


}



/* Custom Button Style */

.btn {

    display: inline-block;

    padding: 12px 25px;

    border-radius: 50px;

    text-decoration: none;

    font-size: 1rem;

    font-weight: bold;

    text-align: center;

    transition: all 0.3s ease;

}



.btn-primary {

    background-color: var(--primary-color);

    color: var(--white-color);

    border: 2px solid var(--primary-color);

}



.btn-primary:hover {

    background-color: transparent;

    color: var(--primary-color);

}

/* Styling for the section divider line */
.section-divider {
    border: none;             /* Removes the default browser border, as we'll use a background gradient */
    height: 1px;              /* Sets the height of the line */
    margin-top: 10px;         /* Sets top margin */
    margin-bottom: 10px;      /* Sets bottom margin */
    margin-left: auto;        /* Centers the line horizontally */
    margin-right: auto;       /* Centers the line horizontally */
    width: calc(100% - 60px); /* Sets the line's width to be 60px less than the container's width (30px on each side) */
    max-width: 800px;         /* (Optional) Limits the maximum width of the line for large screens */

    /* Gradient background for the line */
    background: linear-gradient(to right, 
                #f0f0f0, /* Light gray at the start (left) */
                var(--primary-color), /* Your primary green color in the middle */
                #f0f0f0  /* Light gray at the end (right) */
            );
    /* You might need to adjust the percentage stops for the gradient if you want more control */
    /* Example with stops:
    background: linear-gradient(to right, 
                #f0f0f0 0%,         // Light gray at 0%
                #f0f0f0 20%,        // Light gray up to 20%
                var(--primary-color) 50%, // Green exactly at 50% (middle)
                #f0f0f0 80%,        // Light gray starting from 80%
                #f0f0f0 100%        // Light gray at 100%
            );
    */
}


/* Header and Navbar Styles */

.header {

    background-color: var(--white-color);

    padding: 15px 0;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

}



.header .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo img {

    height: 40px;

}



.navbar {

    display: flex;

    align-items: center;

    transition: all 0.3s ease-in-out;

}



.nav-links {

    list-style: none;

    display: flex;

    gap: 30px;

    margin: 0;

    padding: 0;

}



.nav-link {

    font-size: 1rem;

    color: var(--black-color);

    text-decoration: none;

    transition: color 0.3s;

}



.nav-link:hover {

    color: var(--primary-color);

}



.header-buttons {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-right: 30px;

}



.header-buttons .btn {

    padding: 10px 20px;

}



#lang-toggle {

    background: none;

    border: none;

    font-size: 1rem;

    cursor: pointer;

    color: var(--text-color);

}



/* Mobile Menu Styles */

.menu-toggle {

    display: none; /* Hide by default on desktop */

    background: none;

    border: none;

    cursor: pointer;

}



.hamburger-icon {

    display: block;

    width: 25px;

    height: 3px;

    background-color: var(--black-color);

    position: relative;

    transition: all 0.3s ease-in-out;

}



.hamburger-icon::before,

.hamburger-icon::after {

    content: '';

    position: absolute;

    width: 100%;

    height: 100%;

    background-color: var(--black-color);

    transition: all 0.3s ease-in-out;

}



.hamburger-icon::before {

    top: -8px;

}



.hamburger-icon::after {

    top: 8px;

}



/* Close button for the mobile menu */

.close-menu {

    position: absolute;

    top: 25px;

    right: 25px;

    background: none;

    border: none;

    cursor: pointer;

    display: none; /* Initially hidden */

}



.close-icon {

    display: block;

    width: 25px;

    height: 3px;

    background-color: var(--black-color);

    transform: rotate(45deg);

    position: relative;

}



.close-icon::before {

    content: '';

    position: absolute;

    width: 100%;

    height: 100%;

    background-color: var(--black-color);

    transform: rotate(90deg);

}



/* Hero Section */

.hero-section {

    position: relative;

    height: 70vh; /* Adjust height as needed */

    overflow: hidden;

}



.hero-banner-container {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

}



.hero-banner {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    opacity: 0;

    transition: opacity 1s ease-in-out;

}



.hero-banner.active {

    opacity: 1;

}



.hero-content {

    position: relative;

    z-index: 10;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    height: 100%;

    color: var(--white-color);

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Helps with text visibility on varying backgrounds */

}



.hero-content h1 {

    font-size: 4rem;

    margin-bottom: 20px;

}



.hero-content p {

    font-size: 1.5rem;

    max-width: 600px;

    margin-bottom: 40px;

}



.app-buttons img {

    height: 60px;

    margin: 0 10px;

    transition: transform 0.3s;

}



.app-buttons img:hover {

    transform: scale(1.1);

}





/* How It Works Slogan */

.how-it-works-slogan {

    text-align: center;

    margin-bottom: 50px;

    padding: 20px;

}



.how-it-works-slogan h2 {

    font-size: 2rem;

    color: var(--primary-color);

    margin-bottom: 10px;

}



.how-it-works-slogan p {

    font-size: 1.2rem;

    color: var(--text-color);

    max-width: 600px;

    margin: 0 auto;

}



/* How It Works Section */

.how-it-works-section {

    padding: 80px 0;

    background-color: var(--white-color);

    text-align: center;

}



.how-it-works-layout {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 50px;

}



/* Add some margin to the how-it-works-title to separate it from the new slogan */

.how-it-works-layout .section-title {

    margin-top: 0;

    margin-bottom: 30px;

}



.how-it-works-column {

    flex: 1;

}



.phone-column {

    display: flex;

    justify-content: center;

}



.phone-image {

    max-width: 800px; /* تم زيادة الحجم هنا */

    width: 200%;

    height: auto;

}



.content-column {

    text-align: right;

    direction: rtl; /* For RTL support */

}



.steps-details-container {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    margin-top: 30px;

}



.stages-image-column {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}



.stages-image-column img {

    height: 300px; /* Adjust as needed to match the text */

}



.steps-text-column {

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    height: 300px; /* Make sure this height matches the stages image */

}



.step-item {

    text-align: right;

}



.step-item h3 {

    font-size: 1.5rem;

    margin-bottom: 5px;

    color: var(--primary-color);

}



.step-item p {

    color: var(--text-color);

    line-height: 1.7;

}



.app-buttons-bottom {

    margin-top: 40px;

    display: flex;

    justify-content: flex-end; /* Align buttons to the right */

    gap: 15px;

}



.app-buttons-bottom img {

    height: 50px;

}



/* LTR Adjustments for "How it works" */

html[dir='ltr'] .content-column {

    text-align: left;

    direction: ltr;

}



html[dir='ltr'] .steps-details-container {

    flex-direction: row;

}



html[dir='ltr'] .app-buttons-bottom {

    justify-content: flex-start;

}



html[dir='ltr'] .step-item {

    text-align: left;

}



/* Our Fleet Section */

.fleet-section {

    padding: 80px 0;

    text-align: center;

    background-color: var(--light-bg-color);

}



.fleet-section .section-title {

    margin-bottom: 10px;

    color: var(--primary-color);

}



.fleet-section .section-description {

    font-size: 1.1rem;

    color: var(--text-color);

    margin-bottom: 50px;

}



.fleet-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

}



.car-card {

    background-color: var(--white-color);

    border: 1px solid #ccc; /* Added border for definition */

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Lighter shadow */

    transition: transform 0.3s;

}



.car-card:hover {

    transform: translateY(-10px);

}



.car-image img {

    width: 100%;

    height: 180px;

    object-fit: cover;

}



.car-details {

    padding: 20px;

    text-align: right;

}



.car-details h3 {

    font-size: 1.3rem;

    color: var(--black-color);

    margin-bottom: 15px;

}



.car-details ul {

    list-style: none;

    padding: 0;

    text-align: right; /* Align to the right for RTL */

}



.car-details li {

    font-size: 0.95rem;

    color: var(--text-color);

    margin-bottom: 8px;

    display: flex;

    align-items: center;

    justify-content: flex-end; /* Align icon and text to the right */

    position: relative;

    padding-right: 25px; /* Space for the checkmark */

}



.car-details li::before {

    content: '✓'; /* Unicode checkmark character */

    color: #acc543; /* Green color from the image */

    font-size: 1.2rem;

    font-weight: bold;

    position: absolute;

    right: 0; /* Position to the far right */

}



/* LTR Adjustments for "Our Fleet" */

html[dir='ltr'] .car-details {

    text-align: left;

}



html[dir='ltr'] .car-details ul {

    text-align: left;

}



html[dir='ltr'] .car-details li {

    justify-content: flex-start; /* Align to the left */

    padding-left: 25px;

    padding-right: 0;

}



html[dir='ltr'] .car-details li::before {

    left: 0; /* Position to the far left */

    right: auto;

}



/* Why inFlex Section */

.why-inflex-section {

    padding: 80px 0;

    text-align: center;

    background-color: var(--white-color);

}



.why-inflex-section .section-title {

    margin-bottom: 10px;

    color: var(--primary-color);

}



.why-inflex-section .section-description {

    font-size: 1.1rem;

    color: var(--text-color);

    margin-bottom: 50px;

}



.why-inflex-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

}



.benefit-card {

    background-color: var(--light-bg-color);

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s;

}



.benefit-card:hover {

    transform: translateY(-10px);

}



.benefit-image img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}



.benefit-details {

    padding: 20px;

}



.benefit-details h3 {

    font-size: 1.3rem;

    color: var(--black-color);

    margin-bottom: 10px;

}



.benefit-details p {

    font-size: 1rem;

    color: var(--text-color);

    line-height: 1.6;

}



/* Become a Driver Section */
.become-driver-section {

    padding: 80px 0;

    background-color: var(--light-bg-color);
    background-image: url('../images/come_driver.png');

    background-size: cover;

    background-position: center;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    min-height: 500px;

}



.become-driver-layout .content-column {

    text-align: center;

    color: #fff;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);

}

.driver-benefits li img {

    filter: brightness(0) invert(1);

}

.driver-benefits ul {
    list-style-type: none; 
    padding: 0;
}

.driver-benefits li::before {

    content: '✓';

    color: var(--primary-color);

    font-size: 1.2rem;

    font-weight: bold;

    margin-left: 10px;

}



.become-driver-layout .content-column .btn {

    display: inline-block;

    padding: 12px 30px;

    background-color: var(--primary-color);

    color: var(--white-color);

    text-decoration: none;

    border-radius: 5px;

    transition: background-color 0.3s;

    margin-top: 70px;

}


.become-driver-layout .content-column .btn:hover {

    background-color: #8bb32c;

}



/* LTR Adjustments for "Become a Driver" */

html[dir='ltr'] .become-driver-layout {

    flex-direction: row-reverse;

}



html[dir='ltr'] .become-driver-layout .content-column {

    text-align: left;

}



html[dir='ltr'] .driver-benefits ul {

    text-align: left;

}



html[dir='ltr'] .driver-benefits li::before {

    margin-right: 10px;

    margin-left: 0;

}



/* Footer Section */

.footer {

    background-color: #333;

    color: #fff; /* Set all text color inside the footer to white */

    padding: 60px 0 20px;

}



.footer .footer-content {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    gap: 30px;

    text-align: right;

    padding-bottom: 30px;

    border-bottom: 1px solid #555;

}



.footer-column {

    flex: 1;

    min-width: 200px;

}



.footer-logo {

    max-width: 150px;

    margin-bottom: 20px;

}



.footer-column h4 {

    font-size: 1.2rem;

    color: var(--primary-color);

    margin-bottom: 20px;

}



.footer-column ul {

    list-style: none;

    padding: 0;

}



.footer-column ul li {

    margin-bottom: 10px;

}



.footer-column a {

    color: #fff;

    text-decoration: none;

    transition: color 0.3s;

}



.footer-column a:hover {

    color: var(--primary-color);

}



.footer-contact p {

    margin: 0 0 10px;

    color: #fff; /* Ensure paragraph text color is white */

}



.social-icons a {

    display: inline-block;

    width: 25px; /* Adjust size as needed */

    height: 25px; /* Adjust size as needed */

    margin-left: 15px; /* Adjust spacing */

}



.social-icons img {

    width: 150%;

    height: 150%;

    object-fit: contain;

}



.store-icons img {

    height: 40px;

    margin-bottom: 10px;

    margin-right: 10px;

}



.footer-bottom {

    text-align: center;

    margin-top: 20px;

    font-size: 0.9rem;

}



/* LTR Adjustments for "Footer" */

html[dir='ltr'] .footer-content {

    text-align: left;

}



html[dir='ltr'] .social-icons a {

    margin-left: 0;

    margin-right: 15px;

}



html[dir='ltr'] .store-icons img {

    margin-right: 0;

    margin-left: 10px;

}



/* --------------------------------------------------------------------------------------------------------------------------------- */

/* ** NEW RESPONSIVE STYLES FOR MOBILE - START HERE ** */

/* --------------------------------------------------------------------------------------------------------------------------------- */



@media (max-width: 992px) {

    /* Header Responsive Styles */

    .menu-toggle {

        display: block;

        z-index: 100;

    }



    .navbar {

        position: fixed;

        top: 0;

        right: -100%;

        height: 100vh;

        width: 250px;

        background-color: var(--white-color);

        flex-direction: column;

        justify-content: flex-start;

        align-items: flex-end;

        padding: 50px 0;

        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);

        z-index: 99;

    }



    .navbar.active {

        right: 0;

    }



    .close-menu {

        display: block;

    }



    .nav-links {

        flex-direction: column;

        text-align: right;

        width: 100%;

    }



    .nav-links li {

        width: 100%;

        padding: 15px 20px;

    }

    

    .nav-links li:hover {

        background-color: var(--light-bg-color);

    }

    

    .header-buttons {

        flex-direction: column;

        width: 100%;

        margin-right: 0;

        padding: 20px;

        gap: 20px;

    }



    /* Hero Section Responsive Styles */

    .hero-content {

        justify-content: center;

        text-align: center;

        height: 100%;

    }



    .hero-content h1 {

        font-size: 2.5rem;

    }



    .hero-content p {

        font-size: 1.2rem;

    }

    

    /* How It Works Section Responsive Styles */

    .how-it-works-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;

    }



    .content-column {

        text-align: center;

        padding: 0;

    }



    .steps-details-container {

        flex-direction: row;
        padding:  18px;  
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;

    }



    .stages-image-column {

        width: 80px;

        flex-shrink: 0;

    }



    .stages-image-column img {

        max-width: 70%;

        height: auto;

    }



    .steps-text-column {

        text-align: right;

    }

    html:lang(en) .steps-text-column {

        text-align: left;

    }



    .step-item {

        text-align: right;

    }

    html:lang(en) .step-item {

        text-align: left;

    }



    .app-buttons-bottom {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-direction: column; 
        align-items: center; 

    }

   

    /* Our Fleet Section Responsive Styles */

    .fleet-grid {

        grid-template-columns: 1fr;

    }

    

    .car-card {

        max-width: 300px;

        margin: 0 auto;

    }



    /* Why inFlex Section Responsive Styles */

    .why-inflex-grid {

        grid-template-columns: 1fr;

    }



    /* Become a Driver Section Responsive Styles */
    .become-driver-layout {
       flex-direction: column-reverse;
       text-align: center;
       align-items: center;
    }


    /* Footer Section Responsive Styles */

    .footer .footer-content {

        flex-direction: column;

        text-align: center;

        align-items: center;

        gap: 40px;

    }



    .footer-column {

        min-width: unset;

        width: 100%;

    }

    

    .social-icons {
        justify-content: center;
        display: flex;
        gap: 10px;

    }

    .store-icons{
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-direction: column; 
        align-items: center; 
     }



    .store-icons img {

        height: 40px;

        margin: 0;

    }

}
