/* KTD Variation HAIR Gallery — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E85D4A;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Service card hover */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(232, 93, 74, 0.1);
}

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

/* Mobile menu */
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  width: 1.25rem;
}

#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile link animation */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobileMenu.menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }
}

/* Hero image subtle float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating {
  animation: float 6s ease-in-out infinite;
}

/* Pulsing CTA */
@keyframes pulse-coral {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 74, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(232, 93, 74, 0); }
}
.pulse-cta {
  animation: pulse-coral 2.5s ease-in-out infinite;
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
  border-color: rgba(232, 93, 74, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.1) !important;
}

/* Selection color */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #fff;
}
