/* Animasi muncul berlahan (fade in) saat pindah halaman */
.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efek transisi halus untuk hover kartu */
.kartu-hover {
    transition: all 0.3s ease;
}
.kartu-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Scrollbar kustom agar terlihat modern */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Menyembunyikan scrollbar untuk slider horizontal tapi tetap bisa di-scroll */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth; /* Smooth scroll */
}

/* Infinity Slider Animation */
@keyframes scrollInfinity {
    0% { transform: translateX(0); }
    /* Menggeser persis 1 set kartu (50% dari total track + kompensasi gap 0.75rem) */
    100% { transform: translateX(calc(-50% - 0.75rem)); } 
}
.animate-scroll-infinity {
    animation: scrollInfinity 30s linear infinite;
}
.animate-scroll-ulasan {
    animation: scrollInfinity 30s linear infinite;
}
.hover-pause:hover {
    animation-play-state: paused;
}