/* Custom styles for Summit County Deputies Lodge #139 */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1a1a20;
}
::-webkit-scrollbar-thumb {
  background: #3a3a42;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #E07A5F;
}

/* Selection color */
::selection {
  background: rgba(224, 122, 95, 0.3);
  color: #f6f6f7;
}

/* Nav active state */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E07A5F;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
#mobileMenu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* Menu button animation */
.menu-line {
  transition: all 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 6;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Form select styling */
select option {
  background: #1a1a20;
  color: #e3e3e6;
}

/* Image hover zoom for community cards */
.group:hover img {
  transform: scale(1.05);
}

/* Subtle gradient text effect for hero */
.font-serif {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
