/*css Typography & Smoothing */ 
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Scroll Behavior */ 
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality for cleaner look */ 
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Parallax Background */ 
.parallax-bg {
  transform: scale(1.1);
  will-change: transform;
}

/* Navbar Blur State (Applied by JS) */ 
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01),
    0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

/* Londrina */
.londrina {
	font: Londrina;
}

/* Text Selection */
::selection {
  background-color: #313f89;
  color: white;
}

/* Animation Utilities */ 
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Hover effects for Cards */
.step-card:hover .text-bodel-navy span {
  color: #eb5b29;
}

/* Smooth transitions for interactive elements */
a,
button {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Custom Gradients */ 
.bg-gradient-hero {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
}

/* Utility for text balance */ 
.text-balance {
  text-wrap: balance;
}

/* Mobile responsive adjustments */ 
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-sub {
    font-size: 1.125rem;
  }
  /* Accessibility: honor reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .sl-bg {
      animation: none !important;
      opacity: 1 !important; /* show first slide only if you prefer */
    }
  }

  /* Base animation: 5 slides over 25s (5s per slide) */
  .sl-bg {
    animation: fadeSlide 25s infinite;
    animation-timing-function: ease-in-out;
  }

  /* Staggered starts for each slide */
  .sl-bg:nth-child(1) {
    animation-delay: 0s;
  }
  .sl-bg:nth-child(2) {
    animation-delay: 5s;
  }
  .sl-bg:nth-child(3) {
    animation-delay: 10s;
  }
  .sl-bg:nth-child(4) {
    animation-delay: 15s;
  }
  .sl-bg:nth-child(5) {
    animation-delay: 20s;
  }

  /* Fade keyframes:
   - 0%..8%: fade in
   - 8%..20%: stay visible
   - 20%..28%: fade out
   - rest: stay hidden
   This gives ~5s per slide within a 25s loop.
*/
  @keyframes fadeSlide {
    0% {
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    20% {
      opacity: 1;
    }
    28% {
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 20s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}
