/* إعدادات عامة */
:root {
    /* تدرج أزرق سماوي */
    --primary-color: #1e8eda;
    --primary-light: #1eafd3;
    --primary-dark: #2585f3;
    
    /* لون ذهبي للعناوين الرئيسية فقط */
    --gold-color: #5f5b34;
    --gold-light: #f4d03f;
    --gold-dark: #b39424;
    
    /* ألوان مساعدة */
    --light-color: #f8fafc;
    --dark-color: #1a202c;
    --text-color: #2d3748;
    --gray-color: #718096;
    
    /* خلفية زرقاء فاتحة جداً */
    --light-blue-bg: #f8f8f8;
    
    /* تأثيرات بسيطة */
    --shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
    --shadow-hover: 0 8px 24px rgba(30, 136, 229, 0.25);
    --transition: all 0.3s ease;
    
    /* تأثيرات بلور */
    --blur-bg: blur(20px);
    --blur-light: blur(10px);
}

* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== */
/* قواعد اللغة */
/* ==================== */

/* اللغة العربية (RTL) */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .service-card,
[dir="rtl"] .value-card,
[dir="rtl"] .nav-menu,
[dir="rtl"] .header-actions .btn:first-child,
[dir="rtl"] .services-three-columns,
[dir="rtl"] .simple-event-card,
[dir="rtl"] .stats-container,
[dir="rtl"] .about-content,
[dir="rtl"] .video-background,
[dir="rtl"] .video-background::before,
[dir="rtl"] .navbar,
[dir="rtl"] .video-control,
[dir="rtl"] .video-control-small,
[dir="rtl"] .back-to-top,
[dir="rtl"] .intro-text::before,
[dir="rtl"] .stat-item:not(:last-child)::after,
[dir="rtl"] .service-icon,
[dir="rtl"] .video-overlay,
[dir="rtl"] .section:not(.header):not(.footer)::before,
[dir="rtl"] .footer-links h4::after,
[dir="rtl"] .footer-contact h4::after,
[dir="rtl"] .footer-social h4::after {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .btn,
[dir="rtl"] .language-toggle,
[dir="rtl"] .header-actions .btn:first-child {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .nav-menu,
[dir="rtl"] .section:not(.header):not(.footer)::before,
[dir="rtl"] .video-background,
[dir="rtl"] .video-background::before,
[dir="rtl"] .video-overlay,
[dir="rtl"] .intro-text::before,
[dir="rtl"] .video-control,
[dir="rtl"] .video-control-small,
[dir="rtl"] .back-to-top,
[dir="rtl"] .footer-links h4::after,
[dir="rtl"] .footer-contact h4::after,
[dir="rtl"] .footer-social h4::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .stat-item:not(:last-child)::after {
    left: 0;
}

[dir="rtl"] .footer-links ul li a::after {
    content: '→';
    right: -15px;
    left: auto;
}

[dir="rtl"] .footer-links ul li a:hover::after {
    right: -20px;
}

[dir="rtl"] .service-icon {
    margin-left: 20px;
    margin-right: 0;
}

/* اللغة الإنجليزية (LTR) */
[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .service-card,
[dir="ltr"] .value-card,
[dir="ltr"] .nav-menu,
[dir="ltr"] .header-actions .btn:first-child,
[dir="ltr"] .services-three-columns,
[dir="ltr"] .simple-event-card,
[dir="ltr"] .stats-container,
[dir="ltr"] .about-content,
[dir="ltr"] .video-background,
[dir="ltr"] .video-background::before,
[dir="ltr"] .navbar,
[dir="ltr"] .video-control,
[dir="ltr"] .video-control-small,
[dir="ltr"] .back-to-top,
[dir="ltr"] .intro-text::before,
[dir="ltr"] .stat-item:not(:last-child)::after,
[dir="ltr"] .service-icon,
[dir="ltr"] .video-overlay,
[dir="ltr"] .section:not(.header):not(.footer)::before,
[dir="ltr"] .footer-links h4::after,
[dir="ltr"] .footer-contact h4::after,
[dir="ltr"] .footer-social h4::after {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .btn,
[dir="ltr"] .language-toggle,
[dir="ltr"] .header-actions .btn:first-child {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .nav-menu,
[dir="ltr"] .section:not(.header):not(.footer)::before,
[dir="ltr"] .video-background,
[dir="ltr"] .video-background::before,
[dir="ltr"] .video-overlay,
[dir="ltr"] .intro-text::before,
[dir="ltr"] .video-control,
[dir="ltr"] .video-control-small,
[dir="ltr"] .back-to-top,
[dir="ltr"] .footer-links h4::after,
[dir="ltr"] .footer-contact h4::after,
[dir="ltr"] .footer-social h4::after {
    left: 0;
    right: auto;
}

[dir="ltr"] .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

[dir="ltr"] .stat-item:not(:last-child)::after {
    right: 0;
}

[dir="ltr"] .footer-links ul li a::after {
    content: '←';
    left: -15px;
    right: auto;
}

[dir="ltr"] .footer-links ul li a:hover::after {
    left: -20px;
}

[dir="ltr"] .service-icon {
    margin-right: 20px;
    margin-left: 0;
}

/* ==================== */
/* أقسام الصفحة العامة */
/* ==================== */

.section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* خلفية للأقسام فقط */
.section:not(.header):not(.footer) {
    background-color: var(--light-blue-bg);
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(30, 136, 229, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
}

/* إضافة تأثير تدرج خفيف في الخلفية */
.section:not(.header):not(.footer)::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(176, 226, 255, 0.1) 0%, 
        rgba(135, 206, 235, 0.05) 50%, 
        rgba(176, 226, 255, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    font-family: 'Cairo', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--gold-color) 0%, 
        var(--primary-color) 100%);
    bottom: -10px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(138, 115, 42, 0.3);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    font-family: 'Cairo', sans-serif;
}

/* ==================== */
/* الأزرار */
/* ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 3;
    text-align: center;
    min-height: 50px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-light) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 0px var(--primary-dark),
        0 6px 12px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, 
        var(--primary-light) 0%, 
        var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0px var(--primary-dark),
        0 10px 20px rgba(30, 136, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 0px var(--primary-dark),
        0 4px 8px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 4px 0px var(--primary-dark),
        0 6px 12px rgba(30, 136, 229, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0px var(--primary-dark),
        0 10px 20px rgba(30, 136, 229, 0.3);
}

/* ==================== */
/* النافبار - محسن للعرض على جميع الشاشات */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--blur-light);
    border-bottom: 1px solid rgba(30, 136, 229, 0.2);
    box-shadow: 0 2px 20px rgba(30, 136, 229, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.navbar.scrolled .logo-image {
    height: 55px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 1rem;
    border: 1px solid transparent;
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-color);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تغيير لون الروابط عند التمرير */
.navbar.scrolled .nav-link {
    color: var(--primary-dark);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--gold-color);
    background-color: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.language-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 20px;
}

.navbar.scrolled .language-toggle {
    background-color: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-family: 'Cairo', sans-serif;
}

.navbar.scrolled .lang-btn {
    color: var(--primary-dark);
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

.navbar.scrolled .lang-btn.active {
    background-color: var(--primary-light);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
}

.navbar.scrolled .nav-toggle {
    color: var(--primary-dark);
    background-color: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled .nav-toggle:hover {
    background-color: rgba(30, 136, 229, 0.2);
}

/* ==================== */
/* القائمة المنسدلة - محسنة مع خلفية بلور */
/* ==================== */

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: var(--blur-bg);
        -webkit-backdrop-filter: var(--blur-bg);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(30, 136, 229, 0.2);
        z-index: 1000;
        overflow-y: auto;
        border-left: 1px solid rgba(30, 136, 229, 0.1);
    }
    
    [dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 30px rgba(30, 136, 229, 0.2);
        border-left: none;
        border-right: 1px solid rgba(30, 136, 229, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    [dir="ltr"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 18px 20px;
        color: var(--primary-dark);
        border-radius: 10px;
        border: 1px solid rgba(30, 136, 229, 0.15);
        margin: 0;
        text-align: right;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }
    
    [dir="ltr"] .nav-link {
        text-align: left;
        justify-content: flex-start;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(30, 136, 229, 0.15);
        color: var(--primary-dark);
        border-color: rgba(30, 136, 229, 0.3);
        transform: translateX(-5px);
    }
    
    [dir="ltr"] .nav-link:hover,
    [dir="ltr"] .nav-link.active {
        transform: translateX(5px);
    }
    
    .navbar.scrolled .nav-link {
        color: var(--primary-dark);
    }
    
    .language-toggle {
        margin-left: 0;
        margin-top: 25px;
        align-self: flex-end;
        background-color: rgba(30, 136, 229, 0.15);
        border: 1px solid rgba(30, 136, 229, 0.2);
        backdrop-filter: blur(5px);
    }
    
    [dir="ltr"] .language-toggle {
        align-self: flex-start;
    }
    
    .navbar.scrolled .language-toggle {
        background-color: rgba(30, 136, 229, 0.15);
        border: 1px solid rgba(30, 136, 229, 0.2);
    }
    
    .lang-btn {
        color: var(--primary-dark);
        padding: 10px 20px;
        font-weight: 600;
    }
    
    .navbar.scrolled .lang-btn {
        color: var(--primary-dark);
    }
    
    /* زر إغلاق القائمة */
    .close-menu {
        position: absolute;
        top: 25px;
        left: 25px;
        background: rgba(30, 136, 229, 0.1);
        border: 1px solid rgba(30, 136, 229, 0.2);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--primary-dark);
        cursor: pointer;
        z-index: 1001;
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }
    
    [dir="rtl"] .close-menu {
        left: auto;
        right: 25px;
    }
    
    .close-menu:hover {
        color: var(--primary-color);
        background: rgba(30, 136, 229, 0.2);
        transform: rotate(90deg);
    }
    
    /* طبقة خلفية شبه شفافة عند فتح القائمة */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ==================== */
/* الهيدر - محسن للعرض على الشاشات الصغيرة */
/* ==================== */

.header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

/* إضافة تأثير تدرج إضافي على حواف الفيديو */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 70% 30%,
        transparent 30%,
        rgba(30, 136, 229, 0.2) 70%,
        rgba(21, 101, 192, 0.4) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* تحسين الفيديو ليكون أكثر إشراقاً */
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
}

/* محتوى الهيدر */
.header-content {
    z-index: 3;
    position: relative;
    max-width: 900px;
    padding: 20px;
    margin-top: 40px;
}

.company-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 1px;
    position: relative;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffffff 50%, 
        transparent 100%);
    border-radius: 2px;
    width: 200px;
}

.investment-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 20px;
    z-index: 3;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.investment-title::before {
    content: '✦';
    position: absolute;
    top: -25px;
    color: var(--gold-light);
    font-size: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.investment-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 500;
    z-index: 3;
    position: relative;
    font-family: 'Cairo', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 60px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

/* تحسين الأزرار للعرض على الشاشات الصغيرة */
.header-actions .btn {
    min-width: 200px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* زر اكتشف خدماتنا - نص في المنتصف */
.header-actions .btn-primary {
    background: linear-gradient(135deg, 
        rgba(175, 155, 89, 0.95) 0%, 
        rgba(244, 208, 63, 0.95) 100%);
    color: var(--primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 6px 0px var(--gold-dark),
        0 10px 25px rgba(212, 175, 55, 0.5),
        0 0 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.header-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

.header-actions .btn-primary:hover::before {
    left: 100%;
}

.header-actions .btn-primary:hover {
    background: linear-gradient(135deg, 
        rgba(244, 208, 63, 0.95) 0%, 
        rgba(212, 175, 55, 0.95) 100%);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 0px var(--gold-dark),
        0 15px 35px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.5);
}

.header-actions .btn-secondary {
    background-color: rgba(30, 136, 229, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 6px 0px rgba(21, 101, 192, 0.8),
        0 10px 25px rgba(30, 136, 229, 0.4),
        0 0 30px rgba(30, 136, 229, 0.3);
}

.header-actions .btn-secondary:hover {
    background-color: rgba(30, 136, 229, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 0px rgba(21, 101, 192, 0.9),
        0 15px 30px rgba(30, 136, 229, 0.5),
        0 0 40px rgba(30, 136, 229, 0.4);
}

/* ==================== */
/* قسم من نحن */
/* ==================== */

.about-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-blue-bg);
    padding-top: 100px;
    margin-top: 30px;
}

.about-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
    position: relative;
    z-index: 3;
}

.about-video {
    flex: 1;
    position: relative;
    z-index: 3;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    height: 450px;
    z-index: 3;
}

.video-container:hover {
    transform: translateY(-10px);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.video-container:hover video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(30, 136, 229, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 4;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    z-index: 5;
}

.video-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.overlay-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.overlay-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'Cairo', sans-serif;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.1);
    position: relative;
    z-index: 3;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 0 15px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.about-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.intro-text {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 3;
    margin-bottom: 10px;
}

.intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-color), var(--primary-color));
}

.intro-title {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
    font-family: 'Cairo', sans-serif;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.8;
    font-family: 'Cairo', sans-serif;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* الرؤية والرسالة المصغرة */
.compact-vision-mission {
    position: relative;
    z-index: 3;
    margin-top: 5px;
}

.compact-vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.compact-vision-card,
.compact-mission-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 180px;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.compact-vision-card:hover,
.compact-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 136, 229, 0.15);
}

