/* Custom styles for Blue Door Hair Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf8;
}
::-webkit-scrollbar-thumb {
  background: #f9d0d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e97070;
}

/* Selection color */
::selection {
  background: #f9d0d0;
  color: #6b112d;
}

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 252, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(185, 28, 76, 0.08);
}

/* Reveal animations for below-fold content */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

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

/* Hero decorative elements */
.hero-blob {
  animation: float 8s ease-in-out infinite;
}

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

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

/* Card hover effects */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

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

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

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #b91c4c;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 76, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse dot animation */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.animate-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}
