@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap");

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  position: fixed;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  padding: 5px;
  border-radius: 5px;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--accent-color);
  font-size: 22px;
  transition: color 0.3s;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.nav-links a:hover {
  color: white;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  width: 40px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.bar {
  position: absolute;
  height: 5px;
  width: 100%;
  background: var(--accent-color);
  transition: all 0.3s ease-in-out;
}

.bar.middle-bar {
  top: 50%;
  margin-top: -2px;
}

.bar.bottom-bar {
  bottom: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-links {
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: fit-content;
    padding-bottom: 30px;
    background-color: var(--primary-color);
    padding-top: 10px;
    transition: left 0.3s ease-in-out;
    border-right: var(--accent-color) 2px solid;
    border-left: none;
  }

  .nav-links li {
    margin: 20px;
  }

  .nav-links.show {
    left: 0;
  }

  /* Hamburger Animation */
  .menu-toggle.active .bar.top-bar {
    transform: translateY(12px) rotate(45deg);
  }

  .menu-toggle.active .bar.middle-bar {
    width: 0;
    opacity: 0;
  }

  .menu-toggle.active .bar.bottom-bar {
    transform: translateY(-12px) rotate(-45deg);
  }
}