.compact-vision-icon,
.compact-mission-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 1.5rem;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 3;
}

.compact-vision-card:hover .compact-vision-icon,
.compact-mission-card:hover .compact-mission-icon {
    transform: rotateY(180deg);
}

.compact-vision-icon {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(30, 136, 229, 0.2) 100%);
    color: var(--primary-light);
}

.compact-mission-icon {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(30, 136, 229, 0.2) 100%);
    color: var(--primary-light);
}

.compact-vision-content,
.compact-mission-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.compact-vision-content h3,
.compact-mission-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.vision-text,
.mission-text {
    margin-bottom: 0;
}

.compact-vision-arabic {
    font-size: 1rem;
    color: black;
    margin-bottom: 3px;
    line-height: 1.4;
    font-family: 'Cairo', sans-serif;
}

.compact-vision-english {
    font-size: 0.9rem;
    color: black;
    font-style: italic;
    margin-bottom: 0;
    font-family: 'Cairo', sans-serif;
}

.mission-text p {
    font-size: 1rem;
    color: black;
    line-height: 1.5;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

/* ==================== */
/* قسم القيم */
/* ==================== */

.values-section {
    position: relative;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 3;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    z-index: 3;
}

.value-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(30, 136, 229, 0.3),
        0 0 30px rgba(212, 175, 55, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(38, 167, 172, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 3;
}

.value-card:hover .value-icon {
    transform: translateZ(20px) rotateY(360deg);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-light);
}

.value-card h4 {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.value-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

/* ==================== */
/* قسم الخدمات */
/* ==================== */

.services-section {
    position: relative;
    overflow: hidden;
}

.services-three-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 600px;
    position: relative;
    z-index: 3;
}

.services-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 3;
}

