/* === Custom Styles for Rapid Maintenance, Inc. === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F7F7F8;
}
::-webkit-scrollbar-thumb {
  background: #D6D6DC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8A8B4;
}

/* Selection color */
::selection {
  background: #FFE8E2;
  color: #5E2016;
}

/* Floating animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

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

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

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite 1s;
}

/* Scroll indicator animation */
@keyframes scroll-down {
  0% { top: -100%; }
  100% { top: 200%; }
}

.animate-scroll-down {
  animation: scroll-down 1.5s ease-in-out infinite;
}

/* Service card hover lift */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Nav active state */
.nav-link.active {
  color: #E8634B !important;
  background: #FFF3F0 !important;
}

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

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

/* Fade-in with delay */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

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

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

/* Back to top button */
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #E8634B;
  outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  header, #backToTop, .animate-float, .animate-float-delayed, .animate-float-slow {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
