/* إعدادات النسخة العربية */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl; /* الاتجاه من اليمين لليسار للنسخة العربية */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-left: 20px; /* إضافة مسافة بين النص وحافة الشاشة */
    padding-right: 20px; /* إضافة مسافة بين النص وحافة الشاشة */
    background-color: #f5f5f5; /* إضافة لون الخلفية للهيدر والفوتر */
}

/* تعديل اتجاه النصوص في النسخة الإنجليزية */
html[lang="en"] {
    direction: ltr; /* الاتجاه من اليسار لليمين للنسخة الإنجليزية */
    padding-left: 20px; /* إضافة مسافة بين النص وحافة الشاشة */
    padding-right: 20px; /* إضافة مسافة بين النص وحافة الشاشة */
    background-color: #f5f5f5; /* إضافة لون الخلفية للهيدر والفوتر في النسخة الإنجليزية */
}

/* محاذاة النصوص في النسخة الإنجليزية */
html[lang="en"] body {
    text-align: left; /* محاذاة النصوص إلى اليسار في النسخة الإنجليزية */
    direction: ltr; /* تأكيد الاتجاه من اليسار لليمين في النسخة الإنجليزية */
}

/* الهيدر */
.header {
    background-color: #f5f5f5;
    padding: 5px; /* تقليص المسافة داخل الهيدر */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* لتقليص حجم الشعار */
.logo {
    max-width: 80px; /* تقليص الشعار */
    height: auto;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* الشعار النصي */
.slogan {
    font-size: 1.1rem; /* تقليل حجم النص في الشعار */
    color: #333;
    margin-bottom: 10px;
}

/* تنسيق الروابط في القائمة العلوية */
nav {
    margin-top: 5px;
}

nav a {
    margin: 0 8px; /* تقليص المسافة بين الروابط */
    text-decoration: none;
    color: #007bff;
    font-size: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* تعديل الصورة لتغطي المساحة بين الهيدر والفوتر */
.banner {
    background-image: url('../img/banner.jpg');
    background-size: cover; /* الصورة تغطي كامل البانر */
    background-position: center;
    width: 100%;
    height: 75vh; /* الصورة الآن تغطي العرض الكامل مع الارتفاع */
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.banner h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

/* زر Learn More أو تعرف علينا */
.btn {
    background-color: #007bff; /* خلفية الزر */
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3; /* تغيير اللون عند التمرير */
}

/* تحسين العرض على الشاشات الصغيرة */
footer {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    font-size: 0.9rem;
    color: #555;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* السهم الذي يشير إلى وجود المزيد من المحتوى */
.scroll-indicator {
    position: absolute;
    bottom: 50px; /* تحديد المسافة من أسفل الصفحة */
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: #007bff; /* تحديد لون السهم */
    cursor: pointer;
    animation: bounce 1s infinite; /* إضافة حركة "القفز" للسهم */
}

/* حركة السهم */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* تحسين عرض الموقع على الشاشات الصغيرة */
@media (max-width: 768px) {
    .header {
        padding: 5px; /* تقليص المسافة داخل الهيدر */
    }

    .logo {
        max-width: 80px; /* تقليص الشعار بشكل أكبر على الشاشات الصغيرة */
    }

    .slogan {
        font-size: 1.1rem; /* تقليل حجم النص في الشعار */
    }

    nav a {
        display: block;
        margin: 5px 0;
        text-align: center; /* توسيط الروابط في الشاشات الصغيرة */
    }

    section {
        width: 95%;
        padding: 15px;
    }

    .banner h2 {
        font-size: 2rem; /* تقليص حجم العنوان في البانر */
    }

    .banner p {
        font-size: 1.2rem; /* تقليص حجم النص في البانر */
    }

    form input[type="text"],
    form input[type="email"],
    form textarea,
    form button {
        font-size: 1rem;
    }

    .scroll-indicator {
        font-size: 25px; /* تصغير السهم على الشاشات الصغيرة */
    }
}

/* تنسيق قسم تواصل معنا والتواصل المباشر */
.contact-section {
    display: flex;
    justify-content: space-between; /* توزيع الأقسام بشكل متساوي */
    gap: 30px; /* المسافة بين الأقسام */
    margin-bottom: 20px;
}

.contact-info {
    flex: 1; /* جعل قسم التواصل يأخذ عرض متساوي */
}

.contact-form {
    flex: 1; /* جعل الفورم يأخذ عرض متساوي مع المعلومات */
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%; /* جعل الحقول تأخذ العرض الكامل */
    margin-bottom: 10px;
}

.contact-form button {
    width: 100%; /* جعل الزر يأخذ العرض الكامل */
}

/* تحسين التصميم على الشاشات الصغيرة */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column; /* ترتيب الأقسام بشكل عمودي في الشاشات الصغيرة */
        gap: 20px;
    }

    .contact-info,
    .contact-form {
        flex: none; /* إعادة الحجم الافتراضي للأقسام */
    }
}
