/* Custom styles for Guy's Garage */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08080C;
}
::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f1738;
}

/* Selection color */
::selection {
  background: rgba(123, 45, 59, 0.6);
  color: #F5D0A0;
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(8, 8, 12, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(123, 45, 59, 0.2) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Hero image shine */
.hero-image-shine {
  position: relative;
  overflow: hidden;
}
.hero-image-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.7s;
}
.hero-image-shine:hover::after {
  left: 150%;
}

/* Service card hover glow */
.service-card:hover {
  box-shadow: 0 8px 40px rgba(123, 45, 59, 0.15);
}

/* Gold shimmer animation */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, #D4A855 0%, #F5D0A0 50%, #D4A855 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulse ring for CTA */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(123, 45, 59, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(123, 45, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 45, 59, 0); }
}

.cta-pulse {
  animation: pulseRing 2s infinite;
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
