@media (min-width: 1025px) {
  header:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(17, 17, 17, 0.08);
  }
}

@media (min-width: 1025px) {
  header:hover > nav > ul > .mainMenu > a {
    color: black;
  }
}

header.scrolled {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(17, 17, 17, 0.08);
}

header.scrolled > nav > ul > .mainMenu > a {
  color: black;
}

header {
  position: fixed;
  width: 100%;
  transition: all 0.5s ease-in-out;
  padding: 15px 0;
  z-index: 10;
  box-sizing: border-box;
}

header > nav {
  width: 80%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header > nav > a > img {
  width: 130px;
  height: auto;
}

header > nav > ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

header > nav > ul > .mainMenu {
  position: relative;
  font-size: 1.2rem;
  transition: color 0.5s ease-in-out;
}

header > nav > ul > .mainMenu > a {
  color: #fff;
  line-height: 25px;
}

@media (min-width: 1025px) {
  header > nav > ul > .mainMenu:hover {
    border-bottom: 3px solid;
    border-image: linear-gradient(
      to bottom right,
      var(--main-color3),
      var(--main-color)
    );
    border-image-slice: 1;
  }
}

header > nav > ul > .mainMenu:hover > a {
  color: black;
}

@media (min-width: 1025px) {
  header > nav > ul > .mainMenu:hover > .subMenu {
    opacity: 1;
    visibility: visible;
  }
}

header > nav > ul > .mainMenu > .subMenu {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 15px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  padding-top: 5px;
  transition: opacity 0.5s ease-in-out;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px 15px 15px 15px;
  margin-top: 3px;
  font-size: 1.1rem;
}

header > nav > ul > .mainMenu > .subMenu > li > a {
  display: flex;
  flex-direction: column;
}

header > nav > ul > .mainMenu > .subMenu > li > a::after {
  content: attr(data-text);
  font-weight: bold;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

@media (min-width: 1025px) {
  header > nav > ul > .mainMenu > .subMenu > li > a:hover {
    font-weight: bold;
    color: var(--main-color);
  }
}

.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom, #4c60c4, #5d71d9);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger-button:hover {
  opacity: 0.9;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.quickBar {
  position: fixed;
  bottom: 100px;
  right: 35px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  z-index: 1000;
}

.quickBar > div {
  cursor: pointer;
}

.quickBar.on-footer > .topBtn > img {
  filter: invert(100%);
}

.quickBar img {
  width: 50px;
}

@media screen and (max-width: 1280px) {
  header {
    padding: 10px;
  }
}

@media screen and (max-width: 1025px) {
  header > nav {
    width: 90%;
  }
}

@media screen and (max-width: 821px) {
  header {
    padding: 10px 0;
  }

  header > nav > a > img {
    width: 90px;
  }

  header > nav > ul {
    display: none;
  }

  .hamburger-button {
    display: flex;
  }

  header > nav {
    position: relative;
    width: 100%;
    margin: 0;
  }

  header > nav > a {
    margin-left: 5%;
  }

  header > nav > button {
    margin-right: 5%;
  }

  header > nav > ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 50px);
    top: 50px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-top: 1px solid #bababa;
    gap: 20px;
    padding: 20px 0;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
    overflow-y: scroll;
  }

  header > nav > ul::after {
    content: "";
    display: block;
    min-height: 100px;
  }

  header > nav > ul.show {
    opacity: 1;
    pointer-events: auto;
  }

  header > nav > ul > .mainMenu {
    width: 100%;
    text-align: center;
  }

  header > nav > ul > .mainMenu > a {
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
  }

  header > nav > ul > .mainMenu > .subMenu {
    position: static;
    padding: 0;
    opacity: 1;
    visibility: visible;
    gap: 10px;
    margin-top: 10px;
  }

  header > nav > ul > .mainMenu > .subMenu > li > a {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 640px) {
  header > nav > ul > .mainMenu > a {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
  }

  header > nav > ul > .mainMenu > .subMenu > li > a {
    font-size: 1rem;
  }

  .quickBar {
    right: 10px;
    bottom: 50px;
  }

  .quickBar img {
    width: 40px;
  }
}
