/* ============================================
   LibertyX Bitcoin ATM — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ed;
}
::-webkit-scrollbar-thumb {
    background: #9cb87a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74944e;
}

/* Selection */
::selection {
    background: #557532;
    color: #FAFAF5;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default, JS adds the animation class.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: if JS is disabled, content is always visible */
.no-js .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(156, 184, 122, 0.2);
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.95);
    box-shadow: 0 4px 20px rgba(34, 48, 23, 0.08);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FAFAF5, transparent);
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
a, button {
    transition: all 0.2s ease;
}

/* ============================================
   Cards
   ============================================ */
.scroll-reveal .group:hover svg {
    transform: scale(1.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    #hero::after {
        height: 60px;
    }
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #557532;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu-btn,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
