/* Custom styles for LibertyX Bitcoin ATM */

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

/* Base font styling */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(168, 230, 207, 0.2);
    color: #A8E6CF;
}

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

::-webkit-scrollbar-track {
    background: #040d17;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 230, 207, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 230, 207, 0.3);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 13, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 230, 207, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations (progressive enhancement) */
.reveal-content {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-content {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-content.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .reveal-content:nth-child(2) { transition-delay: 0.1s; }
    .reveal-content:nth-child(3) { transition-delay: 0.2s; }
    .reveal-content:nth-child(4) { transition-delay: 0.3s; }
    .reveal-content:nth-child(5) { transition-delay: 0.4s; }
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #A8E6CF;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 16px;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #A8E6CF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Map filter override for light mode */
@media (prefers-color-scheme: light) {
    iframe[title*="Map"] {
        filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1) !important;
    }
}

/* Reduced motion */
@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;
    }
    
    .reveal-content {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .reveal-content {
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
