/* Header and Nav */
.header {
  z-index: 100;
  width: 100%;
  height: 5rem;
  position: fixed;
  line-height: 3rem;
  text-align: center;
}

.header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding-left: 9.75rem;
  padding-right: 9.75rem;
}

.navbar__logo {
  float: left;
}

.nav__menu {
  height: 65px;
  float: right;
  font-size: 0.875rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
}

.nav__list {
  width: 100%;
  height: 65px;
  display: flex;
  list-style: none;
}

.nav__item {
  width: auto;
  height: auto;
  padding: 0rem 0.25rem;
}

.nav__item-text {
  text-decoration: none;
  color: var(--primary);
  padding: 0.75em 2em;
}

.nav__item-text:hover {
  border-radius: 50px;
  padding: 0.75em 2em;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease;
}

.nav__btn {
  border-radius: 50px;
  color: var(--text-50);
  padding: 0.75em 2em;
  background: var(--primary);
}

.nav__btn:hover {
  background: var(--accent);
  color: var(--text-50);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease;
}

.navTrigger {
  display: none;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.218);
  }

}

.affix {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: var(--background);
  backdrop-filter: blur(0px);
  height: 4rem;
}



.footer {
  background-color: var(--primary);
  color: var(--text-50);
  padding-left: 9.75rem;
  padding-right: 9.75rem;
  padding-top: 4rem;
  padding-bottom: 1rem;
  font-size: 0.875rem;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.footer__contact {
  flex: 1;
  padding-right: 1rem;
}

.footer__contact ul {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  justify-content: right;
  gap: 1rem;
}

.footer__contact ul li a {
  text-decoration: none;
  color: var(--text-50);
}

.footer__contact ul li a:hover {
  text-decoration: none;
  color: var(--accent);
}

.footer__social {
  display: flex;
  flex-direction: column;
  max-width: fit-content;
}

.footer__section {
  flex: 1;
  text-align: left;
}

.footer__section h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__section ul {
  list-style: none;
  padding: 0;
}

.footer__social div a .fab {
  line-height: 2rem;
  position: relative;
  z-index: 10;
  transition: color 0.25s ease;
}

.footer__social div {
  display: flex;

  justify-content: flex-end;
  flex-direction: row;
}

.footer__social div a {
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-50);
  margin: 0 5px;
}

.footer__social div a:hover .fab {
  color: var(--accent);
}

.footer__bottom {
  text-align: left;
  border-top: 1px solid var(--secondary-100);
  padding-top: 1rem;
}

.footer__bottom small a {
  text-decoration: none;
  color: var(--text-50);
}

.footer__bottom small a:hover {
  color: var(--accent);
}

.logo {
  width: auto;
  height: 3.5rem;
  padding-bottom: 0.75rem;
}

/* Responsive styles */
@media screen and (max-width: 1184px) {
  .navbar {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .navTrigger {
    display: block;
    padding-top: 1rem;
  }


  .nav__menu {
    position: fixed;
    width: 100%;
    height: 0;
    overflow: hidden;
    font-size: 100%;
  }

  .showlist {
    height: auto;
    display: none;
    left: 0px;
  }

  .nav__list {
    flex-direction: column;
    justify-content: center;
    padding-left: 0rem;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-100);
    /*same background color of navbar*/
    background-position: center top;
  }

  .nav__item {
    padding-right: 4rem;
    text-align: right;
  }

  .nav__item a {
    text-align: center;
    width: 100%;
  }

  .footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Animation */
/* Inspiration taken from Dicson https://codemyui.com/simple-hamburger-menu-x-mark-animation/ */

.navTrigger {
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: absolute;
  right: 5rem;
}

@media screen and (max-width: 450px) {
  .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer__contact {
    padding-right: 0rem;
    padding-left: 1rem;
  }

  .footer__contact ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__social div {
    flex-direction: column;
  }
  .navTrigger {
    right: 1rem;
  }
}

.navTrigger i {
  background-color: var(--primary);
  border-radius: 2px;
  content: "";
  display: block;
  width: 100%;
  height: 4px;
}

.navTrigger i:nth-child(1) {
  -webkit-animation: outT 0.8s backwards;
  animation: outT 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
  margin: 5px 0;
  -webkit-animation: outM 0.8s backwards;
  animation: outM 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
  -webkit-animation: outBtm 0.8s backwards;
  animation: outBtm 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
  -webkit-animation: inT 0.8s forwards;
  animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
  -webkit-animation: inM 0.8s forwards;
  animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
  -webkit-animation: inBtm 0.8s forwards;
  animation: inBtm 0.8s forwards;
}

@-webkit-keyframes inM {
  50% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(45deg);
  }
}

@keyframes inM {
  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

@-webkit-keyframes outM {
  50% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(45deg);
  }
}

@keyframes outM {
  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

@-webkit-keyframes inT {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }

  50% {
    -webkit-transform: translateY(9px) rotate(0deg);
  }

  100% {
    -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes inT {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(9px) rotate(0deg);
  }

  100% {
    transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes outT {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }

  50% {
    -webkit-transform: translateY(9px) rotate(0deg);
  }

  100% {
    -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes outT {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(9px) rotate(0deg);
  }

  100% {
    transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes inBtm {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }

  50% {
    -webkit-transform: translateY(-9px) rotate(0deg);
  }

  100% {
    -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes inBtm {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(0deg);
  }

  100% {
    transform: translateY(-9px) rotate(135deg);
  }
}

@-webkit-keyframes outBtm {
  0% {
    -webkit-transform: translateY(0px) rotate(0deg);
  }

  50% {
    -webkit-transform: translateY(-9px) rotate(0deg);
  }

  100% {
    -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes outBtm {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-9px) rotate(0deg);
  }

  100% {
    transform: translateY(-9px) rotate(135deg);
  }
}
