body, button {
  font-family: "Albert Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
  max-width: 1920px;
  margin: auto;
}

header.scrolled {
  background-color: #001817;
  animation: scroll 1s;
}

@keyframes scroll {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}

.menu {
  width: 70%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.menu-logo img {
  width: 85px;
  height: 85px;
  object-fit: cover;
}

.menu-elements {
  display: flex;
  gap: 40px;
}

.menu-elements a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  position: relative;
}

.menu-elements a::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  background-color: #79b900;
  width: 0%;
  height: 2px;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.menu-elements a:hover::after {
  opacity: 1;
  width: 100%;
}

.menu-elements a:hover {
  color: #79b900;
}

.active-nav a {
  color: rgb(121, 185, 0);
}

.menu-button button {
  background-color: #79b900;
  border: none;
  padding: 12px 30px;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  letter-spacing: 0.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.menu-button button:hover {
  background-color: #001819;
  border: 1px solid #79b900;
  color: #79b900;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {

  .menu{
    width: 90%;
  }

  header.scrolled {
  background-color: #001817;
  animation: scroll 1s;
  width: 100%;     /* gjithmonë i mbulon vijat */
  max-width: 100%; /* mos e kufizo me 768px */
}
  

  .hamburger {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .menu-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 24, 23, 0.6);
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 999;
  }

  .menu-elements.active {
    transform: translateY(0);
    opacity: 1;
    height: 100dvh; /* më e saktë për mobile sesa 100vh */
  }
}

/* Animacioni hamburger kur hapet */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
