@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Premium Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Preloader Animation */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0f172a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ENGINE EFEK KLIK INTERAKTIF - BENNY CONTROL CENTER
   ========================================================================== */

/* 1. Gaya untuk Riak Air (Ripple) */
.click-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.35); /* Warna biru brand transparan */
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 9998;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 2. Gaya untuk Percikan Bintang (Sparkle Particles) */
.click-particle {
    position: fixed;
    pointer-events: none;
    opacity: 1;
    border-radius: 50%;
    z-index: 9999;
    animation: particle-explosion 0.7s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes particle-explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        /* Nilai transform dinamis akan diatur langsung oleh mesin JavaScript */
        opacity: 0;
        transform: translate(var(--tw-x), var(--tw-y)) scale(0.2);
    }
}