/* Custom styles for Jm AutoClassic Inc */

/* Scroll reveal base - progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1f0d1f;
}
::-webkit-scrollbar-thumb {
  background: #522452;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7d457d;
}

/* Selection color */
::selection {
  background: #fbbf24;
  color: #1f0d1f;
}

/* Nav height */
nav {
  height: 72px;
}

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

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

/* Gradient text utility */
.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
