/* Custom Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

html { scroll-behavior: smooth; }

/* Floating WA Button */
.float-wa {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.float-wa:hover { transform: scale(1.1); background-color: #20ba5a; }

/* Hero Background */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}

/* YANI AI Background */
.yani-bg {
    background: radial-gradient(circle at center, #1e3a8a 0%, #000000 100%);
    position: relative; overflow: hidden;
}

/* Hide Scrollbar */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* FAQ Animation */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .5s ease-in-out; }
@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

/* === ETALASE INFINITE SCROLL & SQUARE STYLES === */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* Loop adjustment */
}

.animate-infinite-scroll {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite; /* Kecepatan animasi */
}

/* Pause animasi saat hover */
.animate-infinite-scroll:hover {
    animation-play-state: paused;
}

/* KARTU KOTAK (SQUARE) */
.showcase-item {
    width: 280px;      /* Lebar */
    height: 280px;     /* Tinggi = Lebar (Agar Kotak) */
    flex-shrink: 0;
    margin-right: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #f3f4f6;
}

.showcase-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

/* GAMBAR CROP OTOMATIS */
.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memotong gambar agar pas di kotak */
    object-position: center;
}