/* =========================================
   تصفير الإعدادات (CSS Reset & Normalize)
   مهم جداً لتوحيد الشكل على كل المتصفحات
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* بيشيل اللون الأزرق لما تدوس في الموبايل */
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* بيمنع السكرول العرضي تماماً */
    text-rendering: optimizeLegibility; /* بيحسن شكل الخطوط */
    -webkit-font-smoothing: antialiased; /* بيخلي الخطوط ناعمة في أجهزة أبل */
    -moz-osx-font-smoothing: grayscale;
}

/* توحيد شكل الصور */
img {
    max-width: 100%;
    display: block;
}

/* توحيد شكل الأزرار وحقول الإدخال */
button, input, textarea, select {
    font-family: inherit;
    outline: none;
}


/* === إعدادات عامة === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* ===============================
   تصميم الناف بار العالمي (كامل ومعدل) ✨
   =============================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    transition: all 0.3s ease;
}

/* تنسيق اللوجو */
.navbar .logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

/* تنسيق القائمة والروابط (لابتوب) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0; /* ضمان عدم وجود هوامش */
    padding: 0;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* الخط المتحرك تحت الروابط */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #00c4cc;
    transition: width 0.3s ease-in-out;
}

.nav-item:hover {
    color: #00c4cc;
}

.nav-item:hover::after {
    width: 100%;
}

/* زرار الحجز */
.btn-primary {
    background: linear-gradient(45deg, #0056b3, #00c4cc);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* === تنسيق الهامبرغر (زر القائمة) === */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* ===============================
   📱 وضع الموبايل (التعديل هنا)
   =============================== */
@media (max-width: 900px) {
    
    .hamburger {
        display: block;
        z-index: 1002;
    }

    /* حركة الـ X */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* القائمة المنسدلة */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        
        /* ✅ التعديل عشان الكلام يطلع فوق */
        justify-content: flex-start; /* يبدأ الترتيب من أعلى */
        padding-top: 120px; /* مسافة من فوق عشان ينزل تحت اللوجو */
        
        background-color: #fff;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .nav-item {
        font-size: 1.5rem;
        color: #333;
    }
    
    .btn-primary {
        width: 80%;
        display: inline-block;
    }
}


/* ===============================
   تنسيق البانر الرئيسي (Main Banner)
   =============================== */
.main-banner {
    position: relative;
    width: 100%;
    height: 90vh; /* واخد 90% من طول الشاشة عشان يبان إنه بانر ضخم */
    background-image: url('assets/IMAGE/IMG-20250707-WA0026.jpg'); /* 👈 حط مسار صورتك هنا */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 🔥 دي اللي بتخلي الصورة ثابتة والاسكرول بيتحرك عليها */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* طبقة التغميق (Overlay) */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* لون أسود شفاف بنسبة 60% */
    z-index: 1;
}

/* محتوى البانر */
.banner-content {
    position: relative;
    z-index: 2; /* عشان يظهر فوق الطبقة السوداء */
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out; /* حركة ظهور ناعمة */
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* ظل للكلام */
}

.banner-content .highlight {
    color: #00c4cc; /* اللون التركواز المميز بتاعنا */
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* تنسيق الأزرار */
.banner-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* الزرار المفرغ (Outline) */
.btn-outline {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: white;
    color: #0056b3;
}

/* أنيميشن الظهور */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   تعديل للموبايل (Responsive)
   =============================== */
@media (max-width: 768px) {
    .main-banner {
        height: 70vh; /* نقصر الطول شوية في الموبايل */
        /* background-attachment: scroll;  <-- لو الصورة عملت مشاكل في موبايلات الآيفون فعل السطر ده */
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-btns {
        flex-direction: column; /* الأزرار تيجي تحت بعض */
        gap: 15px;
    }
    
    .btn-primary, .btn-outline {
        width: 100%; /* الزرار ياخد العرض كله */
    }
}

/* ===============================
   تنسيق السلايدر (Slider Styling)
   =============================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh; /* ارتفاع السلايدر */
    overflow: hidden;
    background-color: #000; /* لون احتياطي */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* مخفي في البداية */
    transition: opacity 1s ease-in-out; /* نعومة الظهور */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* الشريحة النشطة فقط هي اللي تظهر */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* طبقة التغميق */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* تغميق بنسبة 50% */
    z-index: 2;
}

/* المحتوى */
.slider-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    color: white;
    transform: translateY(30px);
    transition: all 0.5s ease;
    opacity: 0; /* مخفي عشان نعمله أنيميشن */
}

/* أنيميشن للكلام لما الشريحة تظهر */
.slide.active .slider-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s; /* يتأخر شوية بعد الصورة */
}

