/* ===== Navbar ===== */


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 9999;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 0px 10px var(--shadow-medium);
}

body {
  padding-top: 80px;
}


.nav-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}


.nav-logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}


.nav-link svg {
  width: 20px;
  height: 20px;
}

.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: white;
  background: var(--accent-primary);
  box-shadow: 0 0px 10px var(--shadow-accent);
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
}

.theme-controls {
  display: flex;
  align-items: center;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  background: rgba(254, 70, 46, 0.1);
  transform: scale(1.1) rotate(15deg);
}


.theme-icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent-primary);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.2rem;
  }
  .nav-logo{
    font-size: 1.6em;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 6rem 2rem 2rem;
    background: var(--bg-navbar);
    backdrop-filter: blur(40px);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px var(--shadow-heavy);
    transition: right 0.4s ease;
  }

  .nav-menu.mobile-open {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-navbar);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--accent-primary);
    color: white;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9998;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 70px;
  }

  body {
    padding-top: 70px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }
}
