/* Custom styles for Yellow Dog Farm */

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

/* Floating animations for hero decorative elements */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-10px) rotate(45deg); }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}
.animate-float-medium {
  animation: float-medium 4.5s ease-in-out infinite;
}
.animate-float-fast {
  animation: float-fast 3.5s ease-in-out infinite;
}

/* Reveal animations — progressive enhancement, only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: always show content even if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30, 50, 104, 0.08);
}

/* Ensure hero text is visible */
.hero-section {
  background: linear-gradient(135deg, #0a1228 0%, #111e40 40%, #1e3268 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf7;
}
::-webkit-scrollbar-thumb {
  background: #bdf0d7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ee4bb;
}

/* Selection color */
::selection {
  background: #bdf0d7;
  color: #0d4c32;
}
