/* Custom styles for Hermoza Quinceanera */

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

/* Scroll reveal base - content is always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(10, 26, 56, 0.08);
}

.nav-scrolled .nav-link {
  color: #1e3f78 !important;
}

/* Hero scroll indicator animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Subtle gradient animation for decorative elements */
@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Custom selection color */
::selection {
  background-color: #9dd5be;
  color: #0a1a38;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #6bbd9a;
  outline-offset: 2px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #e4f3ee 0%, #d9e0ef 100%);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6bbd9a;
}
