
/* CSS Variables - الألوان المحدثة */
:root {
    --primary-bg: linear-gradient(to bottom, #1A1A1A, #262626 );
    --secondary-bg: #292929;
    --text-light: #F0F0F0;
    --text-muted: #C0C0C0;
    --brand-color: #5F2A95; /* النيلي الغامق للهوية */
    --accent-color: #FF9800; /* البرتقالي للأزرار والتمييز */
}


/* General Styles - التنسيقات العامة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}




body {
    font-family: 'Cairo', sans-serif;
    background: var(--primary-bg);
    color: var(--text-light);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--brand-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(121, 81, 168, 0.4);
}

.cta-button:hover {
    background-color: #63438A;
    transform: translateY(-5px);
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Header - الشريط العلوي */
:root {
    --primary-bg: rgba(26, 26, 26, 0.7);
    --secondary-bg: #1a1a1a;
    --text-light: #fff;
    --accent-color: #ff9800;
}

.main-header {
    background-color: var(--primary-bg);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .main-header.scrolled {
        background-color: var(--secondary-bg);
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-right: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

    .nav-menu a:hover {
        color: var(--accent-color);
    }

.hamburger {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: inline-block;
}

.nav-menu {
    display: none;
}

    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.95); /* شبه شفاف بدلاً من السواد الكامل */
        backdrop-filter: blur(5px); /* يعطي تأثير ضبابي لطيف */
        padding: 10px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* ظل خفيف يعطي عمق */
        border-radius: 0 0 8px 8px; /* حواف خفيفة في الأسفل */
        z-index: 999; /* فوق الهيدر */
    }

        .nav-menu.active ul {
            flex-direction: column;
            align-items: center;
        }

        .nav-menu.active li {
            margin: 10px 0;
        }
    


@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: block !important;
        position: static;
    }

        .nav-menu ul {
            flex-direction: row;
        }

        .nav-menu li {
            margin: 0 15px;
        }
}

/* ----------------------------------------------------- */
/* 1. التنسيقات الأساسية للقائمة الرئيسية (nav-menu) */
/* ----------------------------------------------------- */

.nav-menu ul {
    /* تأكد أن القائمة الرئيسية أفقية */
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ----------------------------------------------------- */
/* 2. ضبط القائمة المنسدلة (Dropdown) على شاشة الكمبيوتر (Desktop) */
/* ----------------------------------------------------- */
@media (min-width: 769px) {

    /* جعل العنصر الأب (قائمة الخدمات) هو نقطة التموضع */
    .nav-menu ul li.dropdown {
        position: relative;
    }

    /* القائمة الفرعية: الإخفاء والتموضع العمودي */
    .dropdown-menu {
        /* *** الحل لمشكلة الفتح المستمر: إخفاء القائمة افتراضياً *** */
        display: none;
        /* *** الحل لمشكلة الظهور الأفقي: تموضع مطلق وخاصية عرض الكتلة *** */
        position: absolute;
        top: 100%; /* تظهر أسفل الرابط مباشرة */
        right: 0;
        list-style: none;
        padding: 0;
        margin: 0;
        /* التصميم العمودي */
        background-color: #fff;
        border: 1px solid #ccc;
        min-width: 220px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: right;
    }

        /* الروابط داخل القائمة الفرعية: جعلها عمودية */
        .dropdown-menu li a {
            /* جعل كل رابط يأخذ سطر كامل */
            display: block;
            padding: 10px 15px;
            text-decoration: none;
            color: #333;
        }

    /* *** الحل لإظهار القائمة عند التمرير *** */
    .nav-menu ul li.dropdown:hover .dropdown-menu {
        display: block; /* عند التمرير، تظهر القائمة المنسدلة */
    }
}
/* ---------------------------------------------------------------------- */
/* هذا الكود يُستبدل به الجزء الخاص بالقائمة المنسدلة (dropdown) في ملف CSS لديك */
/* ---------------------------------------------------------------------- */
@media (min-width: 769px) {

    /* 1. العنصر الأب (قائمة الخدمات): تحديد نقطة التموضع */
    .nav-menu ul li.dropdown {
        position: relative;
    }

    /* 2. القائمة الفرعية (الحاوية): الإخفاء الافتراضي والتموضع المطلق */
    .dropdown-menu {
        /* الإخفاء الافتراضي، لضمان عدم وجود فتح دائم */
        display: none !important;
        /* التموضع */
        position: absolute;
        top: 100%;
        right: 0;
        /* *** التعديل: الخلفية الداكنة وشبه الشفافة (90% شفافية) *** */
        background-color: rgba(0, 0, 0, 0.9);
        /* الحدود والظل */
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 220px;
        z-index: 1000;
        text-align: right;
    }

        /* 3. عناصر القائمة الفرعية (li): لضمان الترتيب العمودي */
        .dropdown-menu li {
            /* فرض الظهور كـ Block لترتيبها عمودياً */
            display: block !important;
            width: 100%;
            /* خط فاصل فاتح */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

            /* 4. الروابط داخل القائمة الفرعية (a): لضمان الترتيب العمودي ولون الخط */
            .dropdown-menu li a {
                /* فرض الظهور كـ Block لملء السطر */
                display: block !important;
                padding: 10px 15px;
                text-decoration: none;
                /* *** التعديل: لون الخط فاتح ليتناسب مع الخلفية الداكنة *** */
                color: #f0f0f0;
                white-space: nowrap;
            }

                /* 5. تأثير عند المرور على رابط فرعي */
                .dropdown-menu li a:hover {
                    /* تغيير الخلفية عند المرور */
                    background-color: rgba(255, 255, 255, 0.1);
                    color: #00bcd4; /* لون التمييز */
                }

    /* 6. الإظهار عند التمرير */
    .nav-menu ul li.dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* ----------------------------------------------------- */
/* (يمكنك وضع تنسيقات الجوال كما تم شرحها مسبقاً في @media (max-width: 768px)) */
/* ----------------------------------------------------- */

/* Main Page Sections - الأقسام الرئيسية */


/* ====== HERO ====== */
.hero {
    position: relative;
    height: 100vh; /* يغطي كامل الشاشة */
    display: flex;
    align-items: flex-end;  /* يضع المحتوى أسفل قليلاً */
    justify-content: center; /* يوسّط أفقياً */
    padding: 0 20px 80px 20px; /* يضيف مسافة من الأسفل */
    text-align: center; /* النص في الوسط */
    color: #fff;
    overflow: hidden;
    
}

/* محتوى الهيرو فوق الباترن */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hero-content {
    padding-top: 300px; /* المسافة من الأعلى */
    padding-bottom: 200px; /* المسافة من الأسفل */
}


.hero {
    justify-content: center; /* يوسّط المحتوى أفقياً */
    text-align: center;      /* يجعل النصوص وسط */
}

/* العنوان */
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center; /* يضمن النص في الوسط */
}
.hero {
    display: flex;
    align-items: flex-end;  /* ↓ يحرك المحتوى للأسفل */
    padding-bottom: 150px;   /* المسافة بين النص وأسفل الهيرو */
}

/* النص الفرعي */
.hero-subtitle {
    font-size: 1.3rem;
    margin-top: 15px;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

/* مؤشر الكتابة */
.cursor {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}


.hero-bg {
    background-color: #1a1a1a; /* اللون الداكن الأخف */
    background-image: 
        radial-gradient(#444 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px, 20px 20px;
}


.hero {
    position: relative;
    height: 30vh; /* أقل من ثلث الشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a; /* خلفية داكنة أساسية */
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
}

/* نص الهيرو */
.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}





/* Why Us Section - قسم "لماذا نحن؟" */

/* هذا الكود يطبق فقط على الحاوية الموجودة داخل قسم Why Us */
.why-us .container {
    max-width: 1400px; /* غيّر القيمة حسب العرض المطلوب */
    margin: 0 auto;
    padding: 0 15px;
}



.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* للإجبار على 4 أعمدة */
    gap: 30px;
}
.why-us {
    padding: 100px 0;
    text-align: center;
}

.why-us-grid {
    display: grid;
    /* نجبر الـ Grid على 4 أعمدة متساوية على الشاشات الكبيرة */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-card {
    background-color: var(--secondary-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reason-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Services Section - قسم الخدمات */
.services {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

/* بطاقات الخدمات التفاعلية */
.service-card {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* This handles the hover on desktop */
.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* This handles the click on mobile */
.service-card.flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background-color: #333;
    color: var(--text-light);
}

.service-card-front i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card-front h3 {
    color: var(--accent-color);
}

.service-card-back {
    background-color: var(--brand-color);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.service-card-back h3 {
    margin-bottom: 15px;
}

/* Portfolio Section - قسم أعمالنا */
/* العنوان الرئيسي */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
}

/* العناوين الفرعية */
.portfolio-subtitle {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FF9800;
    margin: 30px 0 15px;
    text-align: right; /* أو center لو تحبها بالوسط */
}

/* صف البطاقات */
.portfolio-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* تصميم البطاقة */
.project-card {
    position: relative;
    background: #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

    .project-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease, filter 0.5s ease;
    }

    .project-card:hover img {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .project-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 150, 255, 0.25);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .project-card:hover::before {
        opacity: 1;
    }

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    }

/* زر */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

    .cta-button:hover {
        background-color: #e05500;
    }



}

.why-us-section {
    background: #0A0A0A url('pattern.png') repeat;
    color: #fff;
    padding: 80px 20px;
    position: relative;
}

    .why-us-section .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

        .why-us-section .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

.why-us-block {
    margin-bottom: 60px;
}

    .why-us-block h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        color: var(--brand-color, #FF9800);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card i {
        font-size: 2.2rem;
        color: #FF9800;
        margin-bottom: 15px;
    }

    .feature-card h4 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        color: #fff;
    }

    .feature-card p {
        font-size: 1rem;
        color: #ddd;
        line-height: 1.7;
    }

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

.sub-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

    .sub-feature-list li {
        margin-bottom: 10px;
        font-size: 0.95rem;
        color: #ccc;
    }

    .sub-feature-list i {
        color: #FF9800;
        margin-right: 8px;
    }

.result-block .feature-card {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #FF9800;
}

.feature-card.big-card {
    text-align: center; /* توسيط النص */
    padding: 30px;
}

    .feature-card.big-card .card-intro {
        font-size: 1rem;
        margin: 10px 0 20px;
        color: #ddd;
    }

    .feature-card.big-card .sub-feature-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: inline-block; /* يخلي القائمة تتوسّط */
        text-align: right; /* يضبط المحاذاة الداخلية للنص */
    }

        .feature-card.big-card .sub-feature-list li {
            margin-bottom: 12px;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .feature-card.big-card .sub-feature-list i {
            color: #FF9800;
            font-size: 1.1rem;
        }


/* تنسيق العناوين الكبيرة (H2/H3) في قسم "لماذا نحن" */
.why-us-section h2,
.why-us-section h3 {
    color: var(--accent-color) !important; /* 🟠 استخدام البرتقالي كـ لون التمييز */
    /* يمكنك إضافة خصائص أخرى مثل: */
    /* font-weight: bold; */
}



/* ====== الفورم ====== */
.contact-form {
    max-width: 700px; /* أقصى عرض للفورم */
    width: 100%; /* يشغل كل المساحة المتاحة */
    margin: 0 auto; /* توسيط الفورم أفقياً */
    padding: 20px; /* مساحة داخلية */
    box-sizing: border-box; /* يضمن أن padding لا يزيد العرض */
    background-color: #f9f9f9; /* لون خلفية لطيف للفورم */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

    /* ====== الحقول ====== */
    .contact-form input,
    .contact-form textarea {
        width: 100%; /* يشغل كل المساحة المتاحة داخل الفورم */
        padding: 12px; /* مساحة داخلية مريحة */
        margin-bottom: 15px; /* مسافة بين الحقول */
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 1rem;
        font-family: 'Cairo', sans-serif;
    }

    /* ====== زر الإرسال ====== */
    .contact-form button {
        width: 100%; /* الزر يشغل عرض كامل الفورم */
        padding: 12px;
        font-size: 1rem;
        border: none;
        border-radius: 5px;
        background-color: #007bff;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
    }

        .contact-form button:hover {
            background-color: #0056b3;
            transform: scale(1.02); /* حركة خفيفة عند المرور */
        }

    /* ====== عنوان الفورم ====== */
    .contact-form h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.8rem;
        color: #333;
        font-weight: 700;
    }
.contact-item {
    display: flex; /* ترتيب الأيقونة والنص في صف واحد */
    align-items: center; /* محاذاة عمودية وسطية */
    gap: 8px; /* مسافة بين الأيقونة والنص */
    margin-bottom: 10px; /* مسافة بين العناصر */
}

    .contact-item i {
        font-size: 1.2rem; /* حجم الأيقونة */
        color: #F0F0F0; /* لون الأيقونة */
    }


/* Footer - الشريط السفلي */
.main-footer {
    background-color: var(--secondary-bg);
    padding: 50px 0;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    text-align: right;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-light);
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--text-light);
}


.footer-column .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #1dbf73;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1rem;
}

    .footer-column .cta-button i {
        font-size: 1.2rem;
    }

    .footer-column .cta-button:hover {
        background-color: #16a05a;
        transform: translateY(-2px);
    }



