/* Custom styles for Dirty South Ink */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0c;
}
::-webkit-scrollbar-thumb {
  background: #3b0808;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Scroll-down animation */
@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}
.animate-scroll-down {
  animation: scrollDown 1.5s ease-in-out infinite;
}

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

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active #menu-line-2 {
  opacity: 0;
}
#mobile-menu-btn.active #menu-line-3 {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.5rem;
}

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}

/* Gallery item hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 8, 8, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Selection color */
::selection {
  background: rgba(217, 119, 6, 0.3);
  color: #f5f5f5;
}

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