/* Custom styles for LibertyX Bitcoin ATM */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu .mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5d98a 0%, #d4a843 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a843, #b8860b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5d98a, #d4a843);
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #ffffff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover effects */
a[href^="tel:"]:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\:from-gold-400 {
    filter: brightness(1.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
}

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.3s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .font-serif {
        letter-spacing: -0.02em;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
