/* Custom styles for Maria Auto and Traffic School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060F1F;
}
::-webkit-scrollbar-thumb {
  background: #0B1D3A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1a3a5c;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #E8F1F8;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(6, 15, 31, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}

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

/* Mobile menu active state */
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

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

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

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

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

/* Pulse ring for hero badge */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 178, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(62, 207, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 178, 0); }
}

.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}

/* Gradient text utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #C9A84C 0%, #E0C078 50%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image hover zoom */
img {
  transition: transform 0.6s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .floating-card,
  img {
    transition: none;
    animation: none;
  }
}
