/* ---------- TOP BAR ---------- */
.topbar {
  width: 100%;
  background: #0a0e27;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ---------- NAV WRAPPER ---------- */
.nav {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

/* ---------- BRAND ---------- */
.brand-row span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #64b5f6;
}

.tagline {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #9fa8da;
}

/* ---------- DESKTOP MENU ---------- */
.menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.menu a {
  color: #e8eaf6;
  text-decoration: none;
  padding: 6px 8px;
  transition: 0.2s;
}

.menu a:hover {
  color: #64b5f6;
  text-shadow: 0 0 8px #64b5f6;
}

/* ---------- DROPDOWN ---------- */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: 35px;
  left: 0;
  background: #1a1f3a;
  border: 1px solid #232947;
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  min-width: 230px;
}

.dropdown.open .dropdown-content {
  display: flex;
}

.dropdown-content a {
  padding: 8px 15px;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: #232947;
  color: #64b5f6;
}

/* ---------- BUTTON STYLE ---------- */
.btn {
  background: #64b5f6;
  padding: 8px 14px;
  border-radius: 6px;
  color: #0a0e27 !important;
  font-weight: bold;
  transition: 0.2s;
}

.btn:hover {
  background: #7c4dff;
  color: white !important;
}

/* ---------- HAMBURGER MOBILE ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* Active hamburger */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0a0e27;
  padding: 15px;
}

.mobile-menu a {
  padding: 10px 0;
  color: #e8eaf6;
  border-bottom: 1px solid #232947;
}

.mobile-menu.open {
  display: flex;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 870px) {
  .menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
