/* Custom Styles for LibertyX Bitcoin ATM */

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

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f2f0e9;
}

::-webkit-scrollbar-thumb {
    background: #3d6740;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #315233;
}

/* Navigation Active State */
nav a.active {
    color: #3d6740;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #6fa370;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    transform: scale-y(1) !important;
    opacity: 1 !important;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #e3efe7 25%, #f2f7f4 50%, #e3efe7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    .animate-float,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
