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

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Utility Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-bounce-slow {
  animation: bounceSlow 3s ease-in-out infinite;
}

/* Scroll Reveal Base */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.grid .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.grid .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.grid .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.grid .scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.grid .scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#mobile-menu.active {
  max-height: 500px;
  opacity: 1;
}

/* FAQ transitions */
.faq-content {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-content.active {
  max-height: 500px;
  opacity: 1;
}

.faq-btn i {
  transition: transform 0.3s ease;
}

.faq-btn.active i {
  transform: rotate(180deg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Navbar transition */
#navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

/* Back to top visible state */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Gradient text utility */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-float,
  .animate-float-delayed,
  .animate-fade-in-up,
  .animate-bounce-slow {
    animation: none;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}