/* ============================================
   ALAMERI EXCHANGE COMPANY - DESIGN SYSTEM
   Modern 2025 Design with Company Brand Colors
   ============================================ */

/* ============================================
   CUSTOM FONT - DINNextLT
   ============================================ */
@font-face {
    font-family: 'DINNextLT';
    src: url('../fonts/DINNextLT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors - From Company Logo */
    --primary-blue: #2B4C9D;
    --primary-red: #E31E24;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(43, 76, 157, 0.1) 0%, rgba(227, 30, 36, 0.1) 100%);

    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'DINNextLT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'DINNextLT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    padding-top: 128px;
    /* Top header (36px) + Main header (~92px) */
}

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

body[dir="ltr"] {
    text-align: left;
}

/* Remove unwanted borders and outlines */
section,
div,
article,
aside,
main,
header,
footer {
    border: none !important;
    outline: none !important;
}

section:focus,
div:focus,
article:focus,
aside:focus,
main:focus,
header:focus,
footer:focus {
    outline: none !important;
    border: none !important;
}

/* Remove borders from specific elements */
.animate-on-scroll,
.section-title,
.section-title *,
.container,
.container * {
    border: none !important;
    outline: none !important;
}

/* Remove any gray borders specifically */
.section-title,
.section-title h2,
.section-title p,
.section-title div {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from all sections and containers */
section.section,
section#about,
section#services,
section#trust,
section#why,
section#cta,
.section,
#about,
#services,
#trust,
#why,
#cta,
section,
.section-title,
.section-title *,
.container,
.container *,
.animate-on-scroll,
.animate-on-scroll * {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Global border removal - catch all */
div:not(.card):not(.service-card):not(.hero-slide):not(.hero-content):not(.hero-icon-wrapper):not(.hero-stat-item):not(.hero-service-item):not(.hero-badge):not(.slider-nav-btn):not(.dot):not(.btn):not(.form-control):not(.contact-card):not(.contact-card-icon):not(.contact-card-phone),
section:not(.hero-slider) {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from all page sections */
section[class*="section"],
div[class*="section"],
div[class*="container"],
div[class*="grid"],
div[class*="animate"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Specifically target section-title wrapper divs */
.section-title,
.section-title *,
div.section-title,
div[class*="section-title"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from About section specifically */
#about,
#about *,
section#about,
section#about *,
#about .container,
#about .grid,
#about .animate-on-scroll,
#about .grid > div,
#about .animate-on-scroll > div,
#about .card {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from CTA section (نحن في خدمتكم) */
#cta,
#cta *,
section#cta,
section#cta *,
#cta .container,
#cta .container *,
#cta .animate-on-scroll,
#cta .animate-on-scroll * {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from grid elements in about section */
.grid.grid-2,
.grid.grid-2 > div,
.stats-grid,
.stats-grid > div {
    border: none !important;
    outline: none !important;
}

/* Remove borders from all divs except cards that need borders */
div:not(.card):not(.service-card):not(.hero-slide):not(.hero-content):not(.hero-icon-wrapper):not(.hero-stat-item):not(.hero-service-item):not(.hero-badge):not(.slider-nav-btn):not(.dot):not(.btn):not(.form-control) {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
}

/* Remove borders from grid and animate-on-scroll elements */
.grid,
.animate-on-scroll,
.grid > div,
.animate-on-scroll > div {
    border: none !important;
    outline: none !important;
}

/* Remove any default browser borders */
div[class*="section"],
div[class*="container"],
div[class*="grid"],
div[class*="animate"] {
    border: none !important;
    outline: none !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-4);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-red);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    border: none;
    outline: none;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-6);
}

.section {
    padding: var(--spacing-20) 0;
    border: none;
    outline: none;
}

.section-sm {
    padding: var(--spacing-12) 0;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a7a 100%);
    color: white;
    font-size: var(--font-size-sm);
    padding: var(--spacing-2) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-sticky) + 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
}

/* Date Section */
.top-header-date {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    white-space: nowrap;
    font-weight: 500;
    min-width: 200px;
}

.top-header-date i {
    font-size: 1rem;
    opacity: 0.9;
}

/* News Ticker */
.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 var(--spacing-4);
    max-width: 60%;
    /* Limit width to ensure proper layout */
}

