/* Custom styles for Magic Mike's Complete Vehicle Protection */

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

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

::-webkit-scrollbar-track {
  background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #2dd4a0;
}

/* Selection color */
::selection {
  background: rgba(45, 212, 160, 0.3);
  color: #ffffff;
}

/* Service card hover effects */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.4s ease,
              background-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(45, 212, 160, 0.08);
}

/* Testimonial card hover */
.testimonial-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Navbar scroll state */
header.scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Button ripple effect on hover */
button[type="submit"]:hover {
  transform: translateY(-1px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(45, 212, 160, 0.1);
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #0f2140 0%, #152d56 100%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .service-card,
  .testimonial-card,
  button,
  a {
    transition: none;
  }
  
  .service-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* Print styles */
@media print {
  header,
  #contactForm,
  .service-card,
  .testimonial-card {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .font-serif {
    color: black;
  }
}
