/* ===== Custom Styles for Brionne Beauty ===== */

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0510;
}
::-webkit-scrollbar-thumb {
  background: #3B0A4A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5c25d6;
}

/* Selection */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #f5f0ff;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
.js-enabled .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hero scroll line animation ===== */
@keyframes scrollLine {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 48px;
    opacity: 1;
  }
  100% {
    height: 48px;
    opacity: 0;
  }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===== Navbar scroll state ===== */
.navbar-scrolled {
  background: rgba(6, 3, 9, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 10, 74, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ===== Mobile menu transitions ===== */
#mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

#mobile-menu.closed {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ===== Mobile link hover ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(59, 10, 74, 0.3);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Gold shimmer on hover for cards ===== */
.reveal:hover .group-hover\:bg-amber-500\/20 {
  transition: background-color 0.5s ease;
}

/* ===== Custom select arrow ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23966aff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ===== Gold accent divider ===== */
.gold-divider {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.4), transparent);
  height: 1px;
}

/* ===== Subtle gradient border effect ===== */
.gradient-border {
  position: relative;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.3), rgba(59, 10, 74, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== Back to top button ===== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
