/* ==========================================
   THE HAIR GARAGE — Custom Styles
   Charcoal + Coral | Editorial Design
   ========================================== */

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #3d3d3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B4A;
}

/* --- Floating card animations --- */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.floating-card {
  animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
  animation: float3 5s ease-in-out infinite;
}
.floating-card-4 {
  animation: float4 8s ease-in-out infinite;
}

/* --- Service card hover glow --- */
.service-card:hover {
  box-shadow: 0 20px 60px -20px rgba(255, 107, 74, 0.15);
}

/* --- Gallery hover --- */
.gallery-item {
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Navbar glass effect --- */
.nav-scrolled {
  background: rgba(15, 15, 15, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 74, 0.1);
}

/* --- Mobile menu transitions --- */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s 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.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Testimonial card hover --- */
.testimonial-card:hover {
  border-color: rgba(255, 107, 74, 0.3);
  transform: translateY(-4px);
  transition: all 0.4s ease;
}

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

/* --- Selection color --- */
::selection {
  background: rgba(255, 107, 74, 0.3);
  color: #fff;
}
