/* تصميم قسم الترحيب */
#welcome-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s ease;
    perspective: 1000px; /* تأثير المنظور */
}

#welcome-section.hidden {
    opacity: 0;
    visibility: hidden;
}

#welcome-section img {
    width: 120px; /* تعديل الحجم حسب الحاجة */
    height: auto;
    animation: rotateLogo 2s linear infinite; /* إضافة الدوران ثلاثي الأبعاد */
    transform-style: preserve-3d; /* الحفاظ على التأثير ثلاثي الأبعاد */
}

@keyframes bounceRotateLogo {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    30% {
        transform: rotate(30deg) translateY(-15px);
    }
    50% {
        transform: rotate(-30deg) translateY(10px);
    }
    70% {
        transform: rotate(15deg) translateY(-5px);
    }
    100% {
        transform: rotate(360deg) translateY(0);
    }
}

.logo img {
    animation: bounceRotateLogo 2s ease-in-out infinite;
}

/* الشريط العلوي */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85); /* خلفية داكنة */
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* ظل ثلاثي الأبعاد */
    backdrop-filter: blur(8px); /* تأثير التمويه للخلفية */
    position: fixed;
    top: 0;
    left: 0;
    width:   98%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.navbar:hover {
    transform: translateY(-5px); /* تأثير التحويم */
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.5); /* تغيير الظل عند التحويم */
}

/* محاذاة الشعار */
.logo img {
    max-width: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)); /* تأثير الإضاءة */
}

/* روابط الشريط العلوي */
.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin: 0 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #00FF00; /* لون أخضر */
    font-size: 18px;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    background-color: rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: rgba(0, 255, 0, 0.3); /* تأثير عند التحويم */
    color: white;
    transform: translateY(-4px);
}

/* القائمة المنسدلة */
.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #00FF00;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.dropbtn:hover {
    background-color: rgba(0, 255, 0, 0.6);
    transform: translateY(-4px);
}

/* محتوى القائمة المنسدلة */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    display: block;
}

    /* تنسيق الإحصائيات */
.stats-container {
        flex-direction: column;
        align-items: center;
    }

    /* تنسيق الشهادات */
.clients-slider {
        flex-direction: column;
        align-items: center;
    }

    /* تنسيق الشراكات */
.partner-logos {
        flex-direction: column;
        align-items: center;
    }
    

/* استجابة للأجهزة الصغيرة جدًا (هواتف محمولة) */
@media screen and (max-width: 480px) {
    /* الشريط العلوي */
    .navbar {
        padding: 10px;
    }

    /* محاذاة الروابط */
    .nav-links a {
        font-size: 16px;
    }

    .logo img {
        max-width: 35px;
    }

    /* إضافة المسافة بين الأقسام */
    .social-media, .contact-btn {
        margin-top: 20px;
        text-align: center;
    }

    /* تغيير صورة الشعار في قسم الترحيب */
    #welcome-section img {
        width: 150px; /* تقليص الحجم أكثر في الشاشات الصغيرة جدًا */
    }
}


/* تنسيق القسم الرئيسي للصفحة */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* تقليص الارتفاع */
    background: linear-gradient(45deg, #0066cc, #00b3b3); /* تدرج لوني عصري يعكس التقنية */
    color: white;
    text-align: center;
    padding: 10px; /* تقليص المسافة الداخلية */
    position: relative;
}

.home-content {
    max-width: 250px; /* تقليص الحد الأقصى للعرض */
    z-index: 1; /* لضمان أن النص يظهر فوق الشعار */
}

.home h1 {
    font-size: 2.5rem; /* تقليص حجم العنوان */
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-bottom: 8px; /* تقليص المسافة السفلية */
    animation: fadeIn 2s ease-out;
}

.home p {
    font-size: 1.1rem; /* تقليص حجم النص */
    margin-bottom: 20px; /* تقليص المسافة السفلية */
    line-height: 1.5; /* تقليص المسافة بين الأسطر */
    animation: fadeIn 2s ease-out 0.5s;
}

.home-logo {
    position: absolute;
    bottom: 5%; /* تقليص المسافة من الأسفل */
    right: 50%;
    transform: translateX(50%);
    animation: rotateLogo 5s infinite linear; /* تأثير الدوران للشعار */
    z-index: 0; /* خلف النص */
}


