/* Custom styles for Brian Miller Hair */

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(253, 242, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 139, 0.08);
}

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }

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

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

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

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

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

/* Selection color */
::selection {
  background: #f0a7d4;
  color: #3d1244;
}
