/* خصائص عامة للصفحة */
body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* تنسيق التصميم البريميوم */
.premium-theme {
    background-color: #f0f8ff;
    color: #333333;
}

.premium-theme .section-premium {
    background-color: #ffffff;
    position: relative;
    padding: 50px 0;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.premium-theme .banner-premium {
    background: linear-gradient(135deg, #072b5a 0%, #0a4999 100%);
    color: #ffffff;
}

.premium-theme .section-title-premium {
    color: #072b5a;
}

.premium-theme .section-subtitle-premium {
    color: #555555;
}

.premium-theme .nav-link-premium {
    font-size: 16px;
    font-weight: 500;
}

.premium-theme .nav-link-premium:hover {
    color: #0a4999;
}

.premium-theme .nav-item-premium.active .nav-link-premium {
    color: #d4af37;
    font-weight: 500;
    font-size: 16px;
}

.premium-theme .btn-primary-premium {
    background-color: #0a4999;
    border-color: #0a4999;
    color: #ffffff;
}

.premium-theme .btn-primary-premium:hover {
    background-color: #072b5a;
    border-color: #072b5a;
}

/* قسم Hero المتطور */
.hero-premium {
    height: 40vh; /* تقليص الارتفاع من 100vh إلى 40vh */
    min-height: 300px; /* زيادة الحد الأدنى للارتفاع */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #072b5a 0%, #0a4999 100%);
    padding-top: 160px; /* زيادة المسافة العلوية بحوالي 1 سم إضافي */
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-overlay.png') repeat;
    opacity: 0.1;
    animation: slideBackground 20s linear infinite;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* تغيير من center إلى flex-start لتحريك المحتوى للأعلى */
    height: 100%;
    padding: 0 15px; /* إزالة البادنغ العلوي والسفلي لأننا أضفنا padding-top للقسم نفسه */
}

.hero-premium h1 {
    font-size: 2.8rem; /* تقليل حجم الخط ليتناسب مع المساحة الأصغر */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px; /* تقليل الهامش السفلي */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-premium p {
    font-size: 1.1rem; /* تقليل حجم الخط للفقرة */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px; /* تقليل الهامش السفلي */
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-premium .hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

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

@keyframes slideBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}
/* بطاقات الخدمات المتطورة */
.services-premium {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.service-card-premium {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card-premium::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #072b5a 0%, #0a4999 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-premium:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card-premium:hover::after {
    opacity: 1;
}

.service-card-premium:hover * {
    color: #ffffff;
}

.service-card-premium .service-icon {
    font-size: 3rem;
    color: #072b5a;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
}

.service-card-premium:hover .service-icon {
    transform: scale(1.2);
    color: #d4af37;
}

.service-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #072b5a;
    transition: all 0.4s ease;
}

.service-card-premium p {
    color: #666;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card-premium .read-more {
    color: #072b5a;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s ease;
}

.service-card-premium .read-more::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.service-card-premium:hover .read-more {
    color: #d4af37;
}

.service-card-premium:hover .read-more::after {
    transform: translateX(5px);
}
/* قسم العملاء والشركاء المتطور */
.clients-section-premium {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.clients-section-premium::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0) 70%);
    top: -150px;
    left: -150px;
    z-index: 0;
}

.clients-section-premium::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7,43,90,0.05) 0%, rgba(7,43,90,0) 70%);
    bottom: -200px;
    right: -200px;
    z-index: 0;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.client-logo {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.client-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
}

.clients-carousel {
    position: relative;
    margin-top: 50px;
    padding: 0 30px;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255,255,255,0));
}

.clients-slide-track {
    display: flex;
    width: calc(150px * 20);
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 10));
    }
}
/* شريط التنقل المتطور */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(10, 58, 120, 0.08);
    transition: all 0.4s ease;
    height: auto;
    padding: 5px 0;
}

.header-inner-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

/* قواعد اللوجو */
.logo-premium {
    max-width: 180px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 5px 0;
}

.logo-premium:hover {
    transform: scale(1.02);
}

