/* Custom Styles for LibertyX Bitcoin ATM */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1b3a56;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

/* Hero fade-up animations (above the fold - always visible) */
.hero-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-fade-up:nth-child(1) { transition-delay: 0.1s; }
.hero-fade-up:nth-child(2) { transition-delay: 0.2s; }
.hero-fade-up:nth-child(3) { transition-delay: 0.3s; }
.hero-fade-up:nth-child(4) { transition-delay: 0.4s; }

/* Scroll reveal animations (below the fold - progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu transitions */
#mobileMenu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobileMenu.open {
  max-height: 500px;
  opacity: 1;
}

/* Mobile link transitions */
.mobile-link {
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-link:hover {
  padding-left: 8px;
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(5, 13, 24, 0.9) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient orb animations */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 25px) scale(1.05); }
  66% { transform: translate(15px, -15px) scale(0.95); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

.hero-orb {
  animation: float1 8s ease-in-out infinite, float2 12s ease-in-out infinite;
}
.orb-1 { animation-duration: 10s, 14s; }
.orb-2 { animation-duration: 12s, 16s; animation-delay: 1s; }
.orb-3 { animation: float3 15s ease-in-out infinite; }

/* Gold shimmer effect on hover */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Card hover glow */
.group:hover .group-hover\:scale-110 {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Button press effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

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

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #0f2236 0%, #1b3a56 100%);
}

/* Map dark mode overlay handled via CSS filter in iframe */
