/* Custom styles beyond Tailwind */

/* Scroll dot animation */
@keyframes scrollBounce {
  0%, 100% { top: 0; }
  50% { top: 12px; }
}
.scroll-dot {
  animation: scrollBounce 1.4s ease-in-out infinite;
}

/* Mobile menu transitions */
.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: none;
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
#menuBtn.open .menu-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
#menuBtn.open .menu-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Image hover parallax-lite */
.group img {
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94);
}

/* Subtle hover lift on cards */
.group {
  will-change: transform;
}

/* Smooth focus outlines */
a:focus-visible, button:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color handled in HTML head */

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