.news-ticker::before,
.news-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.news-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-blue), transparent);
}

.news-ticker::after {
    right: 0;
    background: linear-gradient(to left, #1e3a7a, transparent);
}

.news-ticker-wrapper {
    display: flex;
    width: max-content;
}

/* Default animation for LTR */
body[dir="ltr"] .news-ticker-wrapper {
    animation: scroll-news-ltr 30s linear infinite;
}

/* Reverse animation for RTL */
body[dir="rtl"] .news-ticker-wrapper {
    animation: scroll-news-rtl 30s linear infinite;
}

.news-ticker-wrapper:hover {
    animation-play-state: paused;
}

.news-ticker-items {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    white-space: nowrap;
    padding-right: var(--spacing-4);
    /* Add padding to ensure seamless loop */
}

body[dir="rtl"] .news-ticker-items {
    padding-right: 0;
    padding-left: var(--spacing-4);
}

.news-item {
    font-weight: 500;
    opacity: 0.95;
    transition: opacity var(--transition-base);
}

.news-item:hover {
    opacity: 1;
}

.news-separator {
    opacity: 0.6;
    font-weight: bold;
    color: var(--primary-red);
}

/* Animation for LTR (left to right scrolling - English) */
@keyframes scroll-news-ltr {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
        /* Move by 1/3 since we have 3 copies */
    }
}

/* Animation for RTL (right to left scrolling - Arabic) */
@keyframes scroll-news-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(33.333%);
        /* Move by 1/3 since we have 3 copies */
    }
}

/* Actions Section */
.top-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    min-width: 200px;
    justify-content: flex-end;
}

.top-action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-1) var(--spacing-3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 500;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.top-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.top-action-btn i {
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.lang-switch {
    background: rgba(227, 30, 36, 0.2);
    border-color: rgba(227, 30, 36, 0.3);
}

.lang-switch:hover {
    background: rgba(227, 30, 36, 0.35);
}

/* Responsive Design for Top Header */
@media (max-width: 992px) {
    .top-header-date span {
        display: none;
    }

    .news-ticker {
        margin: 0 var(--spacing-2);
        max-width: 50%;
    }

    .top-action-btn span {
        display: none;
    }

    .top-action-btn {
        padding: var(--spacing-1) var(--spacing-2);
        min-width: 32px;
        justify-content: center;
    }

    .top-header-actions {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .top-header {
        font-size: var(--font-size-xs);
        padding: var(--spacing-1) 0;
    }

    .top-header-content {
        gap: var(--spacing-2);
    }

    .top-header-date {
        min-width: auto;
    }

    .top-header-date i {
        font-size: 0.9rem;
    }

    .news-ticker {
        max-width: none;
        flex: 1;
    }

    .top-header-actions {
        gap: var(--spacing-1);
    }

    body[dir="ltr"] .news-ticker-wrapper {
        animation: scroll-news-ltr 20s linear infinite;
        /* Faster on mobile */
    }

    body[dir="rtl"] .news-ticker-wrapper {
        animation: scroll-news-rtl 20s linear infinite;
        /* Faster on mobile */
    }

    .hero {
        margin-top: -116px;
        padding-top: 116px;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 36px;
    /* Height of top header */
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-4) 0;
    gap: var(--spacing-8);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-6);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--spacing-2) var(--spacing-3);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background: rgba(227, 30, 36, 0.1);
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-3) var(--spacing-4);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-red);
}

/* RTL Support for Desktop Dropdown */
[dir="rtl"] .dropdown-item {
    text-align: right !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0 !important;
    margin-left: var(--spacing-3) !important;
    order: 1 !important;
}

/* RTL Dropdown menu container - Desktop */
[dir="rtl"] .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
}

