/* Custom styles for Cindy's Café */

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

/* Float animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Nav scroll state */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(75, 33, 56, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf4f8;
}
::-webkit-scrollbar-thumb {
  background: #d7a8c8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c47aad;
}

/* Selection color */
::selection {
  background: #fcd34d;
  color: #4b2138;
}
