/* Custom styles for C&F Dollar Store and More */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf4;
}
::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4ade80;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 46, 76, 0.08);
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Back to top button */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Pulse animation for hero badge */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-custom {
  animation: soft-pulse 2s ease-in-out infinite;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Subtle pattern for sections */
.pattern-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
}
