/* Custom styles for Rocking L Saddlery */

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

/* Reveal animations - progressive enhancement, only active when JS runs */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default state: always visible even without JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1c1c1f;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff5a25;
}

/* Selection color */
::selection {
  background: rgba(255, 90, 37, 0.3);
  color: #f5f5f7;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Subtle pulse for hero accent */
@keyframes subtle-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-pulse {
  animation: subtle-pulse 2s ease-in-out infinite;
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(10px) rotate(-12deg); }
}

/* Navbar active state */
header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
