/* Custom styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00e5c7, #00b89c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6fffe9, #00e5c7);
}

/* Selection color */
::selection {
    background: rgba(0, 229, 199, 0.3);
    color: #ffffff;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #00e5c7;
    outline-offset: 2px;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Service card shine effect */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 229, 199, 0.05),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Step connector lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #00e5c7, transparent);
}

@media (max-width: 768px) {
    .step:not(:last-child)::after {
        display: none;
    }
}

/* Map container hover effect */
.location-map {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-map:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 229, 199, 0.2);
}

/* Animated gradient for hero shapes */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-shape-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for badge dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-badge-dot {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile menu animation */
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Print styles */
@media print {
    nav, .cta, footer {
        display: none;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero h1, .hero p, .section-title, .section-subtitle {
        color: #000000;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 100px 24px 60px;
    }
    
    .hero-stats {
        margin-top: 32px;
        padding-top: 24px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
