/* Custom styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #050A18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #40DAA0;
}

/* Selection color */
::selection {
    background: #14C888;
    color: #050A18;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(5, 10, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Step card hover effects */
.step-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-8px);
}

/* Mobile menu transitions */
.mobile-link {
    transition: all 0.3s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

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

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

.float-shape-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #14C888 0%, #40DAA0 50%, #99EDCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow-mint {
    box-shadow: 0 0 40px rgba(20, 200, 136, 0.3);
}

.glow-mint:hover {
    box-shadow: 0 0 60px rgba(20, 200, 136, 0.5);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    img {
        transition: none;
    }
}

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

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

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for badge */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(20, 200, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(20, 200, 136, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}
