/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@800&family=Tajawal:wght@400;700&display=swap');

/* المتغيرات */
:root {
    --primary-dark: #14268C;
    --primary-medium: #1C41B4;
    --primary-light: #7894EC;
    --white: #ffffff;
    --bg-light: #f4f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-light);
}

body,
html {
    overflow-x: hidden !important;
}

h1,
h2,
h3 {
    font-family: 'Changa', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Changa', sans-serif;
    font-size: 24px;
    color: var(--primary-dark);
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-nav {
    background: var(--primary-medium);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* Hero Section */
/* --- تنسيقات الهيرو سكشن الجديد --- */

/* 1. الحاوية الرئيسية والخلفية */
.hero-modern {
    position: relative;
    background-color: #0a1128;
    /* لون خلفية داكن جداً */
    padding: 140px 0 100px;
    /* مساحة علوية أكبر للهيدر */
    overflow: hidden;
    /* لقص العناصر المشعة التي تخرج عن الإطار */
    color: white;
    height: 106vh;
}

/* 2. تنظيم المحتوى (Flexbox) */
.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
    /* لضمان ظهور المحتوى فوق الخلفيات المشعة */
}

/* 3. تنسيقات الجانب النصي (يمين) */
.hero-text-box {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(120, 148, 236, 0.2);
    /* لون فاتح شفاف */
    color: var(--primary-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(120, 148, 236, 0.3);
}

.hero-text-box h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(to right, #ffffff, #7894EC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* جعل النص متدرج اللون */
}

.hero-text-box p {
    font-size: 1.25rem;
    color: #d0d7f5;
    /* أبيض مائل للأزرق الفاتح */
    margin-bottom: 40px;
    line-height: 1.7;
}

/* تنسيق الأزرار الجديد */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(28, 65, 180, 0.5);
    /* توهج للزر الرئيسي */
    position: relative;
    overflow: hidden;
}

/* تأثير لمعان يمر فوق الزر */
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite forwards;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.video-btn {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.video-btn:hover {
    color: var(--primary-light);
}

.play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    font-size: 1.2rem;
    transition: 0.3s;
}

.video-btn:hover .play-icon {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 0 15px var(--primary-light);
}


/* 4. تنسيقات الجانب البصري (يسار) */
.hero-visual-box {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    /* زوايا دائرية كبيرة */
    overflow: hidden;
    border: 3px solid rgba(120, 148, 236, 0.3);
    /* إطار شبه شفاف */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* ظل قوي */
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    /* تأثير ثلاثي الأبعاد بسيط */
    transition: 0.5s;
}

.hero-visual-box:hover .image-wrapper {
    transform: perspective(1000px) rotateY(0) rotateX(0);
    /* إلغاء الـ 3D عند التحويم */
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 38, 140, 0.7), transparent);
    /* تدرج لوني فوق الصورة */
}

/* الكروت العائمة */
.floating-card {
    position: absolute;
    background: rgba(28, 65, 180, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: -30px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: -30px;
    left: -30px;
    background: var(--primary-dark);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


/* 5. تأثيرات التوهج الخلفية (Tech Glow) */
.tech-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    /* ضبابية شديدة لعمل تأثير الإشعاع */
    z-index: 1;
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-medium);
    top: -200px;
    right: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    bottom: -100px;
    left: -100px;
}


/* التجاوب مع الموبايل */
@media (max-width: 992px) {
    .hero-container-flex {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text-box h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual-box {
        width: 100%;
        max-width: 500px;
        margin-bottom: 50px;
    }

    .image-wrapper {
        transform: none;
    }

    .features {
        margin-top: 48px !important;
    }

    .services-cyber-panels {
        padding: 20px 0 !important;
        margin: 0 20px;
    }

    .qc-pill {
        padding: 10px 15px !important;
    }

    .step-title {
        font-size: 18px !important;
        gap: 21px;
    }

    .step-title-2 span {
        width: 67px !important;
    }

    .btn-build-system {
        font-size: 15px !important;
        padding: 10px 20px !important;
    }

    .day-work {
        font-size: 16px;
    }

    .time-work {
        font-size: 16px;
    }
}

.btn-main,
.btn-outline {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-main {
    background: var(--primary-medium);
    color: white;
}

.btn-main:hover {
    background: var(--primary-light);
}

.btn-outline {
    border: 2px solid var(--primary-light);
    color: white;
    margin-right: 15px;
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Features */
/* --- تنسيقات قسم المميزات الجذاب (Floating Cards) --- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* جعلنا الكارت أعرض قليلاً ليصبح أفخم */
    gap: 30px;
    margin-top: -50px;
    /* سحب السكشن لأعلى ليتداخل بشكل رائع مع الهيرو سكشن */
    position: relative;
    z-index: 10;
}

.feature-card {
    background: #ffffff;
    padding: 50px 30px 30px;
    /* زيادة الحشو العلوي لإعطاء مساحة للأيقونة */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(28, 65, 180, 0.08);
    /* ظل أزرق خفيف جداً وأنيق */
    position: relative;
    /* حركة ارتدادية ناعمة جداً عند الوقوف بالماوس */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    /* مساحة لخط سفلي يظهر عند التحويم */
}

/* تأثير لوني ناعم جداً كخلفية إضافية للكارت */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 38, 140, 0.02) 0%, rgba(120, 148, 236, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* تصميم الأيقونة الطافية (Floating Icon) */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: #ffffff;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* الخدعة هنا: المارجن بالسالب يسحب الأيقونة خارج الكارت لأعلى */
    margin: -90px auto 25px;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.3);
    /* ظل خاص بالأيقونة يشع للخارج */
    border: 6px solid #ffffff;
    /* إطار أبيض يفصل الأيقونة عن الهيرو سكشن والكارت */
    transition: transform 0.4s ease;
}

/* نصوص الكارت */
.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- التأثيرات عند التمرير (Hover Effects) --- */
.feature-card:hover {
    transform: translateY(-15px);
    /* رفع الكارت لأعلى */
    border-bottom: 4px solid var(--primary-light);
    /* ظهور خط مضيء بالأسفل */
    box-shadow: 0 25px 50px rgba(28, 65, 180, 0.15);
    /* زيادة كثافة الظل */
}

/* دوران وتكبير الأيقونة بشكل جذاب */
.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotateY(360deg);
    /* تأثير 3D لفتة كاملة */
}

/* Sections Global */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

section {
    padding: 80px 0;
}

/* Services */
/* --- قسم الخدمات الاحترافي (Smart Targeting UI) --- */

.services-section-pro {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card-pro {
    background: #ffffff;
    padding: 15px;
    /* عمل إطار أبيض حول الصورة */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.4s all ease-in-out;
    border: 1px solid #eef2fa;
    position: relative;
    overflow: hidden;
}

.service-card-pro:hover {
    box-shadow: 0 20px 40px rgba(28, 65, 180, 0.15);
    border-color: rgba(120, 148, 236, 0.4);
    transform: translateY(-8px);
}

/* --- جزء الصورة البصرية --- */
.card-visual {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    /* خلفية سوداء لجعل الصورة أغمق قليلاً قبل التحويم */
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* باهتة قليلاً */
    filter: grayscale(30%);
    transition: transform 0.8s ease, filter 0.5s ease, opacity 0.5s ease;
}

.service-card-pro:hover .card-visual img {
    transform: scale(1.15);
    /* تقريب الصورة */
    filter: grayscale(0%);
    /* استعادة الألوان الكاملة */
    opacity: 1;
}

/* --- تأثير زوايا الكاميرا (Focus Brackets) --- */
.focus-box {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 2;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* استخدام Pseudo-elements لرسم زوايا المربع الأربعة */
.focus-box::before,
.focus-box::after,
.focus-box span::before,
.focus-box span::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary-light);
    border-style: solid;
    opacity: 0;
    transition: 0.3s ease;
}

