header a {
  text-decoration: none;
}

header {
  padding: 0.5rem 1.5rem;
  height: auto;
  background-color: #e6effa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;


  /* Sticky Header */

  position: sticky;
  top: 0;
  z-index: 999;

  /* Sticky Header End */

}

.header-wrap {

  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border-bottom: 0.0rem solid #0050cc; /* Accent blue border */
  padding-bottom: .5rem;
  padding-top: .5rem;

}

.nav-logo /* Logo img header */ {

  width: 5rem;
  border-radius: 1.5rem;

}




#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: 8px;
  object-fit: cover;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
  vertical-align: middle;
}

#brand a {
  color: #003f8f;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.2s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

#brand a:hover {
  opacity: 0.8;
}

/* General Link Styling --------------------------------------------------- */

ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 1.6rem;
  padding: 1rem 0;
  gap: 1.5rem;
    background-color: transparent;
}

ul li {
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease;
  border-radius: 6px;
}

ul li a {
  color: #003f8f;
  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(0, 106, 255, 0.1); /* subtle blue tint on hover */
}

ul li:hover a {
  color: #0050cc;
}








/* End General Link Styling --------------------------------------------------- */

/* CONTACT BUTTON ---------------------------------------------------------- */

#contact {

  border-radius: 8px;
  padding: 8px 16px;
  background-color: #ffffff;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  width: 60%;


}

#contact:hover {
  background-color: #006AFF;
  border-color: #006AFF;
  transform: scale(1.05);
}

#contact a {
  color: #003f8f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

#contact:hover a {
  color: #ffffff; }

/* END CONTACT BUTTON ----------------------------------------------------------- */

/* Structures & Background Functionality ---------------------------------------- */


#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;



  border-radius: 10px;
  padding: 5px 6px;

    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;

}

#hamburger-icon div /* Makes the 3 lines */ {
  width: 35px;
  height: 3px;
  background-color: #fff;
  
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 5px;
  transition: all 0.3s ease;
}


/* Open Animation */

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}


/* Open animation link structure */
.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* End Open Animation */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  height: auto;

    background-color: #003e8fec; /* Let header handle background */


}

/* End Structures & Background Functionality ---------------------------------------- */


/* Mobile LI STYLING ------------------------------------------------------------------ */

  .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);
}

/* Contact Excluded due to its own border style */
.mobile-menu li:not(#contact) a:hover {
  background-color: rgba(0, 106, 255, 0.08); /* light blue tint */
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* END Mobile LI STYLING --------------------------------------------------------------- */

/* 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;

  }

}

/* End Media Queries ------------------------------------------------ */

/* Animations -------------------------------------------------------- */

/* Nav Links PC */

@keyframes slideInLeft {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animate desktop nav links on first load */
header nav ul li {
  opacity: 0; /* Hidden before animation */
  animation: slideInLeft 0.6s ease forwards;
}

/* Optional: Staggered delay for a smooth cascade */
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; }

/* End Nav Links PC */

/* Nav Links Mobile */

  @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; /* ensures it fades in cleanly */
}

/* Staggered delay for cascade effect */
.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;
}

/* Nav Mobile Close Animation */

@keyframes slideUpFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Closing animation class */
.closing .mobile-menu li {
  animation: slideUpFadeOut 0.3s ease forwards;
}

/* End Nav Mobile Close Animation */

/* End Nav Links Mobile */


/* End Animations ----------------------------------------------------- */