/* Custom styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

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

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

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes float-center {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

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

.floating-card-2 {
    animation: float-2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-3 5s ease-in-out infinite;
}

.floating-card-center {
    animation: float-center 4s ease-in-out infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-center {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 79, 79, 0.3);
}

/* Gold shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Pulse animation for status dot */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 46, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 46, 0); }
}

.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(255, 107, 46, 0.1);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #ff8a4d, #ff6b2e, #f05010);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.open {
    max-height: 400px;
}

/* Subtle background pattern */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(79, 79, 79, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}
