/* Base styles and custom animations */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floating animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

.animate-float-delayed {
  animation: floatDelayed 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Scroll indicator animation */
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.animate-scrollDown {
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed,
  .animate-scrollDown {
    animation: none;
  }

  .reveal {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(250, 245, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(91, 33, 182, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Mobile menu transitions */
#mobileMenu.open #mobileMenuPanel {
  transform: translateX(0);
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu {
  opacity: 0;
  pointer-events: none;
}

/* Selection color */
::selection {
  background: #fbbf24;
  color: #4c1d95;
}
