/* ============================================
   Kelly's Hair Place — Custom Styles
   ============================================ */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Navbar transitions */
.nav-logo-text {
  transition: color 0.4s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-logo-text {
  color: #1e293b;
}

nav.scrolled .nav-link {
  color: #475569;
}

nav.scrolled .nav-link:hover {
  color: #0d9488;
}

nav.scrolled #menu-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
}

/* Mobile menu */
.mobile-link {
  position: relative;
  padding-left: 0;
}

/* Hero animations */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-float-1 {
  animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
  animation: float 8s ease-in-out infinite;
  animation-delay: -2s;
}

.hero-float-3 {
  animation: float 7s ease-in-out infinite;
  animation-delay: -4s;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Gallery hover */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Service card hover */
.service-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Testimonial card */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.12);
}

/* Button pulse on CTA */
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}

.cta-pulse {
  animation: gentle-pulse 2.5s ease-in-out infinite;
}

/* Back to top button */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: #ccfbf1;
  color: #134e4a;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Print styles */
@media print {
  nav, #back-to-top, .reveal { display: none; }
  body { color: #000; background: #fff; }
  section { page-break-inside: avoid; }
}
