/* Custom styles for Psalms Coffee */

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

/* Navigation styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d49a2a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animations */
.menu-line {
  transition: all 0.3s ease;
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

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

.reveal.hidden {
  opacity: 0;
  transform: translateY(40px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal.hidden {
    opacity: 1;
    transform: translateY(0);
  }
  
  html {
    scroll-behavior: auto;
  }
  
  img, .gallery img {
    transition: none;
  }
  
  img:hover, .gallery img:hover {
    transform: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #0a1a3a;
}

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

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

/* Selection color */
::selection {
  background: #d49a2a;
  color: #0a1a3a;
}
