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

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(52, 212, 168, 0.25);
  color: #f0f3f9;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #28446e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34d4a8;
}

/* ============================================
   Navbar
   ============================================ */
#navbar.scrolled {
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(52, 212, 168, 0.08);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

#navbar.scrolled .text-white {
  color: #f0f3f9 !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 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; }

  .step-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .step-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .step-card:nth-child(1).revealed { transition-delay: 0s; }
  .step-card:nth-child(2).revealed { transition-delay: 0.15s; }
  .step-card:nth-child(3).revealed { transition-delay: 0.3s; }
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}
