 /* =========================================
           1. المتغيرات الأساسية (Design Tokens)
           ========================================= */
        :root {
            /* Palette Colors */
            --clr-abyss: #092C56;
            --clr-lapis: #225688;
            --clr-slate: #668CA9;
            --clr-glacier: #A9CBE0;
            --clr-quartz: #F0F5F4;

            /* Typography */
            --font-ar: 'IBM Plex Sans Arabic', sans-serif;
            --font-en: 'IBM Plex Sans Arabic', sans-serif;
            
            /* Transitions */
            --trans-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
 
        /* الإعدادات العامة (تتغير تلقائياً بناءً على اللغة) */
        body {
            background-color: var(--clr-quartz);
            color: var(--clr-abyss);
            font-family: var(--font-ar) !important;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        html[lang="en"] body {
            font-family: var(--font-en);
        }

        /* =========================================
             1. شاشة التحميل الافتتاحية (Page Preloader)
        ========================================= */

        .mktg-preloader {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            background-color: var(--clr-quartz);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999; /* فوق كل المكونات */
            overflow: hidden;
            pointer-events: all;
        }

        .mktg-preloader__wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
        }

        .mktg-preloader__text {
            width: clamp(90%, 50%, 150px); /* تحكمي في حجم الـ SVG المبدئي من هنا */
            display: block;
            margin: 0 auto; /* ضمان التمركز الأفقي */
            transform-origin: center center;
            will-change: transform, opacity;
        }

        body.preloader-active {
            overflow: hidden !important;
            height: 100vh !important;
        } 

        /* =========================================
           2. شريط التنقل (Mktg-Nav Component)
           ========================================= */
        .mktg-header__wrapper {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(240, 245, 244, 0.85); /* Quartz with opacity */
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 4px 30px rgba(9, 44, 86, 0.05);
            z-index: 1000;
            border-bottom: 1px solid rgba(169, 203, 224, 0.2);
        }

        .mktg-nav__container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mktg-nav__logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--clr-abyss);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .mktg-nav__logo-dot {
            color: var(--clr-lapis);
        }

        .mktg-nav__menu {
            display: flex;
            gap: 2.5rem;
            list-style: none;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .mktg-nav__link {
            /* الكود الحالي الخاص بك */
            text-decoration: none;
            color: var(--clr-abyss);
            font-weight: 600;
            font-size: 0.95rem;
            position: relative;
            padding: 0.5rem 0;
            transition: var(--trans-smooth);
            
            /* الإضافة الجديدة والمهمة جداً */
            display: inline-block; 
        }

        /* Hover Effect: Cinematic Underline */
        .mktg-nav__link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left:0;
            width: 0%;
            height: 2px;
            background-color: var(--clr-lapis);
            transition: var(--trans-smooth);
        }

        .mktg-nav__link:hover {
            color: var(--clr-lapis);
        }

        .mktg-nav__link:hover::after {
            width: 100%;
        }

        /* أزرار الإجراءات في الناف (اللغة + قائمة الموبايل) */
        .mktg-nav__actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .mktg-nav__lang-btn {
            background: none;
            border: 1px solid var(--clr-slate);
            color: var(--clr-abyss);
            padding: 0.4rem 1rem;
            border-radius: 50px;
            cursor: pointer;
            font-family: inherit;
            font-weight: 600;
            transition: var(--trans-smooth);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .mktg-nav__lang-btn:hover {
            background: var(--clr-lapis);
            color: var(--clr-quartz);
            border-color: var(--clr-lapis);
        }

        .mktg-nav__mobile-toggle {
            display: none;
            font-size: 1.5rem;
            color: var(--clr-abyss);
            cursor: pointer;
            border: none;
            background: transparent;
        }

        /* Responsive Navbar */
        @media (max-width: 992px) {
            .mktg-nav__menu {
                position: fixed;
                top: 70px;
                inset-inline-start: -100%; /* دعم RTL/LTR */
                flex-direction: column;
                background: var(--clr-quartz);
                width: 100%;
                height: calc(100vh - 70px);
                justify-content: center;
                gap: 2rem;
                transition: var(--trans-smooth);
            }
            .mktg-nav__menu.mktg-nav__menu--active {
                inset-inline-start: 0;
            }
            .mktg-nav__mobile-toggle {
                display: block;
            }
            .blue-nav-link-item{
                font-size: 18px !important;
            }
            .blue-nav-lang-btn{
                width: 30px !important;
            }
            .mktg-hero__title-highlight{
                font-size: 38px !important;
            }
            .mktg-cyb , .mktg-cyb__card {
              padding: 1rem 2rem !important;
            }
            .mktg-cyb__marquee-wrapper {
                margin-top: -142px !important;
                padding: 5rem 0 !important; 
            }

            .mktg-node__item{
               transform: scale(0.2) !important;
            }

            .mktg-node { 
                padding: 1rem 1rem !important;
            }
            .mktg-ed{
                padding: 96px 6px !important;
            }
            .mktg-ed__clip {
             padding: 0 6px !important;
            }
            .mktg-ed__clip-name {
              font-size: 8px !important;
             }
             .mktg-ed__clip-num {  
              font-size: 16px !important;
             }
             .mktg-ed__clip
             {
              width: 45% !important;
             }
             .focus-text.highlighted { 
                 padding: 10px 6px !important;
             }
        }
/* =========================================
           3. زر التواصل العائم (Mktg-FAB Component)
           ========================================= */
        .mktg-fab__wrapper {
            position: fixed;
            bottom: 2rem;
            inset-inline-end: 2rem; /* دعم RTL/LTR */
            z-index: 999;
            display: flex;
            flex-direction: column-reverse; /* الأيقونات تظهر لأعلى */
            align-items: center;
            gap: 1rem;
        }

        .mktg-fab__main-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--clr-abyss);
            color: var(--clr-quartz);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            box-shadow: 0 10px 25px rgba(9, 44, 86, 0.3);
            cursor: pointer;
            transition: var(--trans-smooth);
            position: relative;
            z-index: 2;
        }

        .mktg-fab__wrapper:hover .mktg-fab__main-btn {
            transform: scale(1.05);
            background: var(--clr-lapis);
        }

        .mktg-fab__menu {
            display: flex;
            flex-direction: column;
            gap: 0.6rem; /* قللنا المسافة شوية علشان القايمة متطولش جداً لفوق */
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: var(--trans-smooth);
            position: relative;
            z-index: 1;
        }

        .mktg-fab__wrapper:hover .mktg-fab__menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mktg-fab__item {
            width: 42px; /* صغرنا الحجم درجة بسيطة علشان العدد كتر */
            height: 42px;
            border-radius: 50%;
            background: var(--clr-quartz);
            color: var(--clr-abyss);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.1rem;
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            transition: var(--trans-smooth);
            border: 1px solid rgba(169, 203, 224, 0.3);
        }

        /* تأثيرات الألوان لكل منصة عند الـ Hover */
        .mktg-fab__item.fab-whatsapp:hover { background: #25D366; color: #FFF; border-color: #25D366; }
        .mktg-fab__item.fab-phone:hover { background: #10B981; color: #FFF; border-color: #10B981; }
        .mktg-fab__item.fab-email:hover { background: #EA4335; color: #FFF; border-color: #EA4335; }
        .mktg-fab__item.fab-facebook:hover { background: #1877F2; color: #FFF; border-color: #1877F2; }
        .mktg-fab__item.fab-instagram:hover { 
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
            color: #FFF; border-color: transparent; 
        }
        .mktg-fab__item.fab-x:hover { background: #000000; color: #FFF; border-color: #000000; }
        .mktg-fab__item.fab-linkedin:hover { background: #0A66C2; color: #FFF; border-color: #0A66C2; }

        /* حركة الرفع والزووم المشتركة */
        .mktg-fab__item:hover {
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        }

/* -----------------------------------
   زر اللغة (تنسيق الرابط ليصبح زر فاخر)
   ----------------------------------- */
.mktg-nav__lang-btn {
    display: inline-flex; /* مهم جداً لتوسيط النص والأيقونة معاً */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    background-color: transparent;
    border: 1px solid var(--clr-slate);
    color: var(--clr-abyss);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none; /* إزالة الخط السفلي الخاص بالروابط */
    
    transition: var(--trans-smooth);
    cursor: pointer;
}

/* تأثير الـ Hover السينمائي */
.mktg-nav__lang-btn:hover {
    background-color: var(--clr-lapis);
    color: var(--clr-quartz);
    border-color: var(--clr-lapis);
    transform: translateY(-2px); /* ارتفاع خفيف للأعلى عند التمرير */
    box-shadow: 0 4px 15px rgba(34, 86, 136, 0.2); /* توهج خفيف بلون Lapis */
}

/* -----------------------------------
   زر القائمة للموبايل
   ----------------------------------- */
.mktg-nav__mobile-toggle {
    display: none; /* مخفي في الشاشات الكبيرة */
    font-size: 1.5rem;
    color: var(--clr-abyss);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.mktg-nav__mobile-toggle:hover {
    color: var(--clr-lapis);
}

/* إظهار زر الموبايل في الشاشات الصغيرة */
@media (max-width: 992px) {
    .mktg-nav__mobile-toggle {
        display: flex;
        align-items: center;
    }

    
}


        /*****************************Footer**************************/

        /* =========================================(Footer Component - CSS النقي) ========================================= */

.mktg-ftr {
    background-color: var(--clr-abyss);
    color: var(--clr-quartz);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
    border-top: 4px solid var(--clr-lapis);
    font-family: inherit; /* سيرث الخط المفتوح في الـ Body سواء Inter أو Alexandria */
}

/* تأثير الإضاءة الخلفية */
.mktg-ftr__glow {
    position: absolute;
    top: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background-color: rgba(34, 86, 136, 0.2); /* Lapis with opacity */
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* حل مشكلة تحويل الـ Translate في اللغتين للإضاءة */
html[dir="rtl"] .mktg-ftr__glow {
    transform: translateX(50%);
}

.mktg-ftr__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mktg-ftr__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* تجاوب الشاشات */
@media (min-width: 768px) {
    .mktg-ftr__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .mktg-ftr__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Brand Column --- */
.mktg-ftr__logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--clr-quartz);
    text-decoration: none;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.mktg-ftr__logo-dot {
    color: var(--clr-glacier);
}

.mktg-ftr__desc {
    color: var(--clr-slate);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.mktg-ftr__desc--mb {
    margin-bottom: 1rem;
}

.mktg-ftr__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mktg-ftr__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(240, 245, 244, 0.1);
    color: var(--clr-quartz);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--trans-smooth);
}

.mktg-ftr__social-link:hover {
    background-color: var(--clr-glacier);
    color: var(--clr-abyss);
    transform: translateY(-4px);
}

/* --- Links & Services Columns --- */
.mktg-ftr__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-quartz);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.mktg-ftr__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    inset-inline-start: 0;
    width: 50%;
    height: 2px;
    background-color: var(--clr-lapis);
}

.mktg-ftr__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mktg-ftr__link {
    color: var(--clr-slate);
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--trans-smooth);
}

.mktg-ftr__link-line {
    width: 0;
    height: 1px;
    background-color: var(--clr-glacier);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mktg-ftr__link:hover {
    color: var(--clr-glacier);
}

.mktg-ftr__link:hover .mktg-ftr__link-line {
    width: 12px;
}

/* --- Newsletter Form --- */
.mktg-ftr__form {
    position: relative;
    width: 100%;
}

.mktg-ftr__input {
    width: 100%;
    background-color: rgba(240, 245, 244, 0.1);
    border: 1px solid rgba(240, 245, 244, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    /* خصائص منطقية للتجاوب مع الاتجاه */
    padding-inline-start: 1rem;
    padding-inline-end: 3rem;
    font-size: 0.875rem;
    color: var(--clr-quartz);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.mktg-ftr__input::placeholder {
    color: var(--clr-slate);
}

.mktg-ftr__input:focus {
    border-color: var(--clr-glacier);
}

.mktg-ftr__submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0.375rem;
    background-color: var(--clr-lapis);
    color: var(--clr-quartz);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--trans-smooth);
}

.mktg-ftr__submit:hover {
    background-color: var(--clr-glacier);
    color: var(--clr-abyss);
}

/* إخفاء الأيقونات بناءً على اتجاه الصفحة HTML dir */
html[dir="ltr"] .mktg-ftr__icon-rtl { display: none; }
html[dir="rtl"] .mktg-ftr__icon-ltr { display: none; }

/* --- Divider & Bottom Bar --- */
.mktg-ftr__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(102, 140, 169, 0.3), transparent);
    margin-bottom: 1.5rem;
}

.mktg-ftr__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--clr-slate);
}

@media (min-width: 768px) {
    .mktg-ftr__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.mktg-ftr__legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mktg-ftr__legal-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mktg-ftr__legal-link:hover {
    color: var(--clr-glacier);
}

.mktg-ftr__credit {
    font-weight: 500;
}

.mktg-ftr__credit-link {
    color: var(--clr-glacier);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-inline-start: 0.25rem;
}

.mktg-ftr__credit-link:hover {
    color: var(--clr-quartz);
}

/*****************************************************HOME PAAAAGE**************************************************//* =========================================
   مكون الـ Hero المعدل بخلفية الفيديو والتدرج
   ========================================= */

.mktg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b192c; /* لون احتياطي داكن يطابق التدرج لمنع الوميض الأبيض أثناء تحميل الفيديو */
    color: var(--clr-quartz);
    padding: 100px 2rem 5rem 2rem;
    overflow: hidden;
    z-index: 1;
}

/* حاوية الفيديو المعزولة */
.mktg-hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* لمنع تداخل الماوس مع الفيديو وحفظ إمكانية الضغط على الأزرار */
}

