/* Custom Styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334e68;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

/* 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);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.2s ease;
}

.mobile-link:hover::before {
    width: 16px;
}

.mobile-link:hover {
    padding-left: 12px;
}

/* Geometric decorations */
.geo-square {
    position: absolute;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-20px) rotate(12deg);
    }
}

/* Pulse animation for status indicators */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #f59e0b;
    border-radius: inherit;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

/* Print styles */
@media print {
    #navbar,
    .animate-bounce,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
