/* =========================
   NAVBAR BASE (PREMIUM)
========================= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;

  padding: 18px 40px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid rgba(0,0,0,0.05);

  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================
   SCROLL EFFECT
========================= */
.navbar.scrolled {
  padding: 12px 30px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =========================
   CONTAINER
========================= */
.nav-container {
  max-width: 1150px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   LOGO
========================= */
.logo a {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* =========================
   MENU DESKTOP
========================= */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu a {
  margin-left: 28px;
  text-decoration: none;
  font-size: 14px;
  color: #666;
  position: relative;
  transition: all 0.3s ease;
}

/* UNDERLINE HOVER (PREMIUM FEEL) */
.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #000;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #000;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* =========================
   CTA
========================= */
.nav-cta {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff !important;

  padding: 10px 18px;
  border-radius: 999px;

  margin-left: 20px;
  font-weight: 500;

  transition: all 0.3s ease;
}

/* CTA HOVER */
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,172,254,0.4);
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   MOBILE VERSION
========================= */
@media (max-width: 768px) {

  .navbar {
    padding: 15px 20px;
  }

  /* SHOW HAMBURGER */
  .menu-toggle {
    display: block;
  }

  /* MOBILE MENU STYLE UPGRADE */
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);

    width: 90%;
    border-radius: 16px;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);

    flex-direction: column;
    align-items: center;

    display: flex;
    opacity: 0;
    pointer-events: none;

    padding: 20px 0;

    box-shadow: 0 20px 40px rgba(0,0,0,0.08);

    transition: all 0.35s ease;
  }

  /* ACTIVE MENU (SMOOTH DROPDOWN) */
  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-menu a {
    margin: 12px 0;
    font-size: 16px;
  }

  /* CTA FULL WIDTH MOBILE */
  .nav-cta {
    margin-top: 10px;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #111;
  display: block;
  transition: 0.3s;
}

/* ACTIVE ANIMATION */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}