/* =========================
   HEADER
========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: 0.4s ease;
}

header.scrolled {
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

header.scrolled .logo {
  color: var(--secondary);
  font-style: oblique;
}

header.scrolled .nav-links a {
  color: var(--secondary);
}
header.scrolled .nav-links a:hover {
  color: var(--primary);
}

header.scrolled .menu-btn {
  color: var(--secondary);
}

header.scrolled .nav-btn{
    background:var(--primary);
    color:white;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 40px;
  font-weight: 800;
  font-style: oblique;
  letter-spacing: -2px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--primary-dark);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  padding: 40px 30px;
  z-index: 2000;
  transition: 0.4s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
  right: 0;
}

.sidebar a {
  display: block;
  margin-bottom: 25px;
  color: var(--secondary);
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  margin-bottom: 30px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .nav-links,
  .nav-btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}
