/* Custom styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #1a1c21;
}

::-webkit-scrollbar-thumb {
    background: #5c616c;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background-color: #ff6b3f;
    color: white;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 {
        transition-delay: 0.1s;
    }
    
    .reveal-delay-2 {
        transition-delay: 0.2s;
    }
    
    .reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
}

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

/* Nav background on scroll */
.nav-scrolled {
    background-color: rgba(13, 14, 17, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #e2e3e5 25%, #f6f6f7 50%, #e2e3e5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav, .cta-section, #contactForm {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
