* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


#header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  transition: all 0.3s ease;

  background: linear-gradient(
    to right,
    #010423,
    #022a2f,
    #04480f
  );
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}


.top-bar {
  width: 100%;
  height: 40px;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  background: #fee274;
  border-bottom: 1px solid rgba(0,0,0,0.1);

  overflow: hidden;
  transition: all 0.4s ease;
}


.top-bar a {
  text-decoration: none;
  font-size: 12px;
  color: #022034;
  margin-left: 20px;
  opacity: 0.8;
  transition: 0.3s;
  font-weight: 600;
}

.top-bar a:hover {
  opacity: 1;
}


#header .container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: all 0.4s ease;
}


.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;

  filter: brightness(1.2) contrast(1.2)
          drop-shadow(0 1px 2px rgba(0,0,0,0.6));

  transition: all 0.4s ease;
}

#navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

#navbar a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

#navbar a:hover {
  opacity: 0.7;
}


#header.scrolled .top-bar {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

#header.scrolled .container {
  height: 75px;
}

#header.scrolled .logo img {
  height: 65px;
}

#header.scrolled .top-bar a {
  color: #022034;   
  font-weight: 600; 
}


#header.scrolled {
  background: linear-gradient(
    to right,
    rgba(1, 4, 35, 0.70),
    rgba(2, 42, 47, 0.82),
    rgba(4, 72, 15, 0.82)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}


#header.scrolled #navbar a {
  color: #fff;
  font-weight: 600;
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: currentColor;
  transition: 0.3s;
}

.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);
}


@media (max-width: 992px) {

  .top-bar {
    justify-content: center;
    padding: 8px 10px;
  }

  .top-bar a {
    font-size: 11px;
    margin-left: 10px;
  }

  .hamburger {
    display: flex;
  }

  #navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
     max-width: 320px; 
    height: 100vh;
    background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
    transition: 0.3s;
    padding-top: 80px;
  }

  #navbar.active {
    right: 0;
  }

  #navbar ul {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
  }

  #navbar a {
    color: white;
    font-size: 16px;
    font-weight: 600;
  }
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

