:root {
    --primary-color: #6a9b0c;
    --highlight-color: #91a830;
    --header-bg-color: #f7f7f7;
    --light-bg-color: #f9f9f9;
    --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);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

/* 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: linear-gradient(135deg, var(--highlight-color), var(--primary-color));
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(145, 168, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    margin: 10px auto;
    width: calc(100% - 60px);
    max-width: 800px;
    background: linear-gradient(to right, #f0f0f0, var(--primary-color), #f0f0f0);
}

/* Header and Navbar */
.header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.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: 15px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(106, 155, 12, 0.1);
    transform: translateY(-1px);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(106, 155, 12, 0.2);
    border: none;
    background: var(--primary-color);
    border-radius: 8px;
}

#lang-toggle {
    background: rgba(106, 155, 12, 0.1);
    border: 1px solid rgba(106, 155, 12, 0.2);
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#lang-toggle:hover {
    background: rgba(106, 155, 12, 0.2);
    color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    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-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.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;
    min-height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.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: 0 4px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px) saturate(120%);
    padding: 50px 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    width: calc(100% - 40px);
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 25px;
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-buttons img {
    height: 60px;
    margin: 0 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-buttons img:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
.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 {
    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;
}

.how-it-works-column {
    flex: 1;
}

.phone-column {
    display: flex;
    justify-content: center;
}

.phone-image {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.content-column {
    text-align: right;
    direction: rtl;
}

.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;
}

.steps-text-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
}

.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;
    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'] .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);
    font-size: 2.5rem;
}

.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;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    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;
}

.car-details li {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-right: 25px;
}

.car-details li::before {
    content: '✓';
    color: #acc543;
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* LTR Adjustments for 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;
    padding-left: 25px;
    padding-right: 0;
}

html[dir='ltr'] .car-details li::before {
    left: 0;
    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);
    font-size: 2.5rem;
}

.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 .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;
    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;
}

.social-icons a {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-left: 15px;
}

.social-icons img {
    width: 100%;
    height: 100%;
    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;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Header */
    .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: 80px 0 50px;
        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 */
    .hero-section {
        height: auto;
        min-height: 500px;
    }

    .hero-content {
        padding: 30px 20px;
        margin: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .app-buttons img {
        height: 50px;
        margin: 5px;
    }

    /* How It Works Section */
    .how-it-works-layout {
        flex-direction: column;
        gap: 30px;
    }

    .phone-column {
        order: 1;
        max-width: 100%;
    }

    .phone-image {
        max-width: 300px;
    }

    .content-column {
        order: 2;
        text-align: center;
    }

    .steps-details-container {
        flex-direction: row;
        padding: 15px;
        gap: 15px;
        margin-top: 20px;
    }

    .stages-image-column {
        width: 80px;
        flex-shrink: 0;
    }

    .stages-image-column img {
        height: auto;
        max-width: 100%;
    }

    .steps-text-column {
        text-align: right;
        height: auto;
    }

    html[dir='ltr'] .steps-text-column {
        text-align: left;
    }

    .step-item {
        text-align: right;
        margin-bottom: 20px;
    }

    html[dir='ltr'] .step-item {
        text-align: left;
    }

    .step-item h3 {
        font-size: 1.3rem;
    }

    .step-item p {
        font-size: 0.95rem;
    }

    .app-buttons-bottom {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    .app-buttons-bottom img {
        height: 45px;
    }

    /* Fleet Section */
    .fleet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .car-card {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Why inFlex Section */
    .why-inflex-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Become a Driver Section */
    .become-driver-section {
        padding: 60px 20px;
    }

    .become-driver-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

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

    .social-icons a {
        margin: 0 5px;
    }

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

    .store-icons img {
        height: 40px;
        margin: 5px 0;
    }
    
    /* Hero Section Mobile Fix */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .hero-banner-container {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero-content {
        margin: 0;
        padding: 30px 20px;
        width: 100%;
        border-radius: 0;
        height: 100%;
        max-width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .hero-banner-container {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero-content {
        margin: 0;
        padding: 20px 15px;
        width: 100%;
        border-radius: 0;
        height: 100%;
        justify-content: center;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .how-it-works-slogan h2,
    .fleet-section .section-title,
    .why-inflex-section .section-title {
        font-size: 1.75rem;
    }

    .how-it-works-slogan p,
    .fleet-section .section-description,
    .why-inflex-section .section-description {
        font-size: 1rem;
    }
}
