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

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

body {
    background-color: #FAFAF7;
    color: #1a2f1e;
}

::selection {
    background-color: #9cc5a3;
    color: #1a2f1e;
}

/* ---- Section Styles ---- */
.section-label {
    display: block;
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.1;
}

.section-subtitle {
    line-height: 1.7;
}

/* ---- Navigation ---- */
.nav-brand {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #4a7a52;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 250, 247, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 47, 30, 0.06);
    box-shadow: 0 1px 0 rgba(26, 47, 30, 0.04);
}

.navbar-scrolled .nav-brand {
    color: #1a2f1e;
}

.navbar-scrolled .nav-link {
    color: #1a2f1e;
}

.navbar-scrolled .nav-link:hover {
    color: #345c3b;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ---- Hero ---- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #345c3b 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0d4a2e 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Hero entrance animations */
.hero-badge {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.55s;
    opacity: 0;
}

.hero-stats {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Service Cards ---- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
    .hero-orb {
        filter: blur(60px);
        opacity: 0.25;
    }
    
    .orb-1 {
        width: 300px;
        height: 300px;
    }
    
    .orb-2 {
        width: 250px;
        height: 250px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
}

/* ---- Utility: smooth image loading ---- */
img {
    display: block;
    max-width: 100%;
}
