/* Header Styles */
.nav-header {
  background-color: rgba(0, 0, 0, 0);
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 16px 0;
  transition: background-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav-header.scrolled {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 16px 0;
}

.nav-header .container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.nav-header ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav-header li {
  text-align: center;
  list-style: none;
  flex-basis: calc(100% / 7);
}

.nav-header li.logo {
  flex-grow: 1;
  flex-shrink: 0;
}

.nav-header a {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.11;
  text-transform: uppercase;
  padding: 8px;
  transition: color 0.3s, opacity 0.3s;
}

.nav-header a:hover {
  color: var(--accent);
}

.nav-header li.active a {
  color: var(--accent);
}

.nav-header li.active a:hover {
  opacity: 0.7;
}

/* Burger Menu Button */
.burger-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 50;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Burger menu active state */
.burger-menu-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 1199px) {
  .burger-menu-toggle {
    display: flex;
  }

  .nav-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.3s ease;
    z-index: 45;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-header li {
    flex-basis: auto;
    margin: 0;
  }

  .nav-header li.logo {
    flex-grow: 0;
    order: -1;
    margin-bottom: 32px;
  }

  .nav-header a {
    font-size: 24px;
    padding: 16px;
    display: block;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Ensure logo is visible on mobile */
@media (max-width: 1199px) {
  .nav-header .container::before {
    content: "";
    display: block;
    width: 120px;
    height: 40px;
    background-image: url('../img/logo-en.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}
