/* Custom styles for LibertyX Bitcoin ATM */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(78, 42, 54, 0.08);
}

nav.scrolled .font-serif {
    color: #4e2a36;
}

nav.scrolled a.text-plum-700 {
    color: #5f3241;
}

nav.scrolled a.text-plum-700:hover {
    color: #a55d75;
}

/* Hero animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-floating-1 { animation: float 6s ease-in-out infinite; }
.hero-floating-2 { animation: float-delayed 5s ease-in-out infinite 0.5s; }
.hero-floating-3 { animation: float 7s ease-in-out infinite 1s; }
.hero-floating-4 { animation: float-delayed 5.5s ease-in-out infinite 0.3s; }

/* Service cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* Step cards */
.step-card {
    transition: transform 0.3s ease;
}

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

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card:hover {
        transform: none;
    }
    .step-card:hover {
        transform: none;
    }
    [class*="hero-floating"] {
        animation: none;
    }
}

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

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

/* Selection color */
::selection {
    background: #fbbf24;
    color: #4e2a36;
}

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

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

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

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