.focus-box::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.focus-box::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.focus-box span::before {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.focus-box span::after {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

/* حركة الزوايا عند التحويم */
.service-card-pro:hover .focus-box::before,
.service-card-pro:hover .focus-box::after,
.service-card-pro:hover .focus-box span::before,
.service-card-pro:hover .focus-box span::after {
    opacity: 1;
    border-color: #00ffd5;
    /* لون نيون مضيء للزوايا */
}

/* الزوايا تضيق للداخل كأنها تركز على هدف */
.service-card-pro:hover .focus-box {
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
}

/* --- تأثير ليزر الفحص (Laser Scanner) --- */
.laser-scanner {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ffd5;
    box-shadow: 0 0 15px 4px rgba(0, 255, 213, 0.6);
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}

.service-card-pro:hover .laser-scanner {
    opacity: 1;
    animation: scanAnimation 2s linear infinite;
}

@keyframes scanAnimation {
    0% {
        top: 0%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- جزء المحتوى النصي --- */
.card-content-pro {
    padding: 25px 10px 10px;
    text-align: right;
}

.card-content-pro h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* مسافة بين الأيقونة والنص */
}

.card-content-pro h3 i {
    color: var(--primary-medium);
    font-size: 1.2rem;
    background: rgba(28, 65, 180, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.card-content-pro p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* زر "اكتشف المزيد" بشكل تفاعلي */
.tech-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-medium);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.tech-link i {
    transition: transform 0.3s ease;
}

.tech-link:hover {
    color: var(--primary-light);
}

.tech-link:hover i {
    transform: translateX(-5px);
    /* السهم يتحرك لليسار */
}

/* Process Section */
/* --- قسم رحلة التنفيذ السيبرانية (Out of the Box) --- */

.process-cyber-section {
    position: relative;
    background-color: #0b1021;
    /* خلفية داكنة جداً لإبراز الإضاءة */
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

.cyber-title {

    /* text-shadow: 0 0 15px rgba(61, 81, 143, 0.5); */
    margin-bottom: 80px;
}

/* خلفية المخطط الهندسي (Blueprint Grid) */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(120, 148, 236, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 148, 236, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.cyber-track-container {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

/* خط الألياف الضوئية (الخط المركزي) */
.fiber-line {
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 4px;
    background: rgba(28, 65, 180, 0.3);
    transform: translateY(-50%);
    border-radius: 2px;
    overflow: hidden;
}

/* الليزر المتحرك داخل الخط */
.laser-beam {
    position: absolute;
    top: 0;
    right: -100px;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, transparent, #00ffd5, white);
    box-shadow: 0 0 20px 5px rgba(0, 255, 213, 0.6);
    animation: shootLaser 4s infinite linear;
}

@keyframes shootLaser {
    0% {
        right: -150px;
    }

    100% {
        right: 100%;
    }
}

/* حاوية الخطوات */
.cyber-steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* تصميم كل خطوة */
.cyber-step {
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* تبديل الكروت للأعلى والأسفل لعمل شكل (Zig-Zag) */
.cyber-step.step-down {
    flex-direction: column-reverse;
    /* يجعل الكارت أسفل الخط */
}

/* عقدة الاتصال (النقطة المضيئة) */
.step-node {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    border: 3px solid #00ffd5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.4);
    transition: 0.3s;
}

.node-num {
    font-family: 'Changa', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

/* نبضات الرادار حول العقدة */
.radar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #00ffd5;
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* كارت الـ HUD (بتصميم الزوايا المقطوعة) */
.hud-card {
    background: rgba(20, 38, 140, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(120, 148, 236, 0.4);
    padding: 25px 20px;
    text-align: center;
    /* هذا السطر يقطع زوايا الكارت ليعطيه شكل تكنولوجي مميز */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: 0.4s ease;
    position: relative;
}

.hud-card h3 {
    color: #00ffd5;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.hud-card p {
    color: #d0d7f5;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* عنصر زينة داخل الكارت */
.card-deco {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #00ffd5;
    border-right: 2px solid #00ffd5;
    opacity: 0.5;
}

/* --- تفاعلات التحويم (Hover) --- */
.cyber-step:hover .step-node {
    background: #00ffd5;
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.8);
}

.cyber-step:hover .node-num {
    color: var(--primary-dark);
}

.cyber-step:hover .hud-card {
    background: rgba(20, 38, 140, 0.8);
    border-color: #00ffd5;
    transform: translateY(-5px);
}

.cyber-step.step-down:hover .hud-card {
    transform: translateY(5px);
}

/* --- التجاوب مع شاشات الموبايل (Responsive Vertical Track) --- */
@media (max-width: 992px) {
    .cyber-steps-wrapper {
        flex-direction: column;
        align-items: flex-end;
        padding-right: 40px;
    }

    .cyber-step,
    .cyber-step.step-down {
        width: 100%;
        flex-direction: row;
        margin-bottom: 30px;
    }

    .fiber-line {
        width: 4px;
        height: 100%;
        right: 28px;
        top: 0;
        transform: none;
    }

    .laser-beam {
        width: 100%;
        height: 150px;
        right: 0;
        background: linear-gradient(to top, transparent, #00ffd5, white);
        animation: shootLaserVertical 4s infinite linear;
    }

    @keyframes shootLaserVertical {
        0% {
            top: -150px;
        }

        100% {
            top: 100%;
        }
    }

    .step-node {
        margin: 0 0 0 20px;
        flex-shrink: 0;
    }

    .hud-card {
        text-align: right;
    }
}

/* Statistics Section */
.stats-section {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    color: var(--primary-light);
}

.stat-item p {
    font-size: 1.2rem;
}

/* Portfolio Section */
/* --- قسم أرشيف الأعمال (شاشات الـ CCTV) --- */

.cyber-portfolio-section {
    padding: 100px 0;
    background-color: #050814;
    /* خلفية شديدة السواد كأنها في غرفة مظلمة */
    color: white;
}

.cctv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* تصميم هيكل الشاشة (Monitor) */
.cctv-monitor {
    position: relative;
    padding: 10px;
    background: #111;
    border-radius: 10px;
    /* إطار معدني للشاشة */
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transition: 0.4s ease;
    cursor: crosshair;
    /* تغيير الماوس لشكل علامة التصويب */
}

.cctv-monitor:hover {
    border-color: #00ffd5;
    box-shadow: 0 10px 40px rgba(0, 255, 213, 0.2), inset 0 0 20px rgba(0, 255, 213, 0.1);
    transform: translateY(-5px);
}

/* الشاشة الداخلية */
.monitor-screen {
    position: relative;
    width: 100%;
    height: 280px;
    background: #000;
    overflow: hidden;
    border-radius: 4px;
}

/* إعدادات الصورة الأساسية (تأثير كاميرا المراقبة) */
.monitor-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: sepia(0.6) hue-rotate(180deg) saturate(1.5) contrast(1.2) brightness(0.7); */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* خطوط مسح الشاشة (Scanlines) */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.4) 4px);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s;
}

/* واجهة مستخدم الكاميرا (UI) */
.cam-ui {
    position: absolute;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    /* خط يشبه الآلات الحاسبة والشاشات التقنية */
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    z-index: 3;
    pointer-events: none;
    transition: 0.3s;
}

.top-left {
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-right {
    top: 15px;
    right: 15px;
    color: #00ffd5;
}

.bottom-right {
    bottom: 15px;
    right: 15px;
}

/* النقطة الحمراء النابضة */
.rec-dot {
    width: 10px;
    height: 10px;
    background-color: #ff004c;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff004c;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* بيانات المشروع (مخفية في البداية) */
.project-data {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 3px solid #00ffd5;
    padding: 10px 15px;
    z-index: 4;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.project-data h4 {
    color: #00ffd5;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Changa';
}

.project-data p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* زوايا التصويب التي تظهر عند التحويم */
.target-brackets {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%) scale(2);
    border: 2px solid rgba(0, 255, 213, 0.5);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

/* --- ماذا يحدث عند تمرير الماوس (Hover) --- */

.cctv-monitor:hover .monitor-screen img {
    /* إلغاء فلتر الكاميرا لتعود الصورة لألوانها الطبيعية مع تقريب */
    filter: sepia(0) hue-rotate(0) saturate(1) contrast(1.1) brightness(1);
    transform: scale(1.1);
}

.cctv-monitor:hover .scanlines {
    opacity: 0;
    /* اختفاء خطوط الشاشة لتوضيح الصورة */
}

.cctv-monitor:hover .cam-ui {
    opacity: 0;
    /* إخفاء واجهة الكاميرا لإعطاء مساحة للبيانات */
}

.cctv-monitor:hover .project-data {
    transform: translateY(0);
    /* ظهور بيانات المشروع من الأسفل */
    opacity: 1;
}

.cctv-monitor:hover .target-brackets {
    transform: translate(-50%, -50%) scale(1);
    /* زوايا التصويب تنكمش للداخل */
    opacity: 1;
    border-color: #00ffd5;
}

/* Partners Section */
/* --- قسم شركاء النجاح (تصميم اللوحة الأم والشرائح) --- */

.vendors-motherboard {
    padding: 80px 0 100px;
    background-color: #050814;
    /* استمرار للخلفية الداكنة السيبرانية */
    position: relative;
    overflow: hidden;
}

.cyber-subtitle {
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-light);
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-top: -30px;
    margin-bottom: 60px;
    opacity: 0.8;
    text-align: center;
}

/* حاوية الشرائح */
.motherboard-grid {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
}

/* خط تيار وهمي يمر خلف الشرائح (Circuit Line) */
.circuit-lines {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(120, 148, 236, 0.2);
    z-index: 1;
}

.circuit-lines::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 50px;
    height: 6px;
    background: #00ffd5;
    box-shadow: 0 0 15px #00ffd5;
    border-radius: 5px;
    animation: dataFlow 4s infinite linear;
}

@keyframes dataFlow {
    0% {
        left: -50px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* --- تصميم الشريحة الإلكترونية (Microchip) --- */
.microchip-node {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* قلب الشريحة (الصندوق الأسود) */
.chip-body {
    background: #0f121b;
    /* لون رمادي داكن يميل للأسود كالمعالجات */
    border: 2px solid #2a2e3d;
    border-radius: 8px;
    padding: 20px 40px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 180px;
    transition: all 0.4s ease;
}

/* النص داخل الشريحة */
.chip-text {
    font-family: 'Changa', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #555;
    /* لون معدني مطفأ في وضع السكون */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

/* أسنان الشريحة العلوية والسفلية (Pins) */
.chip-pins {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 10px;
    /* خدعة بصرية لصنع مربعات متكررة كأنها أسنان نحاسية */
    background: repeating-linear-gradient(90deg,
            #333 0px,
            #333 6px,
            transparent 6px,
            transparent 12px);
    transition: all 0.4s ease;
}

.top-pins {
    top: -10px;
}

.bottom-pins {
    bottom: -10px;
}

/* --- تأثيرات التحويم (Hover Magic) --- */

.microchip-node:hover {
    transform: translateY(-5px);
}

.microchip-node:hover .chip-body {
    background: #111a2e;
    border-color: #00ffd5;
    box-shadow: 0 0 25px rgba(0, 255, 213, 0.3), inset 0 0 15px rgba(0, 255, 213, 0.1);
}

.microchip-node:hover .chip-text {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 15px #00ffd5,
        0 0 30px #00ffd5;
    /* توهج نيون قوي */
    /* تأثير طفيف كأن البيانات يتم معالجتها */
    animation: textFlicker 1.5s infinite alternate;
}

/* إضاءة أسنان الشريحة كأن التيار يسري فيها */
.microchip-node:hover .chip-pins {
    background: repeating-linear-gradient(90deg,
            #00ffd5 0px,
            #00ffd5 6px,
            transparent 6px,
            transparent 12px);
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.5);
}

@keyframes textFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
    .circuit-lines {
        display: none;
    }

    /* إخفاء الخط الخلفي في الموبايل لعدم تداخل العناصر */
    .motherboard-grid {
        gap: 40px;
    }
}

/* FAQ Section */

/* --- قسم الأسئلة الشائعة (شاشة فك التشفير) --- */

.cyber-faq-section {
    padding: 80px 20px 100px;
}

.terminal-accordion {
    max-width: 850px;
    margin: 0 auto;
    background: #0b1021;
    border: 1px solid rgba(120, 148, 236, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(120, 148, 236, 0.05);
}

.cyber-faq-item {
    margin-bottom: 15px;
    border: 1px solid #1f2740;
    border-radius: 8px;
    background: #111827;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* حالة السؤال المفتوح (Active) */
.cyber-faq-item.active {
    border-color: #00ffd5;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.1);
}

.cyber-faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: right;
    font-size: 1.15rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.q-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lock-icon {
    color: #ef4444;
    /* قفل أحمر في البداية */
    font-size: 1.1rem;
    transition: 0.3s;
}

.cyber-faq-item.active .lock-icon {
    color: #00ffd5;
    /* يتحول لأخضر/سماوي عند الفتح */
}

.arrow-icon {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-faq-item.active .arrow-icon {
    transform: rotate(180deg);
    color: #00ffd5;
}

.cyber-faq-item:hover .cyber-faq-question {
    background: rgba(255, 255, 255, 0.02);
}

/* إجابة السؤال (البيانات المشفرة) */
.cyber-faq-answer {
    max-height: 0;
    /* الإخفاء باستخدام max-height لعمل حركة انزلاق ناعمة */
    opacity: 0;
    overflow: hidden;
    position: relative;
    background: #0b1021;
    transition: all 0.5s ease-in-out;
}

.cyber-faq-item.active .cyber-faq-answer {
    max-height: 200px;
    /* رقم تقريبي يكفي للنص */
    opacity: 1;
    padding: 0 20px 20px 50px;
    /* مسافة لليسار */
    border-top: 1px dashed rgba(120, 148, 236, 0.2);
    margin-top: 10px;
}

.cyber-faq-answer p {
    color: #94a3b8;
    line-height: 1.8;
    margin: 0;
    padding-top: 15px;
    border-right: 2px solid #00ffd5;
    /* خط جانبي مضيء */
    padding-right: 15px;
}

/* تأثير خط المسح الليزري داخل الإجابة */
.decryption-scan {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: #00ffd5;
    box-shadow: 0 0 10px #00ffd5;
    opacity: 0;
}

.cyber-faq-item.active .decryption-scan {
    animation: decryptScan 1.5s ease-out forwards;
}

@keyframes decryptScan {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- قسم الدعوة للعمل (رادار وماسح بيومتري) --- */

.cyber-cta-section {
    position: relative;
    background-color: #050814;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 213, 0.2);
}

/* خلفية الرادار */
.radar-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 213, 0.1);
    background:
        radial-gradient(circle, transparent 30%, rgba(0, 255, 213, 0.02) 70%, transparent 100%),
        repeating-radial-gradient(circle, transparent, transparent 40px, rgba(0, 255, 213, 0.05) 41px, transparent 42px);
    z-index: 1;
}

/* ذراع الرادار المتحرك (التصميم الدقيق) */
.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* تدرج لوني يصنع خطاً ساطعاً في المقدمة ويتلاشى في الخلف */
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 260deg,
            rgba(0, 255, 213, 0.1) 330deg,
            rgba(0, 255, 213, 0.8) 360deg);
    animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.warning-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 5px 20px;
    border: 1px solid #ef4444;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    animation: warningPulse 2s infinite alternate;
}

@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    100% {
        box-shadow: 0 0 15px 5px rgba(239, 68, 68, 0);
    }
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.cta-content p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* زر الماسح البيومتري */
.biometric-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #0b1021;
    color: #00ffd5;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #00ffd5;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.2);
    transition: all 0.3s ease;
}

.fingerprint-icon {
    font-size: 1.8rem;
}

/* خط الماسح الضوئي فوق الزر */
.scanner-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 20px;
    height: 100%;
    background: rgba(0, 255, 213, 0.8);
    box-shadow: 0 0 20px 10px rgba(0, 255, 213, 0.5);
    filter: blur(5px);
    transition: 0s;
}

.biometric-btn:hover {
    background: rgba(0, 255, 213, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.5);
    transform: scale(1.05);
}

.biometric-btn:hover .scanner-line {
    animation: bioScan 1.5s ease-in-out infinite;
}

@keyframes bioScan {
    0% {
        left: -20%;
    }

    50% {
        left: 120%;
    }

    100% {
        left: -20%;
    }
}

footer {
    text-align: center;
    padding: 30px;
    background: #eee;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn-outline {
        margin-top: 15px;
        margin-right: 0;
    }

    .stats-grid {
        flex-direction: column;
    }
}


/* تنسيقات قسم الخدمات المصورة الجديد */
/* --- قسم الخدمات (Expanding Cyber Panels) --- */

.services-cyber-panels {
    padding: 100px 0;

    color: #0b1021;
}

.text-light {
    color: #0b1021 !important;
}

/* حاوية اللوحات (Flexbox Magic) */
.panels-container {
    display: flex;
    width: 100%;
    height: 500px;
    /* ارتفاع اللوحات */
    gap: 15px;
    margin-top: 40px;
}

/* اللوحة الواحدة (الوضع المنكمش) */
.cyber-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    /* السر هنا: transition على خاصية flex للتمدد السلس */
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
    filter: grayscale(80%) brightness(0.6);
    /* الصور باهتة ومظلمة في البداية */
    border: 1px solid rgba(120, 148, 236, 0.2);
}

/* تأثير الغمامة الداكنة فوق الصور */
.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(11, 16, 33, 0.9) 0%, rgba(11, 16, 33, 0.2) 100%);
    z-index: 1;
}

/* اللوحة (الوضع المتمدد عند مرور الماوس) */
.cyber-panel:hover,
.cyber-panel.active {
    flex: 6;
    /* تتسع لتأخذ مساحة أكبر بـ 6 أضعاف */
    filter: grayscale(0%) brightness(1);
    /* تعود الألوان طبيعية ومشرقة */
    border-color: #00ffd5;
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.2);
}

/* --- العنوان العمودي (يختفي عند التمدد) --- */
.vertical-title {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
    transition: opacity 0.3s;
    color: white;
    font-family: 'Changa', sans-serif;
    font-size: 1.2rem;
    white-space: nowrap;
    /* كتابة النص بشكل عمودي */
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.vertical-title i {
    font-size: 2rem;
    color: var(--primary-light);
    transform: rotate(90deg);
    /* تعديل الأيقونة لتناسب الوضع العمودي */
}

.cyber-panel:hover .vertical-title {
    opacity: 0;
    /* إخفاء النص العمودي */
    pointer-events: none;
}

/* --- المحتوى الداخلي (يظهر عند التمدد) --- */
.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    /* مخفي في البداية */
    transform: translateY(30px);
    /* نازل للأسفل قليلاً */
    transition: all 0.5s ease;
    transition-delay: 0s;
}

/* عند مرور الماوس، يظهر المحتوى بحركة صعود ناعمة */
.cyber-panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* تأخير بسيط حتى تتمدد اللوحة أولاً */
}

/* تصميم الأيقونة الزجاجية في المحتوى */
.icon-glass {
    min-width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #00ffd5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.text-data h3 {
    font-family: 'Changa', sans-serif;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.text-data p {
    color: #e2e8f0;
    font-size: 1rem;
    margin: 0;
    max-width: 400px;
}

/* --- تأثير شعاع المسح (Scanner Laser) --- */
.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #00ffd5;
    box-shadow: 0 0 15px #00ffd5;
    z-index: 2;
    opacity: 0;
}

.cyber-panel:hover .scan-laser {
    opacity: 1;
    animation: scanPanel 3s ease-in-out infinite;
}

@keyframes scanPanel {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

/* --- التجاوب مع شاشات الموبايل (Responsive) --- */
@media (max-width: 992px) {
    .panels-container {
        flex-direction: column;
        /* تحويل الأعمدة لصفوف في الموبايل */
        height: 700px;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        /* إعادة النص للوضع الأفقي */
        flex-direction: row;
        bottom: 50%;
        transform: translate(-50%, 50%);
    }

    .vertical-title i {
        transform: rotate(0deg);
    }

    .panel-content {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* تنسيقات قسم التيار الخفيف */
.lc-section {
    padding: 80px 0;
    background-color: #f9faff;
    /* خلفية فاتحة جداً لتمييز القسم */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: -10px;
}

.lc-grid {
    display: grid;
    /* إنشاء شبكة متجاوبة تتكيف مع حجم الشاشة */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    /* لتوسيط العناصر إذا كان العدد فردياً في السطر الأخير */
}

/* تصميم البطاقة */
.lc-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    /* نعومة الحركة */
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

/* لتوسيط العنصر الأخير الفردي */
@media (min-width: 992px) {
    .lc-card-center {
        grid-column: auto / span 1;
        /* حيلة لتوسيط العنصر الأخير إذا كان في سطر لوحده */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 350px;
        /* نفس عرض باقي الكروت تقريباً */
    }

    /* إذا كانت الشاشة كبيرة جداً وتسع 4 أعمدة، نجعل الأخير يأخذ عمودين في المنتصف */
    @media (min-width: 1200px) {
        .lc-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .lc-card-center {
            grid-column: 2 / span 2;
            max-width: none;
        }
    }
}


/* تصميم الأيقونة */
.lc-icon {
    width: 80px;
    height: 80px;
    background: rgba(28, 65, 180, 0.1);
    /* لون أزرق فاتح جداً من ألوانك */
    color: var(--primary-medium);
    /* اللون الأزرق الأساسي للأيقونة */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    font-size: 32px;
    transition: all 0.4s ease;
}

.lc-card h3 {
    font-family: 'Changa', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.lc-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- الحركات (Animations) عند الـ Hover --- */

.lc-card:hover {
    transform: translateY(-15px);
    /* رفع البطاقة لأعلى */
    box-shadow: 0 15px 35px rgba(28, 65, 180, 0.15);
    /* ظل أزرق خفيف */
    border-color: transparent;
}

.lc-card:hover .lc-icon {
    background: var(--primary-medium);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(28, 65, 180, 0.4);
}

.lc-card:hover h3 {
    color: var(--primary-medium);
}


/********************************SERVICES*************************************/

/* ==========================================================================
   1. صفحة خدمات التيار الخفيف (Light Modern Interface)
   ========================================================================== */

.elv-cyber-section {
    background-color: var(--bg-light);
    /* الخلفية الفاتحة الجديدة */
    /* padding: 100px 0; */
    color: #333;
    /* لون نص داكن أساسي */
    font-family: 'Tajawal', sans-serif;
}

/* العنوان والمقدمة */
.cyber-title {
    color: var(--primary-dark);
}

.elv-pitch {
    font-size: 1.2rem;
    color: #555;
    /* رمادي داكن مريح للقراءة */
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.elv-pitch strong {
    color: var(--primary-medium);
    /* أزرق الشركة الأساسي بدلاً من النيون */
}

/* --- الواجهة التفاعلية (Interface) --- */
.hologram-interface {
    display: flex;
    background: #ffffff;
    /* واجهة بيضاء نظيفة */
    border: 1px solid #e1e8fa;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    /* ظل ناعم جداً */
}


@media (max-width: 992px) {

    /* 1. تحويل الحاوية الرئيسية من أفقي إلى رأسي */
    .hologram-interface {
        flex-direction: column;
        min-height: auto;
    }

    /* 2. جعل القائمة الجانبية (الأزرار) تأخذ العرض بالكامل وتصبح أفقية */
    .system-tabs {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        /* السماح للأزرار بالنزول لسطر جديد إذا لزم الأمر */
        border-left: none !important;
        border-bottom: 2px solid #e1e8fa !;
    }

    /* 3. ضبط حجم الأزرار في التابلت والموبايل */
    .sys-tab {
        flex: 1;
        /* تتوزع المساحة بالتساوي */
        /* min-width: 45%;   */
        text-align: center;
        justify-content: center;
        font-size: 0.95rem;
        padding: 15px 10px;
        border-bottom: none;
        border-left: none;
        border-top: 4px solid transparent;
        /* نقل خط التحديد من اليسار للأعلى */
    }

    /* 4. تعديل شكل الزر النشط في الموبايل */
    .sys-tab.active {
        border-left: none;
        border-top: 4px solid var(--primary-medium);
    }

    /* 5. جعل شاشة العرض (المحتوى) تأخذ العرض بالكامل وتقليل الحشو */
    .hologram-display {
        width: 100% !important;
        padding: 25px 20px !important;
    }

    /* 6. تحويل المحتوى الداخلي (الصورة والنص) ليكون فوق بعضه */
    .holo-content.active {
        flex-direction: column;
        gap: 20px;
    }

    /* 7. الصورة تأخذ العرض بالكامل وتقليل ارتفاعها */
    .holo-visual {
        width: 100% !important;
        height: 200px !important;
    }

    /* 8. النص يأخذ العرض بالكامل */
    .holo-text {
        width: 100% !important;
    }

    .holo-text h3 {
        font-size: 1.4rem;
        text-align: center;
        /* توسيط العنوان في الموبايل */
    }
}

/* --- تعديل إضافي للشاشات الصغيرة جداً (الهواتف الذكية الصغيرة) --- */
@media (max-width: 576px) {
    .sys-tab {
        min-width: 100%;
        /* جعل كل زر يأخذ سطراً كاملاً لتسهيل الضغط بالإصبع */
        justify-content: flex-start;
        /* محاذاة النص لليمين */
        border-top: none;
        border-right: 4px solid transparent;
        /* خط التحديد يعود لليمين */
        border-bottom: 1px solid #f0f4ff;
    }

    .sys-tab.active {
        border-top: none;
        border-right: 4px solid var(--primary-medium);
    }
}


/* القائمة الجانبية */
.system-tabs {
    width: 30%;
    background: #f8faff;
    /* لون أزرق ثلجي فاتح جداً */
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e1e8fa;
}

.sys-tab {
    padding: 25px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e1e8fa;
    color: #666;
    font-size: 1.1rem;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.sys-tab i {
    font-size: 1.3rem;
    transition: 0.3s;
}

.sys-tab:hover {
    background: #ffffff;
    color: var(--primary-medium);
}

.sys-tab.active {
    background: #ffffff;
    color: var(--primary-medium);
    border-left: 4px solid var(--primary-medium);
    /* خط أزرق مميز */
}

.sys-tab.active i {
    text-shadow: none;
}

/* إزالة توهج النيون */

/* شاشة العرض الرئيسية */
.hologram-display {
    width: 70%;
    position: relative;
    padding: 40px;
    overflow: hidden;
}

/* تأثير المسح الضوئي للشاشة (تعديل ليناسب اللون الفاتح) */
.holo-scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(28, 65, 180, 0.05);
    box-shadow: 0 0 20px 5px rgba(28, 65, 180, 0.05);
    animation: holoScan 3s infinite linear;
    z-index: 5;
    pointer-events: none;
}

@keyframes holoScan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* المحتوى المتغير */
.holo-content {
    display: none;
    height: 100%;
    animation: fadeInSlide 0.4s ease-out forwards;
    /* حركة ظهور أنيقة بدل الجليتش */
}

.holo-content.active {
    display: flex;
    gap: 30px;
    align-items: center;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الصورة داخل العرض */
.holo-visual {
    width: 40%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    border: 1px solid #e1e8fa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    opacity: 1;
    mix-blend-mode: normal;
    /* إلغاء التلاعب بالألوان */
}

/* النص داخل العرض */
.holo-text {
    width: 60%;
}

.holo-text h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-family: 'Changa', sans-serif;
    margin-bottom: 20px;
    text-shadow: none;
}

.holo-text ul {
    list-style: none;
    padding: 0;
}

.holo-text ul li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
    position: relative;
    padding-right: 20px;
}

.holo-text ul li::before {
    content: '>>';
    position: absolute;
    right: 0;
    color: var(--primary-light);
    font-family: monospace;
    font-weight: bold;
}

.holo-text ul li strong {
    color: var(--primary-dark);
}


/* --- مميزات النظام (Diagnostics Bar) --- */
.system-diagnostics {
    margin-top: 80px;
    background: linear-gradient(90deg, transparent, rgba(28, 65, 180, 0.03), transparent);
    padding: 50px 0;
    border-top: 1px solid #e1e8fa;
    border-bottom: 1px solid #e1e8fa;
}

.diag-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-family: 'Changa';
}

.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.diag-item {
    padding: 20px;
    transition: 0.3s;
}

.diag-item:hover {
    transform: translateY(-10px);
}

.diag-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-medium);
    animation: spinDash 10s linear infinite;
}


.diag-item h4 {
    color: var(--primary-medium);
    margin-bottom: 10px;
    font-family: 'Changa';
    font-size: 1.3rem;
}

.diag-item p {
    color: #666;
    font-size: 0.95rem;
}

.diag-icon i {
    animation: spinDashReverse 10s linear infinite;
}

/* لثبات الأيقونة بينما يدور الإطار المتقطع */

@keyframes spinDash {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinDashReverse {
    100% {
        transform: rotate(-360deg);
    }
}

/* --- الدعوة للعمل (CTA) --- */
.elv-cta {
    text-align: center;
    margin-top: 80px;
    position: relative;
    padding: 60px;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #e1e8fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.elv-cta h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.elv-cta p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.btn-biometric-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-medium);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Changa';
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
    transition: 0.3s;
}

.btn-biometric-large:hover {
    background: var(--primary-dark);
    box-shadow: 0 15px 30px rgba(28, 65, 180, 0.3);
    transform: translateY(-5px);
}


/* ==========================================================================
   2. قسم نواة 5G Tech (Light Mode)
   ========================================================================== */

.tech-core-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    color: #333;
}

.core-intro {
    margin-bottom: 70px;
}

.core-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.core-description .highlight {
    color: var(--primary-medium);
    font-weight: bold;
}

.power-nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.power-node {
    background: #ffffff;
    border: 1px solid #e1e8fa;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.power-node:hover,
.active-node {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(28, 65, 180, 0.08);
}

.node-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-medium);
    transition: 0.3s;
}

.active-node .node-icon,
.power-node:hover .node-icon {
    background: var(--primary-medium);
    color: white;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
}

.power-node h3 {
    font-family: 'Changa';
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.power-node h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Changa';
}

.power-node p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.values-list li {
    margin-bottom: 12px;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list li i {
    color: var(--primary-medium);
}

.node-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-light);
    opacity: 0;
    transition: 0.4s;
}

.power-node:hover .node-glow,
.active-node .node-glow {
    opacity: 1;
    background: var(--primary-medium);
}


/* ==========================================================================
   3. قسم بروتوكول الامتياز والأرقام (Light Mode)
   ========================================================================== */

.excellence-section {
    padding: 80px 0;
    background: #ffffff;
}

.system-metrics-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--bg-light);
    border: 1px solid #e1e8fa;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
}

