/* Custom styles for LibertyX Bitcoin ATM */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section reveal animations - progressive enhancement via JS */
.section-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is disabled, all content is visible by default */
/* JS adds .revealed class for animation on scroll */

/* Navbar transition */
#navbar {
    backdrop-filter: none;
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 77, 33, 0.08);
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6a9652;
}

/* Selection color */
::selection {
    background-color: #dce8d8;
    color: #1c3314;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .section-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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