/** ======== HEADER ======== **/
header {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 0 0 16px 16px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 25px;
  z-index: 1000;
  /* transition: all 0.3s ease; */
}

#header-container {
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header-container a {
  text-decoration: none;
}

/** Language Toggle Button **/
.lang-toggle {
  background: transparent;
  border: 2px solid #d68910;
  color: #d68910;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.lang-toggle.active,
.lang-toggle:hover {
  background: #d68910;
  color: #0a1938;
}

/** ======== LOGO ======== **/
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo h2 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  opacity: 0.85;
  background-color: #faf8f0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/** ======== NAVIGATION ======== **/
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 12px;
  gap: 40px;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
}

nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80%;
}

nav ul li a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #faf8f0;
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: width 0.5s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

#nav-home {
  white-space: nowrap;
}

nav.active {
  left: 0;
}

/** ======== MOBILE MENU ======== **/
#menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 1001;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

#menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#menu-btn i {
  font-size: 24px;
  color: var(--text-color);
  opacity: 0.8;
}

@media screen and (max-width: 880px) {
  header {
    padding: 0;
  }
  #header-container {
    height: 80px;
    padding: 0 25px;
  }
  #menu-btn {
    display: flex;
  }
  nav {
    position: fixed;
    top: 0;
    left: -250%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(#0e1e42, #01050d);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 20px;
    background: transparent;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    width: 100%;
    padding: 15px 0;
    font-size: 1.2rem;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    padding: 0 0 0 5px;
  }
}

@media (max-width: 310px) {
  .logo h2 {
    font-size: 18px;
  }
  #menu-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
  }
  #menu-btn i {
    font-size: 18px;
  }
}

@media (max-width: 270px) {
  .logo h2 {
    font-size: 14px;
  }
  #menu-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }
  #menu-btn i {
    font-size: 14px;
  }
}

@media (max-width: 220px) {
  .logo h2 {
    font-size: 12px;
    white-space: nowrap;
  }
  #menu-btn {
    width: 15px;
    height: 15px;
    border-radius: 50%;
  }
  #menu-btn i {
    font-size: 12px;
  }
}
