/* Custom styles for World Construction Sheet Metal LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A1628;
}
::-webkit-scrollbar-thumb {
  background: #1E3A5F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A853;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #fff;
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service cards */
.service-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 168, 83, 0.15);
}

/* Project cards */
.project-card {
  cursor: pointer;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Floating stat cards animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float 7s ease-in-out infinite 1s; }
.floating-card-4 { animation: float 5.5s ease-in-out infinite 1.5s; }

/* Gold shimmer effect on buttons */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@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; }
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #D4A853 0%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #D4A853;
  outline-offset: 2px;
}

/* Button ripple effect */
button::after, a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Subtle pattern overlay for sections */
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
