/* ============================================
   techQFX — custom styles (Tailwind utility-first)
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Grid Pattern Background ---------- */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Header shadow on scroll ---------- */
#site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(7, 26, 51, 0.45);
  background-color: rgba(7, 26, 51, 0.95);
  backdrop-filter: blur(12px);
}

/* ---------- Active nav link ---------- */
.nav-link {
  position: relative;
}
.nav-link.active {
  color: #ff8a00;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2.5px;
  background-color: #ff8a00;
  border-radius: 2px;
}

/* ---------- Mobile menu ---------- */
#mobile-menu.open {
  max-height: 480px;
}

/* ---------- Gradient Buttons ---------- */
.btn-orange-gradient {
  background: linear-gradient(135deg, #FF951A 0%, #FF8A00 50%, #E67B00 100%);
  color: #071A33;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(255, 138, 0, 0.32);
}
.btn-orange-gradient:hover {
  background: linear-gradient(135deg, #FFA438 0%, #FF951A 50%, #FF8A00 100%);
  box-shadow: 0 8px 28px rgba(255, 138, 0, 0.48);
  transform: translateY(-2px);
}

.btn-navy-gradient {
  background: linear-gradient(135deg, #0B2342 0%, #071A33 100%);
  color: #ffffff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(7, 26, 51, 0.28);
}
.btn-navy-gradient:hover {
  background: linear-gradient(135deg, #112F56 0%, #0B2342 100%);
  box-shadow: 0 8px 28px rgba(7, 26, 51, 0.42);
  transform: translateY(-2px);
}

/* ---------- High Contrast Elevated Card Shadows ---------- */
.product-card, .service-card, .testimonial-card {
  will-change: transform, box-shadow;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.product-card:hover, .service-card:hover, .testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(7, 26, 51, 0.18), 0 10px 20px -6px rgba(255, 138, 0, 0.12);
}

/* High contrast elevated shadow utility */
.shadow-premium {
  box-shadow: 0 10px 30px -5px rgba(7, 26, 51, 0.08), 0 4px 10px -2px rgba(7, 26, 51, 0.04);
}
.shadow-premium-lg {
  box-shadow: 0 24px 50px -12px rgba(7, 26, 51, 0.2), 0 8px 24px -4px rgba(7, 26, 51, 0.08);
}

/* Glass window frame container */
.window-frame {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ---------- Premium Floating Back-To-Top Button ---------- */
#back-to-top {
  box-shadow: 0 10px 30px rgba(255, 138, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
#back-to-top:hover {
  box-shadow: 0 14px 36px rgba(255, 138, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.08);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ff8a00;
  outline-offset: 2px;
}

/* Form error states */
.input-error {
  border-color: #ef4444 !important;
}

/* ---------- Animated Process Track Line ---------- */
@keyframes processLineFlow {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.process-animated-line {
  background: linear-gradient(90deg, rgba(255, 138, 0, 0.15) 0%, rgba(255, 138, 0, 0.9) 50%, rgba(255, 138, 0, 0.15) 100%);
  background-size: 200% 100%;
  animation: processLineFlow 3s linear infinite;
}

img, svg {
  max-width: 100%;
  height: auto;
}
