/* Custom styles for LibertyX Bitcoin ATM */

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

/* Selection color */
::selection {
    background-color: rgba(212, 81, 46, 0.2);
    color: #1a1210;
}

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

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text is readable on all backgrounds */
.text-dark {
    color: #1a1210;
}

.text-dark\/60 {
    color: rgba(26, 18, 16, 0.6);
}

.text-dark\/50 {
    color: rgba(26, 18, 16, 0.5);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.open {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle,
    .geo-diamond,
    .geo-rect,
    .geo-line,
    .geo-triangle {
        transition: transform 0.3s ease;
    }
    
    .geo-circle:hover {
        transform: scale(1.05);
    }
    
    .geo-diamond:hover {
        transform: rotate(45deg) scale(1.1);
    }
}

/* Print styles */
@media print {
    nav,
    .geo-circle,
    .geo-diamond,
    .geo-rect,
    .geo-line,
    .geo-triangle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .gradient-text {
        background: none;
        -webkit-text-fill-color: #d4512e;
        color: #d4512e;
    }
}

/* Reduced motion */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
