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

/* قسم الخدمات */
.services-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    clear: both;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.03) 0%, rgba(111, 66, 193, 0.06) 100%);
    z-index: 0;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.1) 0%, rgba(111, 66, 193, 0) 70%);
    z-index: 0;
    border-radius: 50%;
}

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

.services-title h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center !important;
    position: relative;
    display: block;
    width: 100%;
    direction: rtl !important;
}

.services-title p {
    font-size: 1.2rem;
    color: #555;
    text-align: center !important;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    display: block;
    width: 100%;
    direction: rtl !important;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* بطاقات الخدمات - النمط المستطيل */
.service-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* تصميم البطاقة العصرية */
.service-card.modern-card {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

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

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

.service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

/* شارة الخدمة (جديد/الأكثر طلباً) */
.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* محتوى الخدمة */
.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(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-top: -60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}

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

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

/* ميزات الخدمة */
.service-features {
    margin-top: 20px;
    margin-bottom: 25px;
    background-color: rgba(111, 66, 193, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

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

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

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

/* معلومات الخدمة (السعر والزر) */
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* سعر الخدمة */
.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* زر الحجز */
.service-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .services-title h2 {
        font-size: 2.5rem;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-top: -50px;
    }
}

@media (max-width: 576px) {
    .services-title h2 {
        font-size: 2rem;
    }

    .services-title p {
        font-size: 1rem;
    }

    .service-image {
        height: 160px;
    }

    .service-content {
        padding: 15px;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-top: -40px;
    }
}

/* الوضع الليلي */
body.dark-mode .services-section {
    background-color: #1a1a1a;
}

body.dark-mode .service-card {
    background-color: #2a2a2a;
    border-color: #333;
}

body.dark-mode .service-card.modern-card {
    background: linear-gradient(to bottom, #2a2a2a, #222222);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

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

body.dark-mode .service-features {
    background-color: rgba(111, 66, 193, 0.1);
}

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

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

body.dark-mode .service-image img {
    filter: brightness(0.9);
}
