/* Custom styles for Anytime Auto & Towing */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050d0a;
}
::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #fefdf8;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(5, 13, 10, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card:hover {
  box-shadow: 0 0 40px rgba(212, 168, 83, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* 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 the green dot */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

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

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

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(6, 95, 70, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Input focus animation */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.1;
  }
}