.slider-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.slider-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.slider-content .highlight {
    color: #00c4cc;
}

/* أزرار التحكم (الأسهم) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 5px;
}

.slider-btn:hover {
    background-color: #00c4cc;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* نقاط التنقل (Dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active, .dot:hover {
    background-color: #00c4cc;
    transform: scale(1.2);
}

/* تنسيق الموبايل */
@media (max-width: 768px) {
    .slider-content h1 { font-size: 2rem; }
    .slider-content p { font-size: 1rem; }
    .slider-btn { padding: 10px; font-size: 1.5rem; }
}
        /* ===============================
   تنسيق قسم الخدمات (Tabs Style)
   =============================== */
.services-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    margin-bottom: 40px;
}

/* تنسيق أزرار التبويب */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: white;
    border: 2px solid #e0e0e0;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

/* الزر النشط */
.tab-btn.active, .tab-btn:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
}

/* تنسيق المحتوى */
.tab-content {
    display: none; /* مخفي افتراضياً */
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block; /* يظهر لما ياخد كلاس active */
}

/* الشبكة (Grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* الكارت */
.service-card {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #00c4cc;
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #777;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* للموبايل */
@media (max-width: 768px) {
    .tab-btn {
        width: 100%; /* الزرار ياخد العرض كله في الموبايل */
        margin-bottom: 10px;
    }
}

/* ===============================
   تنسيق كروت الخدمات بالصور 📸
   =============================== */

/* الكارت نفسه (الحاوية) */
.service-card {
    background: white;
    border-radius: 20px; /* حواف دائرية للكارت كله */
    overflow: hidden; /* عشان الصورة متخرجش بره الحواف المدورة */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

/* لما تقف على الكارت */
.service-card:hover {
    transform: translateY(-10px); /* يطلع لفوق */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-bottom: 4px solid #00c4cc; /* خط ملون يظهر تحت */
}

/* حاوية الصورة */
.card-img {
    width: 100%;
    height: 220px; /* 👈 ارتفاع ثابت لكل الصور عشان يبقوا سوا واحد */
    overflow: hidden; /* عشان لما نعمل زووم الصورة متخرجش بره */
}

/* تنسيق الصورة نفسها */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 أهم سطر: بيظبط أبعاد الصورة اوتوماتيك */
    transition: transform 0.5s ease; /* نعومة حركة الزووم */
}

/* تأثير الزووم عند الوقوف */
.service-card:hover .card-img img {
    transform: scale(1.1); /* تكبير الصورة بنسبة بسيطة */
}

/* تنسيق الكلام تحت الصورة */
.card-text {
    padding: 25px; /* مسافة داخلية للكلام */
    text-align: center; /* توسيط الكلام */
}

.card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.card-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* تعديل للموبايل */
@media (max-width: 768px) {
    .card-img {
        height: 200px; /* تقليل ارتفاع الصورة شوية في الموبايل */
    }
}


        /* ===============================
           تنسيق قسم لماذا نحن (Dark Theme)
           =============================== */
        .about-section {
            padding: 80px 5%;
            background-color: #1a2a3a; /* لون كحلي غامق فخم */
            color: #fff;
            position: relative;
            overflow: hidden;
        }

        .about-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap; /* عشان الموبايل */
            gap: 50px;
        }

        /* تنسيق النصوص */
        .about-text {
            flex: 1;
            min-width: 300px;
        }

        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .highlight-text {
            color: #00c4cc; /* نفس اللون المميز بتاعنا */
        }

        .description {
            color: #b0b8c4;
            margin-bottom: 30px;
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* تنسيق القائمة والمميزات */
        .features-list {
            list-style: none;
        }

        .features-list li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05); /* خلفية شفافة خفيفة */
            border-radius: 10px;
            transition: transform 0.3s ease;
        }

        .features-list li:hover {
            transform: translateX(-10px); /* حركة بسيطة للشمال لما تقف عليها */
            background: rgba(255, 255, 255, 0.1);
        }

        .check-icon {
            background-color: #00c4cc;
            color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 15px; /* مسافة بين الايقونة والنص */
            flex-shrink: 0;
            font-weight: bold;
        }

        .features-list strong {
            display: block;
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: #fff;
        }

        .features-list p {
            color: #aaa;
            font-size: 0.9rem;
            margin: 0;
        }

        /* ===============================
           🖼️ تنسيق الصورة العائمة (The Floating Image)
           =============================== */
        .about-image {
            flex: 1;
            display: flex;
            justify-content: center;
            min-width: 300px;
        }

        .floating-img {
            width: 350px;
            height: 350px;
            background: linear-gradient(45deg, #0056b3, #00c4cc);
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل هلامي مودرن */
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8rem;
            position: relative;
            box-shadow: 0 20px 50px rgba(0, 196, 204, 0.3);
            
            /* 👇 هنا سحر الأنيميشن 👇 */
            animation: float 6s ease-in-out infinite; /* يتحرك للأبد */
        }

        .badge {
            position: absolute;
            bottom: 20px;
            right: -20px;
            background-color: #fff;
            color: #333;
            padding: 15px 25px;
            border-radius: 50px;
            font-weight: bold;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            font-size: 1rem;
            animation: float 5s ease-in-out infinite reverse; /* يتحرك عكس الاتجاه */
        }

        /* تعريف حركة الطيران */
        @keyframes float {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px); /* يطلع لفوق 20 بيكسل */
            }
            100% {
                transform: translateY(0px); /* يرجع تاني */
            }
        }

        /* ريسبونسيف للموبايل */
        @media (max-width: 768px) {
            .about-container {
                flex-direction: column-reverse; /* الصورة فوق والنص تحت في الموبايل */
                text-align: center;
            }
            
            .features-list li {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .check-icon {
                margin: 0 0 10px 0;
            }
            
            .floating-img {
                width: 280px;
                height: 280px;
            }
        }
        /* ===============================
           تنسيق قسم آراء العملاء
           =============================== */
        .reviews-section {
            padding: 80px 5%;
            background-color: #f9f9f9; /* رمادي فاتح جداً للفصل */
            text-align: center;
        }

        .reviews-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 20px 0;
        }

        /* تصميم كارت الرأي */
        .review-card {
            background: #fff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            text-align: right; /* عشان الكلام عربي */
            position: relative;
            transition: all 0.4s ease;
            border-bottom: 4px solid transparent; /* بجهز مكان للخط الملون */
            overflow: hidden;
        }

        /* الحركة لما تقف على الكارت */
        .review-card:hover {
            transform: translateY(-10px); /* يطلع لفوق */
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
            border-bottom-color: #00c4cc; /* الخط اللي تحت يتلون */
        }

        /* علامة التنصيص الخلفية */
        .quote-icon {
            position: absolute;
            top: 10px;
            left: 20px;
            font-size: 6rem;
            color: #f0f0f0; /* لون باهت جداً */
            font-family: serif;
            z-index: 0;
        }

        .review-text {
            color: #555;
            line-height: 1.7;
            font-size: 1.05rem;
            margin-bottom: 25px;
            position: relative;
            z-index: 1; /* عشان الكلام يبقى فوق العلامة */
        }

        /* تنسيق بيانات العميل */
        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 15px;
            border-top: 1px solid #eee;
            padding-top: 20px;
        }

        .avatar {
            width: 50px;
            height: 50px;
            background-color: #e3f2fd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            border: 2px solid #fff;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .details h4 {
            font-size: 1rem;
            color: #333;
            margin-bottom: 3px;
        }

        .details span {
            font-size: 0.85rem;
            color: #888;
            display: block;
        }

        .stars {
            color: #ffc107; /* لون ذهبي */
            font-size: 1.2rem;
            margin-top: 5px;
        }

        /* ===============================
   تنسيق صور العملاء (Reviews) 📸
   =============================== */

