/* Custom styles for Dodge Painting Co. */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fdf4f8;
}

::-webkit-scrollbar-thumb {
  background: #be185d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(131, 20, 67, 0.1);
}

/* Hero image gradient overlay */
.hero-image-overlay {
  background: linear-gradient(135deg, rgba(131, 20, 67, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
}

/* Service card hover effect */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(131, 20, 67, 0.15);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1);
}

/* Animation for floating card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

/* Custom selection color */
::selection {
  background: #fbcfe8;
  color: #831443;
}
