/* Custom styles for Hair by Rika */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-blur-md;
  box-shadow: 0 1px 20px rgba(10, 20, 32, 0.06);
}

#navbar.scrolled .nav-link {
  color: #152a40;
}

#navbar.scrolled .nav-link:hover {
  color: #0d1a28;
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Scroll reveal - progressive enhancement, content visible by default */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

/* Service card hover */
.group:hover .group-hover\:bg-mint-100 {
  transition: background-color 0.3s ease;
}

/* Button micro-interactions */
a, button {
  -webkit-tap-highlight-color: transparent;
}

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

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

::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #0d1a28;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}
