/* تحسينات قسم الخدمات - Enhanced Services Styles
   تنسيقات مخصصة لقسم الخدمات وعرضها بشكل أكثر جاذبية
*/

/* قسم الخدمات */
.services-section {
    padding: 60px 0;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: cover;
    opacity: 0.04;
    z-index: 0;
}

/* شبكة الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* بطاقة الخدمة */
.service-card-premium {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(10, 58, 120, 0.1);
}

.service-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.service-card-premium:hover::after {
    transform: scaleX(1);
}

/* أيقونة الخدمة */
.service-icon-premium {
    width: 85px;
    height: 85px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 58, 120, 0.05) 0%, rgba(26, 91, 170, 0.05) 100%);
    transition: all 0.3s ease;
}

.service-card-premium:hover .service-icon-premium {
    background: linear-gradient(135deg, rgba(10, 58, 120, 0.1) 0%, rgba(26, 91, 170, 0.1) 100%);
    transform: scale(1.05);
}

.service-icon-premium img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.service-card-premium:hover .service-icon-premium img {
    transform: scale(1.1);
}

/* محتوى الخدمة */
.service-content-premium {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content-premium h3 {
    font-size: 22px;
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.service-content-premium h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
}

.service-content-premium p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* زر المزيد */
.service-card-premium .btn-premium {
    margin-top: auto;
    align-self: center;
}

/* تأثير الظهور بالتدريج */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid .service-card-premium {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.services-grid .service-card-premium:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid .service-card-premium:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid .service-card-premium:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid .service-card-premium:nth-child(4) {
    animation-delay: 0.4s;
}

.services-grid .service-card-premium:nth-child(5) {
    animation-delay: 0.5s;
}

.services-grid .service-card-premium:nth-child(6) {
    animation-delay: 0.6s;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-content-premium {
        padding: 20px;
    }
    
    .service-content-premium h3 {
        font-size: 20px;
    }
}
