/* Custom styles for Hairstyles by Cherri */

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

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

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  --rotate: 2deg;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  --rotate: -1deg;
  animation-delay: 1s;
}

.floating-card:nth-child(3) {
  --rotate: 1deg;
  animation-delay: 2s;
}

/* Reveal on scroll — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(140, 60, 35, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Geometric shape decorations */
.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 2px;
}

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

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

/* Image hover zoom container */
.overflow-hidden {
  will-change: transform;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  pointer-events: none;
}
