/* Custom styles for LibertyX Bitcoin ATM */

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

/* Selection color */
::selection {
    background: rgba(120, 31, 22, 0.4);
    color: #f2d7d5;
}

/* Hero image parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-grid .relative.overflow-hidden img {
        transition: transform 0.1s linear;
    }
}

/* Subtle text shimmer on gold text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, #d4af37 0%, #f5e6a3 50%, #d4af37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Noise texture overlay for luxury feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(10, 10, 12, 0.95) !important;
    border-bottom-color: rgba(120, 31, 22, 0.3) !important;
}

/* Mobile menu animation */
.menu-line:last-child {
    transition: width 0.3s ease, margin-left 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:last-child {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* FAQ transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
}

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

.faq-icon {
    transform: rotate(45deg);
}

.faq-icon.rotated {
    transform: rotate(0deg);
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.6s ease forwards;
}