/* الأعمدة الجانبية - بنفس الارتفاع */
.services-left, .services-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    position: relative;
    z-index: 3;
}

.services-left .service-card,
.services-right .service-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 3;
}

.services-left .service-card:first-child,
.services-right .service-card:first-child {
    margin-bottom: 30px;
}

.services-left .service-card:hover,
.services-right .service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(30, 136, 229, 0.3),
        0 0 30px rgba(212, 175, 55, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(30, 136, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.services-left .service-card:hover .service-icon,
.services-right .service-card:hover .service-icon {
    transform: translateZ(20px) rotateY(360deg);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--gold-color);
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.service-card p {
    font-size: 1.1rem;
    color: black;
    line-height: 1.7;
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-family: 'Cairo', sans-serif;
}

/* العمود الأوسط - الصورة */
.services-center {
    height: 100%;
    display: flex;
    position: relative;
    z-index: 3;
}

.services-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-blue-bg);
    position: relative;
    z-index: 3;
}

.services-image-container:hover {
    transform: translateY(-10px);
}

.services-center-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    position: relative;
    z-index: 3;
}

.services-image-container:hover .services-center-image {
    transform: scale(1.05);
}

/* ==================== */
/* قسم الفعاليات المبسط */
/* ==================== */

.events-section {
    position: relative;
    overflow: hidden;
}