.metric-box {
    text-align: center;
}

.metric-num {
    font-family: 'Changa', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-medium);
}

.metric-plus {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: bold;
    margin-right: 5px;
}

.metric-label {
    display: block;
    color: #555;
    font-size: 1.2rem;
    font-family: 'Changa';
    margin-top: 10px;
}

.mt-5 {
    margin-top: 50px;
    color: var(--primary-dark);
}

.excellence-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.ex-card {
    background: #ffffff;
    border: 1px solid #e1e8fa;
    border-radius: 15px;
    padding: 25px 20px;
    width: calc(33.333% - 20px);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.ex-card:hover {
    background: #f8faff;
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(28, 65, 180, 0.08);
}

.ex-icon {
    font-size: 2rem;
    color: var(--primary-medium);
    min-width: 40px;
    text-align: center;
}

.highlight-icon {
    color: #e74c3c;
}

.ex-card p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}


/* ==========================================================================
   4. الفوتر (أزرق داكن فخم جداً يناسب Corporate Design)
   ========================================================================== */

.cyber-footer {
    background-color: var(--primary-dark);
    /* أزرق الشركة العميق */
    padding: 80px 0 20px;
    color: #cbd5e1;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-brand .logo span {
    color: var(--primary-light);
}

.company-bio {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #d0d7f5;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-family: 'Changa';
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #d0d7f5;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a i {
    font-size: 0.8rem;
    color: var(--primary-light);
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: white;
    padding-right: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.c-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    font-size: 1.2rem;
}

