/* --- إعدادات أساسية وخطوط --- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap' );

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #ffffff;
    color: #9d4555;
    position: relative;
    
}

/* --- الخلفية المتحركة --- */
.gradient-bg { position: absolute; width: 100%; height: 100vh; top: 0; left: 0; overflow: hidden; z-index: -1; }
.gradients-container { position: relative; width: 100%; height: 100%; filter: blur(120px); }
.g1, .g2, .g3, .g4, .g5 { position: absolute; border-radius: 50%; opacity: 0.4; }
.g1 { width: 400px; height: 500px; background: #e0c3fc; top: 5%; right: 5%; animation: move1 15s infinite alternate; }
.g2 { width: 350px; height: 450px; background: #8ec5fc; top: 20%; left: 10%; animation: move2 18s infinite alternate; }
.g3 { width: 300px; height: 400px; background: #fbc2eb; bottom: 10%; right: 25%; animation: move3 12s infinite alternate; }
.g4 { width: 250px; height: 350px; background: #a1c4fd; bottom: 25%; left: 20%; animation: move4 20s infinite alternate; }
.g5 { width: 200px; height: 300px; background: #cfd9df; top: 40%; right: 45%; animation: move5 16s infinite alternate; }
/* --- تعريفات الحركة (Keyframes) للخلفية --- */

@keyframes move1 {
    from { transform: translate(0, 0); }
    to { transform: translate(0, 80px); }
}

@keyframes move2 {
    from { transform: translate(0, 0); }
    to { transform: translate(-150, 50px); }
}

@keyframes move3 {
    from { transform: translate(0, 0); }
    to { transform: translate(90px, -160px); }
}

@keyframes move4 {
    from { transform: translate(0, 0); }
    to { transform: translate(-420px, -90px); }
}

@keyframes move5 {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 40px); }
}
/* --- تصميم شريط التنقل --- */
/* --- تصميم شريط التنقل (متجاوب) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: all 0.4s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

/* تأثير التصغير عند التمرير */
.main-header.scrolled {
    top: 15px;
    padding: 0 5%;
}

.main-header.scrolled .main-nav {
    max-width: 1100px;
    padding: 10px 20px;
    background-color: rgba(228, 67, 67, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-logo img {
    height: 40px;
    transition: height 0.4s ease;
}

.main-header.scrolled .nav-logo img {
    height: 35px;
}

/* --- روابط التنقل (للشاشات الكبيرة) --- */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: #9d4555;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #823a47; /* لون أغمق قليلاً عند المرور */
}

.nav-links a.active {
    color: #9d4555;
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: #9d4555;
    border-radius: 2px;
}

/* --- الأزرار الجانبية --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #9d4555;
    font-weight: 500;
}

.contact-link {
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 50px;
    background-color: #9d4555;
    color: #383838 !important; /* لضمان أن النص أبيض */
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #823a47;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 69, 85, 0.2);
}

.nav-action-link i {
    font-size: 1.1rem;
}

/* --- زر القائمة (للجوال) --- */
.nav-toggle {
    display: none; /* إخفاء الزر على الشاشات الكبيرة */
    background: none;
    border: none;
    color: #9d4555;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100; /* ليكون فوق كل شيء */
}

/* --- التجاوب (Responsive) --- */
@media (max-width: 992px) {
    /* إظهار زر القائمة وإخفاء الروابط */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* إخفاء القائمة خارج الشاشة */
        width: 10%;
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        gap: 25px;
    }

    /* كلاس يتم إضافته عبر JavaScript لإظهار القائمة */
    .nav-links.show-menu {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
    }
    
    /* إخفاء زر "تواصل معنا" من داخل القائمة لتجنب التكرار */
    .nav-links .contact-link {
        display: none;
    }
}

.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 5%; transition: all 0.4s ease; }
.main-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; background-color: transparent; transition: all 0.4s ease; }
.main-header.scrolled { top: 20px; padding: 0; }
.main-header.scrolled .main-nav { max-width: 1000px; padding: 12px 24px; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.nav-logo img { height: 35px; transition: height 0.4s ease;  border-radius:50%}
.main-header.scrolled .nav-logo img { height: 30px; border-radius:50% }
.nav-links { flex-grow: 1; justify-content: center; gap: 30px; display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: #2b1216; font-weight: 500; font-size: 16px; position: relative; padding-bottom: 5px; transition: color 0.3s ease; }
.nav-links a:hover { color: #9d4555; }
.nav-links a.active { color: #9d4555; font-weight: 700; }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; right: 0; width: 100%; height: 2px; background-color: #9d4555; border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-action-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #9d4555; font-weight: 500; }
.contact-link { font-weight: 500; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(0, 0, 0, 0.1); background-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); transition: all 0.3s ease; }
.contact-link:hover { background-color: rgba(255, 255, 255, 0.4); border-color: rgba(0, 0, 0, 0.2); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.nav-action-link i { font-size: 18px; }
.contact-link i { font-size: 14px; transition: transform 0.3s ease; }
.contact-link:hover i { transform: rotate(90deg); }

/* --- قسم الـ Hero --- */
.hero-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100vh; padding: 120px 20px 40px; }
.hero-content { max-width: 800px; }
.hero-title { font-size: 4rem; font-weight: 800; color: #9d4555; margin-bottom: 20px; line-height: 1.2; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease 0.5s forwards; }
.hero-subtitle { font-size: 1.25rem; color: #4a5568; margin-bottom: 40px; line-height: 1.6; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease 0.8s forwards; }
.hero-cta-button { display: inline-block; background-color: #9d4555; color: #fff; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease 1.1s forwards; }
.hero-cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2); }
.hero-image-wrapper { margin-top: 40px; width: 100%; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease 1.4s forwards; }
.hero-image { max-width: 600px; width: 100%; height: auto; filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.15)); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- قسم خبراتنا --- */
.expertise-section { padding: 80px 5%; background-color: #fff; text-align: right; }
.section-title { margin-bottom: 50px; text-align: center; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; color: #1a202c; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 70%; height: 4px; background-color: #9d4555; border-radius: 2px; }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 30px; max-width: 1400px; margin: 0 auto; }
.expertise-card { position: relative; border-radius: 25px; padding: 30px; overflow: hidden; transition: all 0.4s ease; background-color: #f0f2ff; min-height: 250px; display: flex; align-items: flex-end; justify-content: flex-end; }
.expertise-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 86, 179, 0.1); }
.card-content-permanent { z-index: 2; transition: opacity 0.3s ease; }
.expertise-card h3 { font-size: 2rem; font-weight: 700; color: #1a202c; }
.card-content-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 30px; opacity: 0; transition: opacity 0.4s ease 0.1s; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: right; }
.expertise-card:hover .card-content-hover { opacity: 1; }
.expertise-card:hover .card-content-permanent { opacity: 0; }
.card-stats { display: flex; flex-direction: column; gap: 10px; font-size: 1.2rem; text-align: right; font-weight: 500; color: #201919; z-index: 2; }
.card-stats span { display: flex; align-items: center; gap: 10px; }
.card-stats i { color: #f5b01b; }
.card-image { position: absolute; bottom: -20px; left: 30px; width: 220px; z-index: 1; transition: transform 0.4s ease; }
.card-image img { width: 350px; height: auto; }
.expertise-card:hover .card-image { transform: scale(1.05) rotate(-5deg); }
.card-arrow { position: absolute; top: 25px; left: 25px; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #9d4555; font-size: 16px; transform: rotate(45deg); transition: all 0.3s ease; z-index: 3; }
.expertise-card:hover .card-arrow { background-color: #fff; transform: rotate(45deg) scale(1.1); }
.card-tech { background-color: #d6d8ff; }
.card-marketing { background-color: #fde2e4; }
.card-branding { background-color: #d1ede1; }
.card-support { background-color: #fff1d6; }
.card-tech .card-content-permanent h3 { color: #4a5568; }
.card-features {
    list-style: none; /* لإزالة نقاط القائمة الافتراضية */
    padding: 0;
    margin: 10px 0;
    text-align: right; /* لضمان محاذاة النص لليمين */
    font-size: 14px; /* يمكنك تعديل حجم الخط حسب الحاجة */
}

.card-features li {
    margin-bottom: 8px; /* مسافة بين كل ميزة */
}

.card-features li i {
    color: #4CAF50; /* لون أيقونة الصح (أخضر) */
    margin-left: 8px; /* مسافة بين الأيقونة والنص */
}

/* --- قسم الإحصائيات --- */
.stats-section { padding: 60px 5%; background-color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1200px; margin: 0 auto; background-color: #e3e6f9; border-radius: 25px; overflow: hidden; border: 1px solid #e3e6f9; }
.stat-item { background-color: #fcf9f9; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: background-color 0.3s ease; }
.stat-item:hover { background-color: #e3e6f9; }
.stat-item i { font-size: 1.5rem; color: #9d4555; margin-bottom: 10px; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: #4a4a68; }
.stat-label { font-size: 1rem; font-weight: 500; color: #7a7a9a; }
@media (max-width: 992px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .stats-grid { grid-template-columns: repeat(2, 1fr) !important; } .stat-item { padding: 30px 15px; } .stat-item i { font-size: 1.8rem; } .stat-number { font-size: 2rem; } }

/* --- قسم ما الذي يميزنا --- */
.differentiators-section { padding: 80px 5%; background-color: #fff; }
.differentiators-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.differentiators-image img { width: 100%; height: auto; border-radius: 25px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }
.differentiators-content { text-align: right; }
.section-title-highlight { font-size: 2.2rem; font-weight: 800; color: #9d4555; padding: 5px 10px; display: inline; line-height: 1.8; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.section-intro { font-size: 1.1rem; color: #555; margin-top: 25px; margin-bottom: 30px; line-height: 1.7; }
.differentiators-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.differentiators-list li { font-size: 1rem; color: #444; line-height: 1.6; position: relative; padding-right: 25px; }
.differentiators-list li::before { content: '■'; position: absolute; top: 5px; right: 0; color: #9d4555; font-size: 12px; }
.differentiators-list li strong { font-weight: 700; color: #9d4555; }
@media (max-width: 992px) { .differentiators-container { grid-template-columns: 1fr; gap: 40px; } .differentiators-image { order: 2; } .differentiators-content { order: 1; text-align: center; } .differentiators-list { align-items: flex-start; display: inline-block; text-align: right; } }

/* --- قسم أحدث أعمالنا (Carousel) --- */
.portfolio-section { padding: 80px 0; background-color: #2c2526; color: #fff; overflow: hidden; }
.portfolio-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; }
.portfolio-title { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 50px; color: #ffffff; }
.project-card {background-color: #3b3233; border-radius: 20px; padding: 25px; display: flex; flex-direction: column; height: 430px; width: 350px; transition: transform 0.3s ease; box-shadow: 0.3s ease; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); }
.project-content { flex-grow: 1; }
.project-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.project-tags span { font-size: 0.8rem; font-weight: 500; padding: 5px 12px; border-radius: 50px; background-color: #9d4555; color: #fff; }
.project-tags .tag-secondary { background-color: #3a3a5a; }
.project-content p { font-size: 0.95rem; color: #c0c0d0; line-height: 1.6; margin-bottom: 25px; }
.project-image { width: 100%; border-radius: 15px; overflow: hidden; }
.project-image img { width: 100%; height: auto; display: block; }
.swiper-button-next, .swiper-button-prev { color: #fff; background-color: rgba(255, 255, 255, 0.1); width: 50px; height: 50px; border-radius: 50%; backdrop-filter: blur(5px); transition: background-color 0.3s ease; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(255, 255, 255, 0.2); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.2rem; }
/* --- تنسيقات قسم "خدمات بيانة" --- */
.services-section {
    padding: 80px 5%;
    color: #333; /* لون النص الافتراضي */
    text-align: center;
}

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

.services-header {
    margin-bottom: 50px;
}.services-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9d4555; /* نفس لون عنوان الأسئلة الشائعة */
    margin-bottom: 15px;
}

.services-header p {
    font-size: 1.1rem;
    color: #777; /* لون نص أغمق */
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto; /* لتوسيط النص */
}

/* --- شبكة الخدمات --- */
.services-grid {
    display: grid;
    /* شبكة من 3 أعمدة على الشاشات الكبيرة */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card {
    background-color: #f0f2ff; /* لون أساسي فاتح */
    border: 1px solid transparent; /* حد شفاف في البداية */
    border-radius: 15px;
    padding: 40px 20px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568; /* لون نص داكن */
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

/* --- إضافة ألوان الباستيل المخصصة للبطاقات --- */
.service-color-1 { background-color: #d6d8ff; } /* بنفسجي فاتح */
.service-color-2 { background-color: #fde2e4; } /* وردي فاتح */
.service-color-3 { background-color: #d1ede1; } /* أخضر فاتح */
.service-color-4 { background-color: #fff1d6; } /* أصفر فاتح */
.service-color-5 { background-color: #cce7ff; } /* أزرق فاتح */
.service-color-6 { background-color: #f0f0f0; } /* رمادي فاتح */

/* تغيير لون النص في البطاقات الداكنة قليلاً لتباين أفضل */
.service-color-1, .service-color-5 {
    color: #3a3a5a;
}

/* --- جعل القسم متجاوبًا --- */

/* للشاشات المتوسطة (مثل الأجهزة اللوحية) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودان فقط */
    }
}

/* للشاشات الصغيرة (مثل الهواتف) */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr; /* عمود واحد فقط */
    }
    .service-card {
        font-size: 1.1rem;
        min-height: 120px;
    }
}
/* --- تنسيقات قسم العملاء والشركاء --- */
.clients-section {
    padding: 80px 5%;
    text-align: center;
}

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

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

.clients-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9d4555; /* لون ذهبي */
    margin-bottom: 15px;
}

.clients-header p {
    font-size: 1.1rem;
    color: #777;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.6); /* جعل الشعار رمادي وباهت قليلاً */
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1); /* إظهار اللون الأصلي للشعار عند الـ Hover */
}

/* --- تنسيقات قسم الأسئلة الشائعة --- */
.faq-section {
    padding: 80px 5%;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9d4555; /* لون أزرق داكن */
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 1.1rem;
    color: #777;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden; /* مهم لإخفاء الإجابة */
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #9d4555;
}

.faq-question i {
    font-size: 1rem;
    color: #9d4555;
    transition: transform 0.3s ease;
    background-color: #f0f5f7;
    padding: 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    max-height: 0; /* إخفاء الإجابة في البداية */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* حالة السؤال المفتوح */
.faq-item.active .faq-answer {
    max-height: 200px; /* ارتفاع تقريبي، يمكن زيادته إذا كانت الإجابات أطول */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* تدوير أيقونة الزائد لتصبح ناقص */
}

/* --- تنسيقات الفوتر (Footer) --- */
.main-footer-final {
    padding: 60px 5% 30px;
    background-color: #2c2526;
    color: #a0a0c0;
}

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

.footer-logo {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo .logo-arabic {
    font-size: 2.5rem;
    font-weight: 700;
    color: #9d4555;
    margin: 0;
}

.footer-logo .logo-english {
    font-size: 1rem;
    color: #a0a0c0;
    letter-spacing: 2px;
    margin-top: -5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2a2a4a;
    padding-top: 30px;
    flex-wrap: wrap; /* للسماح بالتجاوب في الشاشات الصغيرة */
    gap: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #a0a0c0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

.footer-back-to-top .top-link {
    background-color: #9d4555;
    color: #2c2526;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.footer-back-to-top .top-link:hover {
    background-color: #9d4555;
}

/* تجاوب الفوتر */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column; /* تحويل العناصر إلى عمود */
        justify-content: center;
    }
    .footer-social {
        order: 1; /* تغيير الترتيب */
    }
    .footer-copyright {
        order: 2;
    }
    .footer-back-to-top {
        order: 3;
    }
}
/* -------------------------------------- */
@media (max-width: 992px) {
    /* --- شريط التنقل --- */
    .nav-toggle {
        display: block; /* إظهار زر القائمة */
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* إخفاء القائمة خارج الشاشة */
        width: 70%; /* تصحيح العرض من 10% إلى 70% */
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        gap: 25px;
    }

    .nav-links.show-menu {
        right: 0; /* إظهار القائمة عند النقر */
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
    }

    /* --- قسم Hero --- */
    .hero-title {
        font-size: 3.2rem; /* تصغير العنوان */
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* --- قسم خبراتنا --- */
    .expertise-grid {
        grid-template-columns: 1fr; /* عرض البطاقات فوق بعضها */
    }

    /* --- قسم ما يميزنا --- */
    .differentiators-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .differentiators-image {
        order: 2;
    }
    .differentiators-content {
        order: 1;
        text-align: center;
    }
    .differentiators-list {
        display: inline-block;
        text-align: right;
    }

    /* --- قسم الخدمات --- */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* -------------------------------------- */
/* --- شاشات الجوال (حتى 768px) --- */
/* -------------------------------------- */
@media (max-width: 768px) {
    /* --- الأقسام بشكل عام --- */
    .expertise-section, .portfolio-section, .services-section, .clients-section, .faq-section, .differentiators-section, .stats-section {
        padding: 80px 5%; /* تقليل الحشو العلوي والسفلي */
    }
    .section-title h2, .services-header h2, .clients-header h2, .faq-header h2, .portfolio-title {
        font-size: 2.2rem; /* تصغير كل عناوين الأقسام */
        margin-bottom: 40px;
    }

    /* --- قسم Hero --- */
    .hero-container {
        padding-top: 100px;
    }
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    /* --- قسم أحدث أعمالنا --- */
    .swiper-button-next, .swiper-button-prev {
        display: none; /* إخفاء أسهم التنقل في الكاروسيل */
    }
    .project-card {
        width: auto; /* جعل عرض البطاقة تلقائيًا ليتناسب مع الشاشة */
    }

    /* --- الفوتر --- */
    .footer-bottom {
        flex-direction: column; /* ترتيب عناصر الفوتر فوق بعضها */
        justify-content: center;
        gap: 25px;
    }
    .footer-copyright, .footer-social, .footer-back-to-top {
        text-align: center;
    }
}


/* -------------------------------------- */
/* --- شاشات الجوال الصغيرة (حتى 576px) --- */
/* -------------------------------------- */
@media (max-width: 576px) {
    .contact-link span {
        display: none; /* إخفاء نص "تواصل معنا" وإبقاء الأيقونة فقط */
    }
    .contact-link {
        padding: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }
    .hero-cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* --- قسم الخدمات والعملاء والإحصائيات --- */
    .services-grid, .clients-grid, .stats-grid {
        grid-template-columns: 1fr; /* عرض البطاقات في عمود واحد */
    }
}

/* --- قسم دوراتنا (النسخة المحسنة V2) --- */
.courses-section-v2 {
    padding: 80px 5%;
    background-color: #f9fafb; /* خلفية رمادية فاتحة جدًا للتباين */
    text-align: center;
}

.courses-section-v2 .section-title p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin:  10px auto;
    line-height: 1.7;
}

.courses-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.course-card-v2 {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.course-icon-v2 {
    font-size: 2.5rem;
    color: #9d4555;
    margin-bottom: 20px;
}

.course-title-v2 h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.course-price-v2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #9d4555;
    background-color: #fdf2f8;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
}

.course-hover-content-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(61, 19, 19, 0.85), transparent);
    padding: 60px 30px 30px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card-v2:hover .course-hover-content-v2 {
    transform: translateY(0);
}

.course-hover-content-v2 p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
}

.course-link-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    background-color: var(--course-color, #9d4555);
    padding: 12px 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.course-link-v2:hover {
    background-color: #fff;
    color: #1f2937;
}

.course-link-v2 i {
    transition: transform 0.3s ease;
}

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

/* --- قسم مميزات الدورات --- */
.course-features-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: right;
}

.feature-item-v2 {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.feature-item-v2 i {
    font-size: 1.8rem;
    color: #9d4555;
    margin-bottom: 15px;
    background-color: #fdf2f8;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    display: block;
}

.feature-item-v2 h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.feature-item-v2 p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}
