/* Custom styles for LibertyX Bitcoin ATM */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 245, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5e2068;
}

#navbar.scrolled .nav-link:hover {
    color: #2d0f33;
    background: rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .font-bold {
    color: #5e2068;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #5e2068;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f5e9f7;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Selection color */
::selection {
    background: #dbb3e0;
    color: #2d0f33;
}

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

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

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

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

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

/* Subtle animation for the hero pulse dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Map container aspect ratio fix */
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* Ensure all interactive elements are accessible */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}