.c-text span {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.c-text a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    transition: 0.3s;
}

.c-text a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-bottom strong {
    color: white;
}

/* Media Queries */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: right;
    }

    .ex-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .ex-card {
        width: 100%;
    }
}


/* --- قسم مقر القيادة المركزية (3D Tactical Center) --- */

.tactical-contact-section {
    /* padding: 100px 0; */
    background-color: var(--bg-light);
    /* الخلفية الفاتحة #f4f7ff */
    overflow: hidden;
}

/* تجهيز الحاوية لتعمل بنظام المنظور ثلاثي الأبعاد (Perspective) */
.command-desk-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    perspective: 1500px;
    /* العمق الثلاثي الأبعاد */
    margin-top: 50px;
}

/* اللوحات الأساسية */
.desk-panel {
    flex: 1;
    max-width: 550px;
    height: 480px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    /* ظل ناعم لخلق عمق */
    box-shadow: 0 20px 40px rgba(28, 65, 180, 0.1);
    border-radius: 20px;
}

/* الزجاج الداخلي للوحات (Glassmorphism) */
.panel-glass {
    background: #ffffff;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid #e1e8fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* السحر هنا: تدوير اللوحات!
   اللوحة اليمنى مائلة لليسار، واليسرى مائلة لليمين 
*/
.info-panel {
    transform: rotateY(15deg) translateZ(-50px);
}

.map-panel {
    transform: rotateY(-15deg) translateZ(-50px);
    padding: 0;
    /* لإلغاء البادينج وجعل الخريطة تملأ الشاشة */
}

.map-panel .panel-glass {
    padding: 15px;
}

/* تأثير اعتدال الشاشة عند التحويم (Hover) */
.desk-panel:hover {
    transform: rotateY(0deg) translateZ(30px) scale(1.05);
    box-shadow: 0 30px 60px rgba(28, 65, 180, 0.2);
    z-index: 10;
    border-color: var(--primary-light);
}

/* --- تنسيقات بيانات الاتصال (Info Panel) --- */
.panel-title {
    color: var(--primary-dark);
    font-family: 'Changa', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
    border-bottom: 2px dashed #e1e8fa;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-title i {
    color: var(--primary-light);
}

.contact-node {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* هذا هو السر: جمع العناصر في بداية الكارت */
    gap: 15px;
    /* المسافة الثابتة والمحددة بين الأيقونة والنص */
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
    text-align: right;
    /* ضمان أن النص يبدأ من اليمين */
}

.contact-node:hover {
    background: #ffffff;
    border-color: var(--primary-light);
    transform: translateX(-10px);
    box-shadow: 0 5px 15px rgba(28, 65, 180, 0.08);
}

.node-icon {
    /* تحديد الحجم بشكل ثابت يمنعه من التمدد */
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: rgba(28, 65, 180, 0.08);
    color: var(--primary-medium);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    transition: 0.3s;
    flex-shrink: 0;
    /* منع الأيقونة من الانكماش إذا كان النص طويلاً */
}

.contact-node:hover .node-icon {
    background: var(--primary-medium);
    color: white;
}

.node-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.node-data span {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.node-data strong,
.node-data a {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    transition: 0.3s;
    direction: ltr;
    /* مهم للأرقام والإيميلات لكي تظهر بشكل صحيح */
    unicode-bidi: embed;
}

.node-data a:hover {
    color: var(--primary-light);
}

.contact-action {
    margin-top: auto;
    text-align: center;
}

.btn-secure-chat {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--primary-medium);
    color: white;
    font-family: 'Changa', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
}

.btn-secure-chat:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
}

