/* Service Carousel Section */
.service-carousel-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    padding: 4rem 0;
    position: relative;
}

.service-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Service Carousel */
.service-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.service-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.service-carousel-item {
    min-width: 320px;
    flex: 0 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

.service-carousel-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-carousel-item:hover .service-carousel-image {
    transform: scale(1.05);
}

.service-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.service-carousel-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-carousel-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-carousel-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-carousel-item:hover .service-carousel-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-carousel-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.service-carousel-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-carousel-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-carousel-features li {
    padding: 0.2rem 0;
    color: var(--gray);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-carousel-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 0.9rem;
}

.service-carousel-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-carousel-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-carousel-item {
        min-width: 280px;
    }
    
    .service-carousel-content {
        padding: 1rem;
    }
    
    .carousel-nav {
        flex-wrap: wrap;
    }
}

/* Ensure all services are visible */
#servicesContainer .service-item {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Better responsive design */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-card-image, 
    .service-card-placeholder {
        height: 180px;
    }
}

/* Ensure no hidden elements */
.service-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}