/* Navbar */

.header {
  background: linear-gradient(90deg, #3d71f5, #0d4ef2);
  box-shadow: 0 0.25em 0.375em hsla(0, 0%, 0%, 0.1);
  display: flex;
  justify-content: center;
  padding: 5px;
  border-radius: 20px;
}

.navbar {
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  position: relative;
  border-radius: 16px;
}

.navbar::after,
.navbar::before {
  border-radius: inherit;
  content: "";
  display: block;
  position: absolute;
  inset: 0;
}

.navbar::after {
  border: 1px solid #0d4ef2;
  mask-image: linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, #fff);
}

.navbar::before {
  border: 1px solid #fff;
  mask-image: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0) 50%);
}

.logo {
  cursor: pointer;
  z-index: 1;
}

.logo-img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.nav-link {
  color: #ffffff; /* White text */
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1rem;
  transition: background-color 0.3s;
  border-radius: 20px;
  transition: all 0.4s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(176, 210, 218, 0.4); /* Primary blue */
}

.cta-btn {
  background-color: #6fa3a4; /* Accent green */
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #45b066; /* Darker green */
}

.hamburger {
  display: none;
  padding: 4px 8px;
  z-index: 1;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 5px auto;
}

.subheader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.submenu-button {
  background: linear-gradient(90deg, #3d71f5, #0d4ef2);
  box-shadow: 0 0.25em 0.375em hsla(0, 0%, 0%, 0.1);
  display: flex;
  justify-content: center;
  padding: 5px;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.4s ease-in-out;
}

.submenu-button:hover {
  scale: 1.05;
}

.submenu-button-inner {
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  position: relative;
  border-radius: 16px;
}

.submenu-button-inner::after,
.submenu-button-inner::before {
  border-radius: inherit;
  content: "";
  display: block;
  position: absolute;
  inset: 0;
}

.submenu-button-inner::before {
  border: 1px solid #fff;
  mask-image: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0) 50%);
}

.navbar::after {
  border: 1px solid #0d4ef2;
  mask-image: linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, #fff);
}

@media (max-width: 768px) {
  /* Navbar */

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .navbar::after {
    border-color: #4b6e72;
  }

  .logo-img {
    height: 30px;
  }
  .nav-links {
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    width: 100%;
  }
  .nav-link,
  .cta-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    margin: 0;
    color: #4b6e72; /* Updated color */
  }
  .nav-link {
    color: #fff;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 7px;
    border-radius: 5px;
    border-style: none;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.05)
    );
  }
  .navbar.responsive .nav-links {
    /* max-height: 500px; */
    opacity: 1;
    transform: translateY(0);
    padding-top: 40px;
    height: 100vh;
    max-height: none;
  }
}