/* About Page Specific Styles - تنسيقات خاصة بصفحة "من نحن" */


/* هيرو صفحة "قصتنا" */
.about-page-hero {
    position: relative;
    height: 300px; /* ارتفاع الهيرو */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    text-align: center;
}




.about-page-hero .container h1 {
    font-size: 3.5rem !important; /* تكبير العنوان */
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.about-page-hero .container p {
    font-size: 1.5rem !important; /* تكبير النص */
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ddd;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}



.about-section {
    width: 100%;
    padding: 60px 40px; /* مسافة جيدة عن الحواف */
    background-color: #444444;
    color: #fff;
}

    .about-section .container {
        max-width: 1200px; /* عرض مناسب للنصوص */
        margin: 0 auto;
    }

.about-content {
    display: block;
    text-align: center;
}

    .about-content .text h2 {
        font-size: 2.8rem;
        margin-bottom: 25px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #fff;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
        opacity: 0; /* يبدأ مخفي */
        animation: fadeInUp 1s ease forwards;
        animation-delay: 0.2s; /* يظهر أولًا */
    }

    .about-content .text p {
        font-size: 1.25rem;
        line-height: 2;
        color: #ddd;
        max-width: 90%; /* يشغل 90% من الحاوية */
        margin: 0 auto;
        letter-spacing: 0.5px;
        text-align: justify;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        opacity: 0; /* يبدأ مخفي */
        animation: fadeInUp 1s ease forwards;
        animation-delay: 0.5s; /* يظهر بعد العنوان */
    }

/* أنيميشن الدخول */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section .container {
    display: block !important; /* إلغاء أي flex أو grid سابق */
    width: 100% !important; /* يشغل كل عرض القسم */
    max-width: 95% !important; /* مسافة من الجانبين */
    margin: 0 auto !important; /* مركزي بالكامل */
}

.about-content {
    display: block !important; /* إلغاء أي float أو flex سابق */
    width: 100% !important;
    text-align: center;
}

    .about-content .text {
        display: block !important;
        width: 70% !important;
        max-width: 70% !important; /* الآن يشغل كل مساحة الحاوية */
        margin: 0 auto !important;
        text-align: justify; /* يحافظ على شكل النص المرتب */
    }


    .about-page-hero .container h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .about-page-hero .container p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

.about-page-hero {
    padding: 150px 0 80px;
    text-align: center;
}

.about-page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.about-page-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content .text {
    text-align: right;
}

.about-content .image-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* New: Vision & Mission Card Animation */
.vision-mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px auto;
    max-width: 900px;
}

.vision-card, .mission-card {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vision-card h3, .mission-card h3 {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vision-card i, .mission-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-left: 15px;
}

/* Accordion Styles */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--secondary-bg);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #333;
}

.accordion-header h3 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.5rem;
}

.accordion-header i {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    background-color: #333;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.active {
    max-height: 500px; /* Adjust as needed */
    padding: 30px;
}

.accordion-content ul {
    list-style: none;
    padding-right: 20px;
}

.accordion-content li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
}

.accordion-content li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 1rem;
}

/* Services Page Specific Styles - تنسيقات خاصة بصفحة "خدماتنا" */

/* هيرو صفحة الخدمات */
.services-hero {
    position: relative;
    height: 300px; /* أو يمكن تعديلها حسب الحاجة */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    text-align: center;
}

/* أنيميشن للنص */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تطبيق الأنيميشن على العنوان والنص في قسم services */
.services-hero .container h1,
.services-hero .container p {
    opacity: 0; /* يبدأ مخفي */
    animation: fadeInUp 1s ease forwards; /* مدة ثانية واحدة */
}

.services-hero .container h1 {
    animation-delay: 0.2s; /* العنوان يظهر أولًا */
}

.services-hero .container p {
    animation-delay: 0.5s; /* النص يظهر بعد العنوان */
}



    .services-hero .container h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .services-hero .container p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

.services-hero {
    padding: 150px 0 80px;
    text-align: center;
}