/* Global RTL Fix for ALL Dropdown Items */
[dir="rtl"] .dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0 !important;
    margin-left: var(--spacing-3) !important;
}

/* Language Switcher - Old Style (kept for compatibility) */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-4);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition-base);
}

.lang-switcher:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MOBILE MENU TOGGLE - PROFESSIONAL DESIGN
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: var(--z-modal);
    transition: all var(--transition-base);
}

.menu-toggle:hover {
    transform: scale(1.05);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all var(--transition-base) ease-in-out;
    transform-origin: center;
}

/* Hamburger Animation States */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-red);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-red);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION - 3D SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: -128px;
    padding-top: 128px;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    perspective: 1200px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%) rotateY(45deg) scale(0.8);
    transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
    pointer-events: all;
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%) rotateY(-45deg) scale(0.8);
    z-index: 1;
}

/* Background Gradients - Blue & Red Mix */
.hero-slide[data-bg="gradient-1"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 50%, #1e40af 100%);
}

.hero-slide[data-bg="gradient-2"] {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 50%, #b91c1c 100%);
}

.hero-slide[data-bg="gradient-3"] {
    background: linear-gradient(135deg, #1e40af 0%, #b91c1c 50%, #3b82f6 100%);
}

.hero-slide[data-bg="gradient-4"] {
    background: linear-gradient(135deg, #b91c1c 0%, #3b82f6 50%, #dc2626 100%);
}

/* Animated Background Pattern */
.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: slideBackground 20s linear infinite;
    opacity: 0.3;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

@keyframes slideBackground {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: var(--spacing-8);
    transform-style: preserve-3d;
}

.hero-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-6);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: floatIcon 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-icon-wrapper i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(180deg); }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-6);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: slideInUp 0.8s ease-out;
    transform-style: preserve-3d;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-8);
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.8;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-6);
    justify-content: center;
    margin: var(--spacing-8) 0;
    flex-wrap: wrap;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 120px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.hero-stat-item h3 {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: white;
    margin-bottom: var(--spacing-2);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stat-item p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin: 0;
}

/* Hero Services */
.hero-services {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    margin: var(--spacing-8) 0;
    flex-wrap: wrap;
}

.hero-service-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.hero-service-item:hover {
    transform: translateY(-5px) rotateY(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.hero-service-item i {
    font-size: 1.5rem;
    color: white;
}

.hero-service-item span {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* Hero Trust Badges */
.hero-trust-badges {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    margin: var(--spacing-8) 0;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: scale(1.1) rotateZ(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 1.25rem;
    color: white;
}

.hero-badge span {
    font-size: var(--font-size-base);
    font-weight: 600;
}

/* Slider Navigation - Vertical on the side */
.hero-slider-nav-vertical {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-4) var(--spacing-3);
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Arabic (RTL) - Right side */
[dir="rtl"] .hero-slider-nav-vertical {
    right: 30px;
    left: auto;
}

/* English (LTR) - Left side */
[dir="ltr"] .hero-slider-nav-vertical {
    right: auto;
    left: 30px;
}

.slider-nav-btn {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(43, 76, 157, 0.3);
}

.slider-nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

.slider-nav-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: var(--spacing-2);
    align-items: center;
}

.slider-dots-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: center;
}

.slider-dots .dot,
.slider-dots-vertical .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-dots .dot:hover,
.slider-dots-vertical .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.slider-dots .dot.active,
.slider-dots-vertical .dot.active {
    background: white;
    width: 12px;
    height: 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    color: var(--primary-red);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    filter: brightness(1.1);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: none !important;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: none !important;
}

.card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--spacing-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    opacity: 0;
    filter: blur(10px);
    transition: opacity var(--transition-base);
}

.card:hover .card-icon::after {
    opacity: 0.5;
}

.card-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
    text-align: center;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.9;
    font-size: var(--font-size-base);
    text-align: center;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: var(--spacing-8);
}

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

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

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