/* تنسيق الحاوية الخارجية للصورة */
.review-card .avatar {
    width: 70px; /* عرض الصورة الثابت */
    height: 70px; /* ارتفاع الصورة الثابت */
    flex-shrink: 0; /* عشان الصورة متتصغرش لو الشاشة ضيقة */
    margin-left: 15px; /* مسافة بين الصورة والكلام */
    border-radius: 50%; /* عشان تبقى دائرة */
    overflow: hidden; /* عشان الصورة متخرجش بره الدائرة */
    border: 3px solid #fff; /* برواز أبيض شيك حول الصورة */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* ظل خفيف */
}

/* تنسيق الصورة نفسها جوه الحاوية */
.review-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* أهم سطر: بيخلي الصورة تملا الدائرة من غير ما تتمط أو تتفعص */
}

/* تعديل بسيط على حاوية المعلومات عشان الكلام ييجي جنب الصورة مظبوط */
.reviewer-info {
    display: flex;
    align-items: center; /* يخلي الصورة والكلام على نفس الخط أفقياً */
}
        /* ===============================
   تنسيق سكشن العداد (Stats CSS)
   =============================== */

.stats-section {
    position: relative;
    padding: 100px 5%;
    /* صورة خلفية معبرة (ممكن تغير اللينك بأي صورة عندك) */
    background-image: url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 👈 دي اللي بتعمل حركة الثبات الجامدة */
    text-align: center;
    color: white;
}

