
.shadow-header {
  position: fixed;
  top: 0;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.shadow-header.active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.glass-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0a0f1a;
  transition: all 0.3s ease;
  z-index: 999;
}

.glass-header.scrolled {
  backdrop-filter: blur(5px) saturate(160%);
  background: linear-gradient(
    135deg,
    rgba(10, 15, 26, 0.65),
    rgba(36, 52, 84, 0.4),
    rgba(88, 98, 130, 0.3)
  );
  background-size: cover;
  border-bottom: 1px solid rgba(200, 200, 255, 0.08);
  position: relative;
  z-index: 999;
}

.glass-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2FC646, #1420cc, #423aaf);
  background-size: 200% 100%;
  animation: compression-glow-cycle 2s ease-out forwards;
  opacity: 0.9;
  border-radius: 2px;
  pointer-events: none;
}

.glass-header.scrolled::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  border-radius: 2px;
  background: rgb(47, 198, 70);

  box-shadow:
    0 0 12px rgba(47, 198, 70, 0.6),
    0 0 24px rgba(47, 198, 70, 0.4),
    0 0 48px rgba(47, 198, 70, 0.2);

  animation: dying-glow-fade 2s ease-out 1.3s forwards;
}

@keyframes compression-glow-cycle {
  0% {
    width: 100%;
    opacity: 0.9;
    filter: brightness(1);
  }
  30% {
    width: 10px;
    opacity: 1;
    filter: brightness(1.2);
  }
  60% {
    width: 100%;
    opacity: 1;
    filter: brightness(1.5);
  }
  85% {
    filter: brightness(2.2);
    opacity: 1;
  }
  100% {
    filter: brightness(0.6);
    opacity: 0;
  }
}

@keyframes dying-glow-fade {
  0% {
    opacity: 0;
    filter: brightness(1.2);
  }
  30% {
    opacity: 0.8;
    filter: brightness(1.6);
  }
  70% {
    opacity: 1;
    filter: brightness(2.5);
  }
  100% {
    opacity: 0;
    filter: brightness(0.5);
  }
}

@media (max-width: 991.98px) {
  #header nav.navbar {
    display: none !important;
  }
}
