/* ============================================
   Simply Fruits — Custom Styles
   ============================================ */

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

/* Base font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f3ecda;
}
::-webkit-scrollbar-thumb {
  background: #4a7c4a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d663d;
}

/* Floating animations for hero */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(8deg); }
}

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

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

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

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(253, 251, 247, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom for gallery cards */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #4a7c4a;
  outline-offset: 2px;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  header, #mobileMenu, button { display: none; }
  body { color: #1f351f; background: white; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
