/* بنیادی navbar اسٹائل */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-green);
  padding: 5px 20px;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  border-bottom: 6px solid rgb(133, 133, 133);
}

.navbar .logo {
  font-size: var(--font-subheading);
  font-weight: bold;
  color: #ffd700;
}

.navbar .research {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: var(--font-subheading);
  font-weight: normal;
  line-height: 1;
}

/* ==================================================
   Nav Links
================================================== */
#nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#nav-links li {
  position: relative;
}

/* 🔹 Full width hover effect added */
#nav-links li a {
  color: #fff;
  font-family: var(--font-urdu);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: var(--font-subheading);
  font-weight: normal;
  display: block;
  /* block for full width */
  width: 100%;
  /* full row width */
  box-sizing: border-box;
  /* include padding in width */
  transition: all 0.3s ease;
}

/* 🔹 hover effect پروفیشنل */
#nav-links li a:hover {
  color: var(--color-green);
  padding: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  background: rgb(255, 255, 255);
}

/* dropdown اسٹائل */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-green);
  border-radius: 8px;
  padding: 5px 0;
  min-width: 200px;
  text-align: center;
  display: none;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.navbar .dropdown-menu li {
  list-style: none;
}

/* 🔹 Dropdown links full width hover effect */
.navbar .dropdown-menu li a {
  display: block;
  padding: 4px 12px;
  color: #fff;
  font-family: var(--font-urdu);
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
  /* full row width */
  box-sizing: border-box;
}

.navbar .dropdown-menu li a:hover {
  color: #ffd700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  background: rgba(255, 215, 0, 0.05);
}

/* hover پر show */
.navbar .dropdown:hover .dropdown-menu {
  display: flex;
}

/* menu toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 28px;
  background: #fff;
  margin: 4px 0;
  border-radius: 3px;
  transition: 0.3s;
}

/* ................................. */

/* لوگو image + لفظ اسٹائل */
.logo {
  display: flex;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 8px;
  /* image اور لفظ کے درمیان space */
}

.logo img {
  height: clamp(30px, 4vw, 50px);
  width: auto;
  border-radius: 8px;
  transition: transform 4s ease-in-out;
}
.logo a{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* لوگو hover zoom */
.logo img:hover {
  transform: scale(1.08);
}

/* لفظ "تحقیق" اسٹائل */
.logo span {
  font-family: var(--font-arabic);
  font-size: var(--font-subheading);
  font-weight: normal;
  color: ghostwhite;
}

/* 📱 Responsive */
@media(max-width:768px) {
  #nav-links {
    display: flex;
  }

  .navbar ul {
    position: absolute;
    top: 70px;
    right: -100%;
    background: var(--color-green);
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    gap: 20px;
    transition: right .4s ease;
  }

  .navbar ul.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  /* Mobile links touch-friendly full width */
  #nav-links li a {
    text-align: center;
    padding: 6px 0;
    width: 200px;
  }

  .navbar .dropdown-menu {
    transform: translateX(-100%);
  }

  .navbar .dropdown-menu li a {
    display: flex;
    min-width: 200px;
  }

}