// Define color variables
$white: #ffffff;
$darkGray: #5e5e5e;
$tealBlue: #5abac6;
$blue: #3963ff;
$grayBorder: rgba(182, 182, 182, 0.6);

// Nav Styles
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 85px;
  padding: 0 10%;
  background-color: $white;
  z-index: 1000;

  .logo {
    padding-right: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;

    a {
      padding: 5px 0;

      img {
        height: 50px;
        object-fit: cover;
      }
    }

    &::after {
      content: "";
      position: absolute;
      width: 1px;
      height: 100%;
      top: 0;
      right: 0;
      border-radius: 3px;
      background-color: $grayBorder;
    }
  }

  .navMenu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding-left: 50px;

    a {
      text-decoration: none;
      color: $darkGray;
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s ease;

      &:hover {
        color: $tealBlue;
      }

      &.activeMenu {
        color: $tealBlue;
      }
    }
  }

  .burgermenu {
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background-color: $white;
    border-radius: 5px;
    width: 40px;
    height: 35px;
    border: 2px solid $tealBlue;
    cursor: pointer;

    .line {
      width: 60%;
      height: 2px;
      background-color: $tealBlue;
      border-radius: 5px;
      transition: 0.3s ease;
    }

    &.Toggle {
      .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }

      .line:nth-child(2) {
        opacity: 0;
      }

      .line:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
      }
    }
  }
}

// Media queries for responsiveness
@media screen and (max-width: 1020px) {
  nav {
    padding: 0 4%;
  }
}

@media screen and (max-width: 768px) {
  nav {
    padding: 0 5%;
    justify-content: space-between;

    .logo {
      &::after {
        display: none;
      }
    }

    .navMenu {
      display: none;
    }

    .burgermenu {
      display: flex;
    }
  }

  div.mobileMenu {
    display: flex;
  }
}

// Mobile navigation
.mobileNavigation {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background-color: $white;
  align-items: center;
  justify-content: space-around;

  .navItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333333;
    cursor: pointer;
    gap: 10px;

    span {
      font-size: 14px;
      font-weight: bold;
    }

    i {
      font-size: 20px;
    }

    &.activeItem {
      color: $tealBlue !important;
    }
  }
}

// Mobile view
@media screen and (max-width: 768px) {
  .mobileNavigation {
    display: flex;
  }

  nav {
    justify-content: center;
  }
}

@media screen and (max-width: 450px) {
  .mobileNavigation {
    gap: 5px;

    .navItem {
      span {
        font-size: 13px;
      }

      i {
        font-size: 18px;
      }
    }
  }
}

@media screen and (max-width: 370px) {
  .mobileNavigation {
    gap: 5px;

    .navItem {
      span {
        font-size: 12px;
      }

      i {
        font-size: 17px;
      }
    }
  }
}

@media screen and (max-width: 345px) {
  .mobileNavigation {
    gap: 5px;

    .navItem {
      span {
        font-size: 11px;
      }

      i {
        font-size: 16px;
      }
    }
  }
}