.simple-event-card {
    display: flex;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.simple-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(30, 136, 229, 0.25),
        0 0 30px rgba(212, 175, 55, 0.15);
}

.event-card-content {
    flex: 1;
    padding: 40px;
    font-family: 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--primary-light) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.event-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

.event-subtitle {
    font-size: 1rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 400;
    font-family: 'Cairo', sans-serif;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item span {
    font-size: 1rem;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
}

.event-description {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    font-family: 'Cairo', sans-serif;
}

.event-actions {
    display: flex;
    gap: 15px;
}

.event-card-image {
    flex: 0 0 600px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.simple-event-card:hover .event-card-image img {
    transform: scale(1.05);
}

/* ==================== */
/* قسم شركاؤنا الاستراتيجيون */
/* ==================== */

.partners-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.partners-slider {
    padding: 20px 0;
    position: relative;
    z-index: 3;
}

.partner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.partner-logo-container {
    width: 200px;
    height: 120px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(30, 136, 229, 0.1);
}

.partner-slide:hover .partner-logo-container {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition);
}

.partner-slide:hover .partner-logo-img {
    opacity: 1;
}

/* ==================== */
/* قسم الاتصال */
/* ==================== */

.contact-section.compact-contact {
    padding: 60px 0;
}

.compact-contact-content {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.compact-form {
    background-color: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3;
}

.compact-form .form-group {
    margin-bottom: 20px;
    position: relative;
    align-content: center;
    z-index: 3;
}

.compact-form input,
.compact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-color);
    position: relative;
    z-index: 3;
}

