/* Custom styles for LibertyX Bitcoin ATM */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    box-shadow: 0 1px 20px rgba(5, 78, 59, 0.06);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link:hover {
    color: #059669;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
}

.mobile-link:hover {
    color: #059669;
}

/* Scroll reveal - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.open {
    max-height: 200px;
}

.faq-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(5, 150, 105, 0.2);
}

/* Button hover animations */
a[href="#contact"],
a[href="#how-it-works"],
button.faq-toggle {
    -webkit-tap-highlight-color: transparent;
}

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

/* Selection color */
::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064E3B;
}

/* Subtle gradient border on cards */
.border-emerald-50 {
    background-clip: padding-box;
    border: 1px solid rgba(5, 150, 105, 0.06);
}

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

/* Counter animation for stats */
.text-3xl, .text-4xl {
    font-variant-numeric: tabular-nums;
}

/* Ensure hero text is always readable */
@media (max-width: 639px) {
    .font-display {
        line-height: 1.1;
    }
}
