/* ============================================
   MC Mechanical — Custom Styles
   Dark industrial grit. Orange accents.
   ============================================ */

/* Noise/grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

/* Selection color */
::selection {
  background: rgba(232, 93, 4, 0.3);
  color: #f5f5f5;
}

/* Hero glow text effect */
.hero-glow {
  text-shadow:
    0 0 40px rgba(232, 93, 4, 0.15),
    0 0 80px rgba(232, 93, 4, 0.05);
}

/* CTA button glow */
.cta-glow {
  box-shadow: 0 0 20px rgba(232, 93, 4, 0.3);
}

.cta-glow:hover {
  box-shadow: 0 0 30px rgba(232, 93, 4, 0.5);
}

/* Pulse animation for floating button (plays once) */
.pulse-once {
  animation: pulse-ring 2s ease-out 3s 1;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(232, 93, 4, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0);
  }
}

/* Service card hover effect */
.service-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(232, 93, 4, 0.1);
}

/* Fade-in animation for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery hover */
.gallery-item {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
}

/* Modal open state */
#quote-modal.open {
  display: flex;
}

/* Lightbox open state */
#lightbox.open {
  display: flex;
}

/* Form input focus ring */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.2);
}

/* Form validation states */
input.invalid,
select.invalid {
  border-color: #dc2626 !important;
}

input.valid,
select.valid {
  border-color: #16a34a !important;
}

/* Select dropdown styling */
select option {
  background: #1a1a1a;
  color: #f5f5f5;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e85d04;
}

/* Scroll hint fade */
#scroll-hint {
  transition: opacity 0.5s ease;
}

/* Sticky video container */
#hero-scroll .sticky {
  will-change: transform;
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#form-success .w-16 {
  animation: checkmark 0.5s ease forwards;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 3.5rem;
  }

  #hero p {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
  }

  #floating-quote-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  #floating-quote-btn svg {
    display: none;
  }
}
