/* ========================================== */
/* Base Variables & Reset */
/* ========================================== */
:root {
    --primary-dark: #123b4f;
    --accent-color: #ef5b5b;
    --text-light: #ffffff;
    --text-dark: #222222;
    --bg-gray: #f9fbfd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================== */
/* 1. Header (Sticky) - تم الفصل عن الهيرو */
/* ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 100px; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 45px;
}
.main-nav a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
}

.lang-switch {
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.lang-switch:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.phone-number { font-weight: 700; }
.mobile-menu-btn { display: none; }

/* ========================================== */
/* Dropdown Menu CSS - Updated */
/* ========================================== */
.main-nav ul li.dropdown { 
    position: relative; 
    padding-bottom: 15px; 
}

/* التعديل هنا: إضافة display: block لكسر عرض الـ flex */
.main-nav ul .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    min-width: 270px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none;
    display: block; /* يضمن نزول القائمة بشكل عمودي */
    
    /* إخفاء القائمة بحركة ناعمة ومنع الخيال (Flickering) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none; 
}

/* إظهار القائمة عند الوقوف عليها بالماوس */
.main-nav ul li.dropdown:hover .dropdown-menu { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; 
}

/* التعديل هنا: إجبار عناصر القائمة تظهر تحت بعضها */
.main-nav ul .dropdown-menu li { 
    margin: 0; 
    display: block; 
    width: 100%; 
}

.main-nav ul .dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    text-transform: capitalize;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
    color: var(--text-light);
}

.main-nav ul .dropdown-menu li:last-child a { 
    border-bottom: none; 
}

.main-nav ul .dropdown-menu li a:hover { 
    background-color: rgba(255,255,255,0.1); 
    padding-left: 28px; 
    color: var(--accent-color); 
}

/* تنسيق السهم وحركته */
.main-nav ul li.dropdown > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.main-nav ul li.dropdown:hover > a i {
    transform: rotate(180deg); 
}

/* ========================================== */
/* تعديلات القائمة المنسدلة للنسخة العربية (RTL) */
/* ========================================== */
html[dir="rtl"] .main-nav ul .dropdown-menu {
    left: auto;
    right: 0; /* فتح القائمة من اليمين */
}

html[dir="rtl"] .main-nav ul li.dropdown > a i {
    margin-left: 0;
    margin-right: 5px; /* نقل المسافة بتاعت السهم لليمين */
}

html[dir="rtl"] .main-nav ul .dropdown-menu li a:hover {
    padding-left: 20px; /* إرجاع المسافة اليسرى لطبيعتها */
    padding-right: 28px; /* عمل حركة الأنيميشن من اليمين */
}
/* ========================================== */
/* 2. Hero Section (Slider Modified) */
/* ========================================== */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

/* 
  تعديل المدة:
  الوقت الكلي أصبح 24 ثانية (3 شرائح × 8 ثواني لكل شريحة)
*/
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 24s infinite; /* الوقت الكلي 24 ثانية */
}

/* تأخير كل شريحة 8 ثواني عن اللي قبلها */
.slide:nth-child(1) { background-image: url('../images/1.png'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('../images/2.png'); animation-delay: 8s; }
.slide:nth-child(3) { background-image: url('../images/3.png'); animation-delay: 16s; }

/* الحسبة الجديدة للـ Keyframes عشان تتوافق مع الـ 24 ثانية بدون شاشات بيضاء */
@keyframes fade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }  /* تظهر بوضوح */
    33%  { opacity: 1; }  /* تفضل ظاهرة لمدة 8 ثواني */
    37%  { opacity: 0; }  /* تختفي تدريجياً وتدخل اللي بعدها */
    100% { opacity: 0; }
}

/* الطبقة الشفافة (تقدر تخلي 0.65 دي 0 لو عايز تلغي البهتان تماماً زي ما اتفقنا) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 59, 79, 0.65);
    z-index: 1;
}

/* ========================================== */
/* تعديلات ألوان النص */
/* ========================================== */
.hero-content { 
    position: relative;
    z-index: 2;
    /* تقدر تغير اللون الافتراضي لكل النصوص هنا */
    color: #ffffff; 
}

.sub-title { 
    font-size: 16px; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    display: block;
    /* 👈 لون النص الفرعي (INDUSTRY 4.0) */
    color: #ffffff; 
}

.main-title { 
    font-size: 65px; 
    font-weight: bold; 
    margin-bottom: 35px; 
    line-height: 1.2;
    /* 👈 لون العنوان الرئيسي الكبير */
    color: #ffffff; 
}