.mktg-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان ملء الشاشة تماماً بدون تشويه التناسب */
}

/* طبقة التدرج اللوني المطلوبة بدقة سينمائية */
.mktg-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 25, 44, 0.95) 10%, rgba(11, 25, 44, 0.6) 60%, rgba(11, 25, 44, 0.2) 100%)
}

/* دعم ذكي لاتجاه النسخة العربية LTR/RTL ليعكس اتجاه التدرج الفاخر تلقائياً */
html[dir="rtl"] .mktg-hero__overlay {
    background: linear-gradient(to left, rgba(11, 25, 44, 0.95) 10%, rgba(11, 25, 44, 0.6) 60%, rgba(11, 25, 44, 0.2) 100%);
}

.mktg-hero__container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: start; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    position: relative;
    z-index: 2; 
}

/* --- الشارة والتفاصيل البصرية --- */
.mktg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(240, 245, 244, 0.03);
    border: 1px solid rgba(169, 203, 224, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--clr-glacier);
    font-family: monospace;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(8px);
}

.mktg-hero__badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: mktgBlink 1.5s infinite;
}

@keyframes mktgBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- النصوص والعناوين --- */
.mktg-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.mktg-hero__title-highlight {
    color: transparent;
    background-image: linear-gradient(90deg, var(--clr-glacier), var(--clr-quartz));
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    display: inline-block;
    font-size: 70px;
    padding-bottom: 10px;
}

.mktg-hero__desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--clr-slate);
    max-width: 800px;
    line-height: 1.8;
    margin: 0 0 3.5rem 0;
}

/* --- CTAs الأزرار --- */
.mktg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 5rem;
}

.mktg-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--trans-smooth);
    cursor: pointer;
    box-sizing: border-box;
}

.mktg-hero__btn--primary {
    background-color: var(--clr-lapis);
    color: var(--clr-quartz);
    border: 1px solid var(--clr-lapis);
    box-shadow: 0 10px 30px rgba(34, 86, 136, 0.3);
}

.mktg-hero__btn--primary:hover {
    background-color: transparent;
    color: var(--clr-quartz);
    border-color: rgba(240, 245, 244, 0.4);
    transform: translateY(-3px);
}

.mktg-hero__btn--secondary {
    background-color: transparent;
    color: var(--clr-quartz);
    border: 1px solid rgba(240, 245, 244, 0.2);
}

.mktg-hero__btn--secondary:hover {
    border-color: var(--clr-glacier);
    color: var(--clr-glacier);
    transform: translateY(-3px);
}

html[dir="ltr"] .mktg-hero__icon-rtl { display: none; }
html[dir="rtl"] .mktg-hero__icon-ltr { display: none; }

/* --- الإحصائيات الفاخرة --- */
.mktg-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(169, 203, 224, 0.1);
    width: 100%;
}

.mktg-hero__stat-item {
    text-align: start;
}

.mktg-hero__stat-num {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--clr-glacier);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-en); /* تظل الأرقام بالخط الإنجليزي للمسة جمالية عالمية */
}

.mktg-hero__stat-label {
    font-size: 0.85rem;
    color: var(--clr-slate);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   مكون الأرقام والعملاء (Light Mode Premium)
   ========================================= */
/* =========================================
   مكون فك التشفير (Light Cyberpunk)
   ========================================= */

.mktg-cyb {
    background-color: var(--clr-quartz); /* الخلفية المضيئة كما طلبتِ */
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
    font-family: var(--font-en); /* الخطوط التقنية الإنجليزية مفضلة هنا للأرقام */
}

/* شبكة خلفية هندسية خفيفة جداً (Grid lines) */
.mktg-cyb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(34, 86, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 86, 136, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.mktg-cyb__container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mktg-cyb__header {
    margin-bottom: 4rem;
    text-align: start;
}

.mktg-cyb__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-abyss);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.mktg-cyb__dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: cybBlink 1s infinite step-end;
}

@keyframes cybBlink { 50% { opacity: 0; } }

.mktg-cyb__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-abyss);
    margin: 0;
    font-family: var(--font-ar);
}

/* --- بطاقات البيانات --- */
.mktg-cyb__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) { .mktg-cyb__grid { grid-template-columns: repeat(3, 1fr); } }

.mktg-cyb__card {
    background: #ffffff;
    padding: 3rem 2rem;
    position: relative;
    border: 1px solid rgba(169, 203, 224, 0.4);
    box-shadow: 0 10px 30px rgba(9, 44, 86, 0.04);
    overflow: hidden;
    cursor: crosshair; /* مؤشر تقني */
}

/* تأثير الخط الجانبي الماسح (Scanner Line) */
.mktg-cyb__card-border {
    position: absolute;
    top: 0; inset-inline-start: 0;
    width: 3px; height: 100%;
    background: var(--clr-lapis);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mktg-cyb__card:hover .mktg-cyb__card-border {
    transform: scaleY(1);
}

.mktg-cyb__icon {
    font-size: 1.5rem;
    color: var(--clr-lapis);
    margin-bottom: 2rem;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.mktg-cyb__card:hover .mktg-cyb__icon {
    opacity: 1;
    color: var(--clr-abyss);
}

.mktg-cyb__num {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--clr-abyss);
    margin: 0 0 0.5rem 0;
    font-family: 'Courier New', Courier, monospace; /* خط الشفرات */
    letter-spacing: -2px;
}

.mktg-cyb__label {
    font-size: 1rem;
    color: var(--clr-slate);
    font-weight: 600;
    margin: 0;
    font-family: var(--font-ar);
}

/* --- تأثير التشويش والخلل (Glitch Effect) --- */
.mktg-cyb__num.is-glitching {
    position: relative;
    animation: cybGlitchMain 0.3s infinite;
}

.mktg-cyb__num.is-glitching::before,
.mktg-cyb__num.is-glitching::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
}

/* الألوان المعكوسة (سماوي وأحمر) لتعطي إيحاء الـ Glitch على خلفية بيضاء */
.mktg-cyb__num.is-glitching::before {
    left: 3px;
    text-shadow: -2px 0 #ff003c;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
    animation: cybGlitchAnim 0.2s infinite linear alternate-reverse;
}

.mktg-cyb__num.is-glitching::after {
    left: -3px;
    text-shadow: -2px 0 #00e6f6;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    animation: cybGlitchAnim 0.3s infinite linear alternate-reverse;
}

@keyframes cybGlitchMain {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

@keyframes cybGlitchAnim {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}

/* --- شريط العملاء بتأثير التشويش (TV Static) --- */
.mktg-cyb__marquee-wrapper {
    position: relative; width: 100%; overflow: hidden; padding: 2rem 0;
}
.mktg-cyb__marquee { display: flex; width: max-content; gap: 3rem; }
.mktg-cyb__marquee-group {
    display: flex; align-items: center; justify-content: space-around;
    gap: 4rem; padding-inline-end: 4rem;
    animation: cybMarquee 25s infinite linear;
}
html[dir="rtl"] .mktg-cyb__marquee-group { animation-name: cybMarqueeRev; }

@keyframes cybMarquee { 100% { transform: translateX(-50%); } }
@keyframes cybMarqueeRev { 100% { transform: translateX(50%); } }

.mktg-cyb__logo-item {
    position: relative;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.5rem; font-weight: 700; color: var(--clr-abyss);
    padding: 1rem 2rem;
    border: 1px dashed rgba(169, 203, 224, 0.6);
    cursor: crosshair;
    overflow: hidden;
    transition: border-color 0.3s;
}

.mktg-cyb__logo-item i { font-size: 2rem; color: var(--clr-lapis); }

/* طبقة التشويش التلفزيوني (SVG Noise) */
.mktg-cyb__logo-noise {
    position: absolute;
    inset: -50%;
    /* رسمة نويز مدمجة بالـ CSS */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
    background-color: rgba(240, 245, 244, 0.8); /* تفتيح التشويش ليناسب الخلفية المضيئة */
    z-index: 5;
    animation: cybStatic 0.2s steps(2) infinite;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mktg-cyb__logo-item:hover { border-color: var(--clr-lapis); }
.mktg-cyb__logo-item:hover .mktg-cyb__logo-noise {
    opacity: 0; /* يختفي التشويش وتظهر تفاصيل اللوجو النقي */
}

@keyframes cybStatic {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

/* =========================================
   4. قسم المنهجية والشفافية (Methodology Timeline)
   ========================================= */

.mktg-methodology {
    position: relative;
    background-color: var(--clr-abyss);
    padding: 8rem 2rem;
    overflow: hidden;
    z-index: 5;
    /* border-top: 1px solid rgba(169, 203, 224, 0.1); */
}

.mktg-methodology__container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* مقدمة القسم */
.mktg-methodology__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem auto;
}

.mktg-methodology__subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-glacier);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.mktg-methodology__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-quartz);
    margin: 0 0 1.25rem 0;
}

.mktg-methodology__desc {
    font-size: 1.05rem;
    color: rgba(240, 245, 244, 0.7);
    line-height: 1.7;
    margin: 0;
}

/* حاوية التايم لاين */
.mktg-timeline {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* الخط المركزي للتايم لاين */
.mktg-timeline__line-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: rgba(240, 245, 244, 0.15);
    z-index: 1;
    overflow: hidden;
}

.mktg-timeline__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* سيتم تحريك الارتفاع عبر JS بالتزامن مع السكرول */
    background: linear-gradient(to bottom, var(--clr-glacier), var(--clr-lapis));
    box-shadow: 0 0 15px var(--clr-glacier);
    transition: height 0.1s ease-out;
}

/* عناصر التايم لاين */
.mktg-timeline__item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* توزيع الكروت يميناً ويساراً في الشاشات الكبيرة */
.mktg-timeline__item--1,
.mktg-timeline__item--3 {
    justify-content: flex-start;
}

.mktg-timeline__item--2,
.mktg-timeline__item--4 {
    justify-content: flex-end;
}

/* حاوية النود (النقطة الدائرية) */
.mktg-timeline__node-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -25px; /* نصف الطول */
    z-index: 10;
}

.mktg-timeline__node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--clr-abyss);
    border: 4px solid rgba(240, 245, 244, 0.2);
    color: var(--clr-slate);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mktg-timeline__node-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--clr-glacier);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

/* الكروت الزجاجية (Glassmorphic Cards) */
.mktg-timeline__card {
    width: 44%;
    background: rgba(240, 245, 244, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 245, 244, 0.08);
    border-radius: 20px;
    padding: 2.25rem;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.4s ease, 
                box-shadow 0 0.4s ease;
}

