/* Custom styles for King Automotive */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
}

/* Scroll animations */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav scroll effect */
nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(194, 98, 62, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Hero text animation */
#hero h1,
#hero p,
#hero .inline-flex {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

#hero h1 { animation-delay: 0.3s; }
#hero p { animation-delay: 0.5s; }
#hero .inline-flex { animation-delay: 0.1s; }
#hero .flex { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Testimonial cards */
#testimonials .bg-charcoal-800 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

#testimonials .bg-charcoal-800.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Why us cards */
#why-us .text-center > div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#why-us .text-center > div.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1c1c1c inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Selection color */
::selection {
  background: rgba(194, 98, 62, 0.3);
  color: #fff;
}
