/* ===== Custom Styles for BolaPelangi2 Landing Page ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll margin for anchor links */
#features,
#worldcup,
#testimonials,
#faq {
    scroll-margin-top: 80px;
}

/* Custom animations */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes bounce-slow-delayed {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

.animate-bounce-slow-delayed {
    animation: bounce-slow-delayed 4s ease-in-out 1s infinite;
}

/* FAQ toggle animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content.open {
    max-height: 300px;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Lucide icon fill for stars */
[data-lucide="star"] {
    fill: currentColor;
}

/* Selection color */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Image optimization */
img {
    content-visibility: auto;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-bounce-slow,
    .animate-bounce-slow-delayed {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #floating-cta,
    .animate-bounce-slow,
    .animate-bounce-slow-delayed {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}