/* ✅ إعدادات عامة */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ✅ الهيدر */
/* ✅ تنسيق الهيدر الأساسي */
/* ✅ الهيدر الأساسي */
/* ✅ تنسيق الهيدر */
/* ✅ الهيدر الأساسي */
/* Header */
/* تنسيق الهيدر */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #008cf0;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0px;
    max-width: 100%;
}

/* الشعار */
.logo img {
    height: 60px;
}

/* قائمة التنقل */
.nav-links {
    list-style: none;
    display: flex;
    max-width:100%;
    gap: 15px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
}

/* تأثير المستطيل الأصفر عند التمرير */
.nav-links a:hover,
.nav-links a.active {
    background: #fdb912;
    border-radius: 5px;
    padding: 10px 15px;
}

/* زر القائمة (يظهر عند الشاشات الصغيرة) */
/* زر القائمة */
/* زر القائمة */
/* زر القائمة */
.menu-toggle {
    display: none; /* إخفاء الزر في الشاشات الكبيرة */
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 30px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1100;
}

/* الخطوط داخل الزر */
.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* إضافة مسافة بين الخطوط */
.menu-toggle .bar:not(:last-child) {
    margin-bottom: 6px;
}

/* تحويل الزر إلى علامة X عند النقر */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0; /* إخفاء الخط الأوسط */
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* إظهار زر القائمة فقط في الشاشات الصغيرة */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    /* إخفاء القائمة افتراضيًا */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 95px;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -100%; /* تظل مخفية خارج الشاشة */
        width: 60%; /* عرض القائمة المنبثقة */
        height: 100vh;
        background-color: #008cf0;
        padding: 20px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0);
        transition: right 0.3s ease-in-out;
    }

    /* عند تفعيل القائمة، تنزلق من الجانب الأيمن */
    .nav-links.active {
        right: 0;
    }

    /* تنسيق الروابط داخل القائمة */
    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        text-decoration: none;
        color: white;
        font-size: 20px;
        padding: 10px 15px;
        transition: 0.3s ease-in-out;
    }

    /* تأثير المستطيل الأصفر عند تمرير الماوس */
    .nav-links a:hover,
    .nav-links a.active {
        background: #fdb912;
        border-radius: 5px;
        padding: 10px 15px;
    }

    /* زر القائمة */
    .menu-toggle {
        
        font-size: 28px;
        color: white;
        cursor: pointer;
        position: fixed;
        top: 30px;
        right: 20px;
        z-index: 1100;
    }
    .logo{
        margin-left: 10px;
        align-self: flex-start;
    }
}

.hero {
    background: url('images/WhatsApp Image 2025-04-13 at 16.47.14_ef3903bd.jpg') center/cover fixed;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    text-align: center;
    position: relative;
}

/* إضافة ظل للخلفية فقط وليس للنص */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#fdba1200 , #000000c9); /* ظل على الصورة فقط */
    z-index: 1;
}

/* التأكد من أن النص فوق الظل */
.hero-content {
    position: relative;
    z-index: 2;
}

/* تأثير دخول الأقسام عند التمرير */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تأثير موشن عند تحريك الماوس */
.feature, .member {
    transition: transform 0.3s ease-in-out;
}

.feature:hover, .member:hover {
    transform: scale(1.05);
}


.hero h1 {
    font-size: 70px;
    color:#fdb912 ;
    margin-bottom: 5px;
    
}

/* ✅ تنسيق القسم بالكامل وجعله في المنتصف */
.services-grid {
    text-align: center;
    padding: 60px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ✅ عنوان القسم مع تأثير الكتابة */
.section-title {
    font-size: 36px;
    color: #fdb912;
    font-weight: bold;
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fdb912;
    animation: typing 2s steps(30, end) forwards, blinkCursor 0.6s infinite;
}

/* ✅ أنيميشن الكتابة */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    30% { border-color: transparent; }
}

/* ✅ تنسيق كروت الخدمات */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

/* ✅ تنسيق كل كارت */
.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.137);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 300px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* ✅ تحسين الصور داخل الكروت */
.card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

