/* Custom styles for First Impressions Hair Salon */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection color */
::selection {
  background: #0D6E3F;
  color: #FEFDF8;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF9F0;
}
::-webkit-scrollbar-thumb {
  background: #0D6E3F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0a5630;
}

/* Service card image hover */
.service-card img {
  transition: transform 0.4s ease;
}
.service-card:hover img {
  transform: scale(1.05);
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: visible;
}

/* Geometric shape animations */
@media (prefers-reduced-motion: no-preference) {
  .geo-circle, .geo-rect {
    animation: float 8s ease-in-out infinite;
  }
  .geo-circle:nth-child(2), .geo-rect:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
  }
  .geo-circle:nth-child(3), .geo-rect:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(13, 110, 63, 0.1);
}

/* Star rating animation */
.star {
  display: inline-block;
  animation: starPop 0.3s ease forwards;
  opacity: 0;
}
.star:nth-child(1) { animation-delay: 0.1s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.3s; }
.star:nth-child(4) { animation-delay: 0.4s; }
.star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Image gallery hover overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 110, 63, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Counter animation */
.counter {
  display: inline-block;
}
</style>