.logo-premium img {
    max-width: 100%;
    height: auto;
    max-height: 42px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

/* تحسين صورة الشعار لإظهار اسم الشركة بشكل أوضح */
.logo-image-enhanced {
    transform: scale(2.8);
    transform-origin: right center; /* تغيير نقطة الأصل لتناسب الاتجاه العربي */
    object-fit: contain;
    max-height: 45px !important;
    margin-right: -20px; /* تعديل موضع الشعار للتناسب مع الحجم الأكبر */
    margin-top: 0; /* إزالة الهامش السالب */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

/* للتوافق مع الصفحات التي تستخدم الفئة 'logo' بدلاً من 'logo-premium' */
.header-inner-premium .logo {
    max-width: 180px;
    display: flex;
    align-items: center;
    padding: 5px 0;
    margin: 0;
}

.header-inner-premium .logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

.header-premium.scrolled .header-inner-premium {
    padding: 0;
}

.nav-list-premium {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style-type: none;
    height: 100%;
}

.nav-item-premium {
    position: relative;
    transition: transform 0.2s ease;
}

/* المسافة بين القائمة وأزرار الهيدر */
.nav-list-premium {
    margin-right: 50px;
}

.nav-item-premium:hover {
    transform: translateY(-2px);
}

.nav-link-premium {
    color: #072b5a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.header-premium.scrolled .nav-link-premium {
    color: #072b5a;
    padding: 5px 0;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to left, #4db0ff, #0a3a78);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link-premium:hover::after,
.nav-item-premium.active .nav-link-premium::after {
    width: 100%;
}

.nav-link-premium:hover,
.nav-item-premium.active .nav-link-premium {
    color: #0a3a78;
    transform: translateY(-2px);
}

.nav-item-premium.active .nav-link-premium::after {
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, #4db0ff, #0a3a78);
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    transition: all 0.3s ease;
    background: linear-gradient(to left, #4db0ff, #0a3a78);
    border-radius: 3px;
}

.hamburger {
    display: none;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    z-index: 20;
}

.header-buttons-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

.btn-premium {
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-left: 10px;
}

.btn-primary-premium {
    background: linear-gradient(45deg, #0a3a78, #4db0ff);
    color: #ffffff;
    position: relative;
    letter-spacing: 0.5px;
}

.btn-primary-premium:hover {
    background: linear-gradient(45deg, #4db0ff, #0a3a78);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 176, 255, 0.35);
}

.btn-primary-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.25) 100%);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn-primary-premium:hover::before {
    width: 100%;
}

/* إضافة أيقونة للزر */
.btn-premium i {
    margin-right: 8px;
    font-size: 15px;
}

/* تحسين تأثير التحويم على الزر */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary-premium {
    background-color: rgba(255, 255, 255, 0.95);
    color: #072b5a;
    border: 1px solid #e0e0e0;
}

.btn-secondary-premium:hover {
    background-color: #f5f5f5;
    color: #0a4999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.header-premium.scrolled .btn-secondary-premium {
    color: #072b5a;
    border-color: #072b5a;
}

/* Language Switcher Premium Styles */
.language-switcher-premium {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f8ff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-left: 22px;
}

.language-switcher-premium:hover {
    background: #e6f0ff;
    box-shadow: 0 4px 12px rgba(10, 73, 153, 0.15);
}

.language-switcher-premium::before {
    content: '🌐';
    font-size: 18px;
}

.language-switcher-dropdown-premium {
    position: relative;
    display: inline-block;
}

.language-toggle-premium {
    background-color: transparent;
    border: 1px solid #d4af37;
    border-radius: 4px;
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.language-toggle-premium:hover {
    background-color: #d4af37;
    color: white;
}

.language-toggle-premium .language-flag {
    height: 18px;
    width: auto;
    margin-right: 0.5rem;
}

.language-menu-premium {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 150px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.language-menu-premium.show {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

.language-option-premium {
    color: #333;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-option-premium:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option-premium.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-weight: 500;
}

.language-option-premium .language-flag {
    height: 16px;
    width: auto;
    margin-right: 0.75rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional language switcher styles for RTL support */
html[dir="rtl"] .language-option-premium .language-flag {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .language-toggle-premium .language-flag {
    margin-right: 0;
    margin-left: 0.5rem;
}

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

/* Responsive styles for language switcher */
@media (max-width: 768px) {
    .language-switcher-premium {
        margin-right: 0.5rem;
    }
    
    .language-toggle-premium {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .language-toggle-premium .language-flag {
        height: 16px;
    }
}
