/* استايل الخدمات المحدث */
#services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTIwMCA4MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgxMjAwdjgwMEgweiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wMiIvPjwvc3ZnPg==');
    opacity: 0.6;
    z-index: 0;
}

#services .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(13, 110, 253, 0.1);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    margin: 15px auto 25px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(13, 110, 253, 0.1);
}


.service-card .service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1;
}

.service-card h5 {
    position: absolute;
    top: 20px;
    right: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 5px 15px;
    background: linear-gradient(90deg, #00bcd4 0%, #7f9cf5 100%);
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .service-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.service-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 767.98px) {
    #services {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .service-card .service-img {
        height: 180px;
    }
}

/* تنسيقات للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-card .service-img {
        height: 200px;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.service-card:hover {
    animation: float 3s ease-in-out infinite;
}

    .service-card h5 {
        font-size: 0.98rem;
    }
    .service-card p {
        font-size: 0.93em;
    }
