.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
}

.nav-container {
  width: 100%;
  /* margin: auto; */
  padding: 8px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(20, 34, 117, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease,
    border-color 0.6s ease,
    padding 0.4s ease;
}

.nav-elements {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1300px;
}

.logo img {
  height: 40px;
  transition: 0.35s;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border-radius: 20px;

  text-decoration: none;

  color: #1f2d6e;
  font-weight: 600;

  transition:
    color 0.4s ease,
    background 0.4s ease;
}

.nav-menu a:hover {
  color: #243996;
  /* background: rgba(255, 159, 90, 0.164); */
}

.nav-menu a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
  color: #1f2d6e;
  /* background: linear-gradient(135deg, #f97316, #ea580c); */
  /* box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35); */
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 25%;
  height: 2px;
  border-radius: 20px;
  background: #f97316;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition:
    width 0.35s ease,
    transform 0.35s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.nav-menu a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active:hover::after {
  width: 81%;
}

.navbar-line {
  bottom: -1px;
  left: 0px;
  width: 95%;
  height: 1px;
  /* margin: 25px auto 35px auto; */
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #fdba74,
    #f97316,
    #fdba74,
    transparent
  );
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: lineAppear 0.7s ease forwards;
  animation-delay: 0.75s;
  position: absolute;
}