/* الأزرار */
.btn { padding: 14px 35px; border-radius: 30px; font-weight: bold; transition: 0.3s; display: inline-block; }
.btn-primary { border: 2px solid #ffffff; color: #ffffff; }
.btn-primary:hover { background-color: #ffffff; color: var(--primary-dark); }

/* ========================================== */
/* 3. Sectors Section */
/* ========================================== */
.sectors-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.sector-box {
    flex: 1;
    min-width: 16.66%;
    padding: 70px 25px;
    color: var(--text-light);
    text-align: left;
    transition: 0.4s ease;
}

.sector-icon { font-size: 32px; margin-bottom: 25px; color: var(--accent-color); }
.sector-box h3 { font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.sector-box p { font-size: 13.5px; line-height: 1.6; opacity: 0.8; }

.box-1 { background-color: #0b2330; }
.box-2 { background-color: #123b4f; }
.box-3 { background-color: #164861; }
.box-4 { background-color: #195371; }
.box-5 { background-color: #1c5f82; }
.box-6 { background-color: #206c94; }

.sector-box:hover {
    background: linear-gradient(135deg, #f78b53, #ef5b5b);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    z-index: 2;
}
.sector-box:hover .sector-icon { color: var(--text-light); }

/* ========================================== */
/* 4. Welcome Section */
/* ========================================== */
.welcome-section { padding: 100px 0; background-color: var(--bg-gray); }
.welcome-grid { display: flex; align-items: center; gap: 50px; }
.welcome-text { flex: 1; }
.welcome-text h2 { font-size: 36px; color: var(--primary-dark); margin-bottom: 25px; }
.welcome-text p { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 30px; }
.signature-block { display: flex; align-items: center; gap: 20px; }
.sig-info h4 { color: var(--primary-dark); font-size: 16px; }
.sig-info span { font-size: 13px; color: #777; }
.welcome-img { flex: 1; text-align: center; }

/* ========================================== */
/* 5.تعديل قسم الخدمات ليمتد لأطراف الشاشة */
/* ========================================== */

.services-section {
    overflow-x: hidden; /* لمنع ظهور أي شريط تمرير بالعرض */
    padding-bottom: 0; /* مسح الفراغ السفلي إن وجد */
}

/* كسر الحاوية لتمتد بعرض الشاشة 100% */
.services-grid {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
}

/* تظبيط الاتجاه للنسخة العربية (RTL) */
html[dir="rtl"] .services-grid {
    margin-left: auto;
    margin-right: calc(50% - 50vw);
}

/* صف الخدمة الواحد */
.service-row {
    display: flex;
    flex-wrap: wrap; /* مهم جداً عشان الموبايل */
    width: 100%;
    margin: 0; /* مسح أي فراغات خارجية */
}

/* عكس الاتجاه في الصفوف الزوجية */
.service-row.reverse {
    flex-direction: row-reverse;
}

/* مربع الصورة */
.service-img {
    flex: 1 1 50%; /* يجبر الصورة تاخد 50% من عرض الشاشة بالظبط */
    min-height: 850px; /* ارتفاع ثابت ومناسب */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* مربع النص */
.service-info-block {
    flex: 1 1 50%; /* يجبر النص ياخد الـ 50% التانية */
    padding: 60px 8%; /* مسافة داخلية مريحة للنص عشان ميكونش لازق في الشاشة */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fcfcfc; /* لون خلفية خفيف جداً للنص يبرز الصورة */
    box-sizing: border-box;
}

/* تظبيط مقاسات الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .service-row, 
    .service-row.reverse {
        flex-direction: column; /* نخلي الصورة فوق والنص تحت في الموبايل */
    }
    .service-img, 
    .service-info-block {
        flex: 1 1 100%;
        width: 100%;
    }
    .service-img {
        min-height: 250px;
    }
    .service-info-block {
        padding: 40px 20px;
    }
}
/* ========================================== */
/* تنسيقات نصوص الخدمات والأنيميشن */
/* ========================================== */

/* تطبيق الخط الرسمي (Times New Roman) */
.service-info-block h3,
.service-info-block p {
    font-family: 'Times New Roman', Times, serif;
}

/* تنسيق وفصل العنوان */
.service-info-block h3 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 25px; 
    position: relative;
    padding-bottom: 15px; 
    transition: transform 0.4s ease; 
    width: fit-content; /* ده السطر اللي بيخلي العرض على قد الكلمات بالظبط */
}

/* إضافة خط فاصل أنيق تحت العنوان */
.service-info-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; 
    width: 60px; /* طول الخط قبل ما تقف عليه بالماوس */
    height: 3px;
    background-color: #ef5b5b; 
    transition: width 0.4s ease; 
}

/* تظبيط اتجاه الخط الفاصل للنسخة العربية (من اليمين) */
html[dir="rtl"] .service-info-block h3::after {
    left: auto;
    right: 0;
}

/* تنسيق النص / الكلام */
.service-info-block p {
    font-size: 19px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    transition: transform 0.4s ease; 
}

/* ========================================== */
/* الأنيميشن البسيط عند وقوف الماوس (Hover) */
/* ========================================== */

/* 1. رفع العنوان لفوق قليلاً */
.service-row:hover .service-info-block h3 {
    transform: translateY(-5px); 
}

/* 2. تمدد الخط الفاصل ليغطي العنوان بالكامل */
.service-row:hover .service-info-block h3::after {
    width: 100%; /* ده التعديل اللي بيخلي الخط يغطي الكلمة كلها */
}

/* 3. نزول النص لتحت قليلاً لإعطاء مساحة */
.service-row:hover .service-info-block p {
    transform: translateY(5px); 
}

/* ========================================== */
/* 6. Projects Section */
/* ========================================== */
.projects-section {
    margin-top: 80px;
    padding: 100px 0;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
}

.projects-section .section-title { 
    color: white; 
    margin-bottom: 40px;
}

/* شبكة المشاريع المتجاوبة */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* الكارت نفسه (الرابط) */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: block; 
    text-decoration: none;
    aspect-ratio: 4/3; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: none;
}

/* الصورة الفعلية بدون بهتان نهائياً */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

/* الطبقة المتدرجة اللي بتظهر عند الوقوف بالماوس */
.project-card .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0) 70%);
    padding: 20px;
    color: #fff;
    opacity: 0; /* مخفي تماماً في الوضع الطبيعي */
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
}

/* تأثير الـ Hover (لما تقف بالماوس) */
.project-card:hover img {
    transform: scale(1.08); /* زوم خفيف للصورة */
}

.project-card:hover .project-overlay {
    opacity: 1; /* إظهار طبقة اللون واسم المشروع */
}

/* تنسيق النص الخاص باسم المشروع */
.project-card .project-overlay h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: left; /* محاذاة لليسار في الإنجليزي */
}

/* تعديل محاذاة النص للنسخة العربية */
html[dir="rtl"] .project-card .project-overlay h4 {
    text-align: right;
}

/* حركة النص لأعلى عند الوقوف بالماوس */
.project-card:hover .project-overlay h4 {
    transform: translateY(0); 
}

/* ========================================== */
/* 7. Footer Section */
/* ========================================== */
.main-footer {
    background-color: #0b1a22;
    color: #999;
    padding: 60px 0 30px 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 40px;
    margin-bottom: 30px;
}
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 20px; }
.footer-col p { line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); }
.contact-list li { margin-bottom: 15px; display: flex; gap: 15px; }
.contact-list i { color: var(--accent-color); margin-top: 3px; }
.footer-bottom { text-align: center; font-size: 13px; }

/* ========================================== */
/* 8. WhatsApp Pop-up */
/* ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ========================================== */
/* Mobile Responsive (تحديث شامل) */
/* ========================================== */
@media (max-width: 992px) {
    .sector-box { min-width: 50%; }
    .projects-gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    
    .service-img, .service-info-block { width: 100%; flex: 0 0 100%; min-height: 300px; padding: 40px 20px; }
    .service-row, .service-row.reverse { flex-direction: column; }
    .welcome-grid { flex-direction: column; text-align: center; }
    .signature-block { justify-content: center; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-nav.show { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; }
    
    .contact-info .fab { display: none; }
    .mobile-menu-btn { display: block; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
    .contact-info { gap: 15px; }

    .main-title { font-size: 32px; }
    .sub-title { font-size: 14px; }
    .sector-box { min-width: 100%; text-align: center; }
    .projects-gallery { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-list li { justify-content: center; }
    .service-info-block h3 { font-size: 28px; }
}

/* ========================================== */
/* Social Icons / روابط التواصل */
/* ========================================== */
.contact-info a {
    color: var(--text-light);
    font-size: 18px;
    transition: .3s;
}

.contact-info a:hover {
    color: var(--accent-color);
}
/* ========================================== */
/* هيدر الصفحات الداخلية */
/* ========================================== */
.main-header.inner-header {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
/* ========================================== */
/* About Us Page Styles / تنسيقات صفحة من نحن (النهائي) */
/* ========================================== */

/* ========================================== */
/* 1. الهيرو سكشن (شكل احترافي مودرن) */
/* ========================================== */

.page-title-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #174b66 100%);
    box-sizing: border-box !important;
    width: 100% !important; 
    max-width: 100% !important;
    min-height: 350px !important; /* زودنا الارتفاع */
    
    /* الـ 140 بيكسل هتنزل السكشن تحت الهيدر بالظبط. لو لسه راكب عليه سنة، خليها 150 */
    margin: 143px 0 60px 0 !important; 
    
    padding: 40px 20px !important;
    border: 4px solid var(--accent-color) !important; /* الخط الأحمر في كل الاتجاهات */
    
    /* زوايا دائرية من تحت بس، عشان يلزق في الهيدر من فوق بدون فراغات */
    border-radius: 0 0 40px 40px !important; 
    
    box-shadow: inset 0px -10px 20px rgba(0,0,0,0.2) !important; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px !important; /* مسافة متناسبة بين العنوان والوصف */
}

.page-title-section h1 { 
    font-size: 56px !important; 
    color: #ffffff !important; 
    margin: 20px !important; 
}

.page-title-section p {
    color: var(--accent-color) !important; 
    font-size: 22px !important;
    font-weight: bold !important;
    margin: 0 !important;
}

/* للموبايل */
@media (max-width: 768px) {
    .page-title-section { 
        margin: 120px 0 40px 0 !important; 
        min-height: 300px !important;
    }
    .page-title-section h1 { font-size: 38px !important; }
}

/* 2. تحسين تنسيق محتوى النصوص بالكامل */
.about-section { padding: 60px 0; }

.about-section p, .welcome-text p { 
    font-size: 18px; 
    line-height: 2.2; 
    color: #333; 
    margin-bottom: 25px; 
    text-align: justify; /* مساواة أطراف السطور */
}

/* وضع الملخص التنفيذي داخل بوكس شيك يبرزه */
.about-section .container > div[style] {
    background: #ffffff;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-right: 4px solid var(--accent-color); 
    border-left: 4px solid var(--accent-color);  
}

/* 3. كروت الإدارة (مع أنيميشن) */
.management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.manager-card {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    text-align: start; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.4s ease;
}
.manager-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.manager-card h3 { color: var(--primary-dark); font-size: 24px; margin-bottom: 5px; }
.manager-card h5 { color: var(--accent-color); margin-bottom: 20px; font-size: 15px; }

/* 4. كروت الرؤية والرسالة (مع أنيميشن) */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.mvv-card {
    padding: 50px 30px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    text-align: center;
    transition: 0.4s ease;
}
.mvv-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.mvv-card i { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; transition: 0.3s; }
.mvv-card:hover i { transform: scale(1.2); }
.mvv-card h3 { color: var(--primary-dark); margin-bottom: 15px; font-size: 22px; }
.mvv-card p { font-size: 16px; line-height: 1.8; color: #666; text-align: center; }

/* 5. الأرقام والحقائق */
.facts-section {
    .facts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* بيقسم المساحة إلى 5 أعمدة متساوية في نفس السطر */
    gap: 30px;
}
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.fact-item { transition: 0.3s ease; }
.fact-item:hover { transform: scale(1.1); }
.fact-item h2 { font-size: 55px; color: var(--accent-color); margin-bottom: 10px; }
.fact-item p { font-size: 16px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* 6. الموبايل */
@media (max-width: 768px) {
    .management-grid, .mvv-grid, .facts-grid { grid-template-columns: 1fr; }
    .page-title-section { width: 95%; margin: 100px auto 30px auto; padding: 40px 15px; } 
}
/* ========================================== */
/* Services Page Styles / تنسيقات صفحة الخدمات */
/* ========================================== */

/* 1. النبذة الافتتاحية */
.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 20px auto 60px auto;
    padding: 0 20px;
}
.services-intro h2 { color: var(--primary-dark); margin-bottom: 20px; font-size: 36px; }
.services-intro p { font-size: 18px; color: #555; line-height: 1.9; }

/* 2. شبكة الخدمات (الكلام في النص) */
.services-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 5% 200px 5% !important; /* تم تعديل البيكسل لنسبة مئوية للحواف */
    
    /* الإضافات لكسر الحاوية والتمدد لأطراف الشاشة */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

/* تظبيط الاتجاه للنسخة العربية (RTL) */
html[dir="rtl"] .services-grid-page {
    margin-left: auto;
    margin-right: calc(50% - 50vw);
}

.service-card-page {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center; /* توسيط الكلام زي ما طلبت */
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: 0.4s ease;
    border-bottom: 4px solid transparent;
}
.service-card-page:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--accent-color);
}
.service-card-page i { font-size: 50px; color: var(--accent-color); margin-bottom: 20px; }

.service-card-page h3 { 
    color: var(--primary-dark); 
    margin-bottom: 15px; 
    font-size: 24px; 
    
    /* الإضافات الجديدة للخط والأنيميشن */
    font-family: 'Times New Roman', Times, serif;
    position: relative;
    padding-bottom: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.4s ease;
}

/* الخط الفاصل تحت العنوان (يتمركز في المنتصف) */
.service-card-page h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #ef5b5b;
    transition: width 0.4s ease;
}

.service-card-page p { 
    color: #666; 
    font-size: 16px; 
    line-height: 1.7; 
    margin-bottom: 30px; 
    
    /* الإضافات الجديدة للخط والأنيميشن */
    font-family: 'Times New Roman', Times, serif;
    transition: transform 0.4s ease;
}

/* حركات الأنيميشن عند الوقوف بالماوس (Hover) */
.service-card-page:hover h3::after {
    width: 100%;
}
.service-card-page:hover h3 {
    transform: translateY(-5px);
}
.service-card-page:hover p {
    transform: translateY(5px);
}

/* 3. زرار طلب عرض سعر */
.quote-btn-page {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    text-transform: uppercase;
}
.quote-btn-page:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========================================== */
/* البوب أب المضيء (Glowing Modal) */
/* ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    transform: translateY(-50px);
    transition: 0.4s ease;
    border: 2px solid var(--accent-color);
    /* التأثير المضيء */
    box-shadow: 0 0 30px rgba(23, 75, 102, 0.7), 0 0 20px rgba(220, 53, 69, 0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}
html[dir="rtl"] .close-modal { right: auto; left: 20px; }
.close-modal:hover { color: var(--accent-color); }

.modal-content h3 { text-align: center; color: var(--primary-dark); margin-bottom: 25px; font-size: 26px; }

/* حقول الفورم */
.quote-form input, .quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}
.quote-form input:focus, .quote-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}
.quote-form button {
    width: 100%;
    background: var(--primary-dark);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.quote-form button:hover { background: var(--accent-color); }

/* حل  للمسافة بين الخدمات والفوتر */
.services-section {
    padding-bottom: 100px !important;
    overflow-x: hidden; /* إضافة مهمة جداً لمنع أي شريط تمرير بالعرض */
}
/* ========================================== */
/* Contact Us Page Styles / تنسيقات صفحة التواصل */
/* ========================================== */

.contact-page-section {
    padding: 60px 0 150px 0;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-side h2 { color: var(--primary-dark); font-size: 36px; margin-bottom: 15px; }
.contact-info-side > p { font-size: 18px; color: #555; margin-bottom: 40px; line-height: 1.8; }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.contact-info-item i {
    font-size: 26px;
    color: var(--accent-color);
    margin-right: 20px;
}
html[dir="rtl"] .contact-info-item i {
    margin-right: 0;
    margin-left: 20px;
}
.contact-info-item h4 { color: var(--primary-dark); font-size: 20px; margin-bottom: 8px; }
.contact-info-item p { color: #666; font-size: 16px; line-height: 1.6; margin: 0; }

.contact-form-side {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-color);
}

.contact-form-side h3 { color: var(--primary-dark); margin-bottom: 25px; font-size: 24px; text-align: center; }

/* الموبايل */
@media (max-width: 768px) {
    .contact-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-info-side h2 { font-size: 30px; }
}
/* حل مشكلة محاذاة حقل رقم الهاتف في النسخة العربية */
html[dir="rtl"] .quote-form input[type="tel"] {
    text-align: right;
    direction: rtl;
}
/* ========================================== */
/* Projects Page Styles / تنسيقات صفحة المشاريع */
/* ========================================== */

.projects-page-section {
    padding: 60px 0 100px 0;
    background-color: #fcfcfc;
}

/* بلوك المشروع الواحد (المسافة بين كل مشروع واللي تحته) */
.single-project-block {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    margin-bottom: 70px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* 1. النافذة العريضة (المعرض) */
.project-gallery-wrapper {
    position: relative;
    width: 100%;
    /*background: #000;*/
    background: white;
}

.project-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* إخفاء شريط التمرير في IE */
    scrollbar-width: none; /* إخفاء شريط التمرير في Firefox */
}

.project-slider::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير في Chrome/Safari */
}

.project-slider img, .project-slider video {
    flex: 0 0 100%; /* الصورة تاخد العرض بالكامل */
    width: 100%;
    height: 500px; /* ارتفاع ثابت للنافذة */
    object-fit: contain;
    scroll-snap-align: center;
}

/* أزرار الأسهم - التنسيق العام */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* أماكن الأسهم للنسخة الإنجليزية (الافتراضي LTR) */
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* أماكن الأسهم للنسخة العربية (RTL) */
html[dir="rtl"] .prev-btn { left: auto; right: 20px; }
html[dir="rtl"] .next-btn { right: auto; left: 20px; }

/* 2. تفاصيل ووصف المشروع */
.project-description {
    padding: 40px;
}

.project-description h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 20px;
}

.project-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.project-meta li {
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
}

.project-meta li i {
    color: var(--accent-color);
    margin-right: 8px; /* مسافة في الإنجليزي */
}

/* تظبيط مسافة الأيقونات في العربي */
html[dir="rtl"] .project-meta li i {
    margin-right: 0;
    margin-left: 8px;
}

.project-description p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 3. استجابة التصميم للموبايل (Responsive) */
@media (max-width: 768px) {
    .project-slider img, .project-slider video { 
        height: 300px; 
    }
    .project-description { 
        padding: 25px; 
    }
    .project-description h2 { 
        font-size: 22px; 
    }
    .project-meta { 
        gap: 15px; 
        flex-direction: column; 
    }
    .slider-btn { 
        width: 40px; 
        height: 40px; 
        font-size: 16px; 
    }
}
/* ========================================== */
/* إعدادات الروابط (الهاتف والإيميل) */
/* ========================================== */

.contact-info-item p a,
.contact-list li span a {
    color: inherit; /* يحافظ على نفس لون النص */
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-info-item p a:hover,
.contact-list li span a:hover {
    color: var(--accent-color); /* يتغير للون التمييز عند الوقوف عليه */
}

/* إجبار الأرقام على الظهور من اليسار لليمين في النسخة العربية */
.ltr-text {
    direction: ltr;
    display: inline-block;
}

/* ========================================== */
/* Industry 4.0 Page Styles / تنسيقات صفحة الثورة الصناعية */
/* ========================================== */

/* 1. قسم التعريف */
.industry-intro {
    padding: 80px 0;
    background-color: #fff;
}
.industry-intro .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.industry-text {
    flex: 1 1 100%;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.industry-text h2 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.4s ease;
}
.industry-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}
.industry-text:hover h2::after {
    width: 100%;
}
.industry-text p {
    font-size: 19px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* ========================================== */
        /* CSS الخاص بقسم التطور الصناعي (التداخل المثالي) */
        /* ========================================== */
/* ========================================== */
        /* CSS الخاص بقسم التطور الصناعي (التداخل المثالي) */
        /* ========================================== */
/* ========================================== */
        /* CSS الخاص بقسم التطور الصناعي (مطابق للبروشور) */
        /* ========================================== */
        .timeline-evolution-wrapper {
            margin: 40px 0;
            overflow: hidden;
        }
        
        .evo-dates-container {
            display: flex;
            width: 100%;
            margin-bottom: 12px;
        }
        .evo-date {
            flex: 1;
            text-align: center;
            font-weight: 700;
            font-size: 15px;
            color: #333;
            text-transform: uppercase;
            line-height: 1.4;
        }
        
        .timeline-evolution {
            display: flex;
            align-items: stretch;
            width: 100%;
            gap: 15px; /* المسافة الفاصلة بين الأسهم */
        }
        .evo-step {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .evo-arrow {
            position: relative;
            color: #fff;
            padding: 40px 20px 80px 45px; 
            height: 100%;
            /* قص السهم برأس من الناحيتين (للنسخة الإنجليزية) */
            clip-path: polygon(0 50%, 30px 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 30px 100%);
        }
        
        /* تلوين الخلفيات */
        .evo-step.step-1 .evo-arrow { background-color: #39b54a; }
        .evo-step.step-2 .evo-arrow { background-color: #f7931e; }
        .evo-step.step-3 .evo-arrow { background-color: #0071bc; }
        .evo-step.step-4 .evo-arrow { background-color: #ec008c; }
        
        .evo-arrow h3 {
            font-size: 24px;
            margin-bottom: 5px;
            font-weight: 700;
            color: #fff;
        }
        
        .evo-arrow p {
            font-size: 14px;
            line-height: 1.5;
            margin: 0;
            color: rgba(255,255,255,0.95);
        }
        
        /* الدوائر البيضاء للأيقونات */
        .evo-icon {
            position: absolute;
            bottom: 15px;
            left: 45px;
            width: 60px;
            height: 60px;
            background: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
        
        .evo-step.step-1 .evo-icon { color: #39b54a; }
        .evo-step.step-2 .evo-icon { color: #f7931e; }
        .evo-step.step-3 .evo-icon { color: #0071bc; }
        .evo-step.step-4 .evo-icon { color: #ec008c; }

        .cyber-icon-group {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .cyber-icon-group .fa-wifi {
            position: absolute;
            top: -6px;
            right: -10px;
            font-size: 14px;
        }

        /* تعديلات الشاشات الصغيرة */
        @media (max-width: 992px) {
            .timeline-evolution { flex-direction: column; gap: 20px; }
            .evo-arrow { 
                clip-path: none !important; 
                border-radius: 12px; 
                padding: 30px 20px 80px 20px !important;
                text-align: center;
            }
            .evo-icon { 
                left: 50% !important; 
                transform: translateX(-50%); 
            }
            .evo-dates-container { display: none; }
            .evo-date-mobile { display: block; font-weight: bold; margin-bottom: 10px; color: #fff; text-transform: uppercase;}
        }
        @media (min-width: 993px) {
            .evo-date-mobile { display: none; }
        }

        /* تعديلات الموبايل */
        @media (max-width: 992px) {
            .timeline-evolution { flex-direction: column; gap: 15px; }
            .evo-arrow { 
                clip-path: none !important; 
                margin-left: 0 !important; 
                border-radius: 12px; 
                padding: 30px 20px 80px 20px !important;
                text-align: center;
            }
            .evo-icon, .evo-step:first-child .evo-icon { 
                left: 50% !important; 
                transform: translateX(-50%); 
            }
            .evo-dates-container { display: none; }
            .evo-date-mobile { display: block; font-weight: bold; margin-bottom: 10px; color: #fff; text-transform: uppercase;}
        }
        @media (min-width: 993px) {
            .evo-date-mobile { display: none; }
        }

       /* ========================================== */
/* تعديلات النسخة العربية (RTL) لقسم التطور الصناعي */
/* ========================================== */

/* إغلاق المسافات الافتراضية للتحكم في التداخل بدقة بالرياضيات */
html[dir="rtl"] .timeline-evolution,
body.rtl .timeline-evolution {
    flex-direction: row;
    gap: 0 !important; 
}

html[dir="rtl"] .evo-arrow,
body.rtl .evo-arrow {
    padding: 40px 45px 80px 20px !important; 
    clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 50%, 100% 100%, 30px 100%, 0 50%) !important;
    
    /* السر هنا: سحب كل سهم لليمين بمقدار 15 بكسل عشان يتداخل مع اللي قبله بمسافة مثالية */
    margin-right: -15px !important; 
    
    /* إيقاف المارجن الشمال اللي كان بيبوظ المسافات في النسخة الإنجليزية */
    margin-left: 0 !important; 
}

/* المرحلة الأولى (الأخضر): مسطح من اليمين، ولا يتداخل مع شيء قبله */
html[dir="rtl"] .evo-step:first-child .evo-arrow,
body.rtl .evo-step:first-child .evo-arrow {
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%) !important;
    margin-right: 0 !important; 
    padding-right: 20px !important;
}

/* المرحلة الأخيرة (الوردي): إجبار ظهور رأس السهم من اليسار */
html[dir="rtl"] .evo-step:last-child .evo-arrow,
body.rtl .evo-step:last-child .evo-arrow {
    clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 50%, 100% 100%, 30px 100%, 0 50%) !important;
}

html[dir="rtl"] .evo-icon,
body.rtl .evo-icon {
    left: auto !important;
    right: 45px !important;
}

html[dir="rtl"] .evo-step:first-child .evo-icon,
body.rtl .evo-step:first-child .evo-icon {
    right: 20px !important;
}

html[dir="rtl"] .cyber-icon-group .fa-wifi,
body.rtl .cyber-icon-group .fa-wifi {
    right: auto !important;
    left: -10px !important;
}

/* تعديلات الموبايل للنسخة العربية */
@media (max-width: 992px) {
    html[dir="rtl"] .timeline-evolution,
    body.rtl .timeline-evolution {
        gap: 15px !important; /* نرجع المسافة في الموبايل لأنهم تحت بعض */
    }
    
    html[dir="rtl"] .evo-arrow,
    body.rtl .evo-arrow,
    html[dir="rtl"] .evo-step:first-child .evo-arrow,
    body.rtl .evo-step:first-child .evo-arrow,
    html[dir="rtl"] .evo-step:last-child .evo-arrow,
    body.rtl .evo-step:last-child .evo-arrow {
        padding: 30px 20px 80px 20px !important;
        clip-path: none !important;
        margin-right: 0 !important; /* نلغي التداخل في الموبايل */
    }
    
    html[dir="rtl"] .evo-icon, 
    html[dir="rtl"] .evo-step:first-child .evo-icon,
    body.rtl .evo-icon,
    body.rtl .evo-step:first-child .evo-icon {
        left: auto !important;
        right: 50% !important;
        transform: translateX(50%) !important; 
    }
}
        
/* 3. شبكة التقنيات (Technologies) */
.tech-section {
    padding: 80px 0;
    background-color: #fff;
}
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.tech-tag {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tech-tag:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}

/* 4. كروت الفوائد (Benefits) */
.benefits-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: #fff;
}
.benefits-section .section-title {
    color: #fff;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.benefit-card {
    background: rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.4s ease;
    text-align: center;
}
.benefit-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.benefit-card i {
    font-size: 45px;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}
.benefit-card:hover i {
    transform: scale(1.1);
}
.benefit-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 22px;
}
.benefit-card p {
    color: #ddd;
    line-height: 1.8;
    font-size: 16px;
}
/* ========================================== */
/* 3. شبكة التقنيات (Technologies) - تصميم عصري */
/* ========================================== */
.tech-section {
    padding: 80px 0;
    background-color: #fcfcfc; /* خلفية هادئة جداً لتمييز القسم */
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* شبكة متناسقة */
    gap: 25px;
    margin-top: 50px;
}
.tech-tag {
    background: #fff;
    color: var(--primary-dark);
    padding: 35px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.tech-tag i {
    font-size: 40px;
    color: var(--accent-color);
    transition: all 0.4s ease;
}
/* تأثير التعبئة عند وقوف الماوس */
.tech-tag::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* يبدأ مخفي من الأسفل */
    background-color: var(--primary-dark);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ديناميكية */
}
.tech-tag:hover::before {
    height: 100%; /* يملأ الكارت بالكامل */
}
.tech-tag:hover {
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-dark);
}
.tech-tag:hover i {
    color: #fff;
    transform: scale(1.15) translateY(-5px);
}

.hero-section, .page-title-section {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.hero-section, .page-title-section {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: none !important; /* السطر ده هيشيل أي إطار موجود */
}


/* ==================================================
   تعديلات الهيرو والهيدر في الصفحة الرئيسية فقط
================================================== */

:root {
    /* ==========================================
       تحكم النسخة الإنجليزية
    ========================================== */

    /* مربع نص الهيرو */
    --hero-box-width-en: 650px;
    --hero-box-height-en: 280px;
    --hero-box-padding-en: 30px;
    --hero-box-opacity-en: 0.40;

    /* أحجام نصوص الهيرو */
    --hero-title-size-en: 54px;
    --hero-subtitle-size-en: 16px;

    /* بُعد مربع النص عن يسار الشاشة */
    --hero-box-side-space-en: 6%;

    /* الهيدر */
    --header-height-en: 140px;
    --header-opacity-en: 0.40;
    --header-font-size-en: 14px;


    /* ==========================================
       تحكم النسخة العربية
    ========================================== */

    /* مربع نص الهيرو */
    --hero-box-width-ar: 650px;
    --hero-box-height-ar: 280px;
    --hero-box-padding-ar: 30px;
    --hero-box-opacity-ar: 0.40;

    /* أحجام نصوص الهيرو */
    --hero-title-size-ar: 54px;
    --hero-subtitle-size-ar: 16px;

    /* بُعد مربع النص عن يمين الشاشة */
    --hero-box-side-space-ar: 6%;

    /* الهيدر */
    --header-height-ar: 140px;
    --header-opacity-ar: 0.40;
    --header-font-size-ar: 14px;
}


/* ==========================================
   1. إزالة البهتان من صور السلايدر
========================================== */
.hero-section::before {
    background: transparent;
}


/* ==========================================
   2. الهيدر الإنجليزي
   بعرض الشاشة بالكامل وبدون حواف
========================================== */
html:not([dir="rtl"])
.main-header:not(.inner-header):not(.scrolled) {
    width: 100%;
    min-height: var(--header-height-en);

    background-color: rgba(
        18,
        59,
        79,
        var(--header-opacity-en)
    );

    border-radius: 0;
}


/* حجم روابط الهيدر الإنجليزي */
html:not([dir="rtl"])
.main-header:not(.inner-header)
.main-nav a {
    font-size: var(--header-font-size-en);
}


/* ==========================================
   3. الهيدر العربي
   بعرض الشاشة بالكامل وبدون حواف
========================================== */
html[dir="rtl"]
.main-header:not(.inner-header):not(.scrolled) {
    width: 100%;
    min-height: var(--header-height-ar);

    background-color: rgba(
        18,
        59,
        79,
        var(--header-opacity-ar)
    );

    border-radius: 0;
}


/* حجم روابط الهيدر العربي */
html[dir="rtl"]
.main-header:not(.inner-header)
.main-nav a {
    font-size: var(--header-font-size-ar);
}


/* ==========================================
   4. مربع نص الهيرو الإنجليزي
   يظهر ناحية اليسار
========================================== */
html:not([dir="rtl"]) .hero-content {
    width: min(
        var(--hero-box-width-en),
        calc(100% - 40px)
    );

    max-width: var(--hero-box-width-en);
    min-height: var(--hero-box-height-en);

    margin-left: var(--hero-box-side-space-en);
    margin-right: auto;

    padding: var(--hero-box-padding-en);

    background-color: rgba(
        18,
        59,
        79,
        var(--hero-box-opacity-en)
    );

    border-radius: 6px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;
}


/* حجم العنوان الإنجليزي الكبير */
html:not([dir="rtl"])
.hero-content .main-title {
    font-size: var(--hero-title-size-en);
}


/* حجم العنوان الإنجليزي الصغير */
html:not([dir="rtl"])
.hero-content .sub-title {
    font-size: var(--hero-subtitle-size-en);
}


/* ==========================================
   5. مربع نص الهيرو العربي
   يظهر ناحية اليمين
========================================== */
html[dir="rtl"] .hero-content {
    width: min(
        var(--hero-box-width-ar),
        calc(100% - 40px)
    );

    max-width: var(--hero-box-width-ar);
    min-height: var(--hero-box-height-ar);

    margin-right: var(--hero-box-side-space-ar);
    margin-left: auto;

    padding: var(--hero-box-padding-ar);

    background-color: rgba(
        18,
        59,
        79,
        var(--hero-box-opacity-ar)
    );

    border-radius: 6px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    direction: rtl;
    text-align: right;
}


/* حجم العنوان العربي الكبير */
html[dir="rtl"]
.hero-content .main-title {
    width: 100%;
    font-size: var(--hero-title-size-ar);
    text-align: right;
}


/* حجم العنوان العربي الصغير */
html[dir="rtl"]
.hero-content .sub-title {
    width: 100%;
    font-size: var(--hero-subtitle-size-ar);
    text-align: right;
}


/* ==========================================
   6. ضبط الموبايل
========================================== */
@media (max-width: 768px) {

    html:not([dir="rtl"]) .hero-content,
    html[dir="rtl"] .hero-content {
        width: calc(100% - 30px);
        max-width: none;
        min-height: auto;

        margin-left: 15px;
        margin-right: 15px;

        padding: 25px 20px;
    }

    html:not([dir="rtl"])
    .hero-content .main-title,

    html[dir="rtl"]
    .hero-content .main-title {
        font-size: 32px;
    }

    html:not([dir="rtl"])
    .hero-content .sub-title,

    html[dir="rtl"]
    .hero-content .sub-title {
        font-size: 14px;
    }

    html:not([dir="rtl"])
    .main-header:not(.inner-header):not(.scrolled),

    html[dir="rtl"]
    .main-header:not(.inner-header):not(.scrolled) {
        width: 100%;
        min-height: auto;
        border-radius: 0;
    }
}

/* ==========================================
   تصغير مربع نص الهيرو وإبعاده عن الهيدر
========================================== */

/* النسخة الإنجليزية */
html:not([dir="rtl"]) .hero-content {
    width: min(540px, calc(100% - 40px));
    max-width: 500px;
    min-height: 270px;
    padding: 25px;

    /* تحريك المربع لأسفل بعيدًا عن الهيدر */
    top: 45px;
}

html:not([dir="rtl"]) .hero-content .main-title {
    font-size: 46px;
}

html:not([dir="rtl"]) .hero-content .sub-title {
    font-size: 15px;
}


/* النسخة العربية */
html[dir="rtl"] .hero-content {
    width: min(540px, calc(100% - 40px));
    max-width: 500px;
    min-height: 270px;
    padding: 25px;

    /* تحريك المربع لأسفل بعيدًا عن الهيدر */
    top: 45px;
}

html[dir="rtl"] .hero-content .main-title {
    font-size: 46px;
}

html[dir="rtl"] .hero-content .sub-title {
    font-size: 15px;
}


/* ضبط الموبايل */
@media (max-width: 768px) {
    html:not([dir="rtl"]) .hero-content,
    html[dir="rtl"] .hero-content {
        width: calc(100% - 30px);
        max-width: none;
        min-height: auto;
        padding: 22px 18px;
        top: 25px;
    }

    html:not([dir="rtl"]) .hero-content .main-title,
    html[dir="rtl"] .hero-content .main-title {
        font-size: 30px;
    }

    html:not([dir="rtl"]) .hero-content .sub-title,
    html[dir="rtl"] .hero-content .sub-title {
        font-size: 14px;
    }
}