/* Custom styles for LibertyX Bitcoin ATM */

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

/* Reveal animations - progressive enhancement, only active with JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mint gradient text utility */
.text-mint-gradient {
    background: linear-gradient(135deg, #5eead4, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #162d4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e3a5f;
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.2);
    color: #e2e8f0;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

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

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(22, 45, 74, 0.5);
}

/* Card hover glow effects */
.card-glow-mint:hover {
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.1);
}

.card-glow-gold:hover {
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.1);
}

/* Button press effect */
.btn-press {
    transition: transform 0.1s ease;
}
.btn-press:active {
    transform: scale(0.97);
}

/* Map filter for dark theme */
.map-dark {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Gold shimmer animation for special elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* Pulse ring for the live indicator */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

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

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Fade in for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-fade-in-delay-1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-fade-in-delay-3 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
