/* Custom styles for LibertyX Bitcoin ATM */

/* Smooth scroll padding for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Base font sizes */
body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #d4512a;
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d4512a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(254, 252, 232, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-scrolled .menu-line {
    background-color: #374151;
}

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

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

/* Hamburger to X animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Counter animation */
.counter {
    display: inline-block;
}

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

/* Prevent layout shift */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav,
    #hero .absolute,
    section .geo-shape,
    .animate-float,
    .animate-float-reverse,
    .animate-spin-slow,
    .animate-pulse-glow {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}
