/* Custom Styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #050A18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #223B62;
}

/* Selection */
::selection {
    background: rgba(72, 187, 120, 0.3);
    color: #fff;
}

/* Navbar Transition */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(5, 10, 24, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

/* Button Hover Effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Card Hover Lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Gradient Text Fallback */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Map Inverted Filter for Dark Theme */
iframe[title*="map"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    button,
    form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-midnight-900,
    .bg-midnight-800 {
        background: white !important;
    }
}