.mktg-timeline__card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(169, 203, 224, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

/* سهم الكارت */
.mktg-timeline__card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 5;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

/* تفاصيل وتنسيق الكروت والمؤشرات حسب الاتجاه */

/* الكروت على اليسار (Odd Items في LTR) */
html[dir="ltr"] .mktg-timeline__item--1 .mktg-timeline__card,
html[dir="ltr"] .mktg-timeline__item--3 .mktg-timeline__card {
    margin-right: auto;
}

html[dir="ltr"] .mktg-timeline__item--1 .mktg-timeline__card-arrow,
html[dir="ltr"] .mktg-timeline__item--3 .mktg-timeline__card-arrow {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(240, 245, 244, 0.08);
}

html[dir="ltr"] .mktg-timeline__item--1 .mktg-timeline__card:hover .mktg-timeline__card-arrow,
html[dir="ltr"] .mktg-timeline__item--3 .mktg-timeline__card:hover .mktg-timeline__card-arrow {
    border-left-color: var(--clr-glacier);
}

/* الكروت على اليمين (Even Items في LTR) */
html[dir="ltr"] .mktg-timeline__item--2 .mktg-timeline__card,
html[dir="ltr"] .mktg-timeline__item--4 .mktg-timeline__card {
    margin-left: auto;
}

html[dir="ltr"] .mktg-timeline__item--2 .mktg-timeline__card-arrow,
html[dir="ltr"] .mktg-timeline__item--4 .mktg-timeline__card-arrow {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(240, 245, 244, 0.08) transparent transparent;
}

html[dir="ltr"] .mktg-timeline__item--2 .mktg-timeline__card:hover .mktg-timeline__card-arrow,
html[dir="ltr"] .mktg-timeline__item--4 .mktg-timeline__card:hover .mktg-timeline__card-arrow {
    border-right-color: var(--clr-glacier);
}


/* الكروت على اليمين (Odd Items في RTL) */
html[dir="rtl"] .mktg-timeline__item--1 .mktg-timeline__card,
html[dir="rtl"] .mktg-timeline__item--3 .mktg-timeline__card {
    margin-left: auto;
}

html[dir="rtl"] .mktg-timeline__item--1 .mktg-timeline__card-arrow,
html[dir="rtl"] .mktg-timeline__item--3 .mktg-timeline__card-arrow {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(240, 245, 244, 0.08) transparent transparent;
}

html[dir="rtl"] .mktg-timeline__item--1 .mktg-timeline__card:hover .mktg-timeline__card-arrow,
html[dir="rtl"] .mktg-timeline__item--3 .mktg-timeline__card:hover .mktg-timeline__card-arrow {
    border-right-color: var(--clr-glacier);
}

/* الكروت على اليسار (Even Items في RTL) */
html[dir="rtl"] .mktg-timeline__item--2 .mktg-timeline__card,
html[dir="rtl"] .mktg-timeline__item--4 .mktg-timeline__card {
    margin-right: auto;
}

html[dir="rtl"] .mktg-timeline__item--2 .mktg-timeline__card-arrow,
html[dir="rtl"] .mktg-timeline__item--4 .mktg-timeline__card-arrow {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(240, 245, 244, 0.08);
}

html[dir="rtl"] .mktg-timeline__item--2 .mktg-timeline__card:hover .mktg-timeline__card-arrow,
html[dir="rtl"] .mktg-timeline__item--4 .mktg-timeline__card:hover .mktg-timeline__card-arrow {
    border-left-color: var(--clr-glacier);
}

/* تفاصيل الكروت الداخلية */
.mktg-timeline__card-step {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-glacier);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.mktg-timeline__card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.mktg-timeline__card-desc {
    font-size: 0.95rem;
    color: rgba(240, 245, 244, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* تأثير الـ Hover على الكروت */
.mktg-timeline__card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--clr-glacier);
    box-shadow: 0 20px 45px rgba(169, 203, 224, 0.15);
}

.mktg-timeline__card:hover .mktg-timeline__card-glow {
    opacity: 1;
}

/* =========================================
   الحالات النشطة للتايم لاين (Active States)
   ========================================= */

.mktg-timeline__item.is-active .mktg-timeline__node {
    border-color: var(--clr-glacier);
    background-color: var(--clr-lapis);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(169, 203, 224, 0.5);
    transform: scale(1.1);
}

.mktg-timeline__item.is-active .mktg-timeline__node-pulse {
    opacity: 1;
    animation: heartbeat-glowing 2s infinite ease-in-out;
}

/* أنيميشن نبضات القلب الطبية (Heartbeat Pulse) */
@keyframes heartbeat-glowing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(169, 203, 224, 0.4);
    }
    15% {
        transform: scale(1.1);
        opacity: 0.95;
        box-shadow: 0 0 0 6px rgba(169, 203, 224, 0.25);
    }
    28% {
        transform: scale(1.02);
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(169, 203, 224, 0.2);
    }
    40% {
        transform: scale(1.18);
        opacity: 0.8;
        box-shadow: 0 0 0 14px rgba(169, 203, 224, 0.1);
    }
    60% {
        transform: scale(1);
        opacity: 0;
        box-shadow: 0 0 0 20px rgba(169, 203, 224, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* =========================================
   تجاوب سكشن التايم لاين مع الشاشات (Responsive)
   ========================================= */

@media (max-width: 768px) {
    /* نقل الخط المركزي للجانب الأيسر في LTR وللجانب الأيمن في RTL */
    html[dir="ltr"] .mktg-timeline__line-wrapper {
        left: 25px;
        transform: none;
    }
    
    html[dir="rtl"] .mktg-timeline__line-wrapper {
        right: 25px;
        left: auto;
        transform: none;
    }

    /* تغيير محاذاة النودز للجانب المناسب */
    html[dir="ltr"] .mktg-timeline__node-container {
        left: 25px;
        transform: translateX(-50%);
    }
    
    html[dir="rtl"] .mktg-timeline__node-container {
        right: 25px;
        left: auto;
        transform: translateX(50%);
    }

    /* جعل الكروت تأخذ العرض الكامل مع إزاحتها */
    .mktg-timeline__item {
        justify-content: flex-start !important;
    }

    html[dir="ltr"] .mktg-timeline__card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    html[dir="rtl"] .mktg-timeline__card {
        width: calc(100% - 60px);
        margin-right: 60px !important;
        margin-left: 0 !important;
    }

    /* تعديل اتجاه السهم على الموبايل */
    html[dir="ltr"] .mktg-timeline__card-arrow {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent rgba(240, 245, 244, 0.08) transparent transparent !important;
    }

    html[dir="ltr"] .mktg-timeline__card:hover .mktg-timeline__card-arrow {
        border-right-color: var(--clr-glacier) !important;
        border-left-color: transparent !important;
    }

    html[dir="rtl"] .mktg-timeline__card-arrow {
        right: -10px !important;
        left: auto !important;
        border-width: 10px 0 10px 10px !important;
        border-color: transparent transparent transparent rgba(240, 245, 244, 0.08) !important;
    }

    html[dir="rtl"] .mktg-timeline__card:hover .mktg-timeline__card-arrow {
        border-left-color: var(--clr-glacier) !important;
        border-right-color: transparent !important;
    }
}
 
/* =========================================
           تأثير الأمواج (Wave Shape Divider)
           ========================================= */
        .custom-shape-divider-bottom {
            position: absolute; 
            bottom: -1px; /* لتجنب الخطوط البيضاء */
            left: 0; 
            width: 100%; 
            line-height: 0; 
            transform: rotate(180deg); 
            z-index: 1; /* الموجة تكون تحت المحتوى وفوق الخلفية */
            pointer-events: none;
        }

        .custom-shape-divider-bottom svg { 
            height: 100px; 
            width: 100%; 
            display: block;
        }

        .shape-fill { 
            /* السحر هنا: الموجة بتاخد نفس لون قسم الحجز الغامق اللي تحتها */
            fill: var(--clr-abyss); 
        }

        @media (max-width: 768px) {
    .custom-shape-divider-bottom svg { 
        height: 60px; 
    }
}

/* =/* =========================================
   مكون عقد المونتاج التفاعلية (DaVinci Nodes)
   ========================================= *//* =/* =========================================
   مكون عقد المونتاج التفاعلية (DaVinci Nodes)
   ========================================= *//* =/* =========================================
   مكون عقد المونتاج التفاعلية (DaVinci Nodes)
   ========================================= *//* =/* =========================================
   مكون عقد المونتاج التفاعلية (DaVinci Nodes)
   ========================================= */

.mktg-node {
    position: relative;
    background-color: var(--clr-quartz); /* لون الصفحة الأساسي */
    padding: 8rem 2rem;
    overflow: hidden;
    z-index: 5;
    border-top: 1px solid rgba(169, 203, 224, 0.3);
}

.mktg-node__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Header --- */
.mktg-node__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}

.mktg-node__subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-lapis);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.mktg-node__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-abyss);
    margin: 0 0 1.5rem 0;
    line-height: 1.25;
}

.mktg-node__desc {
    font-size: 1.05rem;
    color: var(--clr-slate);
    line-height: 1.8;
}

/* --- لوحة العمل (DaVinci Board) --- */
.mktg-node__workspace {
    position: relative;
    width: 100%;
    height: 700px;
    background-color: #0b111a; /* لون داكن جداً سينمائي */
    background-image: 
        linear-gradient(rgba(169, 203, 224, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 203, 224, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; /* شبكة المونتاج (Grid) */
    border-radius: 30px;
    border: 1px solid rgba(169, 203, 224, 0.15);
    box-shadow: 0 30px 60px rgba(9, 44, 86, 0.2);
    overflow: hidden;
}

/* حاوية مسارات الـ SVG */
.mktg-node__svg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* لتجاهل الماوس */
    z-index: 1;
}

/* الخطوط الأساسية الباهتة */
.mktg-node__path-base {
    fill: none;
    stroke: rgba(169, 203, 224, 0.15);
    stroke-width: 3px;
    transition: stroke 0.3s ease;
}

/* مسارات النبض المضيئة (Neon Energy) */
.mktg-node__path-pulse {
    fill: none;
    stroke: #0A84FF; /* أزرق نيون */
    stroke-width: 4px;
    filter: drop-shadow(0 0 8px rgba(10, 132, 255, 0.8));
    /* يتم ضبط الـ Dasharray في الـ JS لخلق نبضة مقطوعة */
    stroke-dashoffset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- المركز (Client Success Hub) --- */
.mktg-node__hub {
    position: absolute;
    top: 53%; 
    inset-inline-start: 70%;  
    inset-inline-end: auto; 
    
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تعديل موقع المركز للغة العربية ليكون في الجهة المعاكسة تماماً */
html[dir="rtl"] .mktg-node__hub {
    inset-inline-end: 40%;
    inset-inline-start: auto;
}

.mktg-node__hub-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: nodeHubPulse 3s infinite alternate ease-in-out;
}

@keyframes nodeHubPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.mktg-node__hub-core {
    position: relative;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 132, 255, 0.4);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.2);
}

.mktg-node__hub-logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1); /* لجعله أبيض نقياً */
}

.mktg-node__hub-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-ar);
}

/* --- العقد المتناثرة (Satellite Nodes) --- */
.mktg-node__item {
    position: absolute;
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(169, 203, 224, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    cursor: crosshair;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* توزيع العقد */
.mktg-node__item--1 { top: 0%; inset-inline-start: 10%; }
.mktg-node__item--2 { top: 50%; inset-inline-start: 5%; transform: translateY(-50%); }
.mktg-node__item--3 { bottom: 1%; inset-inline-start: 10%; }

.mktg-node__icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 132, 255, 0.1);
    color: var(--clr-glacier);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mktg-node__item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.mktg-node__item-desc {
    font-size: 0.8rem;
    color: var(--clr-slate);
    margin: 0;
    line-height: 1.5;
}

/* نقاط التوصيل الصغيرة على حافة العقدة */
.mktg-node__port {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #0b111a;
    border: 2px solid rgba(169, 203, 224, 0.5);
    border-radius: 50%;
}

.mktg-node__port--out {
    inset-inline-end: -6px;
}

/* --- Hover Effects --- */
.mktg-node__item:hover {
    transform: scale(1.05) translateY(-50%); /* للمحافظة على توسيط العقدة الوسطى */
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.08);
}
.mktg-node__item--1:hover, .mktg-node__item--3:hover {
    transform: scale(1.05);
}
.mktg-node__item:hover .mktg-node__icon {
    background: #0A84FF;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.5);
}
.mktg-node__item:hover .mktg-node__port {
    background: #0A84FF;
    border-color: #ffffff;
    box-shadow: 0 0 10px #0A84FF;
}

/* استجابة الموبايل */
@media (max-width: 992px) {
    .mktg-node__workspace { height: 567px; }
    .mktg-node__hub { top: 10%; inset-inline-end: 50%; transform: translateX(50%); }
    html[dir="rtl"] .mktg-node__hub { inset-inline-start: 50%; transform: translateX(-50%); }
    .mktg-node__item {
        position: relative;
         margin: 0 auto 1.5rem auto;
        top: 37px !important;
        inset-inline-start: 0 !important;
        transform: none !important;
    }
    .mktg-node__item:first-of-type { margin-top: 250px; }
    .mktg-node__svg-canvas { display: none; } /* إخفاء الخطوط في الموبايل للحفاظ على النظافة البصرية */
    .mktg-node__hub{
        display: none !important;
    }
}

/* --- التخطيط المزدوج (Split Layout Flexbox) --- */
.mktg-node__split-layout {
    display: flex;
    gap: 0; /* يبدأ بصفر والـ GSAP هيوسعه */
    align-items: stretch;
    width: 100%;
}

/* تعديل عرض مساحة العمل لتأخذ 60% */
.mktg-node__workspace {
    flex: 1 1 100%; 
    height: 700px;
    /* ... باقي أكواد الـ workspace (الألوان والخلفية) كما هي ... */
    position: relative;
    background-color: #0b111a; 
    background-image: 
        linear-gradient(rgba(169, 203, 224, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 203, 224, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; 
    border-radius: 30px;
    border: 1px solid rgba(169, 203, 224, 0.15);
    box-shadow: 0 30px 60px rgba(9, 44, 86, 0.2);
    overflow: hidden;
}

/* مساحة شاشة العرض (Monitor) لتأخذ 40% */
.mktg-node__monitor {
    flex: 0 0 0%; 
    width: 0;
    opacity: 0;
    padding: 0; /* بدون بادينج لضمان الاختفاء التام */
    border-width: 0; 
    overflow: hidden; /* أهم سطر علشان المحتوى ميبوظش وهو بيصغر */
    
    position: relative;
    border-radius: 30px;
    background: #0b111a;
    border-style: solid;
    border-color: rgba(169, 203, 224, 0.15);
    box-shadow: 0 30px 60px rgba(9, 44, 86, 0.2);
    display: flex;
}

/* إطار الشاشة الزجاجي (Director Frame) */
.mktg-node__monitor-frame {
    position: relative;
    width: 100%;
    height: 100%;
    /* تحديد عرض ثابت للشاشة من الداخل علشان تبان كأنها بتتسحب من ورا ستارة */
    min-width: 450px; 
    border-radius: 20px;
    background: #06090f;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* زوايا الكاميرا المضيئة */
.mktg-node__monitor-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(10, 132, 255, 0.4);
    z-index: 10;
}
.mktg-node__monitor-corner.top-left { top: 20px; inset-inline-start: 20px; border-bottom: none; border-inline-end: none; }
.mktg-node__monitor-corner.top-right { top: 20px; inset-inline-end: 20px; border-bottom: none; border-inline-start: none; }
.mktg-node__monitor-corner.bottom-left { bottom: 20px; inset-inline-start: 20px; border-top: none; border-inline-end: none; }
.mktg-node__monitor-corner.bottom-right { bottom: 20px; inset-inline-end: 20px; border-top: none; border-inline-start: none; }

/* بيانات الشاشة الحية (UI) */
/* .mktg-node__monitor-ui {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 2px;
} */

.mktg-node__monitor-ui { white-space: nowrap; }


.mktg-node__monitor-ui .rec-dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: recBlink 1s infinite;
}
@keyframes recBlink { 50% { opacity: 0; } }

/* الحالة الافتراضية (Idle State) */
/* .mktg-node__monitor-idle {
    text-align: center;
    color: rgba(169, 203, 224, 0.4);
    z-index: 2;
    transition: opacity 0.4s ease;
} */
.mktg-node__monitor-idle { white-space: nowrap; }
.mktg-node__monitor-idle i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(10, 132, 255, 0.3);
}