/* التأثيرات الحركية */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px); /* حركة أكبر في البداية */
    }
    50% {
        opacity: 0.5; /* منتصف التلاشي */
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateLogo {
    0% {
        transform: rotate(0deg); /* بداية الشعار بدون دوران */
    }
    50% {
        transform: rotate(180deg); /* دوران نصف دورة */
    }
    100% {
        transform: rotate(360deg); /* إتمام الدورة كاملة */
    }
}

.logo-animation {
    width: 150px; /* تعديل الحجم حسب الحاجة */
    height: auto;
    fill: white; /* لون الشعار */
    animation: rotateLogo 6s infinite linear; /* إضافة تأثير دوران للشعار */
}

/* تأثيرات عند التفاعل مع الشعار */
.logo-animation:hover {
    transform: rotate(45deg) scale(1.1); /* إضافة تأثير تكبير ودوران عند التمرير */
    transition: transform 0.3s ease; /* جعل التفاعل مع الشعار سلسًا */
}





/* عرض الخدمات */
.services-preview {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.services-preview h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.services-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    width: 25%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.service-item h3 {
    font-size: 22px;
    margin-top: 10px;
}

#galerie h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

#galerie p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #666;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  overflow: hidden; /* إخفاء الصور الخارجة عن الإطار */
  width: 100%;
  max-width: 800px; /* عرض ثابت للمعرض */
  margin: 0 auto;
}

.carousel {
  display: flex;
  gap: 20px; /* مسافة بين الصور */
  animation: scroll 10s linear infinite; /* حركة تمرير مستمرة */
}

.carousel img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%; /* جعل الصور دائرية */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف للصور */
}

/* Animation */
@keyframes scroll {
  0% {
    transform: translateX(0); /* بداية الحركة */
  }
  100% {
    transform: translateX(-100%); /* تمرير الصور بالكامل */
  }
}


/* قسم الإحصائيات */
.stats {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.stats h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-item h3 {
    font-size: 40px;
    color: #007BFF;
    margin: 10px 0;
    font-weight: bold;
}

.stat-item p {
    font-size: 16px;
    color: #555;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .stat-item {
        width: 100%;
    }
}



/* الفقرة العامة */
.clients {
    text-align: center; /* توسيط النص */
    margin: 50px 0; /* مسافة فوق وتحت الفقرة */
}

.clients h2 {
    font-size: 2.5em; /* حجم العنوان */
    margin-bottom: 15px; /* مسافة بين العنوان والنص */
    color: #333; /* لون العنوان */
}

.clients p {
    font-size: 1.2em; /* حجم النص */
    color: #555; /* لون النص */
    margin-bottom: 30px; /* مسافة تحت النص */
}

/* الشريط الخاص بالعملاء */
.clients-slider {
    position: relative;
    width: 230px; /* عرض الشريط */
    height: 150px; /* طول الشريط */
    margin: 0 auto; /* توسيط الشريط */
    overflow: hidden; /* إخفاء الصور الخارجة عن الإطار */
    border-radius: 15px; /* زوايا مستديرة */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ظل جميل */
    background-color: #f7f7f7; /* خلفية فاتحة */
}

/* الصور داخل الشريط */
.clients-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* جعل الصورة تأخذ عرض الإطار */
    height: 100%; /* جعل الصورة تأخذ طول الإطار */
    object-fit: cover; /* يجعل الصورة تغطي الإطار كاملاً */
    opacity: 0; /* إخفاء الصور افتراضيًا */
    transition: opacity 1s ease-in-out; /* تأثير الانتقال بين الصور */
}

.clients-slider img.active {
    opacity: 1; /* إظهار الصورة النشطة */
}






/* مواقع التواصل الاجتماعي */
/* تنسيق الفقرة المجمعة */
.social-media-contact {
    text-align: center; /* توسيط النص */
    margin: 30px 0; /* مسافة خارجية للفقرة */
    padding: 20px; /* مسافة داخلية */
    background-color: #f9f9f9; /* خلفية خفيفة */
    border-radius: 10px; /* زوايا مستديرة */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* ظل خفيف */
}

/* تحسين فقرة مواقع التواصل الاجتماعي */
.social-media h2 {
    font-size: 1.8em; /* حجم العنوان */
    margin-bottom: 20px; /* مسافة بين العنوان والأيقونات */
    color: #333;
}

.social-icons a {
    display: inline-block;
    font-size: 1.5em; /* حجم النص أو الأيقونة */
    color: #0077b5; /* لون أيقونة LinkedIn */
    margin: 0 10px; /* مسافة بين الأيقونات */
    text-decoration: none; /* إزالة الخط السفلي */
    transition: color 0.3s ease, transform 0.2s ease; /* تأثير عند التمرير */
}

