:root {
    --primary: #0b1528;
    /* Deep Navy */
    --accent: #2b4e91;
    /* Corporate Blue */
    --accent-hover: #1e3a70;
    --teal: #3ca3b0;
    /* Link/Icon Accent */
    --bg-white: #ffffff;
    --bg-light: #f4f7fa;
    /* Sections background */
    --text-dark: #0b1528;
    --text-gray: #4a5568;
    /* Body text */
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Cairo', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Header Improvements */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1100;
    transition: var(--transition);
}


.header.scrolled {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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


.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.header.scrolled .logo {
    color: var(--primary);
}

.logo span {
    color: var(--teal);
}

.desktop-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    margin-left: 30px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.header.scrolled .desktop-nav a {
    color: var(--text-gray);
}

.header.scrolled .desktop-nav a:hover {
    color: var(--accent);
}

.lang-pill {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.header.scrolled .lang-pill {
    color: var(--primary);
    border-color: var(--border);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1100;
}

.header.scrolled .nav-toggle {
    color: var(--primary);
}

.nav-toggle .close-icon {
    display: none;
}

.nav-toggle.active .open-icon {
    display: none;
}

.nav-toggle.active .close-icon {
    display: block;
    color: white !important;
}

.mobile-menu-overlay {
    /* Overlay is now hidden - full-screen sidebar acts as its own backdrop */
    display: none !important;
}

.mobile-menu-overlay.active {
    display: none !important;
}


/* Hero - Reference Style */
.hero {
    height: 90vh;
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 21, 40, 0.8), rgba(11, 21, 40, 0.4));
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 40px;
}


.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-btn {
    background: var(--accent);
    color: white;
    padding: 18px 45px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.secondary-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 18px 45px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.secondary-btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Stats Bar - Reference Blue */
.stats-bar {
    background: var(--primary);
    padding: 80px 0;
    color: white;
    border-bottom: 5px solid var(--teal);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--teal);
    font-weight: 700;
}

/* Sections General */
.section {
    padding: 120px 0;
}

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

.center-text {
    text-align: center;
    margin-bottom: 80px;
}

.sub-tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.title-line {
    width: 50px;
    height: 4px;
    background: var(--teal);
    margin: 20px auto;
}

/* Expertise Grid (Specialist Style) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.expertise-card {
    background: white;
    padding: 40px 30px;
    border-bottom: 3px solid transparent;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.expertise-card:hover {
    border-bottom-color: var(--teal);
    transform: translateY(-10px);
}

.expertise-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.expertise-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}


/* --- How It Works Section (Premium Refresh) --- */
.how-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, #0b1528 0%, #0d1b35 100%);
    overflow: hidden;
}

.how-section .section-title {
    color: #ffffff;
}

.how-section .sub-tag {
    color: var(--teal);
}

.how-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.how-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(60, 163, 176, 0.05) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.how-grid-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}


.how-card-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 50px 40px;
    backdrop-filter: blur(15px);
    transition: var(--transition);
    position: relative;
}

.how-card-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--teal);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.how-card-header {
    text-align: center;
    margin-bottom: 50px;
}

.how-card-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 15px;
}

.how-card-header p {
    color: rgba(255, 255, 255, 0.6);
}

.how-steps-v {
    position: relative;
    padding: 0 10px;
}

.how-steps-v::before {
    content: '';
    position: absolute;
    left: 34px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--teal) 0%, rgba(60, 163, 176, 0.1) 100%);
}

[dir="rtl"] .how-steps-v::before {
    left: auto;
    right: 34px;
}

.how-step-v-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.how-step-v-item:last-child {
    margin-bottom: 0;
}

.how-step-v-num {
    width: 50px;
    height: 50px;
    background: var(--teal);
    color: #0b1528;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 0 25px rgba(60, 163, 176, 0.3);
}

.how-step-v-content h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}

.how-step-v-content p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 991px) {
    .how-grid-cols {
        grid-template-columns: 1fr;
    }
}