/* الفيديوهات التفاعلية */
.mktg-node__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    /* التخفي المبدئي عن طريق الـ Clip-Path (مقفول من الأسفل) */
    clip-path: inset(100% 0 0 0);
    transform: scale(1.1);
}

/* استجابة الموبايل */
@media (max-width: 992px) {
    .mktg-node__split-layout { flex-direction: column; }
    .mktg-node__monitor { height: 400px; }
    .mktg-node__workspace { flex: none; height: 800px; }
}


/* =========================================
   مكون أشعة الإكس-راي (Marketing X-Ray)
   ========================================= */

.mktg-xray {
    background-color: var(--clr-abyss); /* لون الأعماق الداكن */
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
    /* خلفية هندسية تعطي طابع غرفة الأشعة / المخططات */
    background-image: 
        linear-gradient(rgba(169, 203, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(169, 203, 224, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.mktg-xray__container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Header --- */
.mktg-xray__header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-inline: auto;
}

.mktg-xray__subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-glacier);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.mktg-xray__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
}

.mktg-xray__desc {
    font-size: 1.05rem;
    color: var(--clr-slate);
    line-height: 1.8;
}

/* --- X-Ray Grid & Cards --- */
.mktg-xray__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .mktg-xray__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mktg-xray__card {
    position: relative;
    min-height: 450px;
    background: #061120; /* لون أغمق قليلاً من ה-abyss للعمق */
    border-radius: 20px;
    border: 1px solid rgba(169, 203, 224, 0.1);
    overflow: hidden;
    cursor: crosshair; /* مؤشر فحص */
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    /* تجهيز متغيرات الماوس، مخفية خارج الشاشة افتراضياً */
    --x: -1000px;
    --y: -1000px;
    opacity: 0;
    transform: translateY(60px);
}

/* الطبقة 1: الأشعة (Dark Blueprint) */
.mktg-xray__layer-dark {
    position: absolute;
    inset: 0;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.mktg-xray__scan-lbl {
    position: absolute;
    top: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--clr-slate);
    letter-spacing: 2px;
}
/* الطبقة 1.5: تأثير شعاع الضوء الجديد (موضع بين الطبقتين) */
.mktg-xray__glow-beam {
    position: absolute;
    width: 300px; /* قطر الشعاع */
    height: 300px;
    /* تدرج لوني يعطي تأثير ضوء قوي في المركز (أبيض) يتلاشى لأزرق نيون ثم شفاف */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(10, 132, 255, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px); /* تنعيم الحواف ليكون كالضوء */
    z-index: 2; /* يظهر فوق الطبقة المظلمة وتحت طبقة الفيديو */
    
    /* توسيط الشعاع على الماوس */
    transform: translate(-50%, -50%);
    left: var(--x);
    top: var(--y);
    
    pointer-events: none; /* يتجاهل الماوس تماماً */
    opacity: 0; /* مخفي افتراضياً */
    transition: opacity 0.3s ease; /* دخول وخروج ناعم */
}

/* إظهار شعاع الضوء فقط عند الـ Hover */
.mktg-xray__card:hover .mktg-xray__glow-beam {
    opacity: 1;
}

/* الطبقة 2: الحياة (رفع z-index لتكون الأعلى) */
.mktg-xray__layer-vibrant {
    /* ... existing styles ... */
    z-index: 3; /* أعلى z-index ليغطي الشعاع عند الانكشاف */
    /* جعل حافة المسح أنعم قليلاً لزيادة تأثير الغموض */
    -webkit-mask-image: radial-gradient(circle 220px at var(--x) var(--y), black 20%, transparent 90%);
    mask-image: radial-gradient(circle 220px at var(--x) var(--y), black 20%, transparent 90%);
}
.mktg-xray__dark-icon {
    font-size: 4rem;
    color: rgba(169, 203, 224, 0.15); /* لون باهت جداً يشبه العظام/الهيكل */
    margin-bottom: 1.5rem;
}

.mktg-xray__dark-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(169, 203, 224, 0.3);
    letter-spacing: 1px;
}

/* الطبقة 2: الحياة (The Vibrant Reveal Layer) */
.mktg-xray__layer-vibrant {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* السحر كله هنا: الماسك الدائري يتتبع إحداثيات الماوس */
    -webkit-mask-image: radial-gradient(circle 220px at var(--x) var(--y), black 20%, transparent 80%);
    mask-image: radial-gradient(circle 220px at var(--x) var(--y), black 20%, transparent 80%);
    /* تأثير انتقال ناعم جداً عند دخول/خروج الماوس */
    transition: -webkit-mask-image 0.1s ease-out, mask-image 0.1s ease-out;
}

.mktg-xray__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mktg-xray__vibrant-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 44, 86, 0.95) 0%, rgba(9, 44, 86, 0.4) 60%, transparent 100%);
    z-index: 2;
}

.mktg-xray__vibrant-content {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0; 
    padding: 3rem 2rem 2rem;
    z-index: 3;
    text-align: start;
}

.mktg-xray__vibrant-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.mktg-xray__vibrant-content p {
    font-size: 0.95rem;
    color: var(--clr-glacier);
    line-height: 1.6;
    margin: 0;
}

/* معالجة الموبايل (حيث لا يوجد Hover مستمر) */
@media (max-width: 992px) {
    /* على الموبايل، نلغي الماسك ونظهر الطبقة الحية مباشرة عند الوصول إليها بالـ Scroll */
    .mktg-xray__layer-vibrant {
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0;
        transition: opacity 0.8s ease;
    }
    .mktg-xray__card.is-revealed .mktg-xray__layer-vibrant {
        opacity: 1;
    }
}

/* =========================================
   The "Action!" Clapperboard Section
   ========================================= */
.mktg-clapper {
    background-color: var(--clr-quartz);
    padding: 6rem 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mktg-clapper__container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mktg-clapper__header {
    margin-bottom: 10rem;
    max-width: 600px;
}

.mktg-clapper__subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-lapis);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.mktg-clapper__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-abyss);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.mktg-clapper__desc {
    font-size: 1.05rem;
    color: var(--clr-slate);
    line-height: 1.6;
    margin: 0;
}

/* 3D Clapperboard Wrapper */
.clapperboard-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    margin-top: 1rem;
    user-select: none;
}

/* Clapperboard Container */
.clapperboard {
    width: 440px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: pointer;
    filter: drop-shadow(0 20px 30px rgba(9, 44, 86, 0.15));
}

/* Top Clapper Hinge Bar */
.clapper-top {
    width: 100%;
    height: 44px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #1a1a1a;
    transform-origin: bottom left;
    /* Starts open */
    transform: rotate(-32deg);
    border-radius: 4px 4px 0 0;
    border-bottom: 4px solid #111;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bottom Clapper Chalkboard Body */
.clapper-bottom {
    width: 100%;
    height: 276px;
    position: absolute;
    top: 44px;
    left: 0;
    z-index: 5;
    background-color: #1a1a1a;
    border-radius: 0 0 8px 8px;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

/* Alternating Diagonal Stripes */
.clapper-stripes-top, .clapper-stripes-bottom {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}

.clapper-stripes-top {
    background: repeating-linear-gradient(
        -45deg,
        #1a1a1a,
        #1a1a1a 24px,
        #e5e5e5 24px,
        #e5e5e5 48px
    );
    border-radius: 4px 4px 0 0;
}

.clapper-stripes-bottom {
    background: repeating-linear-gradient(
        -45deg,
        #1a1a1a,
        #1a1a1a 24px,
        #e5e5e5 24px,
        #e5e5e5 48px
    );
    border-bottom: 5px solid #222;
}

/* The Chalkboard Area */
.clapper-chalkboard {
    flex-grow: 1;
    margin: 8px 12px 12px 12px;
    background-color: #2b2b2b;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 12px 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

/* Set layout directions based on html dir */
html[dir="rtl"] .clapper-chalkboard {
    text-align: right;
}

/* Chalk Text styling */
.clapper-chalkboard, 
.clapper-chalkboard span, 
.clapper-chalkboard div {
    font-family: 'Caveat', 'Alexandria', 'Inter', cursive, sans-serif;
    letter-spacing: 0.02em;
}

.chalk-header {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.chalk-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 6px 0;
}

.chalk-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.chalk-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chalk-cell.cell-wide {
    flex: 2;
}

.chalk-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.chalk-val {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chalk-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

.chalk-action-hint {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(169, 203, 224, 0.85);
    text-shadow: 0 0 6px rgba(169, 203, 224, 0.5);
    animation: chalkPulse 2s infinite ease-in-out;
    text-transform: uppercase;
    text-align: center;
}

@keyframes chalkPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Hinge overlay for clapperboard corner */
.clapperboard::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 36px;
    width: 12px;
    height: 16px;
    background-color: #333;
    border-radius: 3px;
    border: 1px solid #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 12;
}

/* Curtain Transitions styling */
.mktg-split-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
    direction: ltr !important;
}

.mktg-split-curtain {
    width: 50vw;
    height: 100vh;
    background-color: var(--clr-abyss);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.mktg-split-left {
    transform: translateX(-100%);
    border-right: 2px solid var(--clr-lapis);
}

.mktg-split-right {
    transform: translateX(100%);
    border-left: 2px solid var(--clr-lapis);
}

/* Glowing split border when closed */
.mktg-split-edge-glow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--clr-glacier);
    box-shadow: 0 0 15px var(--clr-glacier), 0 0 30px var(--clr-lapis);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mktg-split-left .mktg-split-edge-glow {
    right: -3px;
}

.mktg-split-right .mktg-split-edge-glow {
    left: -3px;
}

/* Active State for Curtains */
.mktg-split-overlay.active {
    pointer-events: all;
}

.mktg-split-overlay.active .mktg-split-left {
    transform: translateX(0);
}

.mktg-split-overlay.active .mktg-split-right {
    transform: translateX(0);
}

.mktg-split-overlay.active .mktg-split-edge-glow {
    opacity: 1;
}

/* Responsive details for Clapperboard */
@media (max-width: 576px) {
    .clapperboard {
        width: 320px;
        height: 240px;
    }
    .clapper-top {
        height: 36px;
    }
    .clapper-bottom {
        height: 204px;
        top: 36px;
    }
    .clapper-stripes-top, .clapper-stripes-bottom {
        height: 30px;
    }
    .clapper-chalkboard {
        padding: 8px 10px;
        margin: 6px 8px 8px 8px;
    }
    .chalk-header {
        font-size: 1.1rem;
    }
    .chalk-val {
        font-size: 1rem;
    }
    .chalk-lbl {
        font-size: 0.7rem;
    }
    .chalk-action-hint {
        font-size: 0.75rem;
    }
    .clapperboard-wrapper {
        height: 320px;
    }
}



/*************************************************************ABOUUTTTTT---USSSSSSSSSS********************************************************************/

     /* 1. تأثير الجريد التقني المتحرك (Animated Data Grid) */
    .kinetic-viewport::before {
        content: "";
        position: absolute;
        inset: -50%; 
        width: 200%;
        height: 200%;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
        background-size: 60px 60px;
        transform: rotate(-15deg); 
        /* السحر هنا: استخدام background-position لحركة ناعمة جداً وملحوظة */
        animation: gridPan 15s linear infinite; 
        z-index: 0;
        pointer-events: none;
    }

    @keyframes gridPan {
        0% { background-position: 0 0; }
        100% { background-position: 60px 60px; }
    }

    /* 2. الإضاءة السينمائية (Fade من الجنبين) */
    .kinetic-viewport::after {
        content: "";
        position: absolute;
        inset: 0;
        /* ضوء خفيف في النص، وظلام تام على الأطراف يبلع الكلمات */
        background: radial-gradient(circle at center, rgba(10, 132, 255, 0.0) 0%, rgba(5, 14, 26, 0.7) 50%, rgba(5, 14, 26, 1) 100%);
        z-index: 2; /* ⬅️ الأهم: رفعنا الـ z-index ليكون فوق الكلمات ليخفيها عند الأطراف */
        pointer-events: none;
    }

    /* تأكيد ترتيب الطبقات */
    #kinetic-canvas {
        z-index: 1; /* الكانفاس محشور بين الشبكة (تحته) والظلام (فوقه) */
    }
    /* Scroll container to pin the scene */
    .kinetic-scroll-container {
        position: relative; 
    }

   .kinetic-viewport {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background-color: #050E1A;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #kinetic-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 1;
    }

    /* Scroll down indicator */
  .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--clr-glacier);
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        opacity: 0; /* مخفي في البداية */
        pointer-events: none;
    }

    .scroll-indicator i {
        animation: floatArrow 2s infinite ease-in-out;
    }

    /* تصميم الزرار السينمائي */
    .kinetic-action-btn {
        position: absolute;
        bottom: 12%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(10, 132, 255, 0.1);
        border: 1px solid rgba(10, 132, 255, 0.5);
        color: #ffffff;
        padding: 14px 35px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 2px;
        border-radius: 50px;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 12px;
        backdrop-filter: blur(10px);
        box-shadow: 0 0 25px rgba(10, 132, 255, 0.3);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .kinetic-action-btn:hover {
        background: rgba(10, 132, 255, 0.25);
        box-shadow: 0 0 40px rgba(10, 132, 255, 0.6);
        transform: translateX(-50%) scale(1.05);
    }

    .kinetic-action-btn i {
        font-size: 0.9rem;
        color: var(--clr-quartz);
    }
    
    @keyframes floatArrow {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(6px); }
    }