/* ============================================
   SERVICES GRID - MASONRY LAYOUT
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-6);
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--gray-900);
    text-align: center;
}

.service-text {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-6);
    text-align: center;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    width: 100%;
    padding: var(--spacing-3) var(--spacing-6);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    margin-top: auto;
}

.service-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    color: white;
}

.service-link i {
    transition: transform var(--transition-base);
}

.service-link:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .service-link:hover i {
    transform: translateX(-5px);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }

    .service-card {
        min-height: 280px;
        padding: var(--spacing-6);
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-12);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-4);
    border: none !important;
    outline: none !important;
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    border: none !important;
    outline: none !important;
}

/* ============================================
   EXCHANGE RATES TABLE
   ============================================ */
.rates-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.rates-table table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table thead {
    background: var(--gradient-primary);
    color: white;
}

.rates-table th {
    padding: var(--spacing-5);
    font-weight: 600;
    text-align: center;
}

.rates-table td {
    padding: var(--spacing-5);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.rates-table tbody tr {
    transition: background var(--transition-fast);
}

.rates-table tbody tr:hover {
    background: var(--gray-50);
}

.currency-flag {
    font-size: var(--font-size-2xl);
    margin-right: var(--spacing-2);
}

[dir="rtl"] .currency-flag {
    margin-right: 0;
    margin-left: var(--spacing-2);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-6);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--spacing-4);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 76, 157, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: 600;
    position: relative;
}

/* RTL Support for Footer Headers */
[dir="rtl"] .footer-section h3 {
    text-align: right;
    padding-right: var(--spacing-2);
}

[dir="ltr"] .footer-section h3 {
    text-align: left;
    padding-left: var(--spacing-2);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
    right: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-4);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
    text-decoration: none;
    display: block;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding: var(--spacing-1) 0;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* RTL Support for Footer Links */
[dir="rtl"] .footer-links a {
    text-align: right;
    padding-right: var(--spacing-2);
    padding-left: 0;
}

[dir="ltr"] .footer-links a {
    text-align: left;
    padding-left: var(--spacing-2);
    padding-right: 0;
}

/* Contact Info Items */
.footer-section ul.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.footer-section ul.footer-links li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: var(--font-size-sm);
    width: 16px;
    text-align: center;
}

/* RTL Support - Icons on the right */
[dir="rtl"] .footer-section ul.footer-links li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer-section ul.footer-links li i {
    margin-left: var(--spacing-3);
    margin-right: 0;
    order: 2;
}

[dir="rtl"] .footer-section ul.footer-links li a,
[dir="rtl"] .footer-section ul.footer-links li span {
    order: 1;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    box-shadow: 0 0 0 3px rgba(43, 76, 157, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: 600;
    position: relative;
}

/* RTL Support for Footer Headers */
[dir="rtl"] .footer-section h3 {
    text-align: right;
    padding-right: var(--spacing-2);
}

[dir="ltr"] .footer-section h3 {
    text-align: left;
    padding-left: var(--spacing-2);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
    right: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-4);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
    text-decoration: none;
    display: block;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding: var(--spacing-1) 0;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* RTL Support for Footer Links */
[dir="rtl"] .footer-links a {
    text-align: right;
    padding-right: var(--spacing-2);
    padding-left: 0;
}

[dir="ltr"] .footer-links a {
    text-align: left;
    padding-left: var(--spacing-2);
    padding-right: 0;
}

/* Contact Info Items */
.footer-section ul.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.footer-section ul.footer-links li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: var(--font-size-sm);
    width: 16px;
    text-align: center;
}

[dir="rtl"] .footer-section ul.footer-links li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer-section ul.footer-links li i {
    margin-left: var(--spacing-3);
    margin-right: 0;
    order: 2;
}

