/* Custom styles for Marty's Tire and Auto Repair */

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

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

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(250, 245, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(88, 28, 135, 0.08);
}

/* Intersection observer fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Service card hover glow */
.group:hover .w-14 {
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .animate-float, .animate-float-delayed {
    animation: none;
  }
}