/* الطبقة الزرقاء الشفافة */
.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.85); /* أزرق كحلي غامق شفاف */
    z-index: 1;
}

/* الحاوية اللي ماسكة البوكسات */
.stats-container {
    position: relative;
    z-index: 2; /* عشان تظهر فوق الطبقة الشفافة */
    display: grid;
    /* توزيع تلقائي: بيحط بوكسات جنب بعض حسب مساحة الشاشة */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* تصميم البوكس الزجاجي */
.stat-box {
    background: rgba(255, 255, 255, 0.1); /* أبيض شفاف جداً */
    backdrop-filter: blur(8px); /* تأثير "الزغولة" أو البلور */
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* حدود خفيفة */
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px); /* يطلع لفوق لما تقف عليه */
    background: rgba(255, 255, 255, 0.2);
    border-color: #00c4cc; /* الحدود تقلب تركواز */
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

/* تنسيق الرقم */
.counter {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
    color: #fff;
    font-family: sans-serif; /* يفضل خط إنجليزي للأرقام */
}

/* تنسيق الكلام تحت الرقم */
.stat-box p {
    font-size: 1.2rem;
    color: #e0e0e0;
    font-weight: bold;
}

/* ريسبونسيف للموبايل */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 20px;
    }
    .counter {
        font-size: 2.5rem;
    }
}
/* ===============================
   تنسيق قسم التواصل (Contact Section)
   =============================== */
.contact-section {
    padding: 80px 5%;
    background-color: #f0f4f8; /* رمادي مزرق فاتح جداً */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* عشان ياخد طول الشاشة */
}

.contact-container {
    display: flex;
    background-color: #fff;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); /* ضل كبير ناعم */
    flex-wrap: wrap;
}

/* --- الجزء اليمين (المعلومات) --- */
.contact-info {
    flex: 1;
    background: linear-gradient(135deg, #0056b3, #00c4cc); /* التدرج اللوني بتاعنا */
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.info-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-header p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item .icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- الجزء الشمال (الفورم) --- */
.contact-form-wrapper {
    flex: 1.5;
    padding: 50px 40px;
    background-color: #fff;
    min-width: 300px;
}

.contact-form-wrapper h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* تنسيق حقول الإدخال (Floating Labels) */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #ddd; /* خط رمادي تحت فقط */
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* تنسيق الليبل (الكلام اللي بيتحرك) */
.input-group label {
    position: absolute;
    top: 10px;
    right: 0;
    color: #999;
    font-size: 1rem;
    pointer-events: none; /* عشان الضغطة تعدي للإنبوت */
    transition: 0.3s ease all;
}

/* الحركة السحرية: لما تقف في الخانة أو يكون فيها كلام */
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: #0056b3;
    font-weight: bold;
}

/* الخط الملون اللي بيظهر لما تكتب */
.input-group .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    transition: 0.4s ease;
}

.input-group input:focus ~ .highlight,
.input-group textarea:focus ~ .highlight,
.input-group select:focus ~ .highlight {
    width: 100%; /* الخط يملأ المساحة */
}

/* زر الإرسال */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #0056b3, #00c4cc);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

/* ريسبونسيف */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-info, .contact-form-wrapper {
        padding: 30px 20px;
    }
}


/* ===============================
   تنسيق الفوتر "الموت" 🔥
   =============================== */
.footer-section {
    position: relative;
    background-color: #111; /* أسود فحمي */
    color: #b0b0b0; /* رمادي فاتح للكلام */
    padding-top: 150px; /* مساحة عشان الموجة */
    font-size: 0.95rem;
}

/* تنسيق شكل الموجة SVG */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 120px;
}

.custom-shape-divider-top .shape-fill {
    fill: #f0f4f8; /* نفس لون خلفية السكشن اللي قبله عشان الدمج يكون ناعم */
}

/* الشبكة (Grid) */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 5% 50px;
}

