/* ============================================
   LibertyX Bitcoin ATM — Custom Styles
   ============================================ */

/* ---------- Base Reset & Typography ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #c2204a;
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf5f0;
}
::-webkit-scrollbar-thumb {
    background: #c2204a;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11536;
}

/* ---------- Floating animations ---------- */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.float-medium {
    animation: floatMedium 6s ease-in-out infinite;
}

.float-fast {
    animation: floatFast 5s ease-in-out infinite;
}

/* ---------- Blob animations ---------- */
@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 15px) scale(1.08); }
    66% { transform: translate(15px, -25px) scale(0.92); }
}

@keyframes blobMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

.hero-blob {
    animation: blobMove1 12s ease-in-out infinite;
}
.blob-2 {
    animation: blobMove2 15s ease-in-out infinite;
}
.blob-3 {
    animation: blobMove3 10s ease-in-out infinite;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state for reduced-motion or no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FAQ Toggle ---------- */
.faq-item {
    cursor: default;
}

.faq-toggle {
    cursor: pointer;
}

.faq-icon svg {
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ---------- Mobile menu ---------- */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
}

/* ---------- Mobile menu line animation ---------- */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Navbar scrolled state ---------- */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(131, 21, 51, 0.08);
}

/* ---------- Button focus states ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c2204a;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ---------- Utility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
