/* Custom styles for Precision Painting */

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

/* Floating animation for hero stat cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

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

.floating-card-2 {
  animation: float-delayed 5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

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

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

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

/* Navbar styles */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
  background: #e85d2e;
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: #f8c4b0;
  color: #662016;
}
