/* Services Slider Section Styles */
.services-slider-section {
    padding: 80px 0;
    background-color: #1a1625;
    position: relative;
    overflow: hidden;
}

.services-slider-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 61, 221, 0.05) 0%, rgba(216, 96, 236, 0.05) 100%);
    z-index: 0;
}

.services-slider-section .container {
    position: relative;
    z-index: 1;
}

.services-slider-section .section-header {
    margin-bottom: 50px;
    text-align: center;
}

.services-slider-section .section-header .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-slider-section .section-header .section-heading {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-slider-section .section-header .section-subheading {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Swiper Container */
.services-slider-wrapper {
    position: relative;
    padding: 20px 0 60px;
    overflow: visible;
}

.services-slider {
    overflow: visible;
    padding-bottom: 50px;
}

/* عرض الشريحة يتحكم به Swiper حسب slidesPerView - عدة كروت في الصف مثل صفحة الخدمات */
.services-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Service Card - حجم محسّن لعدة كروت في الصف */
.service-slide-card {
    background-color: #2d2835;
    padding: 25px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.6s ease;
    overflow: hidden;
    min-height: 280px;
}

.service-slide-card a {
    text-decoration: none;
    display: block;
}

.service-slide-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.service-slide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.service-slide-card:hover {
    background-color: #221f27;
    transform: translateY(-10px);
    border-color: rgba(122, 61, 221, 0.3);
    box-shadow: 0 10px 30px rgba(122, 61, 221, 0.2);
}

.service-slide-card:hover::before {
    transform: scaleX(1);
}

.service-slide-card .service-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-slide-card .service-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    opacity: 0.2;
    transition: all 0.6s ease;
    z-index: 0;
}

.service-slide-card:hover .service-image-wrapper::before {
    opacity: 0.3;
    transform: scale(1.1);
}

.service-slide-card .service-image-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: all 0.6s ease;
}

.service-slide-card:hover .service-image-wrapper img {
    transform: scale(1.1);
}

.service-slide-card .service-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-slide-card .service-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-slide-card:hover .service-title {
    color: var(--primary-color);
}

.service-slide-card .service-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    flex: 1;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Swiper Navigation */
.services-slider-wrapper .swiper-button-next,
.services-slider-wrapper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: #2d2835;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -25px;
}

.services-slider-wrapper .swiper-button-next::after,
.services-slider-wrapper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

.services-slider-wrapper .swiper-button-next:hover,
.services-slider-wrapper .swiper-button-prev:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: transparent;
    transform: scale(1.1);
}

.services-slider-wrapper .swiper-button-prev {
    left: -25px;
}

.services-slider-wrapper .swiper-button-next {
    right: -25px;
}

/* Swiper Pagination */
.services-slider-wrapper .swiper-pagination {
    bottom: 0;
    position: absolute;
}

.services-slider-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.services-slider-wrapper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Responsive Design */
@media (min-width: 1200px) {
    .service-slide-card {
        padding: 24px 18px;
        min-height: 260px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 16px;
    }
    
    .service-slide-card .service-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .service-slide-card .service-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 1199px) {
    .services-slider-wrapper .swiper-button-prev {
        left: 10px;
    }
    
    .services-slider-wrapper .swiper-button-next {
        right: 10px;
    }
    
    .service-slide-card {
        padding: 24px 18px;
        min-height: 270px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 75px;
        height: 75px;
        margin-bottom: 16px;
    }
    
    .service-slide-card .service-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .service-slide-card .service-description {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .services-slider-section {
        padding: 60px 0;
    }
    
    .services-slider-section .section-header .section-heading {
        font-size: 32px;
    }
    
    .service-slide-card {
        padding: 22px 16px;
        min-height: 250px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
    }
    
    .service-slide-card .service-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .service-slide-card .service-description {
        font-size: 12px;
    }
    
    .services-slider-wrapper .swiper-button-prev,
    .services-slider-wrapper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .services-slider-wrapper .swiper-button-next::after,
    .services-slider-wrapper .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .services-slider-section .section-header .section-heading {
        font-size: 28px;
    }
    
    .service-slide-card {
        padding: 20px 15px;
        min-height: 240px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 65px;
        height: 65px;
        margin-bottom: 12px;
    }
    
    .service-slide-card .service-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .service-slide-card .service-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .services-slider-wrapper .swiper-button-prev,
    .services-slider-wrapper .swiper-button-next {
        display: none;
    }
}

@media (max-width: 575px) {
    .services-slider-section {
        padding: 40px 0;
    }
    
    .services-slider-section .section-header {
        margin-bottom: 40px;
    }
    
    .services-slider-section .section-header .section-heading {
        font-size: 24px;
    }
    
    .service-slide-card {
        padding: 18px 12px;
        min-height: 220px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }
    
    .service-slide-card .service-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .service-slide-card .service-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .services-slider-section {
        padding: 30px 0;
    }
    
    .services-slider-section .section-header {
        margin-bottom: 30px;
    }
    
    .services-slider-section .section-header .section-heading {
        font-size: 20px;
    }
    
    .services-slider-section .section-header .section-subheading {
        font-size: 14px;
    }
    
    .service-slide-card {
        padding: 20px 10px;
        min-height: 250px;
    }
    
    .service-slide-card .service-image-wrapper {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
    }
    
    .service-slide-card .service-image-wrapper img {
        width: 75%;
        height: 75%;
    }
    
    .service-slide-card .service-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .service-slide-card .service-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
}

/* Sub Services Count */
.sub-services-count {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 8px;
    font-weight: 600;
}

/* Sub Services Modal */
.sub-services-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.sub-services-modal-content {
    background-color: #2d2835;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.sub-services-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s;
}

.sub-services-close:hover,
.sub-services-close:focus {
    color: var(--primary-color);
}

.sub-services-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-right: 40px;
}

.sub-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sub-service-item {
    background-color: #251f2f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sub-service-item:hover {
    background-color: #221f27;
    transform: translateY(-5px);
    border-color: rgba(122, 61, 221, 0.3);
    box-shadow: 0 5px 15px rgba(122, 61, 221, 0.2);
}

.sub-service-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sub-service-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.sub-service-content {
    text-align: center;
}

.sub-service-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sub-service-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .sub-services-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .sub-services-title {
        font-size: 22px;
    }
    
    .sub-services-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sub-service-item {
        padding: 15px;
    }
}