/* العناوين */
.footer-col h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* الخط الصغير تحت العناوين */
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* يبدأ من اليمين عشان عربي */
    width: 50px;
    height: 2px;
    background-color: #00c4cc;
}

/* اللوجو */
.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* أيقونات السوشيال */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    border: 1px solid #333;
}

.social-btn:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
    border-color: #0056b3;
}

/* الروابط */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #00c4cc;
    transform: translateX(-10px); /* يتحرك للشمال */
}

/* قائمة التواصل */
.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* النشرة البريدية */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: #222;
    color: #fff;
}

.newsletter-form button {
    padding: 12px;
    background: linear-gradient(to right, #0056b3, #00c4cc);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.newsletter-form button:hover {
    letter-spacing: 1px; /* الحروف تبعد عن بعض شوية */
}

/* حقوق الملكية */
.copyrights {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    background-color: #0d0d0d;
    color: #777;
}

/* زر الصعود للأعلى (Floating Button) */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* حطيته شمال عشان ميعارضش زرار الواتساب لو موجود يمين */
    width: 50px;
    height: 50px;
    background-color: #00c4cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.4);
    opacity: 0; /* مخفي في البداية */
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 196, 204, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 196, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 196, 204, 0); }
}

/* responsive*/
/* =========================================
   📱 كود التجاوب (Responsive Media Queries)
   تنسيقات خاصة للموبايل فقط
   ========================================= */

@media screen and (max-width: 768px) {

    /* 1. تظبيط الجسم العام ومنع القص */
    html, body {
        overflow-x: hidden; /* يمنع السكرول بالعرض */
        width: 100%;
        position: relative;
    }

    /* 2. إصلاح الناف بار (Navbar Fix) */
    .navbar {
        flex-direction: column; /* يرص الحاجة تحت بعض */
        padding: 15px;
        height: auto; /* الارتفاع يبقى مرن */
    }

    .navbar .logo {
        margin-bottom: 15px; /* مسافة تحت اللوجو */
    }

    .nav-links {
        display: flex; /* إظهار الروابط */
        flex-direction: column; /* تحت بعض */
        gap: 10px;
        width: 100%;
        text-align: center;
        padding: 0;
        margin-bottom: 15px;
    }

    .nav-links li {
        margin: 5px 0;
        display: block; /* عشان يشيل النقط (Bullets) */
    }
    
    .nav-links li a {
        display: block;
        padding: 8px;
        background-color: #f9f9f9; /* خلفية خفيفة لكل رابط */
        border-radius: 8px;
    }

    /* 3. إصلاح الواجهة الرئيسية (Hero Section) */
    .hero {
        flex-direction: column-reverse; /* الصورة فوق والكلام تحت */
        padding: 30px 20px;
        text-align: center;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        margin-top: 30px;
    }

    .hero h1 {
        font-size: 2rem; /* تصغير الخط شوية */
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        margin: 0 auto; /* توسيط الصورة */
        font-size: 3rem;
    }

    /* 4. تظبيط الشبكات (Grids) لتكون عمود واحد */
    .services-grid, 
    .reviews-grid, 
    .stats-container, 
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr !important; /* عمود واحد فقط */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* 5. إصلاح قسم "لماذا نحن" */
    .about-container {
        flex-direction: column-reverse;
        gap: 40px;
    }
    
    .floating-img {
        width: 280px;
        height: 280px;
        font-size: 5rem;
    }

    /* 6. إصلاح فورم التواصل */
    .contact-info, .contact-form-wrapper {
        width: 100%;
        min-width: auto;
        padding: 30px 20px;
    }
    
    .contact-container {
        width: 100%;
    }

    /* 7. تظبيط الفوتر والموجة */
    .custom-shape-divider-top svg {
        height: 50px; /* تصغير الموجة عشان متغطيش الكلام */
        width: 200%; /* تمطيط الموجة */
    }
    
    .footer-section {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===============================
   تنسيق الأزرار العائمة (Call & WhatsApp)
   =============================== */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px; /* مكان الحاوية يمين الشاشة */
    display: flex;
    flex-direction: column; /* يرصهم فوق بعض */
    gap: 15px; /* مسافة بين الزرارين */
    z-index: 1000;
}

/* التنسيق المشترك للزرارين */
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none; /* عشان يشيل الخط من تحت الرابط */
}

/* تكبير الأيقونة جوه الزرار */
.float-btn svg {
    width: 32px;
    height: 32px;
}

