/* Custom styles for Da Beauty Box */

:root {
  --hero-split: 50%;
}

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

/* Selection color */
::selection {
  background-color: rgba(200, 150, 27, 0.3);
  color: #fff;
}

/* Scroll-reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

/* Navbar glass effect when scrolled */
#navbar.scrolled {
  background-color: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Subtle gold shimmer on hover for cards */
.group:hover .group-hover\:bg-gold-500\/20 {
  background-color: rgba(200, 150, 27, 0.2);
}

/* Image lazy-load fade-in */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

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

::-webkit-scrollbar-track {
  background: #060D1F;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 150, 27, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 150, 27, 0.5);
}

/* Form styles */
input:focus,
textarea:focus {
  outline: none;
  border-color: #D4A832;
  box-shadow: 0 0 0 3px rgba(212, 168, 50, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  :root {
    --hero-split: 0%;
  }

  #hero {
    padding-top: 100px;
  }
}

@media (max-width: 767px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* Reduced motion */
@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;
  }
}
