.service-card {
    transition: all 0.3s ease;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(162, 89, 198, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, 
        rgba(162, 89, 198, 0.12) 0%, 
        rgba(247, 178, 230, 0.15) 50%, 
        rgba(162, 89, 198, 0.12) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border: 1px solid rgba(162, 89, 198, 0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, 
        rgba(162, 89, 198, 0.2) 0%, 
        rgba(247, 178, 230, 0.15) 40%, 
        rgba(162, 89, 198, 0.08) 70%,
        transparent 100%);
    border-radius: 50%;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: scale(0.8);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(162, 89, 198, 0.15);
    border-color: rgba(162, 89, 198, 0.2);
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(162, 89, 198, 0.25);
}

.service-card:hover::after {
    opacity: 1;
    width: 120px;
    height: 120px;
    transform: scale(1.1);
    bottom: 5px;
    right: 5px;
}

.service-card i {
    background: linear-gradient(135deg, rgba(162, 89, 198, 0.3) 0%, rgba(247, 178, 230, 0.3) 100%);
    padding: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(162, 89, 198, 0.2) 0%, rgba(247, 178, 230, 0.2) 100%);
}

.service-card h6 {
    color: #2d2d2d;
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.service-card p {
    color: #666;
    margin: 0;
}

.service-category-slider {
    display: flex;
    align-items: center;
    position: center;
    overflow: hidden;
}

.service-category-slider #categorySliderRow {
    display: flex;
    scroll-behavior: smooth;
    overflow-x: auto;
    padding: 1rem 0;
    /* buat ditengah */
    justify-content: center;
    align-items: center;
}

.category-prev,
.category-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-prev {
    left: 10px;
}

.category-next {
    right: 10px;
}

.category-prev:hover,
.category-next:hover {
    background: #a259c6;
    color: white;
}

#kategori {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px !important;
}

#kategori::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(162, 89, 198, 0.1) 50%, transparent 100%);
}

#kategori::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(162, 89, 198, 0.1) 50%, transparent 100%);
}

@media (max-width: 768px) {
    .service-card {
        min-height: 180px;
        padding: 1.5rem 1rem;
    }
    
    .service-card i {
        padding: 1rem;
    }
    
    .service-card h6 {
        font-size: 1rem;
    }
    
    .category-prev,
    .category-next {
        display: none;
    }
}
