body {
    font-family: 'Cairo', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1d21; /* خلفية تناسب ألوان الهيدر */
    color: #ffffff;
}
header, footer {
    background: #1a1d21;
    color: #ffffff;
    padding: 15px;
    text-align: center;
}
/* قسم فريق العمل */
.team-section {
    margin-top: 40px; /* تباعد إضافي */
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.features.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* شبكة تلقائية */
    gap: 20px; /* مسافة بين العناصر */
}

.team .feature {
    background: linear-gradient(145deg, #3b4b51, #1a1d21);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team .feature:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.team .feature h3 {
    color: #3a9ad9;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.team .feature p {
    color: #d1d5db;
    font-size: 1.1em;
}
.team-section {
    max-width: 1200px;
    margin: 0 auto; /* توسيط المحتوى */
    padding: 20px;
}
/* التأثيرات العامة */
p, h2, h3, h1 {
    direction: rtl; /* جعل الاتجاه الافتراضي من اليمين لليسار */
    unicode-bidi: embed; /* ترتيب النصوص المختلطة */
    text-align: justify; /* تحسين المحاذاة للنصوص العادية */
}

/* استثناء النصوص بالصنف no-style */
.no-style {
    direction: rtl !important; /* التعامل مع النصوص الإنجليزية */
    unicode-bidi: normal !important; /* منع تعديل النصوص المختلطة */
    text-align: center !important; /* إبقاء النص في المنتصف */
}
/* استثناء الفوتر من التأثيرات */
footer p, footer h2, footer h3, footer h1 {
    direction: unset !important; /* إلغاء الاتجاه */
    unicode-bidi: unset !important; /* إلغاء ترتيب النصوص المختلطة */
    text-align: unset !important; /* إلغاء المحاذاة */
}
/* النصوص التي تحتاج أن تبقى في المنتصف */
.text-center {
    text-align: center !important; /* إجبار النص على البقاء في المنتصف */
    direction: rtl; /* التعامل مع النص العربي */
    unicode-bidi: embed; /* منع انقلاب النصوص المختلطة */
}

/* الحركات */
@keyframes moveUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تطبيق الحركة عند التمرير */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين تأثيرات المربعات */
.features .feature {
    direction: rtl;
    unicode-bidi: embed;
    text-align: justify;
    opacity: 0; /* العنصر مخفي في البداية */
    transform: translateY(20px); /* بدء العنصر من الأسفل */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.3s;
}

.feature.show {
    opacity: 1; /* إظهار العنصر */
    transform: translateY(0); /* إرجاع العنصر إلى مكانه */
}

.feature:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}/* تطبيق الحركة مع تأخير */
.features .feature:nth-child(1) {
    animation-delay: 0s;
}

.features .feature:nth-child(2) {
    animation-delay: 0.3s;
}

.features .feature:nth-child(3) {
    animation-delay: 0.6s;
}

.features .feature:nth-child(4) {
    animation-delay: 0s;
}

.features .feature:nth-child(5) {
    animation-delay: 0.3s;
}

.features .feature:nth-child(6) {
    animation-delay: 0.6s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* جعل كل صف يحتوي على 3 مربعات */
    gap: 20px;
    margin-top: 30px;
}
.feature {
    background: linear-gradient(145deg, #3b4b51, #1a1d21); /* ألوان متناسقة مع الهيدر */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* تحسين الحركة */
}

.feature:hover {
    transform: scale(1.1); /* تكبير العنصر بنسبة 10% */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7); /* إضافة ظل أكبر عند التحويم */
    background-color: #5a6d74; /* تغيير طفيف للون الخلفية */
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #3a9ad9; /* لون مميز للعناوين */
}
.feature p {
    font-size: 1.2em; /* تكبير النص */
    color: #d1d5db; /* لون النص */
}
.features:last-child {
    justify-content: center; /* توسيط آخر صف */
}
.about {
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px); /* بدء العنصر من الأسفل */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.about.show {
    opacity: 1;
    transform: translateY(0); /* إرجاع العنصر إلى مكانه */
}
.about h2 {
    font-size: 2.2em; /* تكبير النص */
    margin-bottom: 25px;
    color: #3a9ad9; /* لون النص */
}
.about p {
    font-size: 1.3em; /* تكبير النص */
    color: #d1d5db; /* لون النص */
    text-align: center; /* توسيط النص */
    line-height: 1.8;
    margin: 0 auto;
    max-width: 1200px; /* ضبط عرض النص ليكون مناسباً */
}
.main-banner {
    text-align: center;
    padding: 60px 20px;
    color: #3a9ad9; /* لون النص */
    opacity: 0; /* بداية الحركة */
    transform: translateY(-20px); /* بدء الحركة */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out; /* تأثير الحركة */
}
.main-banner.show {
    opacity: 1;
    transform: translateY(0); /* إعادة النص لمكانه */
}
.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.7s steps(30, end), blink 0.2s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #3a9ad9; }
}

