/* ===== BASE NAV ===== */

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 9999;

  width: 92%;
  max-width: 1180px;
  margin: 20px auto 0;

  padding: 14px 28px;

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

  border-radius: 20px;
  transition: all 0.3s ease;
}

/* ===== LOGO ===== */

.logo {
  font-family: monospace;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span {
  color: #22c55e;
}

/* ===== NAV LIST ===== */

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-list li a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* ===== CTA ===== */

.nav-cta {
  font-weight: 600;
}

/* ===== LIGHT MODE ===== */

.nav-light {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-light .logo {
  color: #0f172a;
}

.nav-light .nav-list a {
  color: #475569;
}

.nav-light .nav-list a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-light .nav-list a.active {
  background: #0f172a;
  color: #fff;
}

.nav-light .nav-cta {
  background: #22c55e;
  color: white;
}

.nav-light .nav-cta:hover {
  background: #16a34a;
}

/* ===== DARK MODE ===== */

.nav-dark {
  background: linear-gradient(90deg, #1e293b, #020617);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-dark .logo {
  color: white;
}

.nav-dark .nav-list a {
  color: rgba(255,255,255,0.7);
}

.nav-dark .nav-list a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-dark .nav-list a.active {
  background: rgba(255,255,255,0.15);
  color: #22c55e;
}

.nav-dark .nav-cta {
  background: #22c55e;
  color: white;
}




/* LIGHT */


/* DARK */
.nav-dark .nav-list {
  background: rgba(15,23,42,0.95);
}



.nav-list {
  transform-origin: top center;
}
/* ===== MOBILE ===== */

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* LIGHT NAV (HOME) */
.nav-light .menu-toggle {
  color: #0f172a; /* black */
}

/* DARK NAV (TOOLS) */
.nav-dark .menu-toggle {
  color: white;
}

.nav-list a.active {
  color: #10b981; /* Green color - change to your brand color */
  font-weight: 600;
  border-bottom: 2px solid #10b981; /* Optional underline */
}

@media (max-width: 768px) {

   body {
    padding-top: 80px;
  }

    .top-nav {
    position: fixed;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 92%;
    z-index: 9999;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;

    top: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);

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

    width: 90%;
    max-width: 320px;

    gap: 27px;
    padding: 20px;

    border-radius: 16px;

    opacity: 0;
    pointer-events: none;

    transition: all 0.3s ease;
  }

  .nav-list.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }
}

@media (max-width: 768px) {

  .nav-light .nav-list {
    background: rgba(255,255,255,0.95);
  }

  .nav-dark .nav-list {
    background: rgba(15,23,42,0.95);
  }

}
