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

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Geometric Background Shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #10b981;
  top: -200px;
  right: -150px;
}

.geo-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #059669;
  bottom: 10%;
  left: -100px;
}

.geo-square-1 {
  width: 200px;
  height: 200px;
  background: #34d399;
  top: 40%;
  right: 5%;
  transform: rotate(45deg);
  border-radius: 20px;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #6ee7b7;
  top: 60%;
  left: 3%;
  opacity: 0.04;
}

.geo-dots {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #059669 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
}

/* Navbar */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1), 0 4px 20px rgba(5, 150, 105, 0.08);
}

.nav-scrolled .nav-link {
  color: #065f46;
}

.nav-link {
  color: #065f46;
  position: relative;
}

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

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

/* Mobile Menu */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-right: 2px solid #059669;
  border-top: 2px solid #059669;
  transform: translateY(-50%) rotate(45deg);
}

/* Floating Cards */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.card-top-right {
  animation-delay: 0s;
}

.card-bottom-left {
  animation-delay: 1.5s;
}

.card-mid-right {
  animation-delay: 0.8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

/* Feature Cards */
.feature-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.feature-card[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

/* Step Cards */
.step-card {
  opacity: 1;
  transform: translateY(0);
  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[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

/* Button Hover Effects */
a {
  text-decoration: none;
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal[data-reveal],
  .feature-card[data-reveal],
  .step-card[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

/* Image lazy loading fade */
img[loading="lazy"] {
  transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
  opacity: 0;
}

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}
