/* Custom styles for LibertyX Bitcoin ATM */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFCF8;
}
::-webkit-scrollbar-thumb {
    background: #C4623A;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A14F30;
}

/* Selection color */
::selection {
    background: #F7C5B5;
    color: #663322;
}

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 252, 248, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

.navbar-scrolled .font-heading,
.navbar-scrolled a:not(.bg-terracotta-600):not(.bg-white\/10) {
    color: #2D1F14 !important;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 3px solid #C4623A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Map container responsive */
iframe {
    border-radius: 1.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #FBE4DA 0%, #F6E4C8 100%);
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(196, 98, 58, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Hero parallax effect on scroll */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Card hover glow */
.group:hover .bg-gradient-to-br {
    filter: brightness(1.1);
}

/* Smooth image transitions */
img {
    transition: transform 0.5s ease;
}

/* Loading animation for page */
body {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}