/* Mid-Page Banner / Parallax */
.parallax-section {
    background-image: linear-gradient(rgba(11, 21, 40, 0.8), rgba(11, 21, 40, 0.8)), url('parallax_cta_bg_premium_1775971664066.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0;
    color: white;
    text-align: center;
}

.parallax-section .hero-title {
    color: white !important;
}

.parallax-section .hero-desc {
    color: rgba(255, 255, 255, 0.8);
}

.banner-cta {
    background: var(--bg-light);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* Why Choose Us Cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.why-card {
    padding: 60px 40px;
    color: white;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-card.dark {
    background: #0b1528;
}

.why-card.navy {
    background: #13213a;
}

.why-card.blue {
    background: #1c2e4d;
}

.why-icon {
    font-size: 3rem;
    color: var(--teal);
    margin-bottom: 15px;
}

/* Partners Section */
.partners-section {
    padding: 100px 0;
    background: #0b1528; /* Matches Footer Background */
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-section .section-title {
    color: white;
}

.partners-wrapper {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partners-grid {
    display: flex;
    align-items: center;
    gap: 120px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

[dir="rtl"] .partners-grid {
    animation: marqueeRTL 30s linear infinite;
}

.partners-grid:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    height: 90px;
    width: auto;
    filter: grayscale(1) brightness(2.5);
    transition: 0.4s ease;
    opacity: 0.6;
}

.partner-logo:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
}

/* Redesigned Team Section to match reference */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.team-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-content {
    padding: 30px;
    text-align: start;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
    display: block;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-top: 15px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.split-img img {
    width: 100%;
    display: block;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    gap: 15px;
}

.feature-list li i {
    color: var(--teal);
    margin-top: 5px;
}

/* Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testi-card {
    background: white;
    padding: 40px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testi-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-user i {
    font-size: 2rem;
    color: var(--border);
}

/* Team Profiles */
.team-item {
    background: white;
    display: flex;
    gap: 40px;
    padding: 50px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    align-items: center;
}

.team-item:nth-child(even) {
    flex-direction: row-reverse;
}

.t-info {
    flex: 1;
}

.t-info h3 {
    font-size: 2rem;
    color: var(--accent);
}

.t-role {
    color: var(--teal);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* How Sections */
.how-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.how-card {
    padding: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 5px;
    position: relative;
}

.how-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--bg-light);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1;
}

.how-card h4 {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Contact Form - Reference style */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.form-box {
    background: #fdfdfd;
    padding: 60px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
}

textarea.form-input {
    height: 150px;
}

/* Parallax Expertise Banner */
.parallax-section {
    background-image: linear-gradient(rgba(11, 21, 40, 0.85), rgba(11, 21, 40, 0.85)), url('logistics_experts_banner_1775966841276.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 150px 0;
    text-align: center;
    color: white;
}

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.parallax-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Grounded Banner Area & Floating Banner */
.bottom-banner-area {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('parallax_cta_bg_premium_1775971664066.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0 20px;
}

.bottom-banner {
    max-width: 1100px;
    margin: 0 auto -120px;
    /* Overlap footer */
    background: linear-gradient(rgba(11, 21, 40, 0.6), rgba(11, 21, 40, 0.8)), url('bottom_cta_harbor_dusk_1775972186372.png');
    background-size: cover;
    background-position: center;
    padding: 100px 40px;
    text-align: center;
    color: white;
    border-radius: 40px;
    position: relative;
    z-index: 100;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.bottom-banner h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 800;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
}

.faq-q {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-a {
    padding-top: 15px;
    display: none;
    color: var(--text-gray);
}




.footer {
    background: linear-gradient(rgba(11, 21, 40, 1), rgba(11, 21, 40, 1)), url('premium_footer_bg_1775971675070.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 200px 0 50px;
    /* Increased top padding to accommodate section overlap */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-logo span {
    color: white !important;
}

.footer h4 {
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--teal);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal);
    padding-left: 5px;
}

.social-tray {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.s-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.s-link:hover {
    background: var(--accent);
}

/* App Buttons */
.app-buttons-flex {
    display: flex;
    flex-direction: row; /* Force horizontal */
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.app-btn {
    background: #000;
    color: white;
    padding: 8px 16px; /* More compact */
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 150px; /* Slightly narrower */
}

.app-btn:hover {
    background: #222;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.app-btn i {
    font-size: 1.8rem;
}

.app-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.app-btn .btn-text span {
    font-size: 0.7rem;
    opacity: 0.8;
    line-height: 1;
}

.app-btn .btn-text strong {
    font-size: 0.95rem; /* Slightly smaller for better balance */
    font-weight: 700;
}

.mobile-nav-logo,
.mobile-nav-footer,
.sidebar-apps,
.sidebar-contact-row,
.sidebar-social-row {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }

    .mobile-nav-logo {
        display: block;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .mobile-nav-logo .logo {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
        padding: 20px 30px;
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .sidebar-apps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }

    .app-badge {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        color: white;
        padding: 6px 10px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        transition: var(--transition);
    }

    .app-badge:hover {
        background: rgba(255,255,255,0.1);
        border-color: var(--teal);
    }

    .app-badge i {
        font-size: 1.2rem;
    }

    .app-badge .badge-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .app-badge .badge-text span {
        font-size: 0.5rem;
        opacity: 0.7;
        text-transform: uppercase;
    }

    .app-badge .badge-text strong {
        font-size: 0.75rem;
        white-space: normal; /* Allow wrapping to prevent clipping */
        word-break: break-word;
    }

    .sidebar-contact-row, .sidebar-social-row {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        gap: 16px;
        width: 100%;
        padding: 0;
    }

    .sidebar-contact-row {
        padding-bottom: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 14px;
    }

    .sidebar-social-row {
        gap: 14px;
    }

    .social-icon {
        width: 34px; /* Slightly smaller to fit 5 row */
        height: 34px;
        background: rgba(255,255,255,0.2) !important; /* Stronger for circle visibility */
        border: 1px solid rgba(255,255,255,0.25) !important;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.9rem;
        transition: var(--transition);
        text-decoration: none;
        margin: 0 !important; /* RESET GLOBAL LINK MARGINS */
    }

    .contact-icon {
        background: rgba(255,255,255,0.25) !important;
        border-color: rgba(255,255,255,0.3) !important;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .desktop-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        /* 90% opacity dark background with glassmorphism */
        background: rgba(8, 20, 40, 0.92);
        -webkit-backdrop-filter: blur(24px) saturate(1.5);
        backdrop-filter: blur(24px) saturate(1.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        overflow: hidden;
        /* Fade + scale animation for premium feel */
        opacity: 0;
        transform: scale(1.03);
        transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.38s;
        z-index: 1080;
        visibility: hidden;
        pointer-events: none;
    }

    /* RTL has no separate positioning since sidebar is full-screen */
    [dir="rtl"] .desktop-nav {
        left: 0;
        right: 0;
    }

    .desktop-nav.active {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
        pointer-events: all;
        transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }

    [dir="rtl"] .desktop-nav.active {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
        pointer-events: all;
    }

    /* Top bar inside the full-screen menu */
    .mobile-nav-logo {
        width: 100%;
        padding: 20px 30px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        text-align: left;
        margin-bottom: 0;
    }

    [dir="rtl"] .mobile-nav-logo {
        text-align: right;
    }

    /* Navigation links area - center vertically */
    .desktop-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 0;
        width: 100%;
    }


    .desktop-nav .nav-links a {
        margin: 0 !important;
        font-size: 2rem !important;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: white !important;
        display: block;
        width: 100%;
        text-align: center;
        opacity: 1 !important;
        padding: 14px 0;
        transition: color 0.25s ease, letter-spacing 0.25s ease;
        position: relative;
    }

    /* Elegant underline accent on hover */
    .desktop-nav .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 30px;
        height: 2px;
        background: var(--teal);
        transition: transform 0.25s ease;
        border-radius: 2px;
    }

    .desktop-nav .nav-links a:hover {
        color: var(--teal) !important;
        letter-spacing: 1.5px;
    }

    .desktop-nav .nav-links a:hover::after {
        transform: translateX(-50%) scaleX(1);
    }


    /* Fix header/link visibility when mobile menu is active */
    body.menu-open .header {
        background: var(--primary) !important;
    }

    body.menu-open .logo,
    body.menu-open .logo span,
    body.menu-open .desktop-nav a,
    body.menu-open .nav-toggle {
        color: white !important;
    }




    .section-title {
        font-size: 2.2rem;
    }

    .expertise-grid,
    .stats-grid,
    .how-steps,
    .footer-grid,
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }


    .split-section,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        min-height: 90vh;
        padding: 150px 0 100px;
    }
}

@media (max-width: 768px) {
    .expertise-grid,
    .stats-grid,
    .how-steps,
    .footer-grid,
    .why-grid,
    .testi-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }





    .btn-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .primary-btn, .secondary-btn-outline {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        gap: 40px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .lang-pill {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}


/* RTL Support */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .desktop-nav a {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] .title-line {
    margin: 10px 0 0 auto;
}

[dir="rtl"] .center-text .title-line {
    margin-left: auto;
    margin-right: auto;
}

[dir="rtl"] .expertise-card ul li i,
[dir="rtl"] .expertise-card p i,
[dir="rtl"] .footer-links li i {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .how-card i {
    right: auto;
    left: 20px;
}

[dir="rtl"] .faq-q i {
    float: left;
}




[dir="rtl"] .secondary-btn-outline i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .stat-item h3 {
    direction: ltr;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Ensure no overflow from animations */
.partners-wrapper, .how-section, .hero, .footer {
    overflow-x: hidden;
}

