/* 442 Welding & Fabrication - Additional Styles */

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

/* Gallery filter buttons */
.gallery-filter {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter.active {
  background-color: #f97316;
  color: #18181b;
  border-color: #f97316;
}

.gallery-filter:hover:not(.active) {
  background-color: #27272a;
  border-color: #3f3f46;
}

/* Gallery cards */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #18181b;
  border: 1px solid #27272a;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.gallery-card:hover {
  transform: translateY(-2px);
  border-color: #f97316;
}

.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-card .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  transition: opacity 0.2s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

/* Form styles */
#contact-form input,
#contact-form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service cards subtle hover */
#services .group:hover {
  transform: translateY(-1px);
}

/* Footer links */
footer a {
  transition: color 0.15s ease;
}

/* Custom selection color */
::selection {
  background-color: #f97316;
  color: #18181b;
}

/* Accessibility: focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .gallery-card,
  .gallery-card img {
    transition: none;
  }
}

/* Print styles (for when people print quotes) */
@media print {
  nav, #success-modal, footer {
    display: none !important;
  }
  
  #contact {
    page-break-before: always;
  }
}