/* Custom styles for Dudley's Lounge */

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

/* Scroll reveal base — content is visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Only apply animations when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
#site-header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Nav link underline on hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1B4332;
  border-radius: 1px;
  transition: width 0.2s ease, left 0.2s ease;
}
.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  border-left-color: #1B4332;
  padding-left: 1.25rem;
}

/* Subtle image hover */
img {
  will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F9F4EC;
}
::-webkit-scrollbar-thumb {
  background: #b9d4bb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8cbb8e;
}

/* Selection color */
::selection {
  background: #b9d4bb;
  color: #1B4332;
}
