/* ==================== */
/* HEADER */
/* ==================== */
header {
  background: linear-gradient(to bottom, #c7d6e9, #ffffff);
  backdrop-filter: blur(10px);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 80px;
  gap: 20px;
}

/* Wrapper for logo + burger */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

/* Logo */
.logo img {
  height: 85px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Language Selector */
.language-selector {
  padding: 0.6rem 2rem 0.6rem 1.2rem;
  border: 1px solid var(--gray);
  border-radius: 100px;
  background-color: white;
  color: var(--dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f172a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  transition: all 0.3s ease;
}

.language-selector:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile Menu Toggle (Burger) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--dark);
  cursor: pointer;
  padding: 5px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #ffffff, #c7d6e9);
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateX(0);
}

/* ==================== */
/* MOBILE RESPONSIVENESS */
/* ==================== */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logo img {
    height: 60px;
  }

  .mobile-nav {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .mobile-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .mobile-nav .language-selector {
    margin-top: 2rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
  }

  .logo img {
    height: 50px;
  }

  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
    padding: 1.5rem;
  }
}
