/* Custom styles for Pro Restoration */

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

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 20px rgba(45, 90, 61, 0.06);
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu animations */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* Mobile menu link hover */
.mobile-link {
  display: block;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.mobile-link:hover {
  border-left-color: #2D5A3D;
  padding-left: 1.25rem;
}

/* Scroll-triggered animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 500ms; }

/* Selection color */
::selection {
  background: #C5D9C7;
  color: #1C3A27;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #9DBF9F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #74A376;
}

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

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
  overflow: hidden;
}

/* Hero underline animation */
@keyframes drawUnderline {
  from { width: 0; }
  to { width: 100%; }
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Gallery hover effect */
.rounded-2xl.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Testimonial card shimmer */
.bg-white\/10 {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
