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

/* Scroll animation base state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero floating animation */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }
  50% {
    transform: translateY(-20px) rotate(var(--rotate, 0deg));
  }
}

.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(250, 248, 245, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Counter animation - prevent layout shift */
[data-counter] {
  display: inline-block;
  min-width: 1ch;
}

/* Smooth link transitions for mobile menu */
#mobile-menu a {
  transition: all 0.2s ease;
}

/* Selection color */
::selection {
  background-color: rgba(255, 107, 74, 0.15);
  color: inherit;
}

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

/* Timeline responsive adjustments */
@media (max-width: 639px) {
  .hero-float {
    display: none;
  }
}
