.hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--second-color);
  transition: all 0.3s ease-in-out;
}

/* Анімація бургер-меню при відкритті */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================= */
/* 🔹 DROPDOWN MENU 🔹 */
/* ============================= */
.nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  opacity: 0;
  transition: left 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.nav-menu a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
}

.nav-menu.active {
  left: 0;
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .hamburger,
  .nav-menu,
  .navbar {
    display: none;
  }
}
