header, .header, .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 40px;   
  height: 100px;
  background: var(--navbar-bg, #0b1329); 
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--text-main, #ffffff);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.3s;
}

.menu a:hover {
  color: #F80505;
}

/* Əmək Kalkulyatoru və Sertifikat Yoxlama düymələri */
.calc-tab-btn, .cert-tab-btn {
  padding: 7px 14px;
  border-radius: 5px;
  background: rgba(255, 0, 0);
  border: 1px solid #FF0000 !important;
  color: #ffffff !important;
  text-decoration: none;
  transition: 0.3s ease;
}

/* İçindəki alt teqlər üçün də ağ rəng məcburiyyəti */
.calc-tab-btn *, .cert-tab-btn * {
  color: #ffffff !important;
}

.calc-tab-btn:hover, .cert-tab-btn:hover {
  background: #FF0000;
  color: #ffffff !important;
}

.lang-switcher {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-main, #ffffff);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.lang-btn:hover, .lang-btn.active {
  border-color: #FF0000;
  color: #FF0000;
}

.lang-btn.active {
  color: #ffffff;
}

/* ==========================================================================
   MOBİL VERSİYA RESPONSIVE STILLƏRİ (max-width: 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
  body, html {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
  }

  /* Loqonun ölçüsü böyüdüldü */
  .logo img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto;
    object-fit: contain;
  }

  .navbar {
    height: auto;
    min-height: 70px;
    padding: 10px 15px;
  }

  .hero, main section {
    width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobil Menyu Açılış Paneli */
  .nav-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 85vh; /* Ekran dolduqda daxili scroll aktiv olur */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #0b1329;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu ul.menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    gap: 12px;
  }

  .nav-menu ul.menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu ul.menu li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
  }

  /* Əmək Kalkulyatoru və Sertifikat Yoxlama Düymələrinin Mobil Görünüşü */
  .calc-tab-btn, .cert-tab-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    text-align: center;
    box-sizing: border-box;
    margin-top: 5px;
  }

  /* Dil Seçimi Paneli Mobil Mərkəzləşdirmə */
  .lang-switcher {
    margin-left: 0;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
  }

  .lang-btn {
    padding: 8px 16px;
    font-size: 15px;
  }

  /* Hamburger Düyməsi */
  .menu-toggle {
    display: flex !important;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 10001;
    padding: 0;
  }

  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    pointer-events: none;
  }
}

/* Kompüter Ekranında Hamburger Düyməsini Gizlət */
@media screen and (min-width: 993px) {
  .menu-toggle {
    display: none !important;
  }
}