@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: poppins, arial;
}

@keyframes slide {
  from {
    transform: translateX(-2rem);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 0;
  }
}

.header {
  background-color: rgba(0, 0, 0, 0.263);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem 0;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  border-bottom: 2px solid gray;
  z-index: 1999;
}

.nav_links, .header_li, .header_link {
  display: flex;
  gap: 3rem;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.logo {
  width: 15rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 1rem;
}

.cta {
  background-color: #ff8800;
  color: #fff;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  transform: none;
  padding-right: 0.5rem;
}

.fabb {
  animation: slide 1s ease-in infinite;
  margin-left: 3rem;
}

.header_link::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #ff6600;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -3px;
  left: 0;
}

.header_link:hover::before {
  width: 100%;
}

.header_link:hover {
  color: #ff6600;
  transform: scale(1.1);
  transition: transform 0.3s ease, color 0.3s ease;
}

.header_link {
  transition: all .5s ease-in-out;
}

/* Dropdown Menu */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #292929;
  min-width: 270px;
  display: none;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  z-index: 1000;
  width: 15rem;
}

.navbar__dropdown-item {
  padding: 10px 15px;
}

.navbar__dropdown-item a {
  display: block;
  color: white;
  font-size: 17px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
}

.navbar__dropdown-item a:hover {
  background: #ff6600;
  color: white;
}

/* Show dropdown on hover with animation */
.navbar__dropdown:hover .navbar__dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__link {
  text-decoration: none;
}

li {
  list-style: none !important;
}

/* hamburger */
.hamburger_icon {
  display: flex;
  cursor: pointer;
  z-index: 1000;
  width: 33px;
  height: 30px;
  flex-direction: column;
  align-items: center;
  display: none;
}

.line {
  width: 100%;
  height: 3px;
  background-color: #fff;
  margin: 6px;
  border-radius: 10px;
}

.nav_links.active {
  display: flex;
}

@media (max-width: 768px) {
  .logo {
    width: 7rem;
    height: 4rem;
    border-radius: 5px;
    object-fit: cover;
  }

  .cta {
    display: none;
  }

  .nav_links {
    transform: translateY(-50rem);
    flex-direction: column;
    display: block;
    text-align: center;
    font-size: 1.2rem;
    position: absolute;
    background-color: #ff6600;
    top: 0;
    right: 0;
    left: 0;
    gap: 2rem;
    bottom: 0;
    height: 24rem;
    border-radius: 0.4rem;
    font-weight: 300;
    font-size: 1.4rem;
    padding: 5rem;
    transition: ease-in-out 0.5s;
    z-index: 1000;
  }

  .nav_links.active {
    display: flex;
    transform: translateY(0);
  }

  .navbar__dropdown, .navbar__link {
    text-align: center;
    color: #fff;
  }

  .header_link {
    font-weight: 300;
    font-size: 1.4rem;
    transform: none !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1rem;
    border-bottom: 2px solid gray;
    z-index: 1999;
  }

  .hamburger_icon {
    display: block;
  }

  .navbar__dropdown-menu {
    position: absolute;
    top: 100%;
    background: #292929;
    min-width: 270px;
    display: none;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    width: 5rem;
    transform:  .5s;
  }
}

@media (min-width: 769px) and (max-width: 1288px) {
  .nav_links {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 3rem;
    position: static;
    background-color: transparent;
    height: auto;
    padding: 0;
    transform: none;
  }

  .hamburger_icon {
    display: none;
  }

  .cta {
    display: none;
  }

  .header_link {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
  }

  .navbar__link{
    font-size: 1rem;
  }

  .logo {
    width: 10rem;
    height: 6rem;
    border-radius: 5px;
    object-fit: cover;
  }
}