/* --- تنسيقات الخريطة الرادارية (Map Panel) --- */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2fa;
}

/* خط المسح فوق الخريطة */
.map-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(120, 148, 236, 0.8);
    box-shadow: 0 0 15px 4px rgba(120, 148, 236, 0.4);
    z-index: 2;
    pointer-events: none;
    animation: mapScan 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes mapScan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* علامة تصويب وسط الخريطة */
.target-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(28, 65, 180, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    display: none;
    /* تظهر فقط عند التحويم */
}

.target-crosshair::before,
.target-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(28, 65, 180, 0.5);
}

.target-crosshair::before {
    top: 50%;
    left: -10px;
    right: -10px;
    height: 2px;
    transform: translateY(-50%);
}

.target-crosshair::after {
    left: 50%;
    top: -10px;
    bottom: -10px;
    width: 2px;
    transform: translateX(-50%);
}

.map-panel:hover .target-crosshair {
    display: block;
    animation: lockTarget 1s ease-out forwards;
}

@keyframes lockTarget {
    0% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-color: var(--primary-medium);
    }
}

/* --- التجاوب مع شاشات الموبايل --- */
@media (max-width: 992px) {
    .command-desk-3d {
        flex-direction: column;
        perspective: none;
        /* نلغي الـ 3D في الموبايل لضمان وضوح الرؤية */
    }

    .desk-panel {
        max-width: 100%;
        transform: none !important;
        /* إلغاء الدوران في الموبايل */
        height: auto;
    }

    .map-panel {
        height: 400px;
    }

    /* تحديد ارتفاع للخريطة في الموبايل */

    .node-data a {
        font-size: 14px !important;
    }

    .elv-cta {
        padding: 60px 0;
    }

    .btn-biometric-large {
        font-size: 15px;
    }

    .elv-cta h2 {
        font-size: 30px;
    }
}