[dir="rtl"] .footer-section ul.footer-links li a,
[dir="rtl"] .footer-section ul.footer-links li span {
    order: 1;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    box-shadow: 0 0 0 3px rgba(43, 76, 157, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: 600;
    position: relative;
}

/* RTL Support for Footer Headers */
[dir="rtl"] .footer-section h3 {
    text-align: right;
    padding-right: var(--spacing-2);
}

[dir="ltr"] .footer-section h3 {
    text-align: left;
    padding-left: var(--spacing-2);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
    right: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-4);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
    text-decoration: none;
    display: block;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding: var(--spacing-1) 0;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* RTL Support for Footer Links */
[dir="rtl"] .footer-links a {
    text-align: right;
    padding-right: var(--spacing-2);
    padding-left: 0;
}

[dir="ltr"] .footer-links a {
    text-align: left;
    padding-left: var(--spacing-2);
    padding-right: 0;
}

/* Contact Info Items */
.footer-section ul.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.footer-section ul.footer-links li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: var(--font-size-sm);
    width: 16px;
    text-align: center;
}

[dir="rtl"] .footer-section ul.footer-links li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer-section ul.footer-links li i {
    margin-left: var(--spacing-3);
    margin-right: 0;
    order: 2;
}

[dir="rtl"] .footer-section ul.footer-links li a,
[dir="rtl"] .footer-section ul.footer-links li span {
    order: 1;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    box-shadow: 0 0 0 3px rgba(43, 76, 157, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-16) 0 var(--spacing-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: 600;
    position: relative;
}

/* RTL Support for Footer Headers */
[dir="rtl"] .footer-section h3 {
    text-align: right;
    padding-right: var(--spacing-2);
}

[dir="ltr"] .footer-section h3 {
    text-align: left;
    padding-left: var(--spacing-2);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
    left: auto;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
    right: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-4);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-base);
    text-decoration: none;
    display: block;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    padding: var(--spacing-1) 0;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* RTL Support for Footer Links */
[dir="rtl"] .footer-links a {
    text-align: right;
    padding-right: var(--spacing-2);
    padding-left: 0;
}

[dir="ltr"] .footer-links a {
    text-align: left;
    padding-left: var(--spacing-2);
    padding-right: 0;
}

/* Contact Info Items */
.footer-section ul.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
}

.footer-section ul.footer-links li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: var(--font-size-sm);
    width: 16px;
    text-align: center;
}

[dir="rtl"] .footer-section ul.footer-links li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer-section ul.footer-links li i {
    margin-left: var(--spacing-3);
    margin-right: 0;
    order: 2;
}

