/* Custom styles for Eddies Heat & Air */

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

/* 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-delayed-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

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

.animate-float-delayed-2 {
  animation: float-delayed-2 4.5s ease-in-out infinite;
  animation-delay: 2s;
}

/* Nav link underline effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #34D399;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 60%;
}

/* Service card hover glow */
.service-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

/* Review card hover */
.review-card:hover {
  border-color: rgba(52, 211, 153, 0.2);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Mobile menu transitions */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Back to top button */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(52, 211, 153, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(52, 211, 153, 0.03) 0%, transparent 50%);
}

/* Selection color */
::selection {
  background: rgba(52, 211, 153, 0.3);
  color: #0B1D3A;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .animate-float,
  .animate-float-delayed,
  .animate-float-delayed-2 {
    animation: none;
    transform: none;
  }
}