/* إزالة طبقة التعتيم من كارت الفيديو لضمان عمل الكليك */
    .card-4::before {
        display: none !important; 
    }

    .card-4 {
        background-color: #050E1A; 
        justify-content: flex-start; /* رفع النصوص للأعلى */
        padding: 30px;
    }

   

      /* سكشن الستاك الرئيسي */
    .stack-section {
        position: relative;
        width: auto;
        height: 141vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        perspective: 1500px;
        background-color: #050E1A; /* خلفية داكنة تناسب الاحترافية */
    }

    /* 1. الخلفية الحية (Dynamic Background Orbs) */
    .dynamic-bg {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
        z-index: 0;
    }

    .glow-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.4;
        animation: floatOrb 12s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    }

    .orb-1 {
        width: 45vw; height: 45vw;
        background: #0A84FF;
        top: 1%; left: -10%;
    }

    .orb-2 {
        width: 35vw; height: 35vw;
        background: #B23A22;
        bottom: -5%; right: -5%;
        animation-delay: -5s;
    }

    @keyframes floatOrb {
        0% { transform: translate(0, 0) scale(1); }
        100% { transform: translate(10%, 15%) scale(1.2); }
    }

    .split-header {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1210px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    opacity : 0;
    right: 50%;
    }
    .header-left {
        text-align: left;
    }

    .header-right {
        text-align: right;
    }

    .stack-subtitle {
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 4px;
        color: #0A84FF;
        text-transform: uppercase;
        margin-bottom: 10px;
        display: block;
    }

    .stack-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 900;
        color: #FFFFFF;
        margin: 0;
        line-height: 1.1;
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* حاوية الكروت */
    .stack-container {
        position: relative;
        width: 85vw;
        max-width: 460px; /* عرض الكارت زاد شوية لراحة النص */
        aspect-ratio: 3 / 4; 
        margin-top: 33vh;
        z-index: 5;
    }

    /* الكارت الواحد */
    .stack-card {
        position: absolute;
        inset: 0;
        border-radius: 24px;
        background-size: cover;
        background-position: center;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* النصوص تحت علشان تاخد راحتها */
        padding: 40px;
        cursor: pointer;
        will-change: transform, opacity;
        transform-origin: top center;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 3. تعتيم احترافي للقراءة (Gradient Overlay) */
    .stack-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(5, 14, 26, 0.95) 0%, rgba(5, 14, 26, 0.6) 40%, rgba(5, 14, 26, 0.1) 100%);
        z-index: 1;
        border-radius: 24px;
    }

    .card-0 { background-color: #B23A22; background-image: url('https://images.unsplash.com/photo-1619099619226-f96e319e3732?w=1200&auto=format&fit=crop'); }
    .card-1 { background-color: #1E293B; background-image: url('https://images.unsplash.com/photo-1696389500422-d48223c77d5f?w=1200&auto=format&fit=crop'); }
    .card-2 { background-color: #0F172A; background-image: url('https://plus.unsplash.com/premium_photo-1764598713689-03cff53b6d86?w=1200&auto=format&fit=crop'); }
    .card-3 { background-color: #0A84FF; background-image: url('https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?w=1200&auto=format&fit=crop'); }
    .card-4 { background-color: #020813; } 

    /* محتوى الكارت (النصوص) */
    .card-content {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* محاذاة لليمين/اليسار */
        text-align: left;
        pointer-events: none; 
        justify-content: flex-end;
    }

    [dir="rtl"] .card-content {
        align-items: flex-end;
        text-align: right;
    }

    .card-category {
        font-size: 0.85rem;
        font-weight: 700;
        color: #0A84FF;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 15px;
        background: rgba(10, 132, 255, 0.15);
        padding: 6px 12px;
        border-radius: 50px;
        backdrop-filter: blur(10px);
    }

    .typewriter-text {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
        font-weight: 900;
        color: #FFFFFF;
        line-height: 1.15;
        margin: 0 0 15px 0;
        text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    }

    .typewriter-text span {
        display: inline-block;
        opacity: 0; 
    }

    .card-desc {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 500;
        line-height: 1.6;
        margin: 0;
        opacity: 0; 
        max-width: 95%;
    }

    /* 4. كارت الفيديو المالي للشاشة */
    .video-card-content {
        justify-content: flex-end; /* لترك مساحة لعنوان الفيديو لو أردتِ */
        height: 100%;
    }

    .video-wrapper {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 24px;
        overflow: hidden;
        z-index: 0; /* تحت التعتيم */
    }

    .video-wrapper iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150vw; /* خدعة لتكبير الـ iframe علشان يملأ الشاشة بدون حواف سوداء */
        height: 150vh;
        transform: translate(-50%, -50%);
        pointer-events: none; /* مهم: لمنع الـ Iframe من تعطيل كليك الكارت */
    }

    /* مؤشر للضغط */
    .click-indicator {
        position: absolute;
        bottom: 13px;
        left: 50%;
        transform: translateX(-50%);
        color: #FFFFFF;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 3px;
        opacity: 0.6;
        animation: pulseText 2s infinite;
        z-index: 10;
        pointer-events: none;
    }

    @keyframes pulseText {
        0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
        50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
    }

    /* ريسبونسيف */
    @media (max-width: 768px) {
        .split-header {
            flex-direction: column;
            align-items: center;
            top: 5%;
            gap: 10px;
        }
        .header-left, .header-right { text-align: center !important; }
        .stack-container { width: 88vw; aspect-ratio: 3/4.5; margin-top: 8vh;}
        .card-content { padding: 30px 20px; }
        .typewriter-text { font-size: 2.2rem; }
        .card-desc { font-size: 0.95rem; }
    }


    
    /* 1. ستايل الفيديو نفسه (في الخلفية خالص) */
    .card-video-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        z-index: 0; /* ترتيبه رقم 0 (تحت خالص) */
        border-radius: 24px; 
        pointer-events: none; 
    }

    
    .stack-card.card-4::before {
        content: "";
        position: absolute;
        inset: 0;
        /* هنا بنحط التدرج الغامق اللي إنتِ كاتباه */
        background: linear-gradient(to top, rgba(5, 14, 26, 0.95) 0%, rgba(5, 14, 26, 0.6) 40%, rgba(5, 14, 26, 0.1) 100%);
        z-index: 1; /* ترتيبه رقم 1 (فوق الفيديو مباشرة) */
        border-radius: 24px;
        pointer-events: none; /* علشان ميمنعش الكليك */
    }

    /* نتأكد إن لون الكارت نفسه أسود علشان لو الفيديو أخد ثانية يحمل */
    .card-4 {
        background-color: #050E1A; 
    }

    
 
            .mktg-ed {
                background-color: var(--clr-quartz); /* warm off-white, matching the page background */
                color: #1f2937;
                padding: 6rem 2rem;
                min-height: 100vh;
                display: flex;
                align-items: center;
                overflow: hidden;
                position: relative;
                /* متغير CSS السحري للربط مع الـ Scroll */
                --progress: 0%; 
            }

            .mktg-ed__container {
                max-width: 1400px;
                width: 100%;
                margin: 0 auto;
            }

            /* --- الهيدر و الـ Timecode --- */
            .mktg-ed__header {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: flex-end;
                margin-bottom: 3rem;
                gap: 2rem;
            }

            .mktg-ed__subtitle {
                font-size: 0.85rem;
                font-weight: 700;
                color: var(--clr-lapis); /* Brand dark blue accent */
                letter-spacing: 3px;
                text-transform: uppercase;
                display: block;
                margin-bottom: 0.5rem;
            }

            .mktg-ed__title {
                font-size: clamp(2rem, 3.5vw, 2.5rem);
                font-weight: 700;
                color: #092C56; /* Brand Abyss blue */
                margin: 0;
            }

            .mktg-ed__timecode {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                font-family: 'Courier New', Courier, monospace;
                font-size: 1.5rem;
                font-weight: 700;
                color: #092C56;
                background: #ffffff;
                padding: 0.5rem 1rem;
                border-radius: 8px;
                border: 1px solid #e5e7eb;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            }

            .mktg-ed__rec-icon {
                color: #ef4444;
                font-size: 0.8rem;
                animation: mktgRecBlink 1s infinite;
            }

            @keyframes mktgRecBlink {
                0%, 100% { opacity: 1; }
                50% { opacity: 0.3; }
            }

            /* --- واجهة المونتاج (Workspace) --- */
            .mktg-ed__workspace {
                display: grid;
                grid-template-columns: 80px 1fr;
                background: #ffffff; /* Clean white background for timeline workspace */
                border: 1px solid #e5e7eb;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 20px 40px rgba(9, 44, 86, 0.05);
            }

            @media (min-width: 768px) {
                .mktg-ed__workspace {
                    grid-template-columns: 120px 1fr;
                }
            }

            /* مساحة التسميات (اليسار/اليمين حسب اللغة) */
            .mktg-ed__labels {
                background: #f9fafb; /* light gray panel */
                border-inline-end: 1px solid #e5e7eb;
                display: flex;
                flex-direction: column;
            }

            .mktg-ed__label-item {
                height: 100px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                font-size: 0.85rem;
                font-weight: 600;
                color: #4b5563;
                border-bottom: 1px solid #e5e7eb;
            }

            .mktg-ed__label-item i {
                font-size: 0.75rem;
                color: var(--clr-lapis);
            }

            .mktg-ed__label-item--render {
                height: 50px;
                border-bottom: none;
                color: #059669; /* أخضر الريندر */
            }

            /* منطقة التايم لاين (Timeline Tracks) */
            .mktg-ed__timeline {
                position: relative;
                display: flex;
                flex-direction: column;
            }

            .mktg-ed__track {
                height: 100px;
                border-bottom: 1px solid rgba(229, 231, 235, 0.7);
                position: relative;
                background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
                background-size: 5%; /* تقسيمات الثواني في الخلفية */
            }

            /* --- مقاطع الفيديو (Clips) --- */
            .mktg-ed__clip {
                position: absolute;
                top: 10px;
                bottom: 10px;
                border-radius: 6px;
                overflow: hidden;
                display: flex;
                align-items: center;
                padding: 0 1.5rem;
                opacity: 0.35; /* خافت قبل أن يصله المؤشر */
                filter: grayscale(1);
                transition: filter 0.4s ease, opacity 0.4s ease, transform 0.2s ease;
            }

            .mktg-ed__clip.is-active {
                opacity: 1;
                filter: grayscale(0);
                transform: scale(1.02); /* يبرز عندما يعبره الـ Playhead */
                box-shadow: 0 10px 20px rgba(9, 44, 86, 0.15);
            }

            .mktg-ed__clip-bg {
                position: absolute;
                inset: 0;
                opacity: 0.15;
                background-image: repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 10px,
                    rgba(0,0,0,0.1) 10px,
                    rgba(0,0,0,0.1) 20px
                );
                z-index: 0;
            }

            /* ألوان مقاطع المونتاج بناءً على ألوان علامتك */
            .mktg-ed__clip--lapis { background-color: var(--clr-lapis); border-top: 3px solid #60a5fa; }
            .mktg-ed__clip--glacier { background-color: var(--clr-slate); border-top: 3px solid var(--clr-glacier); }
            .mktg-ed__clip--slate { background-color: #475569; border-top: 3px solid #94a3b8; }

            .mktg-ed__clip-content {
                position: relative;
                z-index: 1;
                display: flex;
                flex-direction: column;
            }

            .mktg-ed__clip-name {
                font-size: 0.75rem;
                color: rgba(255,255,255,0.75);
                margin-bottom: 0.25rem;
                font-family: 'Courier New', Courier, monospace;
            }

            .mktg-ed__clip-num {
                margin: 0;
                font-size: clamp(1.5rem, 2.5vw, 2.5rem);
                font-weight: 700;
                color: #ffffff;
                font-family: var(--font-en);
            }

            /* --- خط الـ Playhead الأحمر --- */
            .mktg-ed__playhead {
                position: absolute;
                top: 0;
                bottom: 0;
                width: 2px;
                background-color: #ef4444; /* الأحمر الساطع */
                z-index: 20;
                inset-inline-start: var(--progress);
                transform: translateX(-50%); /* توسيط المؤشر فوق القيمة */
                box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
                pointer-events: none;
            }

            html[dir="rtl"] .mktg-ed__playhead {
                transform: translateX(50%); /* تعديل التوسيط للـ RTL */
            }

            .mktg-ed__playhead-head {
                position: absolute;
                top: -5px;
                left: 50%;
                transform: translateX(-50%);
                width: 14px;
                height: 14px;
                background-color: #ef4444;
                clip-path: polygon(0 0, 100% 0, 50% 100%); /* شكل مثلث الـ Playhead */
            }

            /* --- شريط الريندر (العملاء) --- */
            .mktg-ed__render-track {
                height: 50px;
                background: #f9fafb;
                position: relative;
                display: flex;
                align-items: center;
                padding: 0 1rem;
            }

            .mktg-ed__render-bar {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 6px;
                background: #fca5a5; /* لون الشريط قبل الريندر (يحتاج ريندر) - أحمر فاتح */
            }

            .mktg-ed__render-fill {
                height: 100%;
                background: #10b981; /* اللون الأخضر (تم الريندر) */
                width: var(--progress); /* يرتبط بالسكرول فوراً */
                box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
            }

            /* علامات الشعارات المخفية */
            .mktg-ed__logo-markers {
                position: absolute;
                top: 5px;
                inset-inline-start: 0;
                inset-inline-end: 0;
                height: 40px;
            }

            .mktg-ed__logo {
                position: absolute;
                top: 0;
                transform: translateX(-50%) scale(0);
                opacity: 0;
                color: #092C56; /* Brand deep blue */
                font-size: 1.25rem;
                background: #ffffff;
                width: 40px; height: 40px;
                border-radius: 50%;
                display: flex; justify-content: center; align-items: center;
                border: 2px solid #10b981;
                box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 0 10px rgba(16, 185, 129, 0.25);
                will-change: transform, opacity;
            }

            html[dir="rtl"] .mktg-ed__logo {
                transform: translateX(50%) scale(0);
            }

            .mktg-ed__logo.is-popped {
                transform: translateX(-50%) scale(1);
                opacity: 1;
            }

            html[dir="rtl"] .mktg-ed__logo.is-popped {
                transform: translateX(50%) scale(1);
            }



                /* =========================================
        الضربة القاضية (Ultimate Magnetic CTA)
        ========================================= */
        .ultimate-cta-section {
            position: relative;
            min-height: 85vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #020813; /* لون مظلم وعميق جداً لزيادة التركيز على الزرار */
            overflow: hidden;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* خلفية التموجات الساحرة */
        .cta-ripple-bg {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 0;
            pointer-events: none;
        }

        .ripple {
            position: absolute;
            border-radius: 50%;
            border: 1px solid rgba(10, 132, 255, 0.2);
            animation: expandRipple 6s infinite linear;
        }

        /* تأخير الأنيميشن لكل دائرة علشان يدي تأثير الموجة */
        .ripple-1 { width: 250px; height: 250px; animation-delay: 0s; }
        .ripple-2 { width: 250px; height: 250px; animation-delay: 2s; }
        .ripple-3 { width: 250px; height: 250px; animation-delay: 4s; }

        @keyframes expandRipple {
            0% { 
                transform: scale(1); 
                opacity: 1; 
                border-color: rgba(10, 132, 255, 0.6); 
            }
            100% { 
                transform: scale(6); 
                opacity: 0; 
                border-width: 2px; 
            }
        }

        /* المحتوى النصي */
        .cta-content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 20px;
        }

        .cta-heading {
            font-size: clamp(2.5rem, 6vw, 5rem);
            font-weight: 900;
            color: #FFFFFF;
            margin-bottom: 20px;
            letter-spacing: -1px;
            text-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        .cta-subheading {
            font-size: clamp(1rem, 2vw, 1.3rem);
            color: #9CA3AF;
            max-width: 700px;
            margin: 0 auto 60px auto;
            line-height: 1.6;
        }

        /* المنطقة التي تلتقط الماوس (أكبر من الزرار نفسه) */
        .magnetic-btn-wrapper {
            position: relative;
            width: 280px; 
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            /* border: 1px solid red; Uncomment to see the catch area */
        }

        /* تصميم الزرار الدائري الضخم */
        .magnetic-btn {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0A84FF, #0055FF);
            color: #FFF;
            border: none;
            cursor: pointer;
            font-weight: 900;
            font-size: 1.25rem;
            letter-spacing: 1px;
            box-shadow: 0 15px 40px rgba(10, 132, 255, 0.4), inset 0 0 20px rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            will-change: transform;
        }

        .magnetic-text {
            display: inline-block;
            pointer-events: none; /* لمنع الماوس من التشويش على النص */
            will-change: transform;
        }



        /* =========================================
        مُحوّل المسار (The Paradigm Switch) - Light Theme
        ========================================= */
        /* خلفية السكشن: لايت مع حركة "شبكة بيانات" خفيفة */
        .ternary-switch-section {
            background-color: #F8FAFC;
            padding: 100px 5%;
            position: relative;
            /* إضافة شبكة خفيفة كخلفية */
            background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
            background-size: 30px 30px; 
            }

        .ts-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .ts-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .ts-subtitle {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 2px;
            font-family: 'Courier New', Courier, monospace; /* خط برمجي */
            background: #FFFFFF;
            padding: 8px 16px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
            display: inline-block;
            margin-bottom: 20px;
        }

        .ts-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 900;
            color: #092C56;
            margin: 0;
        }

        /* زرار التبديل (Toggle Switch) */
        .ts-toggle-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 60px;
        }

        .ts-label {
            font-size: 20px;
            font-weight: 800;
            color: #9CA3AF;
            transition: color 0.4s ease;
        }

        .ts-label.active {
            color: #092C56; /* اللون يتفعل مع الاختيار */
        }

        .ts-toggle {
            width: 90px;
            height: 46px;
            background-color: #D1D5DB; /* لون رمادي في حالة التقليدي */
            border-radius: 50px;
            padding: 4px;
            cursor: pointer;
            position: relative;
            transition: background-color 0.4s ease, box-shadow 0.4s ease;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
        }

        /* حالة تفعيل Ternpress */
        .ts-toggle.is-ternpress {
            background-color: #0A84FF;
            box-shadow: 0 0 20px rgba(10, 132, 255, 0.4), inset 0 2px 5px rgba(0,0,0,0.1);
        }

        .ts-toggle-circle {
            width: 38px;
            height: 38px;
            background-color: #FFFFFF;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            /* السحر في الـ CSS Variables */
            transform: translateX(0);
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
        }

        /* في الـ RTL لازم نعكس الحركة */
        html[dir="rtl"] .ts-toggle.is-ternpress .ts-toggle-circle { transform: translateX(-44px); }
        html[dir="ltr"] .ts-toggle.is-ternpress .ts-toggle-circle { transform: translateX(44px); }

        /* شبكة الكروت البيضاء */
        .ts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

       .ts-card {
            background: #FFFFFF;
            /* زوايا غير متماثلة تعطي طابع "برمجي" */
            border-radius: 40px 10px 40px 10px;
            padding: 40px;
            border: 2px solid #092C56;
            box-shadow: 8px 8px 0px #092C56; /* ظل حاد وقوي يعطي طابع Pop-Art تقني */
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .ts-card:hover {
            transform: scale(1.03) rotate(-1deg); /* ميلان بسيط جداً عند الوقوف */
            box-shadow: 12px 12px 0px #0A84FF; /* الظل يغير لونه للأزرق */
        }

      .ts-icon {
    width: 60px;
    height: 60px;
    background: #092C56;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}



        .ts-card-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: #092C56;
            margin: 0 0 20px 0;
            border-bottom: 1px solid #F3F4F6;
            padding-bottom: 15px;
        }

        
        /* الـ State indicators داخل الكارت */
        .ts-state {
            position: absolute;
            /* نقلناهم عشان ميبقوش فوق بعض */
            opacity: 0;
            transition: all 0.5s ease;
        }

        .ts-state.active {
            position: relative;
            opacity: 1;
        }

        .ts-metric {
            font-size: 3rem;
            font-weight: 900;
            font-family: 'Inter', sans-serif;
            margin-bottom: 10px;
            line-height: 1;
        }

        .ts-desc {
            font-size: 1rem;
            color: #4B5563;
            line-height: 1.6;
            margin: 0;
        }
        .card-decor {
            margin: 15px 0;
            display: flex;
            gap: 5px;
        }
        .line {
            height: 2px;
            background: #E5E7EB;
            border-radius: 2px;
        }
        .line:first-child { width: 40%; }
        .line:last-child { width: 20%; }




/*****************************************************SERVICESSSSSSSSSSSS***************************************************/
     /* =========================================
        1. سكشن ضبط العدسة (The Focus Pull Hook)
        ========================================= */
        .focus-pull-section {
            position: relative;
            width: 100vw;
            height: 120vh;
            background-color: #02060E;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background-image: radial-gradient(circle at center, #0F172A 0%, #02060E 70%);
            z-index: 1; /* الطبقة السفلية */
        }

        .cine-bg-elements {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            overflow: hidden;
        }

        .lens-grid {
            position: absolute;
            inset: -50%;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            background-position: center center;
            transform: rotate(-10deg) scale(1.2);
        }

        .cine-flare {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.3;
            animation: floatFlare 12s infinite alternate ease-in-out;
        }

        .flare-blue { width: 45vw; height: 45vw; background: #0A84FF; top: -10%; left: -15%; }
        .flare-red { width: 35vw; height: 35vw; background: #EF4444; bottom: -15%; right: -10%; animation-delay: -6s; }

        @keyframes floatFlare {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(10%, 15%) scale(1.1); }
        }

        .film-noise {
            position: absolute;
            inset: 0;
            background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.06"/%3E%3C/svg%3E');
            z-index: 2;
            mix-blend-mode: overlay;
        }

        .viewfinder-ui {
            position: absolute;
            inset: 30px;
            pointer-events: none;
            z-index: 10;
        }

        .vf-corner { position: absolute; width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.2); }
        .vf-corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
        .vf-corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
        .vf-corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
        .vf-corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

        .vf-top-info {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 30px;
            color: rgba(255, 255, 255, 0.5);
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.85rem;
            letter-spacing: 2px;
        }

        .vf-rec { display: flex; align-items: center; gap: 8px; color: #ef4444; font-weight: bold; }
        .red-dot { width: 10px; height: 10px; background: #ef4444; border-radius: 50%; animation: blink 1s infinite; }
        @keyframes blink { 0%, 100% {opacity: 1;} 50% {opacity: 0.3;} }

        .vf-crosshair {
            position: absolute;
            top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 30px; height: 30px;
            border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
        }
        .vf-crosshair::before, .vf-crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,0.1); }
        .vf-crosshair::before { top: 50%; left: -10px; right: -10px; height: 1px; transform: translateY(-50%); }
        .vf-crosshair::after { left: 50%; top: -10px; bottom: -10px; width: 1px; transform: translateX(-50%); }

        .focus-chart-container {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            z-index: 15; text-align: center; width: 100%; position: relative;
        }

        .chart-row {
            line-height: 1.1; color: #FFF; text-transform: uppercase; font-weight: 900;
            will-change: filter, transform, letter-spacing, opacity;
        }

        .row-1 { font-size: clamp(4rem, 10vw, 8rem); margin-bottom: 10px; color: #FFFFFF; }
        .row-2 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 15px; color: #E2E8F0; }
        .row-3 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 20px; color: #94A3B8; }
        .row-4 { font-size: clamp(1rem, 2vw, 1.5rem); margin-bottom: 40px; color: #64748B; font-weight: 700; }
        .row-5 { font-size: clamp(0.8rem, 1.2vw, 1rem); color: #0A84FF; font-weight: 600; letter-spacing: 2px; }

        .focus-text.highlighted {
            display: flex; align-items: center; gap: 10px; background: rgba(10, 132, 255, 0.1);
            padding: 10px 25px; border-radius: 50px; border: 1px solid rgba(10, 132, 255, 0.3);
        }

        .camera-flash {
            position: absolute; inset: 0; background: #FFF; opacity: 0; pointer-events: none; z-index: 100;
        }

        .scroll-to-focus {
            position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
            z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 12px;
            color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
        }

        .mouse-body { width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 15px; position: relative; display: flex; justify-content: center; }
        .mouse-wheel { width: 4px; height: 8px; background-color: #0A84FF; border-radius: 2px; margin-top: 6px; animation: scrollWheel 2s infinite ease-in-out; }
        @keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

        /* =========================================
        2. الفاصل الوهمي (علشان التداخل)
        ========================================= */
        .scroll-delay-spacer {
            height: 150vh; /* لتأخير السكشن اللي بعده لحد ما الأنيميشن يخلص */
            pointer-events: none;
            visibility: hidden;
        }

        /* =========================================
        3. تشريح البوست الناجح (Anatomy Section)
        ========================================= */
        .anatomy-section {
            background-color: #F8FAFC;
            padding: 120px 5%;
            position: relative;
            overflow: hidden;
            z-index: 10; /* بيزحف فوق السكشن الأولاني */
            box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
        }

        .anatomy-bg-elements { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
        .light-data-grid { position: absolute; inset: 0; background-image: radial-gradient(#CBD5E1 1.5px, transparent 1.5px); background-size: 35px 35px; opacity: 0.5; }
        .glow-orb-light { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: floatLightOrb 10s infinite alternate ease-in-out; }
        .orb-blue { width: 500px; height: 500px; background: #E0F2FE; top: -10%; left: -10%; }
        .orb-teal { width: 400px; height: 400px; background: #CCFBF1; bottom: 10%; right: -5%; animation-delay: -5s; }
        @keyframes floatLightOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(5%, 10%) scale(1.1); } }

        .anatomy-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }

        .anatomy-header { text-align: center; margin-bottom: 80px; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 5; }
        
        .anatomy-subtitle {
            font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 4px;
            background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(10, 132, 255, 0.02));
            color: #0A84FF; padding: 10px 28px; border-radius: 50px; border: 1px solid rgba(10, 132, 255, 0.2);
            margin-bottom: 25px; box-shadow: 0 8px 20px rgba(10, 132, 255, 0.08); display: inline-block; backdrop-filter: blur(10px);
        }

        .anatomy-title {
            font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin: 0 0 20px 0; letter-spacing: -1px; line-height: 1.2;
            background: linear-gradient(135deg, #092C56 0%, #1E3A8A 50%, #0A84FF 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }

        .anatomy-desc { color: #64748B; font-size: 1.15rem; max-width: 700px; margin: 0 auto; line-height: 1.8; font-weight: 500; }
        .anatomy-highlight { color: #092C56; font-weight: 800; position: relative; display: inline-block; }
        .anatomy-highlight::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 4px; background: rgba(10, 132, 255, 0.3); z-index: -1; border-radius: 2px; }

        .phone-showcase { display: flex; justify-content: center; align-items: center; position: relative; }

        /* الكود الخاص بالموبايل (اللي كان ممسوح) */
        .phone-mockup {
            width: 340px; height: 680px; background: #000; border-radius: 45px; position: relative;
            border: 12px solid #1E293B; box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15), inset 0 0 10px rgba(0,0,0,0.5);
            overflow: hidden; z-index: 10;
        }
        .phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 25px; background: #1E293B; border-radius: 0 0 15px 15px; z-index: 10; }
        .post-media { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

        /* النقط المضيئة */
        .hotspot { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); cursor: pointer; z-index: 20; }
        .hotspot-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
        .hotspot-pulse { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #0A84FF; border-radius: 50%; animation: hotspotPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
        @keyframes hotspotPulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(3); opacity: 0; } }
        .hotspot:hover .hotspot-dot { transform: translate(-50%, -50%) scale(1.3); background: #0A84FF; }

        /* الشرح والتول تيبس */
        .hotspot-tooltip {
            position: absolute; width: 250px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.5); padding: 20px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            opacity: 0; visibility: hidden; transform: scale(0.9); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; z-index: 30;
        }
        .hotspot-tooltip h4 { margin: 0 0 8px 0; color: #0A84FF; font-size: 1.05rem; font-weight: 800; }
        .hotspot-tooltip p { margin: 0; color: #475569; font-size: 0.9rem; line-height: 1.5; }
        
        .tooltip-right { top: 313%;  left: -163%; margin-left: 20px; transform: translateY(-50%) scale(0.9); }
        .tooltip-left { top: 296%; right: -232%; margin-right: 20px; transform: translateY(-50%) scale(0.9); }
        .tooltip-top { bottom: 100%; left: 50%; margin-bottom: 20px; transform: translateX(-50%) scale(0.9); }
        
        .hotspot:hover .tooltip-right, .hotspot:hover .tooltip-left { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
        .hotspot:hover .tooltip-top { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }

        /* الكارت الزجاجي الطبي (الروشتة) */
        .floating-rx-panel {
            position: absolute; left: 2%; top: 50%; transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 20px; padding: 25px; width: 320px; box-shadow: 0 30px 60px rgba(9, 44, 86, 0.08);
            z-index: 5; animation: floatPanel 6s ease-in-out infinite;
        }
        html[dir="rtl"] .floating-rx-panel { left: auto; right: 2%; }

        .rx-header { display: flex; align-items: center; gap: 15px; color: #092C56; font-size: 1.1rem; font-weight: 900; margin-bottom: 20px; border-bottom: 2px solid #F1F5F9; padding-bottom: 15px; }
        .rx-symbol { font-size: 2rem; font-family: 'Times New Roman', Times, serif; font-weight: bold; color: #0A84FF; line-height: 1; }
        .rx-body { display: flex; flex-direction: column; gap: 15px; }
        .rx-item { display: flex; flex-direction: column; gap: 5px; }
        .rx-label { color: #092C56; font-weight: 800; font-size: 0.9rem; }
        .rx-label i { color: #0A84FF; margin-inline-end: 5px; }
        .rx-value { color: #4B5563; font-size: 0.85rem; line-height: 1.6; }
        .rx-item.highlight { background: rgba(16, 185, 129, 0.1); padding: 10px; border-radius: 8px; border-right: 3px solid #10B981; }
        html[dir="ltr"] .rx-item.highlight { border-right: none; border-left: 3px solid #10B981; }
        .rx-item.highlight .rx-label i, .rx-item.highlight .rx-label { color: #10B981; }
        .rx-item.highlight .rx-value { color: #047857; font-weight: 700; }

        @keyframes floatPanel { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(-55%); } }

        /* الكارت الزجاجي (العلامات الحيوية) */
        .floating-vitals-panel {
            position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(10, 132, 255, 0.2);
            border-radius: 20px; padding: 25px; width: 320px; box-shadow: 0 30px 60px rgba(9, 44, 86, 0.08);
            z-index: 5; animation: floatPanel 7s ease-in-out infinite 1s; 
        }
        html[dir="rtl"] .floating-vitals-panel { right: auto; left: 2%; }

        .vitals-header { display: flex; align-items: center; gap: 12px; color: #092C56; font-size: 1.05rem; font-weight: 900; margin-bottom: 25px; }
        .heartbeat-icon { color: #EF4444; font-size: 1.3rem; animation: heartbeat 1.5s infinite; }
        @keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.3); } }
        .vitals-body { display: flex; flex-direction: column; gap: 20px; }
        .vital-stat { display: flex; flex-direction: column; gap: 8px; }
        .vital-info { display: flex; justify-content: space-between; align-items: flex-end; }
        .v-label { font-size: 0.85rem; font-weight: 700; color: #4B5563; }
        .v-value { font-size: 1.1rem; font-weight: 900; font-family: 'Inter', sans-serif; }
        .v-value.positive { color: #0A84FF; }
        .v-value.negative { color: #10B981; }
        .v-value.highlight { color: #F59E0B; font-size: 1.3rem; }

        .vital-bar { width: 100%; height: 6px; background: #F1F5F9; border-radius: 10px; overflow: hidden; }
        .vital-fill { height: 100%; border-radius: 10px; }

        .mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 24px; margin-top: 5px; }
        .mini-chart .bar { flex: 1; background: #F59E0B; border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0); opacity: 0; }
        .bar-1 { height: 30%; } .bar-2 { height: 50%; } .bar-3 { height: 75%; } .bar-4 { height: 100%; }

        @media (max-width: 1024px) {
            .floating-vitals-panel { display: none; }
            .phone-mockup { width: 307px; height: 600px; top: 300px; }
            .tooltip-right {
                transform: scale(0.8) !important;
                top: 46% !important;
                left: -165% !important;

            }
            .tooltip-left {
                transform: scale(0.8) !important;
                top: 49% !important;
                right: -248% !important;

            }
            .floating-rx-panel{
                top: 19% !important;
            }
            .anatomy-section{
                height: 164vh !important;
            }
        }
        /* =========================================
        رحلة المريض (The Patient Journey)
        ========================================= */
        .patient-journey-section {
            background-color: #050A14; /* كحلي شديد السواد */
            padding: 150px 5% 100px 5%;
            position: relative;
            overflow: hidden;
            z-index: 20;
            box-shadow: 0 -30px 60px rgba(0,0,0,0.8); /* الظل علشان يغطي السكشن اللي قبله */
        }

        /* --- الخلفية الحيوية --- */
        .journey-bg-elements { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
        .dark-data-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(10, 132, 255, 0.1) 1.5px, transparent 1.5px); background-size: 40px 40px; opacity: 0.6; }
        .ambient-light { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.3; }
        .light-1 { width: 600px; height: 600px; background: #0A84FF; top: 10%; right: -10%; animation: pulseLight 8s infinite alternate; }
        .light-2 { width: 500px; height: 500px; background: #10B981; bottom: 10%; left: -10%; animation: pulseLight 10s infinite alternate-reverse; }
        @keyframes pulseLight { 0% { transform: scale(1); opacity: 0.2; } 100% { transform: scale(1.2); opacity: 0.4; } }

        /* الجزيئات (Synapses) اللي هنعملها بالـ JS */
        .synapse-dot { position: absolute; background: #FFF; border-radius: 50%; box-shadow: 0 0 10px #0A84FF; opacity: 0; animation: floatSynapse 4s infinite ease-in-out; }
        @keyframes floatSynapse { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 50% { opacity: 0.8; } 100% { transform: translateY(-100px) scale(1.2); opacity: 0; } }

        /* --- الهيدر --- */
        .journey-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
        .journey-header { text-align: center; margin-bottom: 100px; }
        .journey-subtitle { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 4px; color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 8px 24px; border-radius: 50px; background: rgba(16, 185, 129, 0.05); margin-bottom: 20px; display: inline-block; }
        .journey-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; color: #FFF; margin: 0 0 20px 0; }
        .journey-desc { color: #94A3B8; font-size: 1.15rem; max-width: 700px; margin: 0 auto; line-height: 1.8; }
        .text-glow { color: #0A84FF; font-weight: bold; text-shadow: 0 0 15px rgba(10, 132, 255, 0.5); }

        /* --- الخط الزمني (Timeline) --- */
        .timeline-wrapper { position: relative; padding: 50px 0; display: flex; flex-direction: column; gap: 150px; }

        .timeline-svg { position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 100px; height: 100%; z-index: -1; pointer-events: none; }
        .path-bg { stroke: rgba(255, 255, 255, 0.05); stroke-width: 4; fill: none; }
        .path-line { stroke: #0A84FF; stroke-width: 6; fill: none; filter: drop-shadow(0 0 15px #0A84FF); stroke-linecap: round; }

        /* --- المحطات (Stations) --- */
        .timeline-station { display: flex; align-items: center; position: relative; width: 100%; opacity: 0; transform: translateY(50px); }
        .station-left { justify-content: flex-start; }
        .station-right { justify-content: flex-end; }
        html[dir="rtl"] .station-left { justify-content: flex-end; }
        html[dir="rtl"] .station-right { justify-content: flex-start; }

        /* النقطة اللي على الخط */
        .station-node { position: absolute; left: 50%; transform: translate(-50%, -50%); top: 50%; width: 24px; height: 24px; background: #050A14; border: 4px solid #334155; border-radius: 50%; z-index: 2; transition: all 0.5s ease; }
        .timeline-station.is-active .station-node { border-color: #0A84FF; background: #0A84FF; box-shadow: 0 0 20px #0A84FF, 0 0 40px #0A84FF; transform: translate(-50%, -50%) scale(1.3); }

        /* محتوى المحطة */
        .station-content { width: 45%; display: flex; gap: 30px; align-items: center; }
        .station-left .station-content { flex-direction: row; }
        .station-right .station-content { flex-direction: row; }
        html[dir="rtl"] .station-content { flex-direction: row-reverse; }

        /* النصوص */
        .station-text { flex: 1; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(10px); padding: 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
        .station-text::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #334155; transition: background 0.5s; }
        .timeline-station.is-active .station-text::before { background: #0A84FF; box-shadow: 0 0 15px #0A84FF; }
        html[dir="rtl"] .station-text::before { left: auto; right: 0; }

        .step-num { font-size: 3rem; font-weight: 900; font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.05); position: absolute; top: -10px; right: 10px; z-index: 0; }
        html[dir="rtl"] .step-num { right: auto; left: 10px; }
        .glow-num { color: rgba(16, 185, 129, 0.1); }
        .timeline-station.is-active .glow-num { color: rgba(16, 185, 129, 0.3); text-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }

        .station-text h3 { font-size: 1.5rem; color: #FFF; margin: 0 0 10px 0; position: relative; z-index: 1; }
        .station-text p { color: #94A3B8; font-size: 1rem; line-height: 1.6; margin: 0; position: relative; z-index: 1; }

        /* الموك آب (شكل الشغل) */
        .station-mockup { width: 200px; height: 280px; border-radius: 15px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.1); transform: perspective(1000px) rotateY(-10deg); transition: transform 0.5s, box-shadow 0.5s; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
        .station-right .station-mockup { transform: perspective(1000px) rotateY(10deg); }
        .station-mockup:hover { transform: perspective(1000px) rotateY(0deg) scale(1.05) !important; box-shadow: 0 20px 40px rgba(10, 132, 255, 0.3); z-index: 10; }
        .station-mockup img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.3s; }
        .station-mockup:hover img { opacity: 1; }

        .mockup-overlay { position: absolute; bottom: 15px; left: 15px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); color: #FFF; padding: 5px 12px; border-radius: 30px; font-size: 0.8rem; font-family: 'Inter', sans-serif; font-weight: bold; border: 1px solid rgba(255,255,255,0.2); }
        .success-overlay { background: rgba(16, 185, 129, 0.2); border-color: #10B981; color: #10B981; }

        /* الموبايل ريسبونسيف */
        @media (max-width: 992px) {
            .timeline-svg { left: -40px; transform: none; }
            html[dir="rtl"] .timeline-svg { left: auto; right: -16px; }
            .station-node { left: 30px; }
            html[dir="rtl"] .station-node { left: auto; right: -16px; }
            .station-content { width: calc(100% - 70px); margin-left: 70px; flex-direction: column-reverse !important; align-items: flex-start; }
            html[dir="rtl"] .station-content { margin-left: 0; margin-right: 70px; }
            .station-mockup { width: 100%; height: 200px; transform: none !important; }
            .patient-journey-section {
                padding: 33px 5% 1px 5%;
            }
            .reels-bottom-desc {
             width: 400px;
            }
         }
         
/* =========================================
   نفق الفيديوهات (Cinematic 3D Tunnel)
   ========================================= */
/* =========================================
   معرض الـ Reels (The Infinite Scale Stack)
   ========================================= */
.reels-scale-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #02060E; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* --- النصوص في الخلفية --- */
.reels-text-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    /* هنخلي GSAP هو اللي يسنتره ويحركه */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content; /* علشان الكلام ميتكسرش لما يقرب من الحواف */
    z-index: 1; /* ورا الفيديوهات مباشرة */
    pointer-events: none; 
}

.reels-badge {
    background: rgba(10, 132, 255, 0.1);
    color: #0A84FF;
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.reels-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    color: transparent; /* لون شفاف */
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15); /* إطار أبيض خفيف */
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    white-space: nowrap; /* يمنع نزول النص لسطر جديد */
}

/* الوصف هيكون تحت العنوان بلون ساطع */
.reels-desc {
    color: #0A84FF;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
}
 
/* --- حاوية الفيديوهات --- */
.reels-stack-container {
    position: relative;
    /* مساحة واضحة جداً وأكبر من الـ 3D القديم */
    width: clamp(280px, 22vw, 400px); 
    aspect-ratio: 9 / 16;
    z-index: 10;
}

/* --- كارت الفيديو --- */
.reel-card {
    position: absolute;
    inset: 0;
    border-radius: 35px;
    background: #000;
    overflow: hidden;
    /* ظل قوي علشان يفصل الكروت عن بعضها */
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 20px rgba(10,132,255,0.15);
    /* GSAP هيتحكم فيهم بس بنحط will-change للأداء */
    will-change: transform, opacity;
}

.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* مفيش أي بلور أو زغللة.. جودة صافية 100% */
}

/* إطار زجاجي فخم حوالين الفيديو */
.reel-glass-frame {
    position: absolute;
    inset: 0;
    border-radius: 35px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
    pointer-events: none;
}
/* --- النصوص الحركية (Kinetic Typography) --- */
.kinetic-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vw; /* عريض جداً علشان يتحرك براحته */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1; /* ورا الفيديوهات */
    pointer-events: none;
}

.kinetic-row {
    font-size: clamp(4rem, 10vw, 9rem); /* خط ضخم جداً */
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

/* السطر الأول (لون رمادي باهت) */
.row-left {
    color: rgba(255, 255, 255, 0.04);
}

/* السطر الثاني (إطار أزرق مفرغ) */
.row-right.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px rgba(10, 132, 255, 0.15);
}

/* الوصف السفلي */
.reels-bottom-desc {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reels-bottom-desc i { color: #0A84FF; }

/* --- حاوية الفيديوهات (أعرض وأكثر فخامة) --- */
.reels-stack-container {
    position: relative;
    /* كبرنا العرض وغيرنا النسبة لـ 4/5 علشان تبان كلوحة فنية مش مجرد شاشة موبايل */
    width: clamp(320px, 28vw, 500px); 
    aspect-ratio: 4 / 5;
    z-index: 10;
}

/* --- كارت الفيديو --- */
.reel-card {
    position: absolute;
    inset: 0;
    border-radius: 40px; /* زوايا ناعمة جداً */
    background: #000;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 30px rgba(10,132,255,0.1);
    will-change: transform, opacity, border-radius;
}

/* الإطار الزجاجي */
.reel-glass-frame {
    position: absolute;
    inset: 0;
    border-radius: inherit; /* بياخد نفس دوران الكارت */
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.05);
    pointer-events: none;
}



/* =========================================
           سكشن التوظيف (Bento Badges - Light Theme)
           ========================================= */
        .blue-hiring-section {
            position: relative;
            background-color: var(--clr-quartz); /* خلفية فاتحة */
            padding: 120px 5%;
            overflow: hidden;
            z-index: 10;
        }

        /* خلفية متدرجة لايت */
        .hiring-ambient-bg {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(169, 203, 224, 0.4), transparent 50%),
                        radial-gradient(circle at bottom left, rgba(102, 140, 169, 0.15), transparent 50%);
            z-index: 0;
            pointer-events: none;
        }

        .hiring-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 5;
        }

        .hiring-header { text-align: center; margin-bottom: 70px; }

        .hiring-badge {
            background: rgba(34, 86, 136, 0.1); 
            color: var(--clr-lapis);
            padding: 8px 24px;
            border-radius: 50px;
            border: 1px solid rgba(34, 86, 136, 0.2);
            font-size: 0.9rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: inline-block;
            margin-bottom: 20px;
        }

        .hiring-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--clr-abyss); font-weight: 900; margin: 0 0 15px 0; }
        .hiring-desc { color: var(--clr-slate); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

        /* --- شبكة البينتو --- */
        .bento-jobs-grid {
            display: grid;
            /* Auto-fit يجعل الشبكة متجاوبة تلقائياً */
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .bento-card {
            position: relative;
            background: #FFFFFF; 
            border: 1px solid rgba(169, 203, 224, 0.5); 
            border-radius: 24px;
            padding: 35px 25px;
            overflow: hidden;
            transition: var(--trans-smooth);
            display: flex;
            flex-direction: column;
            cursor: pointer;
            box-shadow: 0 15px 35px rgba(9, 44, 86, 0.05);
            will-change: transform, opacity;
        }

        .bento-card:hover {
            transform: translateY(-10px);
            border-color: var(--clr-lapis);
            box-shadow: 0 25px 50px rgba(9, 44, 86, 0.12); 
        }

        /* تأثير إضاءة داخلية للكارت (لايت) */
        .card-glow {
            position: absolute;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(169, 203, 224, 0.6), transparent 70%);
            border-radius: 50%;
            top: -50px;
            right: -50px;
            opacity: 0;
            transition: var(--trans-smooth);
        }
        .bento-card:hover .card-glow { opacity: 1; }
        html[dir="rtl"] .card-glow { right: auto; left: -50px; }

        .card-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .job-icon {
            width: 65px; height: 65px;
            background: rgba(169, 203, 224, 0.3);
            color: var(--clr-lapis);
            font-size: 1.6rem;
            display: flex; align-items: center; justify-content: center;
            border-radius: 18px;
            margin-bottom: 25px;
            transition: var(--trans-smooth);
        }
        .bento-card:hover .job-icon {
            background: var(--clr-lapis);
            color: var(--clr-quartz);
            transform: scale(1.1) rotate(5deg);
        }

        .job-info { flex-grow: 1; margin-bottom: 30px; }
        .job-info h3 { color: var(--clr-abyss); font-size: 1.4rem; font-weight: 800; margin: 0 0 10px 0; }
        .job-info p { color: var(--clr-slate); font-size: 0.95rem; line-height: 1.6; margin: 0; }

        /* زر التقديم */
        .apply-btn {
            background: transparent;
            border: none;
            color: var(--clr-lapis);
            font-size: 1.05rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0;
            transition: var(--trans-smooth);
        }
        .bento-card:hover .apply-btn {
            color: var(--clr-abyss);
            gap: 15px;
        }

        /* --- الـ Modal الزجاجي (لايت ستايل) --- */
        .job-modal-overlay {
            position: fixed; inset: 0;
            background: rgba(9, 44, 86, 0.5); 
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden;
            transition: var(--trans-smooth);
            padding: 20px; /* لضمان عدم ملامسة الحواف في الموبايل */
            box-sizing: border-box;
        }
        .job-modal-overlay.active { opacity: 1; visibility: visible; }

        .job-modal-box {
            background: var(--clr-quartz); 
            border: 1px solid rgba(169, 203, 224, 0.5); 
            border-radius: 30px;
            padding: 40px;
            width: 100%; 
            max-width: 500px;
            max-height: 90vh; /* منع المودال من تجاوز الشاشة طولياً */
            overflow-y: auto; /* سكرول داخلي لو الشاشة صغيرة */
            position: relative;
            transform: scale(0.9) translateY(30px);
            transition: var(--trans-smooth);
            box-shadow: 0 30px 60px rgba(0,0,0,0.2);
            box-sizing: border-box;
        }
        
        /* إخفاء شريط السكرول في المودال لجمالية أفضل */
        .job-modal-box::-webkit-scrollbar { width: 5px; }
        .job-modal-box::-webkit-scrollbar-thumb { background: rgba(34, 86, 136, 0.2); border-radius: 10px; }

        .job-modal-overlay.active .job-modal-box { transform: scale(1) translateY(0); }

        .close-modal-btn {
            position: absolute; top: 20px; right: 20px;
            background: rgba(9, 44, 86, 0.1); 
            border: none; color: var(--clr-abyss);
            width: 35px; height: 35px; border-radius: 50%;
            cursor: pointer; transition: var(--trans-smooth);
            display: flex; justify-content: center; align-items: center;
        }
        html[dir="rtl"] .close-modal-btn { right: auto; left: 20px; }
        .close-modal-btn:hover { background: #EF4444; color: #FFF; transform: rotate(90deg); }

        .modal-header { margin-bottom: 30px; text-align: center; margin-top: 10px; }
        .modal-header h3 { color: var(--clr-abyss); font-size: 1.8rem; font-weight: 800; margin: 0 0 10px 0; }
        .role-badge { background: rgba(34, 86, 136, 0.1); color: var(--clr-lapis); padding: 5px 15px; border-radius: 8px; font-size: 0.9rem; font-weight: 700; display: inline-block; border: 1px solid rgba(34, 86, 136, 0.2); }

        .job-form { display: flex; flex-direction: column; gap: 15px; }
        .input-field input, .input-field textarea {
            width: 100%;
            background: #FFFFFF; 
            border: 1px solid rgba(102, 140, 169, 0.3); 
            border-radius: 15px;
            padding: 16px;
            color: var(--clr-abyss);
            font-size: 1rem;
            transition: var(--trans-smooth);
            box-sizing: border-box;
        }
        .input-field input::placeholder, .input-field textarea::placeholder { color: var(--clr-slate); }
        .input-field input:focus, .input-field textarea:focus { outline: none; border-color: var(--clr-lapis); box-shadow: 0 0 0 3px rgba(34, 86, 136, 0.1); }

        .submit-wa-btn {
            background: var(--clr-abyss);
            color: #FFF;
            border: none;
            padding: 18px;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            transition: var(--trans-smooth);
            margin-top: 10px;
            width: 100%;
        }
        .submit-wa-btn:hover { background: #20BD5A; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }

        /* --- زراير التخصصات (Tags) المتبقية من الاستفسار السابق --- */
        .mktg-xray__tags {
            display: flex;
            flex-wrap: wrap; 
            gap: 10px;
            margin-top: 1.2rem;
            text-align: center;
            justify-content: center;
        }

        .mktg-xray__tag {
            background: rgba(169, 203, 224, 0.15); 
            border: 1px solid rgba(169, 203, 224, 0.3);
            color: var(--clr-quartz);
            padding: 8px 16px;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            backdrop-filter: blur(5px);
        }

        .mktg-xray__tag:hover {
            background: #0A84FF; 
            border-color: #0A84FF;
            color: #ffffff;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(10, 132, 255, 0.4);
        }

        /* =========================================
           Media Queries لضبط التجاوب (Responsiveness)
           ========================================= */
        
        @media (max-width: 992px) {
            .blue-hiring-section {
                padding: 100px 5%;
            }
            .hiring-header {
                margin-bottom: 50px;
            }
        }

        @media (max-width: 768px) {
            .blue-hiring-section {
                padding: 80px 5%;
            }
            .bento-jobs-grid {
                gap: 15px;
            }
            .bento-card {
                padding: 25px 20px;
            }
            .job-icon {
                width: 55px; 
                height: 55px; 
                font-size: 1.4rem; 
                margin-bottom: 20px;
            }
            .job-info h3 {
                font-size: 1.25rem;
            }
            .job-info p {
                font-size: 0.9rem;
            }
            .job-modal-box {
                padding: 30px 20px;
                border-radius: 20px;
            }
            .modal-header h3 {
                font-size: 1.5rem;
            }
            .input-field input, .input-field textarea {
                padding: 14px;
                font-size: 0.95rem;
            }
            .submit-wa-btn {
                padding: 15px;
                font-size: 1rem;
            }
            .apply-btn ,.job-icon{
                margin-left: 18px;
            }

        }

        @media (max-width: 480px) {
            .blue-hiring-section {
                padding: 60px 5%;
            }
            .hiring-desc {
                font-size: 1rem;
            }
            .bento-jobs-grid {
                grid-template-columns: 1fr; /* عرض عمود واحد فقط للموبايلات الصغيرة جداً */
            }
            
        }