/* Custom styles for Double C Farm */

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

/* Navigation scroll state */
nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-text {
  color: #1c1917;
}

nav.scrolled .nav-link {
  color: #57534e;
}

/* Mobile menu */
#mobileMenu.open {
  max-height: 400px;
}

#mobileMenu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobileMenu.open .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #C0603A;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
  }
  .animate-float {
    animation: none;
  }
  img {
    transition: none;
  }
  .group:hover img {
    transform: none;
  }
}

/* Selection color */
::selection {
  background: #C0603A;
  color: white;
}

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

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

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

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