.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  transition: 0.35s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 45px rgba(37, 99, 235, 0.14);
}

.nav-container {
  width: min(1260px, 94%);
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: white;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.28);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.13),
    rgba(37, 99, 235, 0.12)
  );
  transform: translateY(-2px);
}

.nav-cta {
  color: white !important;
  background: linear-gradient(135deg, #0f766e, #2563eb, #7c3aed);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  width: 275px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.dropdown-menu a:hover {
  background: #eef6ff;
  color: #2563eb;
  transform: translateX(4px);
}

.hamburger {
  display: none;
  border: none;
  background: white;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0f172a;
  margin: 5px;
  border-radius: 4px;
  transition: 0.3s ease;
}

@media (max-width: 1100px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 92px;
    right: 3%;
    width: min(390px, 94%);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: block;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.16);
    transform: translateX(120%);
    opacity: 0;
    transition: 0.35s ease;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-link {
    justify-content: space-between;
    margin: 5px 0;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 6px 0;
    background: #f8fafc;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 72px;
  }

  .logo-container {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 1.02rem;
  }

  .nav-menu {
    top: 82px;
  }
}
