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

/* --- Custom Properties --- */
:root {
    --color-teal-50: #f0fdfa;
    --color-teal-100: #ccfbf1;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
}

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

body {
    overflow-x: hidden;
}

/* --- Selection Color --- */
::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- Navbar transitions --- */
.navbar-text {
    transition: color 0.4s ease;
}
.navbar-text-muted {
    transition: color 0.4s ease;
}
.navbar-link {
    position: relative;
}
.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}
.navbar-link:hover::after {
    width: 100%;
}

/* --- Scroll reveal animations --- */
.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);
}

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

/* Stagger children */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Hero floating card animations --- */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .lg\:block .absolute:first-child {
        animation: float-1 4s ease-in-out infinite;
    }
    .lg\:block .absolute:nth-child(2) {
        animation: float-2 5s ease-in-out infinite;
    }
    .lg\:block .absolute:nth-child(3) {
        animation: float-3 4.5s ease-in-out infinite;
    }
    .lg\:block .absolute:nth-child(4) {
        animation: float-4 5.5s ease-in-out infinite;
    }
}

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

/* --- Input focus states --- */
input:focus-visible,
textarea:focus-visible {
    outline: none;
}

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

/* --- Service card hover glow --- */
.group:hover .group-hover\:scale-110 {
    filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.3));
}

/* --- Smooth image loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu-btn, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