[dir="rtl"] .footer-section ul.footer-links li a,
[dir="rtl"] .footer-section ul.footer-links li span {
    order: 1;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROFESSIONAL MOBILE MENU STYLES
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 116px;
        /* Adjusted for mobile header heights */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 92px;
        /* تقليل المسافة من الأعلى */
        left: -100%;
        width: 100%;
        height: calc(100vh - 92px);
        background: white;
        flex-direction: column;
        padding: var(--spacing-4);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-2xl);
        overflow-y: auto;
        z-index: var(--z-modal);
    }

    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    [dir="rtl"] .nav-menu.active {
        right: 0;
    }

    /* Mobile Menu Items Styling */
    .nav-item {
        width: 100%;
        margin-bottom: var(--spacing-1);
        /* Reduced spacing */
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: var(--spacing-2);
        /* Reduced gap */
        padding: var(--spacing-3);
        /* Reduced padding */
        font-size: var(--font-size-lg);
        font-weight: 500;
        border-radius: var(--radius-lg);
        background: var(--gray-50);
        margin-bottom: 0;
        /* Removed extra margin */
        transition: all var(--transition-base);
        text-decoration: none;
        line-height: 1.4;
        text-align: right;
        width: 100%;
        /* Ensure full width */
    }

    /* RTL adjustments for nav links */
    [dir="rtl"] .nav-link {
        text-align: right;
        padding-left: var(--spacing-5);
        padding-right: var(--spacing-6);
    }

    [dir="rtl"] .nav-link i.fa-chevron-down {
        margin-right: auto !important;
        /* Force push to far left */
        margin-left: 0;
    }

    [dir="rtl"] .nav-link i:not(.fa-chevron-down) {
        margin-right: 0;
        margin-left: var(--spacing-3);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(5px);
    }

    [dir="rtl"] .nav-link:hover,
    [dir="rtl"] .nav-link.active {
        transform: translateX(-5px);
    }

    /* Mobile Dropdown Menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-100);
        margin: var(--spacing-2) 0 var(--spacing-4) 0;
        border-radius: var(--radius-md);
        padding: 0;
        /* Hidden by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base), padding var(--transition-base);
        border: none;
        /* Hidden by default */
        width: 100%;
    }

    .nav-item.dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: var(--spacing-3);
        /* Show when active */
        border: 1px solid var(--gray-200);
        /* Show when active */
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        padding: var(--spacing-3) var(--spacing-4);
        color: var(--gray-700);
        border-radius: var(--radius-sm);
        transition: all var(--transition-fast);
        margin-bottom: var(--spacing-1);
        text-decoration: none;
        font-size: var(--font-size-base);
        line-height: 1.4;
        background: white;
        border: 1px solid transparent;
        width: 100%;
        text-align: left;
    }

    .dropdown-item:last-child {
        margin-bottom: 0;
    }

    .dropdown-item:hover {
        background: white;
        color: var(--primary-red);
        transform: translateX(3px);
    }

    /* RTL Dropdown items - Mobile */
    [dir="rtl"] .dropdown-item {
        text-align: right !important;
        flex-direction: row-reverse !important;
        padding: var(--spacing-3) var(--spacing-6) var(--spacing-3) var(--spacing-4) !important;
        justify-content: flex-end !important;
    }

    [dir="rtl"] .dropdown-item i {
        margin-right: 0 !important;
        margin-left: var(--spacing-3) !important;
        order: 1 !important;
    }

    [dir="rtl"] .dropdown-item:hover {
        transform: translateX(-3px) !important;
    }

    /* RTL Dropdown menu container */
    [dir="rtl"] .dropdown-menu {
        text-align: right !important;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: var(--font-size-3xl);
    }

    /* Hero Slider Mobile Styles */
    .hero-slider {
        min-height: 90vh;
    }

    .hero-slider-container {
        height: 90vh;
    }

    .hero-icon-wrapper {
        width: 90px;
        height: 90px;
    }

    .hero-icon-wrapper i {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-stats {
        gap: var(--spacing-3);
    }

    .hero-stat-item {
        min-width: 100px;
        padding: var(--spacing-4);
    }

    .hero-stat-item h3 {
        font-size: var(--font-size-2xl);
    }

    .hero-services {
        flex-direction: column;
        gap: var(--spacing-3);
    }

    .hero-service-item {
        width: 100%;
        justify-content: center;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: var(--spacing-3);
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
    }

    /* Hide slider navigation on mobile */
    .hero-slider-nav-vertical {
        display: none !important;
    }
}

.text-primary {
    color: var(--primary-blue);
}

.text-secondary {
    color: var(--primary-red);
}

.text-white {
    color: white;
}

.bg-white {
    background: white;
}

.bg-gray {
    background: var(--gray-100);
}

/* ============================================
   STATS GRID RESPONSIVENESS
   ============================================ */
.stats-card-full {
    grid-column: span 2;
}

/* ============================================
   CONTACT PAGE CARDS
   ============================================ */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-8);
}

.contact-card {
    background: var(--gradient-primary);
    padding: var(--spacing-8);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    outline: none;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-4);
    transition: all var(--transition-base);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-card-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card-title {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-card-phone {
    display: block;
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-card-phone:last-child {
    margin-bottom: 0;
}

.contact-card-phone:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.contact-card-phone i {
    margin-right: var(--spacing-2);
}

[dir="rtl"] .contact-card-phone i {
    margin-right: 0;
    margin-left: var(--spacing-2);
}

.contact-card-phones {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }

    .contact-card {
        padding: var(--spacing-6);
    }

    .contact-card-icon {
        width: 70px;
        height: 70px;
    }

    .contact-card-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-4) !important;
    }

    .stats-card-full {
        grid-column: auto !important;
    }

    .card {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        /* Prevent content clipping */
    }
}