/* =========================
   NAVBAR BASE
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 2000; /* Higher than content */
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  width: 100%;
}

/* =========================
   LEFT SIDE
========================= */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo */
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================
   RIGHT SIDE
========================= */
.nav-right {
  display: flex;
  align-items: center;
}

/* =========================
   SEARCH
========================= */
.search-container {
  position: relative;
}

.search-icon {
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}

/* Hide search form safely */
#search-form {
  position: absolute;
  right: 0;
  top: 40px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#search-form input[type="text"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  outline: none;
  width: 180px;
}

/* =========================
   MENU LINKS (Mobile)
========================= */
.menu-links {
  display: none;
  flex-direction: column;
  background: #020617;
  width: 100%;
  border-top: 1px solid #1e293b;
  animation: slideDown 0.25s ease forwards;
}

.menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease;
}

.menu-links a i {
  width: 20px;
  text-align: center;
}

.menu-links a:hover {
  background: #1e293b;
  color: #fff;
}

/* ACTIVE MENU */
.menu-links.active {
  display: flex;
}

/* =========================
   DESKTOP VIEW
========================= */
@media (min-width: 768px) {

  .hamburger {
    display: none;
  }

  .menu-links {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    border-top: none;
  }

  .menu-links a {
    padding: 16px 18px;
    font-size: 14px;
  }
}

/* =========================
   ANIMATION
========================= */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}