/* Custom styles for P & K Nails Spa */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background-color: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #d1fae5;
}
::-webkit-scrollbar-thumb {
  background: #065f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Selection color */
::selection {
  background-color: #065f46;
  color: #fefdf8;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.25s ease;
}

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

/* Hero gradient animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#hero {
  background-size: 200% 200%;
}

/* Floating shapes animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-3deg); }
}

/* Apply float animations to decorative shapes */
#hero .absolute:nth-child(2) { animation: float 6s ease-in-out infinite; }
#hero .absolute:nth-child(3) { animation: floatReverse 8s ease-in-out infinite; }
#hero .absolute:nth-child(4) { animation: float 7s ease-in-out infinite; }
#hero .absolute:nth-child(5) { animation: floatReverse 5s ease-in-out infinite; }
#hero .absolute:nth-child(6) { animation: float 6.5s ease-in-out infinite; }

/* Service card hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

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

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

/* Print styles */
@media print {
  #navbar, #mobileMenuBtn, #mobileMenu { display: none; }
  body { background: white; color: black; }
  section { page-break-inside: avoid; }
}
