/* =========================
   NAVBAR BASE
========================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 🌙 DARK MODE */
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.8);
}

/* 🔥 SCROLL EFFECT */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
}

/* =========================
   CONTAINER
========================= */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* =========================
   LOGO
========================= */
.logo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* =========================
   LINKS DESKTOP
========================= */
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
}

/* 🔥 underline animado */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* =========================
   ACTIONS
========================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   📱 MOBILE
========================= */
/* @media (max-width: 768px){
  .nav-actions{
    display: none;
  }
} */

/* =========================
   THEME BUTTON
========================= */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* =========================
   MENU TOGGLE
========================= */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--secondary-bg);
}

.menu-toggle.active {
  transform: rotate(180deg);
}

/* =========================
   OVERLAY
========================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

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

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;

    height: 100vh;
    width: 260px;

    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);

    flex-direction: column;
    padding-top: 80px;

    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    padding: 15px 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  /* 🔥 stagger animation */
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }

  .nav-links a {
    color: var(--text);
    font-size: 1rem;
  }

  body {
    overflow-x: hidden;
  }
}