
header {
  padding: .25rem 2rem;
  background-color: rgba(18, 18, 18, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 0, 100, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height:  auto;
  position: relative;
 
  top: 0;
  z-index: 999;
}

.header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 1rem;

}

.nav-logo {
  width: 5rem;
  border-radius: 1.5rem;
  box-shadow:
    0 0 6px rgba(0, 255, 255, 0.3),
    0 0 12px rgba(0, 255, 255, 0.2),
    0 0 18px rgba(255, 0, 100, 0.25);
  transition: box-shadow 0.3s ease;
}

#brand {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #e0e0e0;
}

#brand img {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 1rem;
  object-fit: cover;
  filter: drop-shadow(0 0 3px rgba(255, 0, 100, 0.3));
  filter: drop-shadow(0 0 12px rgba(0, 191, 255, 0.5));
}

#brand a {
  color: #c0f2da;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.2s ease;

  color: #a0e7ff;
    text-shadow: 0 0 6px rgba(0, 191, 255, 0.6), 
               0 0 12px rgba(0, 191, 255, 0.4);
  transition: text-shadow 0.3s ease;
}

#brand a:hover {
  opacity: 0.7;
}

header a {
  text-decoration: none;
}

ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 1.6rem;
  padding: 1rem 0;
  gap: 1.5rem;

  backdrop-filter: blur(6px);

}

ul li {
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease;
  border-radius: 6px;
  
}

ul li a {
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

ul li:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.05);
}

ul li:hover a {
  color: #09c372;
}

/* CONTACT BUTTON */
#contact {
  border-radius: 8px;
  padding: 8px 16px;
  border: 2px solid #1f69cc;
  background-color: transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 6px rgba(255, 56, 96, 0.2);
}

#contact:hover {
  background-color: #1f69cc;
  transform: scale(1.05);
}

#contact a {
  color: #1f69cc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

#contact:hover a {
  color: white;
}

/* HAMBURGER MENU */
#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: white;
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Hamburger open animation */
.open .bar1 {
  transform: rotate(-45deg) translate(-6px, 6px);
}
.open .bar2 {
  opacity: 0;
}
.open .bar3 {
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(255, 0, 100, 0.05);
  background-color: #171e29;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);

}

.mobile-menu li {
  margin-bottom: 12px;
  width: 80%;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
}

.mobile-menu li a {
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  font-weight: 600;
  color: white;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mobile-menu li:hover {
  transform: scale(1.05);
}

.mobile-menu li:not(#contact) a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #09c372;
  color: #09c372;
}

/* Media Queries */
@media only screen and (max-width: 900px) {
  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }
}

@media (max-width: 899px) {
  .header-wrap {
    justify-content: space-between;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

header nav ul li {
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}
header nav ul li:nth-child(1) { animation-delay: 0.1s; }
header nav ul li:nth-child(2) { animation-delay: 0.2s; }
header nav ul li:nth-child(3) { animation-delay: 0.3s; }
header nav ul li:nth-child(4) { animation-delay: 0.4s; }
header nav ul li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideDownFade {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.open .mobile-menu li {
  animation: slideDownFade 0.4s ease forwards;
  opacity: 0;
}
.open .mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.open .mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.open .mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
.open .mobile-menu li:nth-child(4) { animation-delay: 0.4s; }
.open .mobile-menu li:nth-child(5) { animation-delay: 0.5s; }

.mobile-menu {
  transition: opacity 0.3s ease;
}

@keyframes slideUpFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

.closing .mobile-menu li {
  animation: slideUpFadeOut 0.3s ease forwards;
}
