/* ═══════════════════════════════════════
   Hair Factory — Custom Styles
   ═══════════════════════════════════════ */

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #1A0A15 0%, #4A1D3F 35%, #6B2F5B 60%, #8B3A6A 80%, #A8558A 100%);
}

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

/* ── Navbar ── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #F5C518;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Buttons ── */
.btn-primary {
  background: #F5C518;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #FFD966;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(245, 197, 24, 0.3);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ── Hero Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-desc {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-buttons {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

/* ── Hero Blobs ── */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.08); }
}

.hero-blob-1 {
  animation: float1 8s ease-in-out infinite;
}

.hero-blob-2 {
  animation: float2 10s ease-in-out infinite;
}

/* ── Service Cards ── */
.service-card {
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Gallery ── */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

/* ── Form Input Focus ── */
input:focus,
select:focus,
textarea:focus {
  border-color: #F5C518 !important;
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15) !important;
}

/* ── Selection ── */
::selection {
  background: rgba(245, 197, 24, 0.3);
  color: #4A1D3F;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #f472b6;
}
