.navbar {
    background-color: var(--body-bg);
    z-index: 1100;
}

.nav-item {
    font-size: 20px; /* good for welders */
    font-weight: bolder;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 3px;
}

.nav-link {
    color: var(--bs-secondary);
}

.nav-link:hover, .nav-link:focus {
    color: var(--bs-secondary) !important;
    /*text-shadow: 2px 2px 2px rgba(32, 88, 175, 0.5);*/
     text-decoration: underline 1px solid var(--bs-secondary);
    text-underline-offset: .35em;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--bs-secondary) !important;
}

.nav-link.active {
    color: var(--bs-secondary) !important;
    text-decoration: underline 1px solid var(--bs-secondary);
    text-underline-offset: .35em;
}

.section-blend-light {
    box-shadow: 0px 0px 10px 10px rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}
/* Weld arc flicker effect for the hero background */

.navbar .dropdown-menu {
    z-index:1200;
    background-color: var(--bs-white);
}

/* Respect users who prefer reduced motion */

/* Technical terms:
   - keyframes: a timeline of animation states
   - pseudo-element (::after): a "fake" extra layer you can animate
   - box-shadow: the glow/bloom around the element
   - mix-blend-mode: blends the glow into the background more naturally
*/

.weld-glow-hover {
  position: relative;
  isolation: isolate;               /* keeps blend effects contained */
  transition: transform 120ms ease, box-shadow 180ms ease;
  will-change: box-shadow, transform;
}

/* The glow layer */
.weld-glow-hover::after {
  content: "";
  position: absolute;
  inset: -10px;                     /* extend glow beyond edges */
  border-radius: inherit;
  pointer-events: none;

  /* Warm arc color (tweak to match your palette) */
  background:
    radial-gradient(closest-side,
    rgba(228, 191, 106, 0.51),
    rgba(227, 192, 116, 0.27) 45%,
    rgba(23, 23, 23, 0) 72%);

  opacity: 0;
  filter: blur(6px);
  mix-blend-mode: screen;           /* makes it feel like light */
  transform: translateZ(0);
  will-change: opacity, filter, transform;
}


.weld-glow-hover:hover {
  transform: translateY(-1px);
  /*box-shadow:*/
  /*  0 0 0 1px rgba(227, 192, 116, 0.18),*/
  /*  0 6px 18px rgba(0, 0, 0, 0.25);*/
}

.weld-glow-hover:hover::after {
  opacity: 1;
  animation: weldFlicker 650ms steps(1, end) infinite;
}

/* Flicker: quick intensity changes + tiny jitter like an arc */
@keyframes weldFlicker {
  0%   { opacity: 0.12; filter: blur(7px); transform: translate(0, 0) scale(1.00); }
  8%   { opacity: 0.22; filter: blur(6px); transform: translate(0.5px, -0.5px) scale(1.01); }
  16%  { opacity: 0.10; filter: blur(8px); transform: translate(-0.5px, 0.25px) scale(1.00); }
  24%  { opacity: 0.28; filter: blur(6px); transform: translate(0.25px, 0.5px) scale(1.015); }
  36%  { opacity: 0.14; filter: blur(8px); transform: translate(0, 0) scale(1.00); }
  44%  { opacity: 0.32; filter: blur(6px); transform: translate(-0.25px, -0.25px) scale(1.02); }
  58%  { opacity: 0.16; filter: blur(8px); transform: translate(0.25px, 0.25px) scale(1.00); }
  70%  { opacity: 0.26; filter: blur(6px); transform: translate(0, -0.25px) scale(1.01); }
  86%  { opacity: 0.11; filter: blur(8px); transform: translate(-0.25px, 0) scale(1.00); }
  100% { opacity: 0.18; filter: blur(7px); transform: translate(0, 0) scale(1.01); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .weld-glow-hover:hover::after { animation: none; opacity: 0.18; }
  .weld-glow-hover { transition: none; }
}

@keyframes fadeout {
    to {opacity: 0;}
}

@keyframes header-image-animation {
    25% {
        opacity: 1;
    }
    85%, 100% {
        opacity: 0;
        scale: 3;
    }
}

@media (max-width: 575.98px) {
  /* Center the toggler (and stack header content nicely on very small screens) */
  /*.navbar .container-fluid {*/
  /*  justify-content: center !important;*/
  /*  flex-direction: column;*/
  /*  align-items: center;*/
  /*  gap: 0.5rem;*/
  /*}*/

  /*.navbar .navbar-toggler {*/
  /*  margin-left: auto;*/
  /*  margin-right: auto;*/
  /*}*/

  /* Center the collapsed menu items */
  .navbar .navbar-collapse {
    width: 100%;
  }

  .navbar .navbar-nav {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
      margin:0;
  }

  /* Hide the separators (border-left) on phones */
  .navbar .navbar-nav .nav-item {
    border-left: 0 !important;
  }

  /* Remove the right margin on the collapsed container on phones */
  .navbar #navbarNav {
    margin-right: 0 !important;
  }
}

@media (max-width: 401.98px) {
   /*Center the toggler (and stack header content nicely on very small screens)*/
  .navbar .container-fluid {
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar .navbar-toggler {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the collapsed menu items */
  .navbar .navbar-collapse {
    width: 100%;
  }

  .navbar .navbar-nav {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
      margin:0;
  }

  /* Hide the separators (border-left) on phones */
  .navbar .navbar-nav .nav-item {
    border-left: 0 !important;
  }

  /* Remove the right margin on the collapsed container on phones */
  .navbar #navbarNav {
    margin-right: 0 !important;
  }
}





