/* Custom styles for Crystal Hair Salon */

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(6, 13, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-logo-text {
  color: #D8F5E8 !important;
}

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

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

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

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure content is visible without JS */
@supports not (animation: reveal 0s) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #4ABF91;
}

/* Selection color */
::selection {
  background: rgba(43, 168, 120, 0.3);
  color: #0A1628;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A3A6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

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

/* Image placeholder fallback */
img {
  background: linear-gradient(135deg, #0A1628 0%, #142D56 100%);
}

/* Subtle pattern overlay for section backgrounds */
.section-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(43, 168, 120, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
}
