
/* Navbar (White Pill Style) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.navbar.hidden {
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 35px;
}

.logo span {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 40px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  background: rgba(0, 230, 118, 0.1);
  color: #111;
}

/* ✅ Active Navbar Link */
.navbar .nav-links a.active {
  background: #a3f1b2;
  font-weight: 600;
  color: #111;
}

/* =====================
   Responsive Navbar
   ===================== */

@media (max-width: 992px) {
  .navbar {
    padding: 10px 20px;
    width: 95%;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    padding: 6px 14px;
    font-size: 14px;
  }

  .logo img {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    border-radius: 15px;
    justify-content: space-between;
  }

  /* Stack logo and toggle */
  .logo {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  /* Hide links initially */
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    display: none; /* toggled via JS */
  }

  /* Show when active (e.g. toggle button adds a class) */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
  }

  /* Optional: add a menu button */
  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
  }
}


/* Hide menu toggle by default (desktop) */
.menu-toggle {
  display: none;
}

@media (max-width: 480px) {
  .navbar {
    top: 10px;
    padding: 8px 12px;
  }

  .logo img {
    height: 28px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show only on tablets and smaller */
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    color: #111;
  }
}
