/* Custom styles for LibertyX Bitcoin ATM */

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

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* FAQ transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-content.open {
    max-height: 300px;
    opacity: 1;
}

/* Navbar transition */
#navbar {
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: opacity 0.4s ease;
}

/* Ensure hero image doesn't cause layout shift */
.hero-bg {
    will-change: transform;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    .card-hover {
        transition: none;
    }
    .btn-coral {
        transition: none;
    }
    .btc-icon {
        animation: none;
    }
    .line-reveal {
        width: 80px;
        transition: none;
    }
    .mobile-menu {
        transition: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(180deg, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.70) 60%, rgba(13,13,13,0.90) 100%);
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}
