@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary: #FFB703;
    --primary-hover: #EDA200;
    --secondary: #2E2E2E;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --font-family: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

/* Language Visibility Utilities */
html[lang="ar"] .content-en {
    display: none !important;
}

html[lang="en"] .content-ar {
    display: none !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Utilities */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-white {
    color: var(--white) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    margin-inline-start: 10px;
    /* Logical property for LTR/RTL support */
}

/* ... existing code ... */

/* Header RTL support */
html[dir="rtl"] .nav-menu {
    padding-left: 0;
    padding-right: 0;
}

html[dir="rtl"] .icon-box i {
    transform: scaleX(-1);
    /* Flip icons if directional */
}

/* Specific LTR override for icons that shouldn't flip? */
/* Actually some icons like arrows might need flipping */
html[dir="rtl"] .fa-arrow-right:before {
    content: "\f060";
    /* arrow-left */
}

html[dir="rtl"] .fa-chevron-right:before {
    content: "\f053";
    /* chevron-left */
}

/* Nav Button in Header */
.nav-menu .nav-btn {
    padding: 10px 24px;
    margin-inline-start: 10px;
    color: var(--secondary) !important;
    /* Ensure text color is black/secondary */
    border-radius: 50px;
    /* Force pill shape */
}

.nav-menu .nav-btn:hover {
    color: var(--secondary) !important;
}

.nav-menu .nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Language Switcher */
.lang-switch {
    background: none;
    border: 1px solid var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.footer-lang-switch {
    margin-top: 15px;
    border-color: var(--text-light);
    color: var(--text-light);
}

.footer-lang-switch:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

.lang-switch:hover {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 992px) {
    .header-actions {
        display: flex;
        align-items: center;
    }
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--secondary);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu .nav-link {
    font-weight: 500;
    color: var(--secondary);
}

.nav-menu .nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 30px;
}

.trust-badges {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.trust-badges i {
    color: var(--primary);
    margin-right: 5px;
}

.hero-image img {
    width: 100%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Common Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 183, 3, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 500px;
    width: auto;
}

.benefits-list {
    margin-top: 30px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.benefits-list li i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 5px;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
}

.step {
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

/* Driver Section */
.driver {
    background: var(--secondary);
    color: var(--white);
    border-radius: 30px;
    /* Optional rounded section */
    margin: 80px 20px;
    /* Inset design */
    width: auto;
    /* Override full width */
    max-width: 1200px;
    /* Constrain width */
}

/* Center driver section container if viewport wide */
@media (min-width: 1240px) {
    .driver {
        margin: 80px auto;
    }
}

.driver-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.driver-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.driver-benefits li i {
    color: var(--primary);
}

.driver-card-mockup {
    background: #444;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    opacity: 0.8;
}

.driver-card-mockup i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

/* App Screenshots */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.app-frame {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 12px solid #1a1a1a;
    position: relative;
    background: #000;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 9/19.5;
}

/* Notch effect */
.app-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.app-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    margin: 0 10px;
    transition: 0.3s;
}

.store-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.5rem;
}

/* Page Header (Hero Style) */
.page-hero {
    background: var(--secondary);
    color: var(--white);
    padding: 120px 0 60px;
    margin-bottom: 40px;
    background-image: radial-gradient(circle at 10% 20%, #3a3a3a, var(--secondary));
}

.hero-title {
    font-size: 2.8rem;
    color: var(--primary);
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Feature Grid 3 Columns */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-item {
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.icon-box.sm {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


/* Decoration Circle */
.circle-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 183, 3, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    z-index: 1;
}

/* Legal Content Styling */
.legal-content h1 {
    margin-bottom: 30px;
    color: var(--primary);
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-inline-start: 20px;
}

/* Footer */
.footer {
    background: #fff;
    padding: 80px 0 20px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #eee;
    color: var(--secondary);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .driver-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .trust-badges {
        justify-content: center;
    }

    .nav-menu {
        display: none;
        /* Hide for now, JS will toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
        /* Hide download button on mobile header to save space */
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .app-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }
}