.services-container {
    padding: 80px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
}

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

.service-img {
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(78, 84, 200, 0.8), rgba(143, 148, 251, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    text-align: center;
}

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

.service-overlay h3 {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-overlay p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-service {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-service:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.service-content {
    padding: 20px;
    background-color: var(--primary-color);
}

.service-content h3 {
    font-weight: 600;
    color: white;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Tambahkan ini di CSS Anda */
.service-card.active .service-img img {
    transform: scale(1.1);
}

.service-card.active .service-overlay {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .service-card.active-mobile .service-overlay {
        opacity: 1 !important;
        background: linear-gradient(to bottom,
                rgba(78, 84, 200, 0.7),
                rgba(143, 148, 251, 0.8)) !important;
    }

    .service-card.active-mobile .service-img {
        position: relative;
    }

    .service-card.active-mobile .service-img img {
        opacity: 1 !important;
        transform: scale(1.03) !important;
        filter: brightness(0.9);
    }

    .service-img {
        position: relative;
        z-index: 1;
    }

    .service-overlay {
        z-index: 2;
    }
}