/* Mengatur font bawaan dan mengatasi overflow horizontal */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Pola background titik-titik untuk memberikan kesan kertas/teknis */
.hero-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Container untuk animasi simbol melayang */
#floating-symbols-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.math-symbol {
    position: absolute;
    bottom: -10vh;
    font-weight: bold;
    user-select: none;
    pointer-events: none;
    animation: float-up linear forwards;
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg) translateX(100px); opacity: 0; }
}

.animate-blob {
    animation: blob 7s infinite;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float-character {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar for Vertical Lists */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.5); /* slate-200 with opacity */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.8); /* slate-400 */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 1); /* slate-500 */
}

/* Animated Glowing Border untuk Tombol */
.btn-glowing-border {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    animation: pulse-outer-glow 2s infinite;
}

@keyframes pulse-outer-glow {
    0% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 35px rgba(96, 165, 250, 0.9); }
    100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
}

.btn-glowing-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Menggunakan warna yang sangat terang dan kontras (Cyan, Kuning Terang, Putih) */
    background: conic-gradient(from 0deg, transparent 0%, transparent 40%, #06b6d4 60%, #fde047 85%, #ffffff 100%);
    animation: border-rotate 1.5s linear infinite;
    z-index: -2;
}

.btn-glowing-border::after {
    content: '';
    position: absolute;
    inset: 4px; /* Ketebalan cahaya dibuat lebih tebal (4px) */
    background: #2563eb; /* bg-blue-600 */
    border-radius: 9999px; /* rounded-full */
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-glowing-border:hover::after {
    background: #1e40af; /* Warna lebih gelap saat di-hover agar cahaya makin kontras */
}

@keyframes border-rotate {
    100% { transform: rotate(360deg); }
}

/* Styles for Metode Belajar Scroll Animation */
.step-circle {
    transition: all 0.5s ease-out;
}

.step-circle.active {
    border-color: #f97316; /* orange-500 */
    color: white;
    background-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.fire-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.step-circle.active .fire-icon {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.5);
}

@keyframes flicker {
    0%, 100% { opacity: 1; transform: translate(-50%, -10px) scale(1.5) rotate(-2deg); }
    50% { opacity: 0.8; transform: translate(-50%, -10px) scale(1.4) rotate(2deg); }
}

.step-circle.active .fire-icon {
    animation: flicker 0.6s infinite alternate;
}

