/* استيراد خط تجول العربي الفخم */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* التنسيقات العامة للموقع */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0b0f19; /* كحلي داكن ملكي */
    color: #ffffff;
    overflow-x: hidden;
}

.text-gold {
    color: #D4AF37; /* اللون الذهبي الفخم للهوية */
}

.bg-dark-blue {
    background-color: #0d1321;
}

/* قسم الواجهة الرئيسية */
/* قسم الواجهة الرئيسية - مع إضافة خطوط ورسومات شبكة هندسية خلفية */
/* قسم الواجهة الرئيسية - مع إجبار الخطوط الهندسية على الظهور في الأعلى */
.hero-section {
    position: relative;
    background-color: #0b0f19; /* الخلفية الكحلية الغامقة الأساسية */
    
    /* دمج تدرج الألوان مع خطوط الشبكة الهندسية الذهبية الخفيفة جداً */
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #0b0f19 0%, #172237 100%);
        
    /* تحديد مقاسات المربعات الهندسية (كل مربع 50 بكسل تشبه كشكول المخططات المعمارية) */
    background-size: 50px 50px, 50px 50px, auto;
    background-repeat: repeat, repeat, no-repeat;
    
    padding: 140px 0 100px 0;
}

/* التأكيد على سماكة الخط الغامق والعريض */
.hero-section h1 {
    font-weight: 900 !important; /* أعلى درجات السُمك للخط العربي (Black/Heavy) */
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* إعطاء ثقل إضافي للنص */
}

.hero-section p.lead {
    font-weight: 700; /* جعل الرسالة والمقدمة بخط سميك وغامق واضح جداً */
    color: #f1f5f9 !important;
    line-height: 1.8;
}

/* كروت الزجاج الشفاف الفخمة (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.05);
}

/* صناديق الأيقونات في الخدمات */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #D4AF37;
    margin-bottom: 20px;
}

/* تأثيرات الملاحة وبار التنقل */
.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #D4AF37 !important;
}

/* تخصيص شريط التمرير (Scrollbar) ليناسب هوية JTC */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

/* ===================================================
   أكواد الأكشن والحركة الخاصة باللوجو الكبير
=================================================== */
/* ===================================================
   تحديث أكواد الأكشن والحركة الاحترافية للوجو
=================================================== */

/* حاوية اللوجو - حركة الطفو السلسة */
.logo-container {
    position: relative;
    display: inline-block;
    padding: 10px;
    animation: floatAndPulse 6s ease-in-out infinite;
}

/* تنسيق اللوجو الكبير والمتجاوب */
.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.2)); /* ظلال ذهبية خلف اللوجو */
}

/* التعديل السحري: تأثير خط الإضاءة اللامع على حدود اللوجو الشفاف فقط */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* جعل الإضاءة تأخذ قناع اللوجو الشفاف (تظهر فقط فوق الأجزاء الملونة من الصورة) */
    -webkit-mask-image: url('src/img/logo.png');
    mask-image: url('src/img/logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* خط الإضاءة الأبيض المائل */
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    
    /* حجم الإضاءة وسرعتها */
    background-size: 200% 100%;
    background-position: -150% 0;
    animation: professionalShine 4s ease-in-out infinite;
}

/* سيناريو حركة الطفو والنبض السلسة للوجو */
@keyframes floatAndPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

/* سيناريو حركة خط الإضاءة الاحترافي المنساب فوق خطوط اللوجو */
@keyframes professionalShine {
    0% {
        background-position: -150% 0;
    }
    30% {
        background-position: 150% 0; /* يمر بسلاسة من اليسار لليمن فوق تفاصيل الشعار */
    }
    100% {
        background-position: 150% 0; /* ينتظر باقي الـ 4 ثواني ليعود مجدداً */
    }
}


/* ===================================================
   تنسيقات سلايدر الشعارات اللانهائي (بواسطة جافا سكريبت)
=================================================== */

.slider-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    display: flex;
    /* ألغينا gap هنا وسنستخدم margin-left في slide-item لضمان دقة الحساب */
    direction: ltr !important; /* ضمان ترتيب العناصر خلف بعضها برمجياً بشكل سليم */
    white-space: nowrap;
    /* width: max-content; تم إزالته، سيتم تحديد العرض بواسطة JS */
    will-change: transform; /* لتحسين أداء كارت الشاشة وجعل الحركة ناعمة للغاية */
    flex-wrap: nowrap; /* منع التفاف العناصر نهائياً */
}

.slide-item {
    width: 250px; /* زيادة العرض لضمان عدم ضياع الصور */
    height: 110px;
    margin-left: 30px; /* المسافة بين الشعارات */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    flex-shrink: 0; /* يمنع الصور من الانضغاط أو صغر حجمها */
}

.slide-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: #D4AF37;
    transform: scale(1.06);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.1);
}

.slide-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.4s ease;
}

.slide-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* ===================================================
   استجابة الموقع للشاشات الصغيرة (الموبايل)
=================================================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 110px 0 70px;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .hero-logo {
        max-width: 240px;
    }
}
















@media (max-width: 767px) {
    /* منع أي عنصر من الخروج عن العرض الأصلي ومنع السكرول الجانبي */
    html, body {
        overflow-x: hidden;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* إصلاح جبار للـ Navbar لتغطية كامل العرض الفوقي وبخلفية كحلية ثابتة */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #0b0f19 !important; /* فرض اللون الكحلي لمنع الشفافية */
        z-index: 1050 !important;
        padding: 10px 0 !important;
    }

    /* ضبط مساحات القسم الرئيسي للموقع ليتوسط تماماً وتختفي الفراغات الجانبية */
    .hero-section {
        padding: 130px 0 60px 0 !important; /* مساحة علوية كافية لكي لا يختفي النص تحت النبار */
        text-align: center !important;
        width: 100% !important;
    }

    /* تعديل أحجام النصوص لتتناسب مع شاشات الموبايل الضيقة */
    .hero-section h1 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
        margin: 0 auto 15px auto !important;
    }

    .hero-section p.lead {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
        padding: 0 10px !important;
    }

    /* ضبط الأزرار لتأخذ شكلاً منسقاً ممتداً تحت بعضها في الشاشات الصغيرة جداً */
    .hero-section .btn {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }

    /* تصغير حجم اللوجو وتوسيطه لمنعه من دفع المحتوى لليمين أو اليسار */
    .hero-logo {
        max-width: 220px !important;
        margin: 40px auto 0 auto !important;
        display: block !important;
    }

    .logo-container {
        width: 100% !important;
        text-align: center !important;
    }

    /* إلغاء تأثير قناع الإضاءة على الموبايل مؤقتاً لضمان عدم حدوث إزاحة بصريّة */
    .logo-container::after {
        -webkit-mask-size: 220px !important;
        mask-size: 220px !important;
    }
}


@media (max-width: 575px) {
    .navbar {
        padding: 0.55rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .hero-section {
        padding: 90px 0 45px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section .btn {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .hero-logo {
        max-width: 170px;
    }

    .glass-card .row .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .slide-item {
        width: 150px;
        height: 80px;
        margin-left: 12px;
        padding: 12px;
    }

    .projects-header {
        padding: 120px 0 60px;
    }

    .projects-header h1 {
        font-size: 1.8rem;
    }

    .projects-header p {
        font-size: 1rem;
    }

    .project-detailed-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}