.compact-form input:focus,
.compact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(30, 136, 229, 0.1),
        0 4px 12px rgba(30, 136, 229, 0.2);
}

.compact-form textarea {
    resize: vertical;
}

/* زر الإرسال في المنتصف */
.form-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.compact-form .btn {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
}

.contact-minimal-info {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.contact-minimal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.contact-minimal-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-minimal-item span {
    color: var(--text-color);
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
}

/* ==================== */
/* الفوتر */
/* ==================== */

.footer.skyblue-footer {
    background: linear-gradient(135deg, 
        #87CEEB 0%, 
        #00BFFF 50%, 
        #1E90FF 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 3;
}

.skyblue-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.skyblue-footer .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
}

.skyblue-footer .footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.skyblue-footer .footer-logo p {
    opacity: 0.9;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Cairo', sans-serif;
}

.skyblue-footer .footer-links h4,
.skyblue-footer .footer-contact h4,
.skyblue-footer .footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.1),
        2px 2px 0px rgba(0, 0, 0, 0.05);
    font-family: 'Cairo', sans-serif;
}

.skyblue-footer .footer-links h4::after,
.skyblue-footer .footer-contact h4::after,
.skyblue-footer .footer-social h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: white;
    bottom: 0;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.skyblue-footer .footer-links ul {
    list-style: none;
}

.skyblue-footer .footer-links ul li {
    margin-bottom: 10px;
}

.skyblue-footer .footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-family: 'Cairo', sans-serif;
    display: inline-block;
}

.skyblue-footer .footer-links ul li a:hover {
    color: white;
}

