/* Custom styles for Pro Tailor Alterations */

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

/* Navigation scroll state */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5eead4;
  transition: width 0.3s ease;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
}

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

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

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: 500px;
}

/* Navbar background on scroll */
#navbar.scrolled {
  background: rgba(4, 47, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

/* Hero text animation - only for below fold content */
.hero-content {
  opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #042f2e;
}
