header {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid var(--colorBorderGray);
  position: sticky;
  top: 0;
  z-index: 10000;
}

.header-content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: right;
  align-items: center;
  height: 62px;
}

.logo-wrapper {
  flex-grow: 1;
}
.logo svg {
  height: 28px;
}

.nav-item {
  position: relative;
}
.nav-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Underline animation for links */
.nav-link {
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  display: inline-block;
  padding: 20px 0;
  position: relative;
}

/* Underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 15px;
  left: 50%;
  background-color: var(--colorFontPrimary);
  transition: all 0.2s ease-out;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* both active link and chevron/arrow */
.nav-link.active,
.dropdown-item.active {
  color: var(--colorPrimary);
}

.nav-link.active::after,
.dropdown-item.active::after {
  background-color: var(--colorPrimary);
}
.nav-link.active ~ .dropdown-toggle-btn svg {
  stroke: var(--colorPrimary);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column; /* For mobile view*/
}

.dropdown-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.dropdown-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--colorFontPrimary);
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle-btn svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 10;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--colorFontPrimary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}

/* Underline effect for dropdown items */
.dropdown-item::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 0px;
  top: 50%;
  left: 0;
  background-color: var(--colorFontPrimary);
  transition: all 0.3s ease-out;
  transform: translatey(-50%);
}

.dropdown-item:hover::after,
.dropdown-item.active::after {
  height: calc(100% - 20px); /* Account for padding */
}

/* Button styles */
.btn-lets-talk {
  font-weight: 300;
  display: inline-block;
  background-color: var(--colorPrimary);
  color: white;
  font-size: 16px;
  margin-left: 30px;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid var(--colorPrimary);
  text-decoration: none;
  transition: background-color 0.2s;
}

.language-dropdown {
  margin-left: 20px;
}

.btn-lets-talk:hover {
  background-color: white;
  color: var(--colorPrimary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

/* Language dropdown reposition*/

.breadcrumbs-navigation {
  display: none;
}

@media (min-width: 1080px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  /* Navigation styles */
  .nav-desktop {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 20px;
  }
}