/* ✅ تأثير الماوس على الكارت */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(0, 140, 255, 0.2);
}

.card:hover img {
    transform: scale(1.06);
}

/* ✅ تحسين النصوص داخل الكارت */
.card h3 {
    font-size: 20px;
    color: #147ed4;
    margin-top: 15px;
    transition: color 0.3s ease-in-out;
}

.card p {
    font-size: 16px;
    color: #555;
    transition: color 0.3s ease-in-out;
}

/* ✅ تأثير عند تمرير الماوس */
.card:hover h3, .card:hover p {
    color: #09619f;
}

/* ✅ تحسين التجاوب مع الأجهزة */
@media (max-width: 1024px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* ✅ تنسيق قسم التكنولوجيا */
.technology-section {
    text-align: center;
    padding: 80px 10%;
    background-color: #f8f9fc;
}

/* ✅ تنسيق العنوان */
.technology-section h2 {
    font-size: 36px;
    color: #fdb912;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-in-out;
}

/* ✅ تأثير ظهور العنوان */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ✅ تنسيق النص */
.technology-section p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease-in-out;
}

/* ✅ تنسيق الصورة */
.shadowed-image {
    width: 80%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block;
    margin: auto;
    animation: fadeInUp 1.4s ease-in-out;
}

/* ✅ تأثير عند تمرير الماوس على الصورة */
.shadowed-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

/* ✅ تحسين التجاوب مع الأجهزة */
@media (max-width: 768px) {
    .technology-section h2 {
        font-size: 28px;
    }

    .technology-section p {
        font-size: 16px;
    }

    .shadowed-image {
        width: 90%;
    }
}

/* ✅ تنسيق القسم بالكامل */
.vision-commitment {
    text-align: center;
    padding: 80px 10%;
    background: #f8f9fc;
}

/* ✅ تنسيق العنوان */
.vision-commitment h2 {
    font-size: 36px;
    text-align: left;
    color: #fdb912;
    font-weight: bold;
    margin-bottom: 0px;
    animation: fadeIn 1s ease-in-out;
}

/* ✅ تنسيق المحتوى */
.vision-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ✅ تنسيق النصوص */
.vision-text {
    flex: 1;
    text-align: left;
}

.vision-text h3 {
    font-size: 24px;
    color: #147ed4;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-in-out;
}

.vision-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease-in-out;
}

/* ✅ تنسيق الصورة */
.vision-image {
    flex: 1;
    text-align: right;
}

.vision-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ✅ تأثير عند تمرير الماوس على الصورة */
.vision-image img:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(0, 132, 255, 0.3);
}

/* ✅ أنيميشن الظهور */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ✅ تحسين التجاوب مع الأجهزة */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
       
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
    }
    
    .hero {
        margin-top: 100px;
    }

    .vision-content {
        flex-direction: column;
        text-align: center;
    }

    .vision-text {
        text-align: center;
    }

    .vision-image img {
        width: 90%;
    }
}

/* ==================== FOOTER SECTION ==================== */
.site-footer {
    background: #147ED4; /* لون الفوتر الأساسي */
    color: white;
    padding: 50px 10%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
}

/* تنسيق العناوين في الفوتر */
.footer-container h3 {
    color: #FDB912;
    font-size: 22px;
    margin-bottom: 15px;
}

/* تنسيق قائمة الروابط */
.footer-navigation .quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ترتيب الروابط في عمودين */
    gap: 10px;
    text-align: left;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease-in-out;
}

/* تأثير عند تمرير الماوس على الروابط */
.footer-navigation a:hover {
    color: #FDB912;
}

/* تنسيق معلومات الشركة */
.footer-info p {
    font-size: 16px;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

/* تنسيق الأيقونات داخل معلومات الشركة */
.footer-info i {
    color: #FDB912;
    font-size: 18px;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
}

/* تأثير عند تمرير الماوس على الأيقونات */
.footer-info p:hover i {
    transform: scale(1.2);
}

/* تنسيق حقوق المبرمج */
.footer-credits p {
    font-size: 14px;
    margin: 5px 0;
}