/* Custom styles for Shear Elite */

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

nav.scrolled .nav-link {
  color: rgba(6, 78, 59, 0.8);
}

nav.scrolled .nav-link:hover {
  color: #059669;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Mobile menu */
.mobile-menu-open #mobileMenu {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Service card stagger */
.service-card {
  opacity: 1;
  transform: translateY(0);
}

.service-card[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
  .service-card[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

/* Selection color */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #064e3b;
}