.social-icons a:hover {
    color: #005582; /* لون مختلف عند التمرير */
    transform: scale(1.1); /* تكبير بسيط عند التمرير */
}

/* تحسين تنسيق الزر */
.contact-btn {
    margin: 20px 0; /* إضافة مسافة حول الزر */
}

.btn-contact {
    display: inline-block;
    background-color: #28a745; /* لون خلفية الزر */
    color: #fff; /* لون النص */
    font-size: 1.2em; /* حجم النص */
    padding: 10px 20px; /* مسافات داخل الزر */
    border: none; /* إزالة الحدود */
    border-radius: 5px; /* جعل الزوايا مستديرة */
    text-decoration: none; /* إزالة الخط السفلي للرابط */
    transition: background-color 0.3s ease, transform 0.2s ease; /* تأثير الانتقال */
}

.btn-contact:hover {
    background-color: #218838; /* لون عند التمرير */
    transform: scale(1.05); /* تكبير الزر عند التمرير */
}




/* قسم الشهادات */
.testimonials {
    background-color: #f0f0f0;
    padding: 50px 0;
}

.testimonials h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.testimonial-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}
.testimonial-item blockquote {
    font-size: 18px;
    color: #555;
    margin: 0;
    font-style: italic;
}

.testimonial-item cite {
    font-size: 16px;
    font-weight: bold;
    color: #00FF00;
    margin-top: 10px;
}

/* قسم الأسئلة الشائعة */
.faq {
    background-color: #fff;
    padding: 50px 0;
}

.faq h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00FF00;
}

.faq-item p {
    font-size: 16px;
    color: #555;
}

/* قسم التواصل */
.contact-form {
    background-color: #f0f0f0;
    padding: 50px 0;
}

.contact-form h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.contact-form form {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00FF00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.contact-form button {
    background-color: #00FF00;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}
/* قسم الشراكات */
.partners {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.partners h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.partner-logos img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.partner-logos img:hover {
    transform: scale(1.1);
}

/* التذييل */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
/* استجابة للأجهزة الصغيرة (تحت 768px) */
@media screen and (max-width: 768px) {
    /* الشريط العلوي */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        position: relative; /* وضع نسبي لتحريك الزر */
    }

    /* زر القائمة */
    .menu-toggle {
        display: block;
        background-color: #007bff; /* تغيير لون الخلفية */
        border: none;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        top: 20px;
        right: 20px;
        border-radius: 5px; /* إضافة حواف دائرية للزر */
    }

    /* تغيير الأشرطة داخل الزر */
    .menu-toggle .bar {
        display: block;
        width: 30px;
        height: 4px;
        margin: 5px auto;
        background-color: #fff; /* تغيير لون الأشرطة داخل الزر */
        transition: all 0.3s ease;
    }

    /* محاذاة الروابط */
    .nav-links {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
        display: none; /* إخفاء القائمة بشكل افتراضي */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* الشعار */
    .logo img {
        max-width: 40px;
    }

    /* تغيير صورة الشعار في قسم الترحيب */
    #welcome-section img {
        width: 200px;
    }
}


/* استجابة للأجهزة الكبيرة (أجهزة الحاسوب) */
@media screen and (min-width: 769px) {
    /* إخفاء زر القائمة على الشاشات الكبيرة */
    .menu-toggle {
        display: none;
    }

    /* عرض القائمة بشكل افتراضي على الشاشات الكبيرة */
    .nav-links {
        display: flex;
        flex-direction: row; /* محاذاة الروابط بشكل أفقي */
        margin-top: 0;
    }

    .nav-links li {
        margin: 0 15px;
    }

    .nav-links a {
        padding: 10px 15px;
        text-align: center;
    }
}

.whatsapp-icon {
    display: inline-block;
    width: 50px; /* عرض الأيقونة */
    height: 50px; /* ارتفاع الأيقونة */
    background-color: #25D366; /* لون الخلفية */
    color: white; /* لون الأيقونة */
    border-radius: 50%; /* جعل الشكل دائريًا */
    text-align: center; /* محاذاة الأيقونة في المنتصف */
    line-height: 50px; /* لجعل الأيقونة في منتصف الزر */
    font-size: 24px; /* حجم الأيقونة */
    transition: background-color 0.3s ease; /* تأثير التغيير عند التمرير */
}

.whatsapp-icon:hover {
    background-color: #1DA851; /* لون الخلفية عند التمرير */
}

.whatsapp-icon i {
    line-height: inherit; /* محاذاة الأيقونة */
}