.services-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.services-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.services-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.service-card {
    background-color: #333;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: 4rem;
    color: var(--brand-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Portfolio Page Specific Styles - تنسيقات خاصة بصفحة "أعمالنا" */

/* هيرو صفحة الأعمال */
.portfolio-hero {
    position: relative;
    height: 30vh; /* أقل من ثلث الشاشة */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a; /* خلفية داكنة أساسية */
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    text-align: center;
}


/* أنيميشن للنص */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تطبيق الأنيميشن على العنوان والنص في قسم portfolio */
.portfolio-hero .container h1,
.portfolio-hero .container p {
    opacity: 0; /* يبدأ مخفي */
    animation: fadeInUp 1s ease forwards; /* مدة ثانية واحدة */
}

.portfolio-hero .container h1 {
    animation-delay: 0.2s; /* العنوان يظهر أولًا */
}

.portfolio-hero .container p {
    animation-delay: 0.5s; /* النص يظهر بعد العنوان */
}

    .portfolio-hero .container h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-hero .container p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }


.portfolio-hero {
    padding: 150px 0 80px;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.portfolio-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.portfolio-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

/* Filter Buttons - أزرار الفلترة */
.filter-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.filter-buttons button {
    background-color: #333;
    color: var(--text-light);
    border: 2px solid #555;
    padding: 10px 25px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* كل بطاقة مقاسها مناسب */
  gap: 30px; /* المسافة بين البطاقات */
  justify-items: center; /* يخلي البطاقات في النص */
  align-items: start; /* يبدأ كل صف من نفس المستوى */
}

.portfolio-card {
  width: 100%;
  max-width: 500px; /* يثبت أكبر حجم للبطاقة */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}


.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 25px;
    text-align: center;
}

.portfolio-card-content h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.portfolio-card-content p {
    color: var(--text-muted);
}

/* Contact Page Specific Styles - تنسيقات خاصة بصفحة "تواصل معنا" */

/* هيرو صفحة تواصل معنا */
.contact-hero {
    position: relative;
    height: 300px; /* ارتفاع الهيرو */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    text-align: center;
}

    .contact-hero .container h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .contact-hero .container p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }


.contact-hero {
    padding: 150px 0 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

.contact-form {
    background-color: #333;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #444;
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form button {
    background-color: var(--brand-color);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #63438A;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    text-align: right;
}

.info-item i {
    font-size: 2rem;
    color: var(--brand-color);
    margin-left: 20px;
}

.info-item h3 {
    margin: 0;
    color: var(--accent-color);
}

.info-item p {
    color: var(--text-muted);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    font-size: 2rem;
    color: var(--text-muted);
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.map-section {
    padding: 80px 0;
    text-align: center;
}

.map-container {
    position: relative;
    height: 450px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .modal-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
    transition: background 0.3s;
}

    .modal-close-btn:hover {
        background: #c0392b;
    }

/* --- WhatsApp Button in Modal --- */
.whatsapp-modal-btn {
    display: inline-block;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 15px;
}

    .whatsapp-modal-btn i {
        margin-left: 8px;
    }

    .whatsapp-modal-btn:hover {
        background-color: #128C7E;
        transform: translateY(-2px);
    }




.social-icons-footer {
    display: flex; /* ترتيب العناصر في صف واحد */
    gap: 15px; /* مسافة بين الأيقونات */
    justify-content: flex-start; /* محاذاة الأيقونات إلى البداية */
    align-items: center; /* محاذاة عمودية للأيقونات */
}

    .social-icons-footer a i {
        font-size: 1.5rem; /* حجم الأيقونات */
        color: #F0F0F0; /* لون الأيقونات */
        transition: transform 0.3s, color 0.3s; /* حركة عند المرور */
    }

    .social-icons-footer a:hover i {
        transform: scale(1.2); /* تكبير الأيقونة عند المرور */
        color: #ffd700; /* لون جديد عند المرور (اختياري) */
    }


    .social-icons-footer a:hover {
        color: var(--text-light);
    }



.social-icons-footer a:hover {
    color: var(--text-light);
}
.footer-sep {
    border: none; /* إزالة أي حدود افتراضية */
    border-top: 1px solid #ccc; /* الخط العلوي */
    margin: 20px 0; /* مسافة فوق وتحت */
    width: 100%; /* عرض كامل */
}

/* Responsive adjustments for mobile and tablets - تعديلات التوافق مع الجوال */
@media (max-width: 992px) {
    /* Mobile Menu - قائمة الجوال */
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-toggle-input {
        display: none;
    }

    .nav-toggle-label {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-light);
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--secondary-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        display: none;
    }

    .nav-toggle-input:checked ~ .nav-menu {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-end;
        padding: 20px;
    }

    .nav-menu li {
        margin: 0 0 15px 0;
    }

    .cta-button.mobile-hidden {
        display: none;
    }

    /* General Sections & Grids */
    .why-us-grid,
    .services-grid,
    .portfolio-grid,
    .footer-grid,
    .vision-mission-cards,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .reason-card, .service-card, .project-card, .footer-column {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Contact Form */
    .contact-form .form-group {
        flex-direction: column;
        gap: 0;
    }

        .contact-form .form-group input {
            margin-bottom: 20px;
        }

    .contact-form textarea {
        margin-bottom: 20px;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }

        .info-item i {
            margin-right: 15px;
            margin-left: 15px;
        }

    /* Footer */
    .footer-column {
        text-align: center;
    }


    .final-cta {
        padding: 60px 20px;
        background-color: var(--brand-color);
        color: #fff;
    }
        /*
 * هذا الحل يستخدم Grid لتوزيع العناصر بشكل مثالي.
 * قم بإضافة هذا الكود إلى ملف الـ CSS الخاص بك.
 */

        .final-cta .container {
            display: grid;
            /* تحديد الأعمدة: عمود للنص، وعمود للزر */
            grid-template-columns: 1fr auto;
            /* لضمان محاذاة العناصر عموديًا في المنتصف */
            align-items: center;
            /* مسافة بين الأعمدة */
            column-gap: 20px;
        }

            .final-cta .container h2,
            .final-cta .container p {
                /* وضع العنوان والفقرة في العمود الأول */
                grid-column: 1;
            }

        .final-cta .cta-button {
            /* وضع الزر في العمود الثاني */
            grid-column: 2;
            /* لضمان أن الزر لا يتأثر بالصفوف */
            align-self: center;
        }
    

   /*
 * هذا الكود يُعرّف حركة اهتزاز بسيطة جداً
 */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.final-cta h2 {
    animation: float 3s ease-in-out infinite; /* تطبيق الحركة على العنوان */
    color: white; /* تأكد من لون النص ليظهر على الخلفية الداكنة */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 24px;
}
       






}
section[class*="-hero"] .container h1,
section[class*="-hero"] .container p {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

section[class*="-hero"] .container h1 {
    animation-delay: 0.2s;
}

section[class*="-hero"] .container p {
    animation-delay: 0.5s;
}



/* ألوان نص السيكشن */

/* إجبار كل section-title داخل أي قسم على نص فاتح */
section .section-title,
section .section-title * {
    color: #ffffff !important;
}

/* المدونة */
/* Blog Hero */
.blog-hero {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

    .blog-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .blog-hero p {
        font-size: 1.2rem;
        color: #ddd;
    }

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background-color: #0A0A0A;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #292929;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.6);
    }

    .blog-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.blog-content {
    padding: 20px;
    color: #fff;
}

    .blog-content h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        color: #fff;
    }

    .blog-content p {
        font-size: 1rem;
        color: #ccc;
        margin-bottom: 15px;
        line-height: 1.6;
    }

.read-more {
    display: inline-block;
    padding: 10px 18px;
    background: var(--brand-color, #25D366); /* نفس لون العلامة */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

    .read-more:hover {
        background: #1ea857;
    }
/* -------------------------
        Base / variables
        ------------------------- */
:root {
    --bg: #0A0A0A;
    --surface: #292929;
    --muted: #444444;
    --text: #fff;
    --muted-text: #ccc;
    --brand-color: #25D366; /* عدل هنا إلى لون علامتك */
    --container-max: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Simple reset for images */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* -------------------------
        Background pattern (reusable)
        ------------------------- */
.background-pattern {
    background-color: #0a0a0a; /* أساسي */
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    background-repeat: repeat;
}

/* -------------------------
        Blog hero
        ------------------------- */
.blog-hero {
    padding: 60px 0;
    text-align: center;
    color: var(--text);
}

    .blog-hero h1 {
        font-size: 2.6rem;
        margin: 0 0 10px;
        font-weight: 700;
    }

    .blog-hero p {
        margin: 0;
        color: var(--muted-text);
        font-size: 1.05rem;
    }

/* -------------------------
        Blog grid / cards
        ------------------------- */
.blog-section {
    padding: 70px 0;
    background: var(--bg);
}

.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), box-shadow .32s;
    display: flex;
    flex-direction: column;
}

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    }

    .blog-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        flex-shrink: 0;
    }

.blog-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

    .blog-content h2 {
        margin: 0;
        font-size: 1.25rem;
        color: var(--text);
    }

    .blog-content p {
        margin: 0;
        color: var(--muted-text);
        font-size: 0.98rem;
        line-height: 1.6;
        flex: 1;
    }

.read-more {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
    background: var(--brand-color);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: background .2s ease, transform .15s ease;
}

    .read-more:hover {
        background: #1ea857;
        transform: translateY(-2px);
    }

/* -------------------------
        Responsive tweaks
        ------------------------- */
@media (max-width:900px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        gap: 22px;
    }
}

@media (max-width:520px) {
    .blog-hero {
        padding: 40px 0;
    }

        .blog-hero h1 {
            font-size: 1.6rem;
        }

    .read-more {
        padding: 8px 12px;
        font-size: .95rem;
    }
}

/* -------------------------
        Optional utility classes
        ------------------------- */
.muted {
    color: var(--muted-text);
}

.center {
    text-align: center;
}

/* تعديل المسافة بين نص الهيرو وأعلى الهيرو */
.blog-hero h1 {
    margin-top: 50px; /* غيّر الرقم حسب ما تحب */
}

/* إذا حاب تتحكم بالفقرة أسفل العنوان بنفس الطريقة */
.blog-hero p {
    margin-top: 10px; /* المسافة بين العنوان والفقرة */
}

/* Animation keyframes */
@keyframes fadeInHeroText {
    0% {
        opacity: 0;
        transform: translateY(20px); /* تحرك نص قليل للأعلى */
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* طبق الفيد على نص الهيرو فقط */
.blog-hero h1,
.blog-hero p {
    opacity: 0;
    animation: fadeInHeroText 1s ease forwards;
}

/* إذا حاب تأخير بين العنوان والفقرة */
.blog-hero p {
    animation-delay: 0.4s; /* تظهر بعد العنوان */
}
.accordion-title {
    cursor: pointer;
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 600;
}

.accordion-content {
    display: none;
    padding: 15px;
    background: #383838;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* -------------------------
Blog Article Page
------------------------- */

/* Hero for article */
.hero {
    padding: 100px 20px 60px;
    text-align: center;
    background-color: #0a0a0a; /* داكن مثل بقية الهيرو */
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
        font-weight: 700;
        line-height: 1.2;
        animation: fadeInText 1.2s ease forwards;
        opacity: 0;
    }

    .hero p {
        font-size: 1.2rem;
        color: #ccc;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
        opacity: 0;
        animation: fadeInText 1.2s ease 0.3s forwards;
    }

/* Hero fade-in animation */
@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* Article content container */
.article-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    color: #fff;
}

    .article-content h2 {
        font-size: 1.8rem;
        margin: 30px 0 15px;
        font-weight: 600;
    }

    .article-content p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 15px;
        color: #ccc;
    }

    .article-content ul {
        margin: 20px 0;
        padding-left: 20px;
    }

        .article-content ul li {
            margin-bottom: 12px;
            font-size: 1rem;
            line-height: 1.6;
            position: relative;
            padding-left: 25px;
        }

            /* Add icons to list items (if <i> موجود) */
            .article-content ul li i {
                position: absolute;
                left: 0;
                top: 2px;
                color: #25D366; /* brand color */
                font-size: 1.1rem;
            }

/* CTA section at the bottom of the article */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #292929; /* اغمق من الخلفية */
    border-radius: 12px;
    padding: 25px 20px;
    margin-top: 50px;
}

    .cta-section p {
        font-size: 1.2rem;
        margin: 0;
        color: #fff;
        flex: 1 1 auto;
    }

    .cta-section a {
        text-decoration: none;
        background-color: #25D366;
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.25s ease;
        flex-shrink: 0;
    }

        .cta-section a:hover {
            background-color: #1ea857;
            transform: translateY(-2px);
        }

/* Responsive tweaks */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .cta-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

        .cta-section p {
            text-align: center;
        }

        .cta-section a {
            align-self: center;
        }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-content p, .article-content ul li {
        font-size: 0.95rem;
    }
}




