/* Custom styles for Junior's Tires and Wheels */

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

/* Custom selection color */
::selection {
  background-color: #8B1A4A;
  color: white;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background-color: rgba(254, 252, 251, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

/* Hero parallax-like effect */
#hero {
  scroll-behavior: smooth;
}

/* Service card hover animation */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B1A4A, #C4848A);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Fade-in animation for scroll reveals */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: #f0c3d4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8B1A4A;
}

/* Input focus animation */
input:focus,
textarea:focus,
select:focus {
  transform: translateY(-1px);
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Testimonial card hover */
#testimonials .bg-white:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Decorative blob animations */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10px, -10px) scale(1.05); }
  66% { transform: translate(-5px, 5px) scale(0.95); }
}

.absolute.top-32.right-20 {
  animation: float 8s ease-in-out infinite;
}

.absolute.bottom-20.left-10 {
  animation: float 10s ease-in-out infinite reverse;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #8B1A4A, #C4848A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 26, 74, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* Loading state for form */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Print styles */
@media print {
  nav, #backToTop, .absolute.top-32, .absolute.bottom-20 {
    display: none;
  }
}