/* لون زرار الاتصال (أزرق) */
.call-btn {
    background-color: #0056b3;
    animation: pulse-blue 2s infinite; /* نبض خفيف */
}

/* لون زرار الواتساب (أخضر) */
.whatsapp-btn {
    background-color: #25d366;
}

/* حركة لما تقف عليهم */
.float-btn:hover {
    transform: scale(1.1); /* يكبر سنة */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* أنيميشن نبض لزرار الاتصال عشان يلفت النظر */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 86, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

/* تعديل للموبايل (تصغير الحجم شوية) */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn svg {
        width: 26px;
        height: 26px;
    }
}


/* ===============================
   تعديل الموبايل الإجباري 📱
   =============================== */
@media (max-width: 768px) {
    
    .navbar {
        /* !important بتجبر المتصفح ينفذ الأمر */
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        padding: 10px 20px !important;
    }

    .navbar .logo {
        margin: 0 !important;
    }

    .hamburger {
        display: block !important;
        margin: 0 !important;
    }

    /* القائمة تفتح تحتهم */
    .nav-menu {
        top: 70px !important;
    }
}


/* ===============================
   تنسيق العنوان والخطوط (Typography) ✒️
   =============================== */
/* تعميم الخط على الموقع كله لو حابب، أو للعنوان بس */
body {
    font-family: 'Cairo', sans-serif; /* خط كايرو المميز */
}

.section-title {
    text-align: center; /* توسيط الكلام */
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem; /* تكبير الخط */
    font-weight: 900; /* خط تقيل وواضح */
    color: #0056b3; /* اللون الأزرق الأساسي */
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

/* الخط الديكوري الملون تحت العنوان */
.section-title h2::after {
    content: '';
    display: block;
    width: 60%; /* طول الخط */
    height: 4px; /* سمك الخط */
    background-color: #00c4cc; /* اللون السماوي */
    margin: 10px auto 0; /* توسيط الخط */
    border-radius: 2px;
}

.section-title p {
    color: #777;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto; /* توسيط الفقرة */
}

/* ===============================
   تنسيق معرض الصور (Gallery Grid) 🖼️
   =============================== */
.gallery-section {
    padding: 80px 5%;
    background-color: #f8f9fa; /* خلفية رصاصي فاتح جداً */
}

.gallery-grid {
    display: grid;
    /* في اللابتوب: صور جنب بعض بتملأ المساحة */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; /* مسافة بين الصور */
}

/* البرواز وتنسيق الكارت */
.gallery-item {
    position: relative;
    height: 260px; /* ارتفاع ثابت */
    background-color: #fff; /* لون البرواز أبيض */
    padding: 8px; /* سمك البرواز الأبيض */
    border: 1px solid #e0e0e0; /* خط رصاصي خفيف جداً من بره */
    border-radius: 12px; /* تدوير الحواف */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* ظل ناعم */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* حركة لما تقف على الصورة */
.gallery-item:hover {
    transform: translateY(-5px); /* تطلع لفوق سنة */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* الظل يزيد */
    border-color: #00c4cc; /* البرواز الخارجي ينور سماوي */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* الصورة تملا المكان بالظبط */
    border-radius: 8px; /* تدوير للصورة نفسها جوه البرواز */
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* زووم هادي جداً */
}

/* ===============================
   📱 إصلاح الموبايل (أهم جزء)
   =============================== */
@media (max-width: 768px) {
    
    .section-title h2 {
        font-size: 2rem; /* تصغير الخط شوية للموبايل */
    }

    .gallery-grid {
        /* 👈 السطر ده هو الحل: بيجبر الموبايل يعرض صورتين جنب بعض */
        grid-template-columns: repeat(2, 1fr); 
        
        gap: 10px; /* تقليل المسافة بينهم عشان الشاشة صغيرة */
    }

    .gallery-item {
        height: 160px; /* تقليل الارتفاع عشان يتناسب مع العرض الصغير */
        padding: 5px; /* تقليل سمك البرواز */
    }
}


/* زر عرض المزيد داخل كروت الخدمات */
.btn-more {
    display: inline-block;
    margin-top: 15px; /* مسافة بينه وبين الكلام */
    padding: 8px 20px;
    color: #0056b3; /* لون أزرق */
    border: 2px solid #0056b3; /* برواز أزرق */
    border-radius: 50px; /* حواف دائرية */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #0056b3; /* الخلفية تبقى زرقاء */
    color: #fff; /* الكلام يبقى أبيض */
    transform: translateX(-5px); /* حركة بسيطة للشمال */
}