.skyblue-footer .footer-links ul li a::after {
    content: '→';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.skyblue-footer .footer-links ul li a:hover::after {
    opacity: 1;
}

/* معلومات الاتصال في الفوتر */
.skyblue-footer .footer-contact {
    position: relative;
    z-index: 3;
}

.skyblue-footer .footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skyblue-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.skyblue-footer .footer-contact-item i {
    color: white;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.skyblue-footer .footer-contact-item div {
    display: flex;
    flex-direction: column;
}

.skyblue-footer .footer-contact-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Cairo', sans-serif;
}

.skyblue-footer .footer-contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 2px;
    font-family: 'Cairo', sans-serif;
}

.skyblue-footer .footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.skyblue-footer .footer-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.skyblue-footer .footer-social .social-icon:hover {
    background-color: white;
    color: #00BFFF;
    transform: translateY(-5px);
}

.skyblue-footer .footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
}

.skyblue-footer .footer-bottom p {
    opacity: 0.9;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Cairo', sans-serif;
}

.skyblue-footer .copyright-note {
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: 'Cairo', sans-serif;
}

/* ==================== */
/* زر العودة للأعلى */
/* ==================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

[dir="rtl"] .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.5);
}

/* ==================== */
/* استعلامات الوسائط المحسنة */
/* ==================== */