.main-banner h1 {
    font-size: 2.8em; /* تكبير النص */
    margin-bottom: 20px;
}
.main-banner p {
    font-size: 1.3em; /* تكبير النص */
    margin-bottom: 35px;
    color: #d1d5db; /* لون النص */
}
.main-banner button {
    background-color: #3a9ad9;
    color: #1a1d21;
    border: none;
    padding: 12px 25px; /* تكبير الزر */
    border-radius: 5px;
    font-size: 1.2em; /* تكبير النص داخل الزر */
    cursor: pointer;
    transition: background-color 0.3s;
}
.main-banner button:hover {
    background-color: #2978b5; /* تغيير لون الزر عند التحويم */
}
.cta {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(145deg, #3b4b51, #1a1d21); /* تأثير ألوان الخلفية */
    font-size: 1.2em; /* تكبير النص */
    opacity: 0;
    transform: translateY(20px); /* بدء العنصر من الأسفل */
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.cta.show {
    opacity: 1;
    transform: translateY(0); /* إرجاع العنصر إلى مكانه */
}

.cta h2 {
    font-size: 2.2em; /* تكبير النص */
    margin-bottom: 25px;
    color: #3a9ad9; /* لون النص */
}
.cta button {
    background-color: #3a9ad9;
    color: #1a1d21;
    border: none;
    padding: 18px 35px; /* تكبير الزر */
    font-size: 1.3em; /* تكبير النص داخل الزر */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.cta button:hover {
    background-color: #2978b5;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.main-banner button:hover {
    background-color: #2978b5;
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}
#line2 {
    display: block;
    max-width: 95%; /* عرض النص لا يزيد عن 95% من الشاشة */
    margin: 0 auto; /* توسيط النص */
    font-size: 1.5em; /* حجم الخط الافتراضي */
    text-align: center; /* محاذاة النص في المنتصف */
    word-wrap: break-word; /* تقسيم الكلمات الطويلة */
    white-space: normal; /* السماح للنص بالانتقال للسطر التالي */
}

@media (max-width: 768px) {
    .features.team {
        flex-direction: column;
        align-items: center;
    }
    .features {
        grid-template-columns: 1fr; /* جعل كل صف يحتوي على عنصر واحد فقط */
    }
    .feature {
        max-width: 100%;
        margin: 0 auto; /* توسيط العنصر */
    }
    .main-banner h1 {
        font-size: 1.5em; /* تقليل حجم النص الرئيسي */
        text-align: center;
        line-height: 1.4; /* تحسين المسافات بين السطور */
    }

    #line2 {
        font-size: clamp(0.8em, 4vw, 1.2em); /* حجم أصغر للشاشات الصغيرة */
    }

    .main-banner button {
        padding: 10px 20px; /* تقليل حجم الزر */
        font-size: 0.9em; /* تقليل حجم النص داخل الزر */
        width: 80%; /* جعل الزر يشغل نسبة من الشاشة */
        max-width: 300px; /* الحد الأقصى لعرض الزر */
        margin: 20px auto; /* توسيط الزر */
        display: block; /* جعل الزر عنصر كتلة */
    }

}