/*****************************CONTACT********************************/

/* --- قسم التواصل المشفر (Secure Contact Gateway) --- */

.secure-contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* خلفية هندسية تعطي إحساساً بالتخطيط */
.bg-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(28, 65, 180, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 65, 180, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.contact-gateway-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 50px auto 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(28, 65, 180, 0.08);
    overflow: hidden;
    /* لقص أي عناصر تخرج عن الإطار */
}

/* --- 1. لوحة بناء الثقة (Trust Panel) --- */
.trust-panel {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.trust-content {
    position: relative;
    z-index: 2;
}

.trust-panel h3 {
    font-family: 'Changa';
    font-size: 2rem;
    margin-bottom: 15px;
}

.trust-intro {
    color: #d0d7f5;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.t-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: #00ffd5;
    /* لمسة سيبرانية خفيفة */
}

.t-text h4 {
    font-family: 'Changa';
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white;
}

.t-text span {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    display: block;
}

/* أزرار الاتصال السريع */
.quick-contact-pills {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.qc-pill {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-pill:hover {
    background: white;
    color: var(--primary-dark);
}

.qc-wa {
    background: #25D366;
    color: white;
}

.qc-wa:hover {
    background: #128C7E;
    color: white;
}

/* دائرة زينة خلفية للوحة الثقة */
.panel-circle-deco {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}


/* --- 2. لوحة الفورم الذكي (Form Panel) --- */
.form-panel {
    flex: 0 0 60%;
    padding: 50px;
    background: #ffffff;
}

.form-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e1e8fa;
    padding-bottom: 20px;
}

.form-header h3 {
    color: var(--primary-dark);
    font-family: 'Changa';
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h3 i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.form-header span {
    color: #777;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .input-group {
    flex: 1;
}

/* تصميم الحقول بأسلوب Floating Label */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.smart-input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    /* مساحة للأيقونة يميناً */
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: #333;
    background: #f8faff;
    border: 2px solid transparent;
    border-bottom: 2px solid #e1e8fa;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

/* عند التركيز على الحقل */
.smart-input:focus {
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 10px 20px rgba(120, 148, 236, 0.1);
}

.input-icon {
    position: absolute;
    top: 18px;
    right: 15px;
    color: var(--primary-light);
    font-size: 1.1rem;
    transition: 0.3s;
}

.smart-input:focus~.input-icon {
    color: var(--primary-medium);
}

/* سحر الـ Floating Label (النص العائم) */
.smart-label {
    position: absolute;
    top: 15px;
    right: 45px;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* عندما يكون الحقل غير فارغ (أو عليه التركيز)، يصعد الـ Label لأعلى ويصغر */


.wpcf7-form-control-wrap:focus-within~.smart-label,
.smart-input:not(:placeholder-shown)~.smart-label {
    top: -12px;
    right: 10px;
    font-size: 0.85rem;
    color: var(--primary-medium);
    font-weight: bold;
    background: #ffffff;
    padding: 0 5px;
    border-radius: 4px;
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}


.btn-submit-secure {
    width: 100%;
    padding: 18px;
    background: var(--primary-medium);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Changa', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
    transition: 0.3s;
}

.btn-submit-secure:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(28, 65, 180, 0.3);
}


.btn-scanner {
    position: absolute;
    top: 0;
    left: -100px;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
}

.btn-submit-secure:hover .btn-scanner {
    animation: scanBtn 1s infinite;
}

@keyframes scanBtn {
    0% {
        left: -100px;
    }

    100% {
        left: 120%;
    }
}

.secure-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* التجاوب مع الموبايل */
@media (max-width: 992px) {
    .contact-gateway-wrapper {
        flex-direction: column;
    }

    .trust-panel,
    .form-panel {
        flex: none;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-panel {
        padding: 30px 20px;
    }
}

/* --- قسم معلومات التواصل والخريطة --- */
.contact-map-section {
    padding: 80px 0 100px;
    background-color: var(--bg-light);
    /* نفس الخلفية الفاتحة المريحة */
    position: relative;
}

.contact-map-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

/* --- 1. عمود الكروت --- */
.contact-cards-column {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* المسافة بين الكروت */
}

/* تصميم الكارت (مطابق للصورة التي طلبتها) */
.smart-contact-card {
    display: flex;
    justify-content: space-between;
    /* الأيقونة في طرف والنص في طرف */
    align-items: center;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #e1e8fa;
    cursor: pointer;
}

/* كارت مميز بإطار خارجي فقط (للتنويع البصري كما في صورتك) */
.outline-card {
    background: transparent;
    border: 2px solid var(--primary-light);
    box-shadow: none;
}

.outline-card:hover {
    background: #ffffff;
}

.smart-contact-card:hover {
    transform: translateX(-10px);
    /* يتحرك لليسار عند التحويم */
    border-color: var(--primary-medium);
    box-shadow: 0 15px 40px rgba(28, 65, 180, 0.1);
}

/* جانب النص (يسار الكارت) */
.card-text-side {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.card-label {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
}

.card-value {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Tajawal', sans-serif;
}

/* تخصيص للرقم والإيميل */
.phone-val {
    color: var(--primary-medium);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.email-val {
    font-size: 1.05rem;
}

/* جانب الأيقونة (يمين الكارت) */
.card-icon-side {
    width: 65px;
    height: 65px;
    background: var(--primary-medium);
    /* الدائرة الزرقاء */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
    transition: transform 0.4s ease, background 0.4s;
    flex-shrink: 0;
    /* يمنع الأيقونة من التمدد أو الانكماش */
}

.outline-card .card-icon-side {
    background: var(--primary-dark);
}

.smart-contact-card:hover .card-icon-side {
    transform: scale(1.1) rotate(-10deg);
    /* تأثير حركي خفيف للأيقونة */
    background: var(--primary-light);
}


/* --- 2. عمود الخريطة (Out of the box) --- */
.map-column {
    flex: 0 0 55%;
    height: 450px;
    position: relative;
}

/* الإطار الزجاجي الذكي المحيط بالخريطة */
.map-glass-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
    /* لعمل إطار أبيض حول الخريطة */
    box-shadow: 0 20px 50px rgba(28, 65, 180, 0.1);
    border: 1px solid #e1e8fa;
}

.map-glass-frame iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: grayscale(20%) contrast(1.1);
    /* تصفية ألوان الخريطة لتبدو احترافية */
    transition: 0.4s ease;
}

.map-glass-frame:hover iframe {
    filter: grayscale(0%) contrast(1);
    /* تعود لألوانها الطبيعية عند التحويم */
}

/* تأثير خط المسح التكنولوجي (Scanner Line) */
.map-tech-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-light);
    z-index: 5;
    opacity: 0.7;
    animation: scanMap 4s infinite ease-in-out;
    pointer-events: none;
    /* لا يمنع النقر على الخريطة */
}

@keyframes scanMap {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* زوايا التصويب التكنولوجية حول الإطار */
.tech-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary-medium);
    border-style: solid;
    z-index: 10;
    pointer-events: none;
    transition: 0.3s;
}

.map-glass-frame:hover .tech-corner {
    width: 40px;
    height: 40px;
    border-color: var(--primary-light);
}

.top-left {
    top: 20px;
    left: 20px;
    border-width: 3px 0 0 3px;
}

.top-right {
    top: 20px;
    right: 20px;
    border-width: 3px 3px 0 0;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 3px 3px;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 3px 3px 0;
}


/* --- التجاوب مع شاشات الموبايل (Responsive) --- */
@media (max-width: 992px) {
    .contact-map-grid {
        flex-direction: column;
    }

    .contact-cards-column,
    .map-column {
        flex: none;
        width: 100%;
    }

    .map-column {
        height: 350px;
    }

    .smart-contact-card {
        flex-direction: column-reverse;
        /* ترتيب رأسي في الشاشات الصغيرة جداً */
        text-align: center;
        gap: 15px;
    }

    .card-text-side {
        text-align: center;
    }
}

/* --- قسم أوقات العمل وبروتوكول الاستجابة --- */

.operations-protocol-section {
    padding: 80px 0;
    background-color: #ffffff;
    /* خلفية بيضاء لكسر التباين */
    border-top: 1px dashed #e1e8fa;
}

.row-flex-center {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* التنسيق المشترك للكروت */
.operation-hours-card,
.sla-matrix-card {
    background: var(--bg-light);
    border: 1px solid #e1e8fa;
    border-radius: 20px;
    padding: 40px;
    flex: 1;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.operation-hours-card:hover,
.sla-matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(28, 65, 180, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 15px;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--primary-medium);
}

.card-header h3 {
    font-family: 'Changa', sans-serif;
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin: 0;
}

/* جدول ساعات العمل */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(28, 65, 180, 0.1);
    font-size: 1.1rem;
    color: #555;
    font-weight: bold;
}

.hours-list .off-day {
    color: #e74c3c;
    /* لون أحمر ليوم الإجازة */
}

/* مؤشر الحالة (Online Indicator) */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    background: #e8f8f5;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #27ae60;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* بروتوكول الاستجابة (SLA Grid) */
.sla-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sla-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border-right: 4px solid var(--primary-light);
    /* خط جانبي للتحديد */
    transition: 0.3s;
}

