.main-nav {
  background: var(--white);
  height: 85px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: var(--primary);
}

/* ── Dropdown ── */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chevron-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.dropdown {
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: 14px;
  padding: 10px 0;
  min-width: 210px;
  list-style: none;
  gap: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  z-index: 999;
  transition: opacity 0.25s ease 0.35s, transform 0.25s ease 0.35s, visibility 0.25s 0.35s;
}

/* Arrow pointer */
.dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  rotate: 45deg;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: 0.2s;
}

.dropdown li a ion-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

.dropdown li a:hover {
  background: rgba(48, 27, 243, 0.05);
  color: var(--primary);
  padding-left: 28px;
}

.btn-started {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(48, 27, 243, 0.25);
  transition: all 0.3s ease;
}

.btn-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(145, 40, 195, 0.4);
  filter: brightness(1.1);
}

.hamburger {
  display: none;
  font-size: 35px;
  cursor: pointer;
  color: var(--primary);
}

.mobile-only { display: none; }

@media (max-width: 992px) {
  .hamburger { display: block; }
  .nav-actions .btn-started { display: none; }

  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    text-align: center;
    padding: 50px 0;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .nav-menu.active { top: 85px; }
  .mobile-only { display: block; }

  /* Mobile dropdown — revert to simple display toggle */
  .dropdown {
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: rgba(48, 27, 243, 0.04);
    padding: 5px 0;
    margin-top: 8px;
    min-width: unset;
    width: 100%;
  }

  .dropdown::before { display: none; }

  .has-dropdown.open .dropdown {
    display: flex;
  }

  .has-dropdown.open .chevron-icon {
    transform: rotate(180deg);
  }

  .dropdown li a {
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .dropdown li a:hover {
    padding-left: 20px;
  }
}
