/* Custom styles for Azul Violeta */

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

/* Custom animation for floating card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    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; }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(254, 252, 248, 0.92) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Selection color */
::selection {
  background: rgba(196, 153, 50, 0.2);
  color: #0A1628;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
