/* Custom styles for Infinily Home Care Agency */

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

/* Floating animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

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

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 4s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 3s ease-in-out infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

.navbar-scrolled .nav-link {
  color: #374151 !important;
}

.navbar-scrolled .nav-link:hover {
  color: #065f46 !important;
}

.navbar-scrolled .brand-text {
  color: #065f46 !important;
}

/* Intersection observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #065f46;
  outline-offset: 2px;
}

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