/* Custom Styles for Latsol Yuk! */

@layer utilities {
    /* Smooth Transitions */
    .transition-all-300 {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e1726;
}
::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .glass-nav {
    background: rgba(14, 23, 38, 0.85);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass-card {
    background: rgba(24, 38, 62, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ambient Glowing Background Lights */
.ambient-glow-blue {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.ambient-glow-indigo {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

/* Keyframe Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.shimmer-text {
    background: linear-gradient(90deg, #60a5fa 0%, #ffffff 50%, #60a5fa 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

/* Custom Range Input Styling for Kalkulator Skor */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
}
.dark input[type=range] {
    background: #334155;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.3s ease;
    opacity: 0;
}
.faq-content.open {
    max-height: 250px;
    opacity: 1;
}

/* Person Studying Animation Keyframes */
@keyframes typingLeft {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes typingRight {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(0px); }
}

@keyframes steamAnim {
    0% { transform: translateY(0) scaleX(1); opacity: 0.7; }
    50% { transform: translateY(-6px) scaleX(1.3); opacity: 0.4; }
    100% { transform: translateY(-12px) scaleX(1.6); opacity: 0; }
}

@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatBadge2 {
    0%, 100% { transform: translateY(-6px) rotate(2deg); }
    50% { transform: translateY(2px) rotate(-1deg); }
}

@keyframes floatBadge3 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}

@keyframes screenFlicker {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.anim-typing-left {
    animation: typingLeft 0.35s infinite ease-in-out;
}

.anim-typing-right {
    animation: typingRight 0.35s infinite ease-in-out;
}

.anim-steam {
    animation: steamAnim 2.2s infinite ease-out;
}

.anim-badge-1 {
    animation: floatBadge1 3.8s infinite ease-in-out;
}

.anim-badge-2 {
    animation: floatBadge2 4.2s infinite ease-in-out;
}

.anim-badge-3 {
    animation: floatBadge3 3.5s infinite ease-in-out;
}

.anim-screen-glow {
    animation: screenFlicker 2.5s infinite ease-in-out;
}

/* Continuous E-Book Flowing Slider */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ebook-flow-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.ebook-flow-track:hover {
    animation-play-state: paused;
}

/* Hero Interactive Dashboard Card Animations */
@keyframes flamePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4)); }
    50% { transform: scale(1.14); filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8)); }
}

@keyframes xpPulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-6deg) scale(1.15); filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.8)); }
}

@keyframes targetGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6)); }
}

.anim-flame {
    display: inline-block;
    animation: flamePulse 2s infinite ease-in-out;
}

.anim-xp {
    display: inline-block;
    animation: xpPulse 2.4s infinite ease-in-out;
}

.anim-target {
    display: inline-block;
    animation: targetGlow 2.8s infinite ease-in-out;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1; filter: brightness(1.25); }
}

.anim-progress-glow {
    animation: progressGlow 3s infinite ease-in-out;
}

/* Khan Academy Mascot CTA Animations */
@keyframes mascotEyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes floatElement1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes floatElement2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-4deg); }
}

@keyframes floatElement3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)); }
}

.anim-mascot-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: mascotEyeBlink 4s infinite ease-in-out;
}

.anim-float-item-1 {
    transform-box: fill-box;
    transform-origin: center;
    animation: floatElement1 4s infinite ease-in-out;
}

.anim-float-item-2 {
    transform-box: fill-box;
    transform-origin: center;
    animation: floatElement2 4.5s infinite ease-in-out;
}

.anim-float-item-3 {
    transform-box: fill-box;
    transform-origin: center;
    animation: floatElement3 3.8s infinite ease-in-out;
}

.anim-star-twinkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: starTwinkle 3s infinite ease-in-out;
}

/* Feature Cards Dark Gray Background & Blue Hover Effects */
.feature-card-dark-gray {
    background-color: #1e293b !important;
    border: 2px solid #334155 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feature-card-dark-gray:hover {
    background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 100%) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 25px 45px -10px rgba(37, 99, 235, 0.45), 0 0 25px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-8px);
}

.feature-pill-dark {
    background-color: rgba(51, 65, 85, 0.85);
    border: 1px solid rgba(71, 85, 105, 0.9);
    color: #f1f5f9;
    transition: all 0.2s ease;
}

.feature-pill-dark:hover {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

