/* Custom styles for LibertyX Bitcoin ATM */

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

/* Navigation scroll state */
.nav-text-color {
    color: #102a43;
    transition: color 0.3s ease;
}

.nav-subtext-color {
    color: #627d98;
    transition: color 0.3s ease;
}

.nav-link-color {
    color: #486081;
    transition: color 0.3s ease;
}

/* Scrolled state */
.navbar-scrolled .nav-text-color {
    color: #102a43;
}

.navbar-scrolled .nav-subtext-color {
    color: #627d98;
}

.navbar-scrolled .nav-link-color {
    color: #486081;
}

/* Reveal animations */
.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);
}

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

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

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

/* Mobile menu animations */
#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

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

#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

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

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

/* Mobile menu link animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu.open .mobile-menu-link {
    animation: slideIn 0.3s ease forwards;
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    #mobile-menu.open .mobile-menu-link {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

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

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