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

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

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

body {
    background-color: #020617;
    color: #f8fafc;
}

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(157, 23, 77, 0.15);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    left: -8%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 2px solid rgba(252, 211, 77, 0.08);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 40%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(157, 23, 77, 0.12), rgba(252, 211, 77, 0.06));
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 60%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(157, 23, 77, 0.08);
    animation: float-medium 18s ease-in-out infinite reverse;
}

.geo-ring-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(252, 211, 77, 0.1);
    animation: float-medium 12s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, -50px) rotate(-3deg); }
    75% { transform: translate(-20px, -20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    33% { transform: translate(15px, -25px) rotate(50deg); }
    66% { transform: translate(-10px, -15px) rotate(40deg); }
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(157, 23, 77, 0.15), 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .flex.items-center.gap-8 a {
    color: #e2e8f0;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

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

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

.hero-ctas {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

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

/* ========================================
   Section Headers (above the fold = always visible)
   ======================================== */
.section-header {
    /* Content is visible by default — no opacity:0 gate */
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(157, 23, 77, 0.15);
}

/* Scroll reveal for below-fold elements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Step Cards
   ======================================== */
.step-card {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Stat Items
   ======================================== */
.stat-item {
    opacity: 1;
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9d174d, #fcd34d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #be185d, #fbbf24);
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: rgba(157, 23, 77, 0.4);
    color: #fcd34d;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2 {
        display: none;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}

/* ========================================
   Focus Styles for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fcd34d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .geo-shape,
    .fixed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
