/* ========== MENU BAR STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 0.8rem;
  color: #475569;
}

/* Desktop navigation with hover dropdowns */
.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  text-decoration: none;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: #eef2ff;
  color: #3b82f6;
}

/* dropdown menu - appears on hover */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 1rem;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  border: 1px solid #e2e8f0;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  transition: 0.2s;
}

.dropdown-menu li a:hover {
  background: #f1f5f9;
  color: #3b82f6;
  padding-left: 1.5rem;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1e293b;
  border-radius: 4px;
  transition: 0.2s;
}

/* Mobile overlay & slide menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 998;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: right 0.3s ease;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #eef2f6;
  cursor: pointer;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

.mobile-submenu a {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #475569;
  border-radius: 0.8rem;
}

.mobile-submenu a:hover {
  background: #eef2ff;
  color: #2563eb;
}

.close-mobile {
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  align-self: flex-end;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-flex {
    flex-wrap: nowrap;
  }
}