@media (max-width: 768px) {
  /* Header Layout */
  .main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 10px 15px;
    position: relative;
  }

  .menu-toggle {
    order: 1; /* Right */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-blue);
    cursor: pointer;
    z-index: 1101;
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    z-index: 1101;
  }

  .language-switcher {
    order: 3; /* Left */
    z-index: 1101;
  }

  /* Compact language select */
  .language-switcher select {
    font-size: 0.9rem;
    padding: 5px 10px;
    min-width: 55px;
  }

  /* Hide desktop nav */
  .main-nav {
    display: none;
  }

  /* Fullscreen Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 1100;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    text-align: center;
  }

  .mobile-menu.active {
    transform: translateY(0);
  }

  #menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--dark-blue);
    z-index: 9999; /* ✅ Make sure it's clickable */
    cursor: pointer;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mobile-menu ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-decoration: none;
    position: relative;
  }

  .mobile-menu ul li a:hover {
    color: var(--nado-red);
  }

  /* نبض الناظور special */
  .mobile-menu .pulse-marker-icon {
    font-size: 1em;
    color: var(--nado-red);
    animation: pulseMarker 1.4s infinite ease-in-out;
    margin-left: 5px;
  }

  .mobile-menu .nador-pulse-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--nado-red), var(--nado-red) 60%, transparent 60%);
    background-size: 200% 100%;
    animation: waveUnderline 2.5s infinite linear;
  }

  /* Social icons */
  .mobile-menu .social-icons {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .mobile-menu .social-icons a {
    color: var(--dark-blue);
    font-size: 1.4em;
    transition: color 0.3s ease;
  }

  .mobile-menu .social-icons a:hover {
    color: var(--nado-red);
  }
}

/* Hide mobile stuff on desktop */
@media (min-width: 769px) {
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* Hide hamburger when menu is open */
.menu-toggle.hide {
  display: none !important;
}
