/* Custom styles for LibertyX Bitcoin ATM */

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

/* Prevent flash of hidden content - all content is visible by default */

/* Floating animation for hero badge */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Service card hover */
.service-card {
    will-change: transform;
}

/* FAQ animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

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

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    max-height: 400px;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-parent > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-parent > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-parent > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-parent > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-parent > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-parent > *:nth-child(6) { transition-delay: 0.55s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-float { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .reveal-parent > * { transition-delay: 0s; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Selection color */
::selection {
    background: #facc15;
    color: #102a43;
}
