/* Custom styles for Tangles Salon */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal animations - progressive enhancement, only when JS is available */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .js .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
  .js .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
  .js .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
  .js .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
  .js .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(254, 252, 246, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #52d3ad;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 191, 145, 0.15);
}

/* Gallery hover effect */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 43, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Smooth image loading */
img {
  background-color: #e8f5ee;
}
</style>
