/* تحسينات قسم الخدمات
   تصميم عصري وتنسيقات متطورة لقسم الخدمات
*/

/* قسم الخدمات المحسن */
.services-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* الأشكال الزخرفية في الخلفية */
.services-shape {
    position: absolute;
    z-index: 1;
}

.services-shape-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(77, 176, 255, 0.2), rgba(10, 58, 120, 0.1));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: floatServices 15s infinite alternate ease-in-out;
}

.services-shape-2 {
    bottom: -80px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, rgba(10, 58, 120, 0.1), rgba(77, 176, 255, 0.2));
    border-radius: 60% 40% 30% 70% / 50% 60% 30% 60%;
    animation: floatServices 20s infinite alternate-reverse ease-in-out;
}

/* رأس القسم */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4db0ff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0a3a78;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4db0ff, #0a3a78);
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    padding: 20px 10px;
}

/* بطاقة الخدمة */
.service-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    top: 0;
    border: 1px solid rgba(77, 176, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border-color: rgba(77, 176, 255, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4db0ff 0%, #0a3a78 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: -35px auto 20px;
    box-shadow: 0 10px 20px rgba(77, 176, 255, 0.3);
    position: relative;
    z-index: 3;
}

.service-content {
    padding: 0 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a3a78;
    margin-bottom: 15px;
    text-align: center;
}

.service-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4db0ff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.service-link:hover {
    color: #0a3a78;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* دعوة للإجراء */
.services-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.services-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #0a3a78, #4db0ff);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(77, 176, 255, 0.4);
    transition: all 0.3s ease;
}

.services-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(77, 176, 255, 0.5);
    background: linear-gradient(45deg, #4db0ff, #0a3a78);
}

.services-btn i {
    transition: transform 0.3s ease;
}

.services-btn:hover i {
    transform: translateX(5px);
}

/* التحريك */
@keyframes floatServices {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    100% {
        transform: translate(-20px, 10px) rotate(-5deg);
    }
}

/* تنسيقات للشاشات المتوسطة */
@media (max-width: 992px) {
    .services-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .services-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .services-shape {
        opacity: 0.5;
    }
}

/* تنسيقات للهواتف الصغيرة */
@media (max-width: 576px) {
    .services-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-top: -30px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .services-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}