.sla-item:hover {
    border-right-color: var(--primary-medium);
    transform: translateX(-5px);
    /* حركة لليمين عند التحويم */
}

.sla-icon {
    width: 50px;
    height: 50px;
    background: rgba(28, 65, 180, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-medium);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sla-item:nth-child(1) .sla-icon {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* لون مميز للطوارئ */

.sla-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-family: 'Changa', sans-serif;
    font-size: 1.1rem;
}

.sla-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.sla-info strong {
    color: var(--primary-medium);
}

/* --- قسم أداة بناء النظام الذكي --- */

.system-builder-section {
    padding: 80px 0;
    background-color: #f8faff;
    /* خلفية زرقاء ثلجية لتمييز القسم */
}

.builder-container {
    background: #ffffff;
    border: 1px solid #e1e8fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(28, 65, 180, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.builder-step {
    margin-bottom: 40px;
}

.step-title {
    font-family: 'Changa', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-title span {
    width: 35px;
    height: 35px;
    background: var(--primary-medium);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(28, 65, 180, 0.2);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* إخفاء الـ Radio والـ Checkbox الافتراضي */
.custom-radio-card input,
.custom-checkbox-card input {
    display: none;
}

/* تصميم الكروت القابلة للضغط */
.custom-radio-card .card-content,
.custom-checkbox-card .card-content {
    background: #ffffff;
    border: 2px solid #e1e8fa;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.custom-radio-card .card-content i,
.custom-checkbox-card .card-content .sys-icon {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 15px;
    display: block;
    transition: 0.3s;
}

.custom-radio-card .card-content span,
.custom-checkbox-card .card-content span {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: #555;
    font-weight: bold;
    transition: 0.3s;
}

/* تأثير التحويم (Hover) */
.custom-radio-card:hover .card-content,
.custom-checkbox-card:hover .card-content {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.08);
}

.custom-radio-card:hover .card-content i,
.custom-checkbox-card:hover .card-content .sys-icon {
    color: var(--primary-light);
}

/* تأثير الاختيار (Checked State) */
.custom-radio-card input:checked+.card-content,
.custom-checkbox-card input:checked+.card-content {
    border-color: var(--primary-medium);
    background: rgba(28, 65, 180, 0.03);
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.1);
}

.custom-radio-card input:checked+.card-content i,
.custom-checkbox-card input:checked+.card-content .sys-icon {
    color: var(--primary-medium);
    transform: scale(1.1);
}

.custom-radio-card input:checked+.card-content span,
.custom-checkbox-card input:checked+.card-content span {
    color: var(--primary-dark);
}

/* علامة الصح للأنظمة (Checkbox Indicator) */
.check-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-medium);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: 0.3s;
}

