/* ========================================
   TenThirtyOne Tattoo — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
  background: #d6d6db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Navbar scroll effect */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Nav links underlined on hover */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #f7601c;
  transition: width 0.3s ease;
  margin-top: 2px;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu links */
.mobile-link {
  position: relative;
  padding-left: 0;
  transition: color 0.2s ease;
}
.mobile-link:hover {
  color: #f7601c;
}

/* Service cards */
.service-card {
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: rgba(247, 96, 28, 0.15);
}

/* Gallery items */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Testimonial cards */
.testimonial-card {
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(247, 96, 28, 0.2);
  box-shadow: 0 8px 30px rgba(247, 96, 28, 0.08);
}

/* FAQ items */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(247, 96, 28, 0.3);
}

/* FAQ icon rotation */
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Scroll reveal base state (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    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; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #f7601c;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
