/* Custom styles for LibertyX Bitcoin ATM */

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

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

::-webkit-scrollbar-track {
    background: #fdf2f4;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a11333;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6f132c;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(161, 19, 51, 0.08);
}

nav.scrolled .logo-text {
    color: #6f132c;
}

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

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

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

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

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

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

.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Subtle gradient shift on hover for cards */
.group:hover .group-hover\:bg-burgundy-700 {
    transition: background-color 0.5s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Reduce motion for accessibility */
@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;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #db3a60;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #6f132c 0%, #db3a60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card tilt effect on hover */
.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #fdf2f4 0%, #fce7eb 100%);
}
