/* ===== Custom Styles for Lexies Beauty Lounge ===== */

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

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

/* Only apply hidden state when JS adds the class (progressive enhancement) */
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #9d174d, #d97706);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #831443;
}

/* Selection color */
::selection {
  background: #fbcfe8;
  color: #831443;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image hover zoom container */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Gradient text fallback */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #9d174d;
  outline-offset: 2px;
}

/* Subtle pattern overlay for sections */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(157, 23, 77, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}
