/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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 Section */
/* إضافة ظل لصورة الهيرو */
.hero {
    background: url('images/1.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;
    
}


/* الخط الأصفر بجانب العنوان */
.yellow-line {
    display: block;
    width: 8px;
    height: 70px;
    background: #FDB912;
    border-radius: 0; /* حواف حادة */
    opacity: 0;
    transform: scaleY(0);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
/* عند ظهور القسم يتم تفعيل الخط */
.about.visible .yellow-line {
    opacity: 1;
    transform: scaleY(1);
}
.hero p {
    font-size: 20px;
    color: #ffffff;
    margin-top: 5px;
}/* تنسيق قسم About Us */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

/* تحسين النص وإعطاؤه تأثير الحركة */
.about h2 {
    font-size: 42px;
    color: #147ED4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.about p {
    font-size: 18px;
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.6;
}

/* تصميم القسمين داخل About Us */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    gap: 30px;
}

/* تنسيق النص */
.about-text {
    flex: 1;
    text-align: left;
}

.about-text h4 {
    font-size: 36px;
    color: #147ED4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text p {
    font-size: 18px;
    color: #333;
    max-width: 600px;
}

/* تحسين الصور في سكشن "من نحن" */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible; /* السماح للصورة بالخروج أثناء التكبير */
}

/* تعديل الصورة لتكبيرها بدون قص */
.about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, box-shadow 0.2s ease-in-out;
    will-change: transform; /* تحسين الأداء */
}

/* عند التمرير، الصورة تتحرك للأعلى وتصبح واضحة */
.about-container.visible .about-image img {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* عند تحريك الماوس، تكبر الصورة بدون قص */
.about-image img:hover {
    transform: scale(1.1) rotate(1deg);
    box-shadow: 0px 10px 30px rgba(0, 153, 255, 0.527);
}



/* تبديل الاتجاه للقسم الثاني */
.about-container.reverse {
    flex-direction: row-reverse;
}

/* جعل التصميم متجاوبًا */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-container.reverse {
        flex-direction: column;
    }

    .about-text {
        text-align: center;
    }
}
/* تحسين قسم Why Choose Us */
.why-choose {
    background: #f4f4f4;
    padding: 80px 20px;
    text-align: center;
}

.why-choose h2 {
    font-size: 36px;
    color: #147ED4;
    margin-bottom: 30px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    color: #147ED4;
    font-size: 22px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
    color: #333;
}

/* تحسين قسم الفريق */
.team {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}

.team h2 {
    font-size: 36px;
    color: #147ED4;
    margin-bottom: 30px;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.member {
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
}

.member:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #147ED4;
    transition: transform 0.5s ease;
}

.member:hover img {
    transform: rotate(5deg);
}

.member h3 {
    margin: 15px 0 5px;
    font-size: 20px;
    color: #333;
}

.member p {
    font-size: 16px;
    color: #666;
}

/* ==================== 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;
}
/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
       
    }
    .features, .team-members {
        flex-direction: column;
    }

    .feature, .member {
        width: 90%;
        margin: auto;
    }
    .hero {
        margin-top: 100px;
    }
}

