/* Custom styles for LibertyX Bitcoin ATM */

:root {
    --forest-50: #f0f7f0;
    --forest-100: #d9ecd9;
    --forest-600: #1a6b1a;
    --forest-700: #145214;
    --forest-800: #0f3f0f;
    --forest-900: #0a2e0a;
    --offwhite-50: #fafaf8;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

.nav-scrolled .nav-link:hover {
    color: #145214 !important;
}

.nav-scrolled .logo-text {
    color: #111827 !important;
}

/* Gradient hero text gradient */
.hero-gradient-text {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #145214;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #145214;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f3f0f;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}
