/**
 * تصميم حديث لقسم الخدمات - نسخة 2
 */

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

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--primary-color-rgb), 0.1) 100%);
    z-index: 0;
}

/* عنوان القسم */
.services-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.services-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.services-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.services-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

/* حاوية الخدمات */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* بطاقة الخدمة */
.service-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* صورة الخدمة */
.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* شارة الخدمة */
.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* محتوى الخدمة */
.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* أيقونة الخدمة */
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: -60px auto 15px;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    z-index: 2;
    border: 5px solid #fff;
}

/* عنوان الخدمة */
.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

/* وصف الخدمة */
.service-description {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
    flex-grow: 1;
}

/* ميزات الخدمة */
.service-features {
    margin-top: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.features-list li i {
    color: var(--primary-color);
    margin-left: 8px;
    margin-top: 4px;
}

/* بيانات الخدمة */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
    color: #fff;
}

/* تأثيرات إضافية */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 15px;
}

.service-card:hover::before {
    opacity: 1;
}

/* تحسينات للوضع المظلم */
.dark-mode .services-section {
    background-color: #1a1a1a;
}

.dark-mode .services-title h2 {
    color: #fff;
}

.dark-mode .services-title p {
    color: #ccc;
}

.dark-mode .service-card {
    background-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .service-icon {
    border-color: #2a2a2a;
}

.dark-mode .service-title {
    color: #fff;
}

.dark-mode .service-description {
    color: #ccc;
}

.dark-mode .service-features {
    background-color: #333;
}

.dark-mode .features-title {
    color: #fff;
}

.dark-mode .features-list li {
    color: #ccc;
}

.dark-mode .service-meta {
    border-top-color: #444;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .services-title h2 {
        font-size: 2.2rem;
    }
    
    .services-title p {
        font-size: 1rem;
    }
    
    .service-card {
        max-width: 100%;
        height: auto;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-top: -50px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
