/* Custom styles for Curtis WigginsIII Barbering */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation state when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 251, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Mobile menu animations */
.mobile-link {
  transition: all 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #C04761;
}

/* Selection color */
::selection {
  background: #F9E0E5;
  color: #7B2D3B;
}

/* Hero gradient animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Subtle floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -10px);
  }
}

/* Pulse animation for status dot */
@keyframes softPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

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

/* Service card hover image zoom */
.group img {
  will-change: transform;
}

/* 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;
    scroll-behavior: auto !important;
  }

  .scroll-reveal:not(.revealed) {
    opacity: 1 !important;
    transform: none !important;
  }
}
