header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 80px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-right: 3rem;
}

.school-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--holberton-blue), var(--holberton-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transform: perspective(500px) rotateX(10deg);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(45deg, var(--holberton-blue), var(--holberton-magenta));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-btn:hover {
  transform: translateY(-2px);
}

.language-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-trigger::after {
  content: '▼';
  font-size: 0.8em;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(0,0,0,0.02);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.holberton-logo {
  height: 40px;
  width: auto;
}

.richat-logo {
  height: 40px;
  width: auto;
}

.mauritania-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--richat-primary);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  margin-left: 0.5rem;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
    border-radius: 3px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

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

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

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.02);
  }

  .dropdown-trigger::after {
    display: none;
  }
}