/* 
Author: Neeraj Verma
LinkedIn: https://www.linkedin.com/in/neerajvermagps/
Updated on: 28-06-2025
*/

.main-header {
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  color: var(--secondary-font-color);
  position: relative;
  background: var(--theme-yellow);
  top: 0;
  left: 0;
  z-index: 2000;
  transition: 0.5s;
}

.logo {
  width: 200px;
  font-size: 25px;
  display: none;
  font-weight: bold;
}

.main-nav {
  margin-right: 20px;
  overflow: hidden;
}

.main-nav ul {
  list-style-type: none;
  margin: 0;
  flex-wrap: wrap;
  padding: 0;
}

.main-nav ul a {
  padding: 10px 15px;
  height: 70%;
  width: fit-content;
  font-weight: bold;
  color: var(--secondary-font-color);
  font-size: 13px;
  margin: 0 5px;
  cursor: pointer;
  transition: 0.4s;
  letter-spacing: 0.6px;
}

.nrm-btn {
  color: black;
}

.nrm-btn:hover {
  background-color: whitesmoke;
  color: black;
}

.nav-btn {
  font-weight: bold;
  background-color: black;
  color: white;
  border-radius: 6px;
  outline: 3px solid var(--themeLight);
  border: 1px solid var(--themeLight);
}

.nav-btn:hover {
  background-color: aliceblue;
  color: black;
  outline: 3px solid #12024082;
  border: 1px solid black;
}

.menu-nav {
  width: 100%;
  height: 60px;
  margin: 0 15px;
  display: none;
}

.menu-nav-ico {
  height: 21px;
  width: 32px;
  border-radius: 3px;
  justify-content: space-evenly;
  transition: 0.3s;
}

.menu-line {
  width: 60%;
  height: 2px;
  background-color: var(--secondary-font-color);
  transition: 0.3s;
}

.mniborder {
  border: 1px solid white;
}

.animateMenu:nth-child(1) {
  transform: rotate(45deg) translate(7px, 11px);
  transform-origin: right;
}

.animateMenu:nth-child(2) {
  width: 0;
}

.animateMenu:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 3px);
  transform-origin: left;
}

@media only screen and (max-width: 850px) {
  .main-header {
    height: 60px;
    flex-direction: column;
    justify-content: space-between;
    background-image: none;
    gap: 0px;
    padding: 0px;
    border-bottom: none;
    transition: 0.3s;
  }

  .logo {
    height: 100%;
    display: flex;
  }

  .mhbg {
    border-bottom: 2px solid rgb(0, 0, 0);
  }

  .animate-logo-img {
    filter: invert(1);
  }

  .main-nav {
    margin-right: 0;
    height: 0px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: 0.3s;
  }

  .nav-height {
    padding-top: 30px;
    padding-bottom: 30px;
    height: 500px;
  }

  .header-height {
    height: 560px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
    width: 95%;
    flex-wrap: nowrap;
  }

  .main-nav ul a {
    width: 100%;
    padding: 0 15px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: normal;
    margin: 0;
    justify-content: start;
  }

  .menu-nav {
    display: flex;
    margin: 0;
  }

  .nrm-btn {
    background-color: transparent;
  }

  .nrm-btn:hover {
    background-color: rgba(255, 255, 255, 0.276);
    border-radius: 7px;
  }

  .nav-btn {
    background-color: aliceblue;
    color: black;
    outline: 3px solid #12024082;
    border: 1px solid black;
  }

  .nav-btn:hover {
    background-color: black;
    color: white;
    outline: 3px solid aliceblue;
    border: 1px solid var(--themeLight);
  }
}