@media (max-width: 1200px) {
    * {
        margin: 0 ;
        padding: 0;
        box-sizing: border-box;
    }
    .container {
        max-width: 960px;
    }
    
    .section:not(.header):not(.footer) {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    /* تحسينات القائمة المنسدلة */
    .nav-menu {
        width: 90%;
        padding: 120px 25px 30px;
    }
    
    .nav-link {
        padding: 16px 18px;
        font-size: 1.05rem;
    }
    
    /* تحسينات الهيدر */
    .header {
        min-height: 500px;
        padding-top: 80px;
    }
    
    .header-content {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .company-name {
        font-size: 2.2rem;
    }
    
    .investment-title {
        font-size: 1.6rem;
        margin: 30px 0 15px;
        padding-bottom: 15px;
    }
    
    .investment-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .header-actions {
        gap: 15px;
        margin-top: 40px;
    }
    
    .header-actions .btn {
        min-width: 180px;
        height: 50px;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* تحسينات عامة */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .video-container {
        height: 300px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-three-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-center {
        order: -1;
        height: 350px;
    }
    
    .simple-event-card {
        flex-direction: column;
    }
    
    .event-card-image {
        flex: 0 0 250px;
        order: -1;
    }
    
    .compact-contact-content {
        max-width: 90%;
    }
    
    .compact-form {
        padding: 40px;
    }
    
    .contact-minimal-info {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .skyblue-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* تحسينات الهيدر للشاشات الصغيرة */
    * {
        margin: 0 ;
        padding: 0;
        box-sizing: border-box;
    }
    .header {
        height: 85vh;
        min-height: 450px;
        padding-top: 70px;
    }
    
    .company-name {
        font-size: 1.8rem;
    }
    
    .company-name::after {
        width: 150px;
    }
    
    .investment-title {
        font-size: 1.4rem;
        margin: 25px 0 12px;
    }
    
    .investment-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* زر اكتشف خدماتنا - نص في المنتصف */
    .header-actions .btn-primary {
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
    }
    
    .header-actions .btn-secondary {
        justify-content: center;
        text-align: center;
        padding: 14px 20px;
    }
    
    /* تحسينات عامة */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .services-center {
        height: 250px;
    }
    
    .services-left .service-card,
    .services-right .service-card {
        min-height: 160px;
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .compact-form {
        padding: 30px 20px;
    }
    
    .compact-contact-content {
        max-width: 100%;
    }
    
    .contact-minimal-info {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .skyblue-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .skyblue-footer .footer-logo {
        align-items: center;
    }
    
    .skyblue-footer .footer-links h4,
    .skyblue-footer .footer-contact h4,
    .skyblue-footer .footer-social h4 {
        text-align: center;
    }
    
    .skyblue-footer .footer-links h4::after,
    .skyblue-footer .footer-contact h4::after,
    .skyblue-footer .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .skyblue-footer .social-icons {
        justify-content: center;
    }
    
    .back-to-top {
        left: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 15px;
    }
}

@media (max-width: 576px) {
    /* تحسينات للهواتف المحمولة */
    * {
        margin: 0 ;
        padding: 0;
        box-sizing: border-box;
    }
    .logo-image {
        height: 50px;
        max-width: 160px;
    }
    
    .navbar.scrolled .logo-image {
        height: 45px;
    }
    
    /* تحسينات الهيدر */
    .header {
        min-height: 400px;
        padding-top: 60px;
    }
    
    .company-name {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .company-name::after {
        width: 120px;
    }
    
    .investment-title {
        font-size: 1.2rem;
        margin: 20px 0 10px;
        padding-bottom: 10px;
    }
    
    .investment-title::before {
        top: -15px;
        font-size: 1.2rem;
    }
    
    .investment-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .header-actions {
        margin-top: 25px;
    }
    
    .header-actions .btn {
        max-width: 250px;
        height: 45px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* تحسينات عامة */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        min-height: 45px;
    }
    
    .compact-vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .compact-vision-card,
    .compact-mission-card {
        min-height: 140px;
        padding: 15px;
    }
    
    .compact-vision-icon,
    .compact-mission-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .compact-vision-content h3,
    .compact-mission-content h3 {
        font-size: 1rem;
    }
    
    .compact-vision-arabic {
        font-size: 0.9rem;
    }
    
    .compact-vision-english {
        font-size: 0.8rem;
    }
    
    .mission-text p {
        font-size: 0.9rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item {
        padding: 10px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .back-to-top {
        left: 10px;
        bottom: 10px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 10px;
    }
        .stats-container {
        flex-direction: row; /* تغيير من column إلى row */
        flex-wrap: wrap; /* السماح بالتفاف العناصر إذا لزم الأمر */
        gap: 10px; /* تقليل المسافة بين العناصر */
        padding: 15px;
        justify-content: space-between; /* توزيع العناصر بالتساوي */
    }
    
    .stat-item:not(:last-child)::after {
        display: block; /* إعادة إظهار الفواصل بين العناصر */
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 30px; /* تقليل طول الخط */
        background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    }
    
    .stat-item {
        padding: 0 15px;
        position: relative;
        flex: 1; /* جعل كل عنصر يأخذ مساحة متساوية */
        min-width: 25%; /* ضمان أن العناصر تتناسب في سطر واحد */
    }
    
    .stat-number {
        font-size: 1.5rem; /* تقليل حجم الأرقام */
        margin-bottom: 3px;
    }
    
    .stat-text {
        font-size: 0.8rem; /* تقليل حجم النص */
    }
}

@media (max-width: 400px) {
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    * {
        margin: 0 ;
        padding: 0;
        box-sizing: border-box;
    }
    .company-name {
        font-size: 1.4rem;
    }
    
    .investment-title {
        font-size: 1.1rem;
    }
    
    .investment-subtitle {
        font-size: 0.9rem;
    }
    
    .header-actions .btn {
        max-width: 220px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        width: 95%;
        padding: 100px 15px 20px;
    }
    
    .nav-link {
        padding: 14px 15px;
        font-size: 1rem;
    }
    
    .close-menu {
        top: 20px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    [dir="rtl"] .close-menu {
        left: auto;
        right: 15px;
    }
}

/* تحسينات إضافية لضمان التوافق */
@media (hover: none) and (pointer: coarse) {
    /* تحسينات للشاشات التي تعمل باللمس */
    .btn, .nav-link, .value-card, .service-card {
        min-height: 44px; /* الحد الأدنى لمساحة اللمس الموصى بها */
    }
    
    .header-actions .btn {
        min-height: 50px;
    }
    
    /* تعطيل بعض التأثيرات للهواتف */
    .value-card:hover,
    .service-card:hover,
    .compact-vision-card:hover,
    .compact-mission-card:hover {
        transform: none;
    }
}