/* ======== تحسين النصوص للجوال ======== */
@media (max-width: 991px) {

    /* توحيد حجم العناوين */
    h1 {
        font-size: 2rem; /* يمكن تعديل حسب رغبتك */
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5, h6 {
        font-size: 1rem;
    }

    /* النصوص العادية */
    p, span, li {
        font-size: 1rem;
        line-height: 1.5; /* مسافة بين الأسطر أفضل للجوال */
    }

    /* بعض الأقسام الخاصة إذا تريد تعديل إضافي */
    .section-title {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 1rem;
    }
}
/* التحكم بالـ final-cta لكل مقاسات الهواتف */
@media (max-width: 1024px) {
    .final-cta .container {
        flex-direction: column; /* صف عمودي بدل أفقي */
        padding: 20px 15px !important; /* التحكم بالمسافة من الأعلى والأسفل */
        text-align: center; /* النصوص تتوسط */
        width: 100%; /* عرض كامل */
        max-width: 500px; /* يمكن تعديله حسب رغبتك */
        margin: 0 auto; /* يوسّط السكيشن */
        gap: 15px; /* مسافة بين النصوص والزر */
    }

    .final-cta {
        height: auto; /* التحكم بارتفاع السكيشن */
        min-height: 150px; /* أدنى ارتفاع */
        padding: 10px 0; /* مسافة إضافية إذا أحببت */
    }

        .final-cta h2 {
            font-size: 18px !important; /* حجم العنوان للجوال */
            line-height: 1.3;
            margin: 0;
        }

        .final-cta p {
            font-size: 14px !important; /* حجم الفقرة للجوال */
            line-height: 1.4;
            margin: 0;
        }

        .final-cta .cta-button {
            font-size: 16px !important; /* حجم الزر */
            padding: 10px 20px !important; /* تعديل مساحة الزر */
            width: auto; /* لا يملأ العرض بالكامل */
        }
}


/* الحل الأقوى لضمان عمل الأكورديون وتجاوز أي تعارضات قوية */

/* 1. إخفاء المحتوى وتجهيزه للإظهار (بأعلى تحديد) */
.accordion-container .accordion-content {
    /* إلغاء أي display: none؛ تأكد من أنها ظاهرة في الوضع المغلق (لكن بارتفاع صفر) */
    display: block !important;
    max-height: 0 !important; /* ضمان الإخفاء عبر الارتفاع */
    overflow: hidden !important;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

    /* 2. إظهار المحتوى عند النقر */
    .accordion-container .accordion-content.active {
        max-height: 800px !important; /* ضمان الارتفاع الكافي للإظهار */
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    /* 3. ضمان أن القائمة (UL) الداخلية ظاهرة */
    .accordion-container .accordion-content ul {
        display: block !important;
    }

/* 4. تعديل شكل السهم عند الفتح */
.accordion-header.active .fa-chevron-down {
    transform: rotate(180deg) !important;
    transition: transform 0.4s ease-in-out !important;
}


/* CSS Variables - الألوان النهائية */
:root {
    /* ... المتغيرات الأخرى ... */
    /* 🟣 النيلي للعلامة التجارية والتفاعلات */
    --brand-color: #5F2A95;
    /* 🟠 البرتقالي للتمييز العام (الأيقونات والأزرار غير الواتساب) */
    --accent-color: #FF9800;
    /* ... المتغيرات الأخرى ... */
}




/* تنسيق خاص يجعل الرابط يغطي البطاقة بالكامل */
.service-card-link {
    display: block;
    text-decoration: none;
    /* تصحيح لون النص ليعود إلى لون البطاقة الفاتح */
    color: var(--text-light);
}


/* ==================================== */
/* التنسيقات الخاصة بصفحة الهوية (brand-identity.html) */
/* ==================================== */

/* ضبط المسافة لتجنب اختفاء المحتوى خلف الهيدر الثابت */
main {
    padding-top: 70px;
}


/* تنسيق الأقسام الرئيسية */
.identity-section h2 {
    color: var(--accent-color); /* *** تم التعديل إلى البرتقالي (accent-color) *** */
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* لا حاجة لتعديل لون الأيقونة في CSS إذا عدلناها في HTML أعلاه */
    /* تنسيق العناوين الفرعية */
    .identity-section h3 {
        font-size: 24px;
        color: var(--accent-color); /* برتقالي لتمييز الأقسام الفرعية */
        border-right: 4px solid var(--accent-color);
        padding-right: 15px;
        margin-top: 40px;
        margin-bottom: 25px;
        font-weight: 700;
    }

.identity-section {
    padding-top: 30px; /* *** تم زيادة المسافة العلوية هنا *** */
    padding-bottom: 30px; /* *** تم زيادة المسافة السفلية هنا *** */
    /* ... (باقي التنسيقات كما هي) ... */
}

    .identity-section p {
        max-width: 900px;
        margin: 0 auto 20px auto; /* *** تم زيادة المسافة السفلية للفقرة إلى 20px هنا *** */
        line-height: 1.8;
        color: var(--text-muted);
        font-size: 17px;
    }
/* تنسيق الجداول */
.identity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* مسافة بين الصفوف */
    margin-bottom: 40px;
}

    .identity-table th, .identity-table td {
        padding: 15px;
        text-align: right;
        border: none;
    }

    /* لون وتصميم رأس الجدول (Brand Color) */
    .identity-table thead th {
        background-color: var(--brand-color);
        color: var(--text-light);
        font-size: 18px;
        font-weight: 700;
    }

    /* الصفوف: إضافة إطار وتباين لزيادة الوضوح */
    .identity-table tbody tr {
        background-color: #2C2C2C; /* لون أغمق قليلاً من الخلفية الأساسية */
        border: 1px solid #444444; /* **إطار رمادي خفيف للفصل** */
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

        .identity-table tbody tr:hover {
            background-color: #383838; /* لون أغمق عند المرور */
        }
    /* ------------------------------------- */

    .identity-table tbody th {
        color: var(--accent-color);
        font-weight: 700;
        width: 30%; /* عرض ثابت لعمود العنصر */
    }

    .identity-table tbody td {
        color: var(--text-muted);
        line-height: 1.6;
    }

    /* تخصيص رؤوس الجداول (لإضافة حواف منحنية) */
    .identity-table thead tr th:first-child {
        border-radius: 8px 0 0 8px;
    }

    .identity-table thead tr th:last-child {
        border-radius: 0 8px 8px 0;
    }

/* تنسيق قسم لماذا تختارنا (المزايا) */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.advantage-card {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--brand-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .advantage-card i {
        font-size: 28px;
        color: var(--accent-color);
        margin-bottom: 15px;
    }

    .advantage-card h4 {
        color: var(--accent-color); /* *** تم التعديل إلى البرتقالي (accent-color) *** */
        font-size: 20px;
        margin-bottom: 10px;
    }
/* تنسيق قسم المنهجية (الخطوات) */
.steps-list {
    list-style: none;
    padding: 0;
}

/* **تحسين مظهر كل خطوة كبطاقة منفصلة** */
.step-item {
    background: var(--secondary-bg);
    padding: 30px; /* زيادة البادينغ الداخلي */
    border-right: 5px solid var(--brand-color);
    margin-bottom: 25px; /* زيادة التباعد بين الخطوات */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* ظل خفيف للبروز */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .step-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    }

    .step-item h4 {
        color: var(--accent-color); /* *** تم التعديل إلى البرتقالي (accent-color) *** */
        font-size: 22px;
        margin-bottom: 10px;
    }
    .step-item p {
        color: var(--text-muted);
        margin: 0;
        line-height: 1.7; /* زيادة سطر إضافي */
    }

    /* رقم الخطوة كدائرة (تحسين حجمها وبروزها) */
    .step-item::before {
        content: attr(data-step);
        position: absolute;
        left: -18px; /* تحريكه للخارج قليلاً */
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: var(--accent-color);
        color: #1A1A1A;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 18px;
        border: 3px solid var(--brand-color);
        z-index: 5;
    }


/* تنسيق الخط الفاصل بعد الهيرو سكشن */
.section-divider {
    width: 100%; /* خط بعرض 60% ليكون أنيقاً ومركزاً */
    height: 3px; /* سماكة الخط */
    background-color: var(--brand-color); /* اللون النيلي */
    border-radius: 5px; /* حواف منحنية قليلاً */
    opacity: 0.7; /* شفافية خفيفة ليكون أنيقاً */
}

/* ملاحظة: قيمة المسافة السفلية (80px) تتناسب مع الـ padding-top للأقسام الأخرى التي عدّلناها سابقاً */







/* ====== تنسيقات صفحة خدمات التصميم الجرافيكي (Graphic Design Page Styles) ====== */

/* ================================
   صفحة خدمات تصميم الجرافيك فقط
   تقييد التعديلات باستخدام .graphic-page
================================= */


/* ====== الهيرو صفحة خدمات الجرافيك (Graphic Hero) ====== */
.graphic-page .graph-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* توسيط النص */
    color: #fff;
    overflow: hidden;
    background-color: #0a0a0a;
    /* الباترن */
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    background-size: cover;
    padding: 150px 20px 80px 20px;
}

    /* توسيط النص عموديًا وأفقيًا */
    .graphic-page .graph-hero .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

        /* النصوص */
        .graphic-page .graph-hero .container h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            opacity: 0;
            animation: fadeInUp 1s ease forwards;
            animation-delay: 0.2s;
            text-align: center; /* توسيط العنوان */
        }

        .graphic-page .graph-hero .container p {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
            opacity: 0;
            animation: fadeInUp 1s ease forwards;
            animation-delay: 0.5s;
            text-align: center; /* توسيط الفقرة */
        }

/* أنيميشن */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.graphic-page .graph-hero-divider {
    width: 100%;
    height: 4px; /* سمك الخط */
    background-color: #4B0082; /* اللون النيلي */
    margin-bottom: 40px; /* المسافة بين الخط وبداية القسم التالي */
}



/* عام لجميع أقسام الجرافيك */
.graphic-page .graphic-section {
    padding: 80px 20px;
    font-family: "Cairo", sans-serif;
    color: var(--text-light);
}

    /* ====== العناوين الرئيسية ====== */
    .graphic-page .graphic-section h2 {
        color: var(--accent-color);
        font-size: 32px;
        text-align: center;
        margin-bottom: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .graphic-page .graphic-section h2 i {
            margin-left: 10px;
            font-size: 26px;
        }

/* ====== شبكة الخدمات (2 فوق 2 تحت) ====== */
.graphic-page .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 بطاقات لكل صف */
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== بطاقات الخدمة ====== */
.graphic-page .service-card {
    background-color: #2C2C2C;
    border-radius: 18px;
    padding: 35px 30px;
    height: auto; /* السماح بالتمدد حسب النص */
    display: flex;
    flex-direction: column;
    text-align: right;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

    .graphic-page .service-card:hover {
        background-color: #383838;
        transform: translateY(-6px);
    }

    /* أيقونة البطاقة */
    .graphic-page .service-card .icon {
        background-color: var(--accent-color);
        color: #1A1A1A;
        width: 75px;
        height: 75px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin: 0 auto 25px;
        box-shadow: 0 0 20px rgba(255,183,77,0.45);
    }

    /* نصوص البطاقة */
    .graphic-page .service-card h3 {
        color: var(--accent-color);
        font-size: 22px;
        margin-bottom: 12px;
        text-align: center;
    }

    .graphic-page .service-card p {
        color: var(--text-muted);
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 15px;
        text-align: justify;
    }

    /* قائمة العناصر داخل البطاقة */
    .graphic-page .service-card ul {
        list-style: none;
        padding-right: 0;
        margin-top: auto;
    }

        .graphic-page .service-card ul li {
            position: relative;
            padding-right: 22px;
            margin-bottom: 8px;
            font-size: 15.5px;
            line-height: 1.8;
            color: var(--text-light);
        }

            .graphic-page .service-card ul li::before {
                content: "•";
                color: var(--accent-color);
                position: absolute;
                right: 0;
                font-size: 20px;
            }

/* ====== شبكة خطوات العملية ====== */
.graphic-page .steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.graphic-page .step-item {
    background-color: #2C2C2C;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: calc(50% - 10px);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .graphic-page .step-item:hover {
        transform: translateY(-5px);
    }

    .graphic-page .step-item h4 {
        color: var(--accent-color);
        font-size: 20px;
        margin-bottom: 10px;
    }

    .graphic-page .step-item i {
        color: var(--brand-color);
        font-size: 35px;
        margin-bottom: 15px;
        display: block;
    }

    .graphic-page .step-item p {
        color: var(--text-muted);
        margin: 0;
        line-height: 1.6;
        text-align: center;
    }

/* ====== لماذا تختارنا (2×2) ====== */
/* ==== إجبار 2x2 لعنصر "لماذا تختارنا" داخل صفحة الجرافيك ==== */
.graphic-page .why-us-grid {
    /* إجبار كامل لاستخدام Grid */
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* عمودين فقط - يضمن 2 بطاقات في الصف */
    grid-auto-rows: auto !important;
    gap: 25px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    align-items: start !important; /* محاذاة أعلى كل بطاقة */
}

    /* تأكد أن كل بطاقة تحتل خلية واحدة ولا تُصغر بواسطة قواعد flex */
    .graphic-page .why-us-grid > .advantage-card {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* إذا كان هناك أب يستخدم flex ويجبر تغيّر ترتيب، نعيد تعيين العرض والمرونة */
    .graphic-page .why-us-grid,
    .graphic-page .why-us-grid > .advantage-card {
        flex: 0 0 auto !important;
    }




.graphic-page .why-us-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* صفين، عمودين */
    grid-auto-rows: auto;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.graphic-page .advantage-card {
    background-color: #2C2C2C;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: auto !important;
    height: auto !important;
    transition: background-color 0.3s ease;
}

    .graphic-page .advantage-card:hover {
        background-color: #383838;
    }

    .graphic-page .advantage-card h4 {
        color: var(--accent-color);
        font-size: 20px;
        margin-bottom: 10px;
    }

        .graphic-page .advantage-card h4 i {
            color: var(--brand-color);
            margin-left: 10px;
        }

    .graphic-page .advantage-card p {
        color: var(--text-muted);
        margin: 0;
        line-height: 1.6;
        text-align: right;
    }

/* ====== قسم التواصل ====== */
/* فقرة تحت العنوان الرئيسي في صفحة الجرافيك */
.graphic-page h2 + p {
    font-size: 20px; /* زيادة الحجم قليلاً */
    text-align: center; /* توسيط النص */
    max-width: 900px; /* تحديد عرض مناسب */
    margin: 15px auto 40px auto; /* مسافة من الأعلى والأسفل */
    color: var(--text-muted);
    line-height: 1.9; /* تحسين قابلية القراءة */
}

.graphic-page .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
    background-color: #333333; /* تم التغيير هنا */
    padding: 20px; /* اختياري لإضافة مساحة حول الأزرار */
}
/* خلفية داكنة داخل الصندوق فقط */
.graphic-section.cta .container {
    background-color: #333333;
    padding: 40px 20px;
    border-radius: 10px; /* اختياري لإعطاء شكل جميل */
}

    /* أيقونات باللون النيلي داخل هذا الصندوق */
    .graphic-section.cta .container i {
        color: #4B0082;
    }

/* الأزرار تبقى كما هي */


.graphic-page .cta-button {
    background-color: var(--accent-color);
    color: #1A1A1A;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    margin: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .graphic-page .cta-button:hover {
        background-color: #FFB347;
    }




/* ================================
   صفحة خدمات المونتاج والفيديوهات (Video Services)
   تقييد التعديلات باستخدام الكلاس على وسم <main>
================================= */

/* ====== صفحة خدمات الفيديو بالكامل ====== */
.video-services-page {
    font-family: "Cairo", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
}

    /* ====== التحكم بمسافة الهيرو العليا والسفلى بشكل مضمون ====== */
    .video-services-page .video-page-hero,
    .video-services-page .hero,
    .video-services-page .page-hero {
        padding-top: 100px !important; /* المسافة من الأعلى */
        padding-bottom: 100px !important; /* المسافة من الأسفل */
    }


    }
}


        /* باترن الهيرو */
        .video-services-page .video-page-hero .hero-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('pattern.png');
            opacity: 0.1;
            animation: movePattern 30s linear infinite;
            pointer-events: none;
            z-index: 0;
        }

@keyframes movePattern {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* محتوى الهيرو فوق الباترن */
.video-services-page .video-page-hero .hero-content {
    position: relative;
    z-index: 1;
}

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عناوين الهيرو */
.video-services-page .video-page-hero h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.video-services-page .video-page-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* ====== العناوين العامة والنصوص ====== */
.video-services-page .video-section h2 {
    color: var(--accent-color);
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-services-page .video-section h2 i {
        margin-left: 10px;
        font-size: 26px;
    }

.video-services-page .video-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: justify;
}

/* ====== إلغاء أي ::after في البطاقات ====== */
.video-services-page .step-item::after,
.video-services-page .step-item.card-link::after,
.video-services-page .step-item.link-right::after,
.video-services-page .step-item.link-down::after,
.video-services-page .step-item::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ====== جدول الخدمات ====== */
.video-services-page .services-table-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    overflow-x: auto;
}

.video-services-page .services-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

    .video-services-page .services-table th,
    .video-services-page .services-table td {
        padding: 15px;
        text-align: right;
        border: 1px solid #383838;
    }

    .video-services-page .services-table th {
        background-color: var(--brand-color);
        color: var(--text-light);
        font-size: 18px;
        font-weight: 700;
    }

    .video-services-page .services-table td {
        background-color: #2C2C2C;
        color: var(--text-muted);
        font-size: 16px;
    }

    .video-services-page .services-table tr:nth-child(even) td {
        background-color: #383838;
    }

    .video-services-page .services-table td:first-child {
        color: var(--accent-color);
        font-weight: 700;
        width: 30%;
    }

/* ====== خطوات العمل ====== */
.video-services-page .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.video-services-page .step-item {
    background-color: #2C2C2C;
    padding: 30px 15px;

    .video-services-page .steps-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(250px, 1fr)); /* الأعمدة أعرض */
        gap: 30px; /* المسافة بين البطاقات */
    }

    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .video-services-page .step-item:hover {
        transform: translateY(-5px);
    }

    .video-services-page .step-item .step-number {
        position: absolute;
        top: -10px;
        left: -10px;
        font-size: 6rem;
        color: #383838;
        opacity: 0.5;
        font-weight: 900;
        z-index: 0;
    }

    .video-services-page .step-item h3 {
        font-size: 20px;
        color: var(--brand-color);
        margin-bottom: 10px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    .video-services-page .step-item p {
        font-size: 16px;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.6;
        position: relative;
        z-index: 1;
    }
.video-services-page h2 {
    margin-top: 50px; /* المسافة الفارغة بين هذا العنوان وما قبله */
}


/* ====== قسم التواصل (CTA) ====== */
.video-services-page .cta-section {
    background-color: var(--brand-color);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .video-services-page .cta-section h2 {
        color: var(--text-light);
        margin: 0;
        font-size: 28px;
    }

    .video-services-page .cta-section p {
        margin: 0 auto 30px auto;
        color: #E0E0E0;
        font-size: 18px;
        max-width: 800px;
    }

.video-services-page .cta-button {
    background-color: var(--accent-color);
    color: #1A1A1A;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .video-services-page .cta-button:hover {
        background-color: #FFB347;
    }

/* ====== التجاوب ====== */
@media (max-width: 992px) {
    .video-services-page .video-page-hero {
        padding: 100px 20px 60px 20px;
    }

    .video-services-page h1 {
        font-size: 2.4rem;
    }

    .video-services-page h2 {
        font-size: 28px;
    }

    .video-services-page p {
        font-size: 16px;
    }

    .video-services-page .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


    .video-services-page h1 {
        font-size: 2rem;
    }

    .video-services-page h2 {
        font-size: 24px;
    }

    .video-services-page p {
        font-size: 15px;
    }

    .video-services-page .steps-grid {
        grid-template-columns: 1fr;
    }

    .video-services-page .services-table-wrapper {
        padding: 0;
    }
}
/* التحكم بحجم النصوص أقل من H2 داخل الصفحة */
.video-services-page p {
    font-size: 1.2rem !important; /* حجم الخط */
    line-height: 1.6 !important; /* ارتفاع السطر */
    color: var(--text-muted) !important; /* لون النص */
    margin-bottom: 15px !important; /* مسافة أسفل كل فقرة */
}



/* ================================
   صفحة التسويق الرقمي (Digital Marketing)
   البادئة الفريدة: .digital-marketing-page
================================= */

/* الخط الأساسي وتنسيق الصفحة العامة (يُطبق فقط على محتوى <main>) */
main.digital-marketing-page {
    font-family: "Cairo", sans-serif;
    line-height: 1.7;
    font-size: 17px;
    color: var(--text-light);
}
/* ====== قسم الهيرو (Hero) - المُعدّل لإضافة الخط الفاصل ====== */
.digital-marketing-page .marketing-page-hero {
    /* ... التنسيقات السابقة ... */
    /* * إضافة خط فاصل نيلي سميك بأسلوب إبداعي 
     * ملاحظة: يجب تعريف --indigo-color في مكان ما (مثل :root)
     */
    border-bottom: 5px solid var(--indigo-color, #5F2A95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* لإضافة لمسة عمق إضافية */
}
.digital-marketing-page .marketing-section {
    padding: 80px 20px;
}

/* ====== قسم الهيرو (Hero) ====== */
.digital-marketing-page .marketing-page-hero {
    /* ملاحظة: استخدمنا صورة جديدة لخلفية الهيرو */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('image_3e2828.jpg') no-repeat center center;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
}

    .digital-marketing-page .marketing-page-hero h1 {
        font-size: 3rem;
        color: var(--text-light);
        margin-bottom: 15px;
    }

    .digital-marketing-page .marketing-page-hero p {
        font-size: 1.2rem;
        color: var(--text-muted);
        max-width: 900px;
        margin: 0 auto;
    }

/* ====== العناوين العامة والتنسيق العام للنصوص ====== */
.digital-marketing-page .marketing-section h2 {
    color: var(--accent-color);
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .digital-marketing-page .marketing-section h2 i {
        margin-left: 10px;
        font-size: 26px;
    }

.digital-marketing-page .marketing-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: justify;
}

/* ====== جدول الخدمات والتسعير (Services Table) ====== */
.digital-marketing-page .table-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    overflow-x: auto;
}

.digital-marketing-page .services-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

    .digital-marketing-page .services-table th,
    .digital-marketing-page .services-table td {
        padding: 15px;
        text-align: right;
        border: 1px solid #383838;
    }

    .digital-marketing-page .services-table th {
        background-color: var(--brand-color);
        color: var(--text-light);
        font-size: 18px;
        font-weight: 700;
    }

    .digital-marketing-page .services-table td {
        background-color: #2C2C2C;
        color: var(--text-muted);
        font-size: 16px;
    }

        /* تمييز عمود "الخدمة" */
        .digital-marketing-page .services-table td:first-child {
            color: var(--accent-color);
            font-weight: 700;
        }

        .digital-marketing-page .services-table td i {
            margin-left: 8px;
        }

/* ====== قسم العائد على الاستثمار (ROI Grid) - يستخدم تنسيق البطاقات ====== */
.digital-marketing-page .roi-points-grid {
    /* نستخدم steps-grid ونعدلها لـ 3 أعمدة */
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1000px;
    margin-top: 40px !important;
}

    .digital-marketing-page .roi-points-grid .step-item {
        padding: 25px 20px;
        height: auto; /* لضمان تساوي الارتفاعات */
    }

        .digital-marketing-page .roi-points-grid .step-item h3 {
            color: var(--accent-color);
            font-size: 20px;
        }

/* ====== قسم خطط التسعير (Pricing) ====== */
.digital-marketing-page .pricing-card-wrapper {
    max-width: 1000px;
    margin: 0px auto;
    background-color: #2C2C2C;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
    /* ====== قسم خطط التسعير (Pricing) - المُعدَّل للون البرتقالي ====== */
    .digital-marketing-page .pricing-card-wrapper h3 {
        /* 🔴 التعديل لجعله برتقالي (لون Accent) */
        color: var(--accent-color);
        font-size: 26px;
        text-align: center;
        margin-bottom: 10px;
    }
    

    .digital-marketing-page .pricing-card-wrapper .plan-subtitle {
        text-align: center;
        margin-bottom: 30px;
        color: #B0B0B0;
        font-size: 16px;
    }

.digital-marketing-page .pricing-table th:last-child,
.digital-marketing-page .pricing-table td:last-child {
    /* تمييز عمود الرسوم */
    color: var(--accent-color);
    font-weight: 700;
    width: 25%;
}

.digital-marketing-page .pricing-card-wrapper .note {
    text-align: right;
    font-style: italic;
    font-size: 14px;
    margin-top: 20px;
    color: var(--text-muted);
}

/* ====== قسم التواصل (CTA) - مطابق للنمط المطلوب ====== */
.digital-marketing-page .cta-section {
    background-color: var(--brand-color);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* ====== قسم التواصل (CTA) - مُعدّل لجعله متوسطاً ====== */
.digital-marketing-page .cta-section {
    background-color: var(--brand-color);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 🔴 التعديل لتضييق القسم وجعله متوسطاً */
    max-width: 1200px; /* تحديد أقصى عرض للقسم */
    margin: 40px auto; /* توسيط القسم وإضافة تباعد من أعلى وأسفل */
    border-radius: 12px; /* لإضافة لمسة جمالية تتناسب مع التضييق */
}

    /* ... (بقية تنسيقات النصوص والأزرار في CTA تبقى كما هي) ... */
    .digital-marketing-page .cta-section h2 {
        color: var(--text-light);
        margin: 0;
        font-size: 28px;
        display: block;
    }

    .digital-marketing-page .cta-section p {
        margin: 0 auto 30px auto;
        color: #E0E0E0;
        font-size: 18px;
        max-width: 800px;
    }

.digital-marketing-page .cta-button {
    background-color: var(--accent-color);
    color: #1A1A1A;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .digital-marketing-page .cta-button:hover {
        background-color: #FFB347;
    }

/* ====== التجاوب (Responsive Design) ====== */
@media (max-width: 992px) {
    .digital-marketing-page .roi-points-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 عمود على الشاشات المتوسطة */
    }
}



    .digital-marketing-page .marketing-section h2 {
        font-size: 24px;
    }

    .digital-marketing-page .roi-points-grid {
        grid-template-columns: 1fr !important; /* عمود واحد على الجوال */
    }

    .digital-marketing-page .table-wrapper {
        padding: 0;
    }
}


/* ================================
   صفحة تصميم المواقع والمتاجر (Web Design)
   البادئة الفريدة: .web-design-page
================================= */

/* الخط الأساسي وتنسيق الصفحة العامة (يُطبق فقط على محتوى <main>) */
main.web-design-page {
    font-family: "Cairo", sans-serif;
    line-height: 1.7;
    font-size: 17px;
    color: var(--text-light);
}

.web-design-page .web-section {
    padding: 80px 20px;
}


/* استهداف أيقونات الخطوات */
/* إذا كانت الأيقونة هي جزء من هذا العنصر، قم بإزالتها */
.step-item::before,
.step-item::after {
    content: none !important;
    animation: none !important;
}
/* ====== قسم الهيرو (Hero) مع الخط الفاصل النيلي (لون العلامة التجارية) ====== */
.web-design-page .web-page-hero {
    /* ملاحظة: استخدمنا صورة جديدة لخلفية الهيرو */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('image_3e8da7.jpg') no-repeat center center;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    /* 🔴 الخط الفاصل النيلي (لون العلامة التجارية) */
    border-bottom: 5px solid var(--brand-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

    .web-design-page .web-page-hero h1 {
        font-size: 3rem;
        color: var(--text-light);
        margin-bottom: 15px;
    }

    .web-design-page .web-page-hero p {
        font-size: 1.2rem;
        color: var(--text-muted);
        max-width: 900px;
        margin: 0 auto;
    }

/* ====== العناوين العامة والتنسيق العام للنصوص ====== */
.web-design-page .web-section h2 {
    color: var(--accent-color);
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .web-design-page .web-section h2 i {
        margin-left: 10px;
        font-size: 26px;
    }

.web-design-page .web-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: justify;
}

/* ====== تخطيط البطاقات (Grid Layout) المستخدم في جميع الأقسام ====== */
.web-design-page .steps-grid {
    display: grid;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.web-design-page .step-item {
    background-color: #2C2C2C;
    padding: 30px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    /* نستخدم Static لضمان عدم ظهور أي دوائر زخرفية غير مرغوبة */
    position: static;
    overflow: hidden;
}

    .web-design-page .step-item:hover {
        transform: translateY(-5px);
    }

    .web-design-page .step-item h3 {
        font-size: 20px;
        /* 🔴 التعديل لاستخدام لون التمييز (البرتقالي) لجميع عناوين البطاقات */
        color: var(--accent-color);
        margin-bottom: 10px;
        margin-top: 0;
    }
    /* ملاحظة: تم حذف التخصيص الزائد لـ .quality-features .step-item h3 */

    .web-design-page .step-item p {
        font-size: 16px;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.6;
        text-align: center;
    }

/* ====== قسم التواصل (CTA) - متوسط وليس كامل العرض ====== */
.web-design-page .cta-section {
    background-color: var(--brand-color);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* التعديل لجعله متوسطاً ومحاطاً بمسافة */
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
}

    .web-design-page .cta-section h2 {
        color: var(--text-light);
        margin: 0;
        font-size: 28px;
        display: block;
    }

.web-design-page .cta-button {
    background-color: var(--accent-color);
    color: #1A1A1A;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .web-design-page .cta-button:hover {
        background-color: #FFB347;
    }


/* =======================================================
   🔴 الحل القاطع الشامل: ضبط كامل للموقع على الهواتف (max-width: 768px)
   ======================================================= */
/* ------------------------------------------------------------------ */
/* قواعد CSS الأساسية للـ Mobile (يجب أن تُوضع داخل Media Query) */
/* ------------------------------------------------------------------ */
/* ------------------------------------------------------------------ */
/* قواعد CSS عالية التحديد لمعالجة مشاكل القوائم في شاشات الموبايل */
/* ------------------------------------------------------------------ */

@media (max-width: 992px) {

    /* 1. قائمة التنقل الرئيسية (Menu) */

    /* إخفاء القائمة الرئيسية افتراضياً */
    .main-header .nav-menu {
        display: none !important; /* استخدام !important لضمان الإخفاء */
        position: absolute;
        top: 60px; /* يجب التأكد من تطابق هذا مع ارتفاع الهيدر */
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 100;
        /* تأكد من أن القائمة تظهر تحت زر الهامبرغر */
    }

        /* إظهار القائمة الرئيسية عند إضافة فئة 'menu-open' بواسطة JS */
        .main-header .nav-menu.menu-open {
            display: block !important;
        }

        /* 2. عناصر القائمة الرئيسية */
        .main-header .nav-menu ul {
            display: flex; /* للتأكد من تجاوز أي قواعد عرض قديمة */
            flex-direction: column;
            padding: 0;
            margin: 0;
            list-style: none;
        }

            .main-header .nav-menu ul li {
                width: 100%;
                border-bottom: 1px solid #eee;
            }

                .main-header .nav-menu ul li a {
                    display: block;
                    padding: 15px 20px;
                }


        /* 3. القائمة الفرعية (Dropdown) */

        /* إخفاء القائمة الفرعية افتراضياً وتحديد وضعها */
        .main-header .nav-menu .dropdown .dropdown-menu {
            display: none !important; /* إخفاء قوي */
            position: static !important; /* **أهم قاعدة:** لجعل القائمة تتدفق أسفل الرابط */
            background-color: #f8f8f8; /* لون خلفية مختلف */
            padding-right: 30px; /* إزاحة لليمين */
        }

        /* إظهار القائمة الفرعية عند إضافة فئة 'active' على العنصر الأب */
        .main-header .nav-menu .dropdown.active .dropdown-menu {
            display: block !important; /* إظهار قوي عند النقر */
        }

    /* 4. إظهار زر الهامبرغر */
    .main-header .hamburger.mobile-only {
        display: block;
    }
}

/* ------------------------------------------------------------------ */
/* قواعد CSS للتأكد من إخفاء الهامبرغر في نسخة سطح المكتب */
/* ------------------------------------------------------------------ */
@media (min-width: 993px) {
    .main-header .hamburger.mobile-only {
        display: none !important;
    }
}





/* ===== Mobile override (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* --- Layout resets --- */
    html, body, main {
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* --- Header & Nav --- */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 12px 16px !important;
        background-color: rgba(10,10,10,0.95) !important;
        backdrop-filter: none !important;
    }

        .main-header .container {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
        }

    .logo {
        font-size: 1.05rem !important;
    }

    .hamburger, .nav-toggle-label {
        display: inline-block !important;
        z-index: 2000 !important;
    }

    /* Force mobile nav full-screen dropdown */
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 56px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(12,12,12,0.98)) !important;
        padding: 16px 12px !important;
        box-shadow: none !important;
        z-index: 1999 !important;
    }

        .nav-menu.active, .nav-toggle-input:checked ~ .nav-menu {
            display: block !important;
        }

        .nav-menu ul {
            flex-direction: column !important;
            gap: 12px !important;
            align-items: flex-end !important;
            padding-right: 8px !important;
        }

        .nav-menu li {
            width: 100% !important;
            margin: 0 !important;
        }

        .nav-menu a {
            display: block !important;
            padding: 12px 8px !important;
            font-size: 1.05rem !important;
            border-radius: 8px !important;
        }

        /* Dropdowns: convert to accordion style on mobile */
        .nav-menu ul li.dropdown > .dropdown-menu {
            position: static !important;
            display: none !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        .nav-menu ul li.dropdown.open > .dropdown-menu,
        .nav-menu ul li.dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
            display: block !important;
        }

    .dropdown-menu li, .dropdown-menu li a {
        display: block !important;
        padding: 10px 12px !important;
        color: var(--text-light) !important;
        background: rgba(255,255,255,0.02) !important;
        border-radius: 6px !important;
        margin-bottom: 6px !important;
    }

    /* --- Grids & Cards --- */
    /* Force single column for all main grids */
    .why-us-grid,
    .services-grid,
    .portfolio-grid,
    .vision-mission-cards,
    .blog-grid,
    .steps-grid,
    .footer-grid,
    .about-content,
    .contact-content,
    .graphic-page .services-grid,
    .graphic-page .why-us-grid,
    .video-services-page .steps-grid,
    .digital-marketing-page .roi-points-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 16px !important;
    }

    /* Card sizing: auto heights, no fixed heights */
    .reason-card,
    .service-card,
    .project-card,
    .project-card img,
    .portfolio-card,
    .blog-card,
    .feature-card,
    .advantage-card,
    .step-item,
    .project-card img,
    .service-card-inner,
    .service-card-front,
    .service-card-back {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /* Remove perspective/3D flip on mobile -- show front only or use toggle class */
    .service-card {
        perspective: none !important;
        cursor: default !important;
    }

    .service-card-inner,
    .service-card-front,
    .service-card-back {
        transform: none !important;
        backface-visibility: visible !important;
        position: relative !important;
        display: block !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
        padding: 20px !important;
    }

    .service-card-back {
        margin-top: 12px !important;
    }

    /* Disable hover-only reveals (make hover effects inert) */
    .service-card:hover .service-card-inner,
    .project-card:hover,
    .reason-card:hover,
    .feature-card:hover,
    .advantage-card:hover,
    .service-card:hover,
    .project-card:hover img,
    .blog-card:hover {
        transform: none !important;
        box-shadow: 0 6px 18px rgba(0,0,0,0.35) !important;
    }

    /* Ensure images are fluid and do not overflow */
    img, .project-card img, .portfolio-card img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }



    /* تليمح السحب للجداول */

    /* غلاف الجدول */
    .table-wrapper {
        overflow-x: auto; /* يسمح بالتمرير أفقيًا */
        -webkit-overflow-scrolling: touch; /* تمرير سلس في iOS */
        margin-bottom: 40px;
        position: relative;
        padding-bottom: 36px; /* مساحة للزر أسفل الجدول */
    }

    /* الجداول بشكل كامل */
    .services-table {
        width: 100%; /* يغطي كامل مساحة الحاوية */
        border-collapse: collapse; /* إزالة الفراغات بين الخلايا */
    }

        /* خلايا الجدول */
        .services-table th,
        .services-table td {
            padding: 12px 8px;
            text-align: left;
            border: 1px solid #ddd;
            vertical-align: top;
            min-width: 120px; /* يعطي مساحة للتمرير */
        }

    /* تحسين عرض العناوين على الجوال */
    @media (max-width: 768px) {
        .services-table th,
        .services-table td {
            font-size: 14px;
            padding: 10px 6px;
        }

        .table-wrapper {
            overflow-x: auto;
        }

        /* التلميح يظهر فقط على الجوال */
        .scroll-hint {
            display: inline-block;
        }
    }
    
    @media (min-width: 769px) {
        .scroll-hint {
            display: none !important; /* يختفي على سطح المكتب فقط */
        }
    }


    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 40px; /* مساحة أسفل wrapper */
        position: relative;
        padding-bottom: 36px; /* يترك مكان للزر دون تغطية الصف الأخير */
    }

    .scroll-hint {
        display: none;
        position: absolute; /* يبقى داخل wrapper */
        bottom: 4px; /* قريب من أسفل wrapper */
        left: 50%; /* في المنتصف */
        transform: translateX(-50%);
        font-size: 13px;
        color: #fff;
        background: linear-gradient(90deg, #ff7a00, #002b5c);
        padding: 6px 12px;
        border-radius: 20px;
        white-space: nowrap;
        transition: transform 0.1s ease-out;
        z-index: 5;
    }

    /* يظهر فقط على الشاشات الصغيرة */
    @media (max-width: 768px) {
        .scroll-hint {
            display: inline-block;
        }
    }

    .table-spacer {
        height: 36px; /* المسافة التي تريدها أسفل الجدول */
        width: 100%; /* يغطي كامل عرض الجدول */
    }



    /* ===== ضبط أحجام الخطوط للموقع ===== */
    @media (max-width: 768px) {

        /* العناوين */
        h1 {
            font-size: 24px !important;
            line-height: 1.2 !important;
        }

        h2 {
            font-size: 20px !important;
            line-height: 1.3 !important;
        }

        h3 {
            font-size: 16px !important;
            line-height: 1.3 !important;
        }

        h4 {
            font-size: 14px !important;
            line-height: 1.3 !important;
        }

        h5 {
            font-size: 13px !important;
            line-height: 1.3 !important;
        }

        h6 {
            font-size: 12px !important;
            line-height: 1.3 !important;
        }

        /* النصوص العادية */
        p, span, li, a, div {
            font-size: 16px !important;
            line-height: 1.5 !important;
        }

        /* الفئات الخاصة */
        .portfolio-subtitle {
            font-size: 16px !important;
            font-weight: 500 !important;
            line-height: 1.4 !important;
            text-align: center !important;
            /* اللون تمت إزالته ليبقى كما في نسخة سطح المكتب */
        }

        /* الجداول */
        table, th, td {
            font-size: 14px !important;
            padding: 8px !important;
        }

        /* السماح بالتمرير الأفقي للجداول الكبيرة */
        .table-wrapper {
            overflow-x: auto !important;
        }
    }
    /* المسافة بين الأسطر */

    p, span, li, a, div {
        line-height: 2 !important;
    }

    p, span, li,   {
        text-align: justify !important; /* محاذاة النصوص بالتساوي */
        line-height: 1.5 !important; /* المسافة بين الأسطر */
        letter-spacing: 0.3px !important; /* المسافة بين الحروف */
        word-spacing: 1px !important; /* المسافة بين الكلمات */
    }


    /* فئات خاصة إذا أردت استثناء بعضها */
    .portfolio-subtitle {
        text-align: center !important; /* يمكن ترك بعض العناوين مركزة */
        line-height: 1.4 !important;
        letter-spacing: 0.5px !important;
        word-spacing: 1.5px !important;
    }
}
/* ===== توسيط العناوين ===== */
h1, h2, h3, h4, h5, h6 {
    text-align: center !important; /* توسيط النصوص */
}

@media (max-width: 768px) {
    /* إزالة المسافات العليا العامة */
    body, html {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* إذا الهيرو داخل header أو container */
    .hero-section,
    .hero-container,
    .site-header + .hero-section {
        margin-top: 0 !important;
        padding-top: 5px !important; /* تعديل حسب الحاجة */
    }
}
