/* Custom styles that go beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.marquee-wrap {
  overflow: hidden;
}

::selection {
  background-color: #fe2c3d;
  color: #ffffff;
}

/* Animated reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero copper-wire gradient background (light theme default) */
.hero-bg {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(254, 44, 61, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(254, 44, 61, 0.12), transparent 60%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.62) 40%, rgba(241, 245, 249, 0.5) 100%);
}
.dark .hero-bg {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(254, 44, 61, 0.32), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(143, 12, 20, 0.35), transparent 60%),
    linear-gradient(115deg, rgba(15, 23, 42, 0.82) 0%, rgba(17, 24, 39, 0.65) 40%, rgba(30, 41, 59, 0.55) 100%);
}

/* Braided cable divider */
.cable-divider {
  height: 6px;
  background: repeating-linear-gradient(
    45deg,
    #fe2c3d 0px,
    #fe2c3d 10px,
    #8f0c14 10px,
    #8f0c14 20px
  );
}

/* Product card hover glow */
.product-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(254, 44, 61, 0.35);
  border-color: #fe2c3d;
}

/* Counter numbers */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Marquee for client logos */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
.dark ::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #fe2c3d; border-radius: 999px; }

/* Active nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fe2c3d;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Back to top button */
#backToTop {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Premium redesign additions ---------- */

/* Eyebrow label with a signature red dash */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e0121f;
}
.dark .eyebrow { color: #fc5462; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe2c3d, #8f0c14);
}

/* Display heading font */
.font-display {
  font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Generic hover-lift card */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(254, 44, 61, 0.3);
  border-color: #fe2c3d;
}

/* Desktop mega/dropdown menu */
.has-dropdown .dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Process/timeline connector */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 100%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #fda4ae 0 8px, transparent 8px 16px);
  display: none;
}
@media (min-width: 1024px) {
  .process-step:not(:last-child)::after { display: block; }
}
.dark .process-step:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, #8f0c14 0 8px, transparent 8px 16px);
}

/* Page banner (inner pages) */
.page-banner {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(254, 44, 61, 0.14), transparent 60%),
    linear-gradient(180deg, #fff5f5 0%, #f8fafc 100%);
}
.dark .page-banner {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(254, 44, 61, 0.16), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

/* Marquee for certification/partner strip (reverse direction variant) */
.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marquee-reverse 32s linear infinite;
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee-wrap:hover .marquee-track-reverse {
  animation-play-state: paused;
}
