/* ---------------- NAVBAR BASE ---------------- */

/* Prevent Content from hiding under navbar */
body {
  padding-top: 70px; /* Adjust if needed */
}

/* Make Navbar Fixed */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;  /* NEW */
  padding: 6px 20px;               /* Smaller height */
  height: 70px;                    /* Control height */
}

/* Reduce logo size for consistency */
.navbar .logo img {
  width: 90px;
  height: 65px;   /* Fits inside 70px navbar */
  object-fit: contain;
}

.nav-links {
  margin-left:30px;
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  background: #134faf;
}

/* Active Nav Item */
.nav-links a.active {
  border: 2px solid orange;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.45);        /* translucent dark */
  backdrop-filter: blur(12px);            /* glass blur */
  -webkit-backdrop-filter: blur(12px);    /* safari */
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ---------------- DROPDOWN BUTTON ---------------- */

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

.dropbtn {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  height: 100%;
  box-sizing: border-box;
}

.dropbtn:hover {
  background: #134faf;
  border-radius: 6px;
}

/* Dropdown arrow */
.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

/* ---------------- DROPDOWN MENU ---------------- */

.dropdown-content {
  display: none !important;
  position: absolute;
  top: 48px;
  left: 0;
  background: #1f2433;
  min-width: 180px;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  z-index: 99;
}

.dropdown.active .dropdown-content {
  display: block !important;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  padding: 10px 15px;
  font-size: 14px;
  display: block;
}

.dropdown-content li a:hover {
  background: #3b82f6;
}


.dropdown.open .dropdown-content {
  display: block;
}

/*This is responsive*/
/* HAMBURGER BUTTON (hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: 0.3s;
}

/* MOBILE MENU */
@media (max-width: 600px) {

  /* ---------- NAVBAR TOP BAR ---------- */
  .navbar {
    display: flex !important;
    flex-direction: row !important;      /* same line */
    align-items: center !important;      /* vertical align */
    justify-content: space-between !important; /* push to edges */
    padding: 6px 16px !important;
    height: 65px !important;             /* Compact height */
    width: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;  /* glass effect */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999 !important;
  }

  /* ---------- LOGO LEFT EDGE ---------- */
  .navbar .logo {
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .navbar .logo img {
    width: 80px !important;
    height: 55px !important;
    object-fit: contain !important;
  }

  /* ---------- HAMBURGER RIGHT EDGE ---------- */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .hamburger span {
    width: 26px !important;
    height: 3px !important;
    background: white !important;
    border-radius: 3px !important;
  }

  /* ---------- MOBILE MENU (FLOATING GLASS BOX) ---------- */
  .nav-links {
    position: absolute !important;
    top: 65px !important;
    right: 10px !important;
    width: 180px !important;
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 12px !important;
    flex-direction: column !important;
    padding: 10px 0 !important;
    display: none !important;
  }

  .nav-links.show {
    display: flex !important;
  }

  /* ---------- MOBILE DROPDOWN OPENS DOWNWARD ---------- */
  /* ---------- MOBILE DROPDOWN OPENS DOWNWARD ---------- */
.dropdown {
  width: 100% !important;
  position: relative !important; /* REQUIRED for downwards expansion */
  display: block !important;
}

.dropbtn {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 16px !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: white !important;
}

.dropdown-content {
  position: relative !important; /* overrides desktop absolute positioning */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: rgba(40, 40, 40, 0.55) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 5px 0 !important;
  display: none !important;
}

.dropdown.active .dropdown-content {
  display: block !important;
}

.dropdown-content li a {
  padding-left: 35px !important;
}

  /* ---------- REMOVE ACTIVE HIGHLIGHT ---------- */
  .nav-links a.active {
    border: none !important;
    background: none !important;
    padding: 8px 14px !important;
  }

  /* ---------- Smooth drop animation ---------- */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

}