.custom-checkbox-card input:checked+.card-content .check-indicator {
    opacity: 1;
    transform: scale(1);
}

/* قسم الخلاصة والزر */
.builder-summary {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e1e8fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-text h3 {
    color: var(--primary-dark);
    font-family: 'Changa';
    margin-bottom: 5px;
}

.summary-text p {
    color: #666;
    margin: 0;
}

.btn-build-system {
    background: #25D366;
    /* لون واتساب */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Changa';
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-build-system:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}


/***************************NEWS*****************************/

/* --- قسم آخر الأخبار والمدونة --- */
.cyber-blog-section {
    padding: 0 0 100px 0;
    /* مسافة علوية 0 لأن الشريط المتحرك سيكون بالأعلى */
    background-color: var(--bg-light);
    /* خلفية فاتحة #f4f7ff */
    overflow: hidden;
}

/* --- 1. شريط الأخبار الحية (Live Ticker) --- */
.live-ticker-wrapper {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e1e8fa;
    box-shadow: 0 4px 15px rgba(28, 65, 180, 0.05);
    height: 50px;
    margin-bottom: 80px;
}

.ticker-title {
    background: var(--primary-medium);
    color: white;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    padding: 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.pulse-icon {
    animation: blinkRed 1s infinite;
    color: #ff4757;
    /* نقطة حمراء تنبض */
}

@keyframes blinkRed {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #f8faff;
}

.ticker-text {
    white-space: nowrap;
    animation: tickerMove 30s linear infinite;
    color: #555;
    font-size: 0.95rem;
}

.ticker-text:hover {
    animation-play-state: paused;
}

/* يتوقف عند وقوف الماوس */

.ticker-text strong {
    color: var(--primary-dark);
}

.ticker-separator {
    color: var(--primary-light);
    margin: 0 20px;
    font-weight: bold;
}

@keyframes tickerMove {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- 2. الفلاتر الذكية --- */
.news-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #e1e8fa;
    color: #666;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-medium);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-medium);
    color: white;
    border-color: var(--primary-medium);
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
}

/* --- 3. شبكة المقالات (كروت ملفات البيانات) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cyber-post-card {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e1e8fa;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cyber-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(28, 65, 180, 0.1);
    border-color: var(--primary-light);
}

/* صورة المقال */
.post-visual {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cyber-post-card:hover .post-visual img {
    transform: scale(1.1);
    /* تقريب الصورة */
}

/* تأثير خط المسح التكنولوجي عند التحويم */
.image-scanner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.cyber-post-card:hover .image-scanner {
    opacity: 1;
    animation: scanImage 2s ease-in-out infinite;
}

@keyframes scanImage {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* شارات التصنيف (Badges) */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.projects-badge {
    background: rgba(28, 65, 180, 0.85);
}

/* أزرق داكن */
.tech-badge {
    background: rgba(39, 174, 96, 0.85);
}

/* أخضر يرمز للتكنولوجيا */
.training-badge {
    background: rgba(231, 76, 60, 0.85);
}

/* أحمر للأكاديمية */

/* محتوى المقال */
.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.post-meta span i {
    color: var(--primary-light);
}

.post-title {
    font-family: 'Changa', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.5;
    margin-bottom: 15px;
    transition: 0.3s;
}

.cyber-post-card:hover .post-title {
    color: var(--primary-medium);
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
    /* لدفع الزر للأسفل دائماً */
}

/* فوتر الكارت (الزر والباركود) */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e1e8fa;
    padding-top: 15px;
}

.read-more-btn {
    text-decoration: none;
    color: var(--primary-medium);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.read-more-btn i {
    transition: transform 0.3s;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.read-more-btn:hover i {
    transform: translateX(-5px);
}

/* السهم يتحرك لليسار */

/* باركود زينة يعطي طابع Data File */
.tech-barcode {
    width: 60px;
    height: 20px;
    background: repeating-linear-gradient(to right,
            #ccc 0, #ccc 2px,
            transparent 2px, transparent 4px,
            #ccc 4px, #ccc 5px,
            transparent 5px, transparent 8px);
    opacity: 0.5;
}

/* زر عرض المزيد بالأسفل */
.mt-5 {
    margin-top: 50px;
}

.btn-outline-tech {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    border: 2px solid var(--primary-medium);
    color: var(--primary-medium);
    border-radius: 30px;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-tech:hover {
    background: var(--primary-medium);
    color: white;
    box-shadow: 0 10px 20px rgba(28, 65, 180, 0.2);
}

.btn-outline-tech i {
    transition: transform 0.5s;
}

.btn-outline-tech:hover i {
    transform: rotate(180deg);
}

/* دوران أيقونة التحديث */

/* --- Latest News Section (Front Page) --- */
.latest-news-section {
    padding: 90px 0;
    background: var(--bg-light);
}

.latest-news-section .section-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-top: -35px;
    margin-bottom: 50px;
}


/* --- إعدادات الهيدر الأساسية --- */
.tech-header {
    background: rgba(255, 255, 255, 0.95);
    /* أبيض شبه شفاف */
    backdrop-filter: blur(10px);
    /* تأثير الزجاج */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(28, 65, 180, 0.05);
    /* ظل خفيف جداً */
    border-bottom: 1px solid #e1e8fa;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: 'Changa', sans-serif;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-medium);
}

/* --- تصميم الروابط للشاشات الكبيرة (Desktop) --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #555;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
}

/* تأثير الخط السفلي عند وقوف الماوس */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-medium);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active-link::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active-link {
    color: var(--primary-medium);
}

/* زر تواصل معنا في الهيدر */
.btn-nav {
    background: var(--primary-medium);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Changa', sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(28, 65, 180, 0.2);
    transition: 0.3s !important;
}

.btn-nav::after {
    display: none;
}

/* إلغاء الخط السفلي للزر */
.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 65, 180, 0.3);
}

/* --- تصميم زر الهامبرغر --- */
.hamburger {
    display: none;
    /* مخفي في الشاشات الكبيرة */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    /* يجب أن يكون فوق القائمة المنسدلة */
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 5px;
    transition: all 0.4s ease-in-out;
}

/* --- التجاوب مع الموبايل (Mobile View) --- */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        /* إظهار الهامبرغر في الموبايل */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: -100%;
        /* مخفية خارج الشاشة يميناً */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 25px;
        transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        border-top: 2px solid var(--primary-light);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    /* عندما تفتح القائمة */
    .nav-links.active {
        right: 0;
        /* تدخل للشاشة */
    }

    .nav-links li a {
        font-size: 1.3rem;
        display: block;
        padding: 10px;
    }

    .btn-nav {
        margin-top: 20px;
        font-size: 1.2rem;
        padding: 12px 35px;
    }

    /* حركة تحول الهامبرغر إلى علامة X */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #e74c3c;
        /* يتحول للأحمر للإغلاق */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        /* الخط الأوسط يختفي */
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #e74c3c;
    }
}

/* تنسيق الرابط النشط */
.nav-links li a.active-link {
    color: var(--primary-medium) !important;
    /* تغيير لون النص للون الأساسي */
    font-weight: bold;
}

/* إنشاء الخط تحت الرابط النشط */
.nav-links li a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* المسافة بين النص والخط */
    left: 0;
    width: 100%;
    /* الخط يملأ عرض النص بالكامل */
    height: 3px;
    /* سمك الخط */
    background-color: var(--primary-medium);
    /* لون الخط */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* استثناء زر الواتساب من خاصية الخط السفلي */
.nav-links li a.btn-nav::after {
    display: none !important;
}