header {
  height: 70px;
  width: 100%;
  position: fixed;
  top: 0;
  padding: 0 20px;
  z-index: 10000;
}

.nav-bar {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  height: 25px;
  width: 80px;
  background-image: url(../../img/logo.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.darkLogo {
  background-image: url(../../img/black-logo-old.png);
}

.nav-list {
  font-family: 'Rubik', sans-serif;
  width: 40%;
  height: 100%;
  margin-left: auto;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  right: 100px;
  margin-bottom: 0;
}

.nav-links {
  height: 30px;
  width: 70px;
  margin-left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-links a {
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  text-shadow: 0px 0px 3px #333;
}

.nav-links a.dark {
  color: #333;
  text-shadow: none;
  font-weight: 600;
}

.rightSpacer {
  margin-right: auto;
}

/* ========================HOVER ANIMATIONS FOR NAV LINKS========================= */

ul.borderXwidth li::before,
ul.borderXwidth li::after {
  position: absolute;
  opacity: 0;
  width: 0%;
  height: 2px;
  content: "";
  background: #fff;
  transition: all 0.4s;
}

ul.borderXwidth li::before {
  left: 0px;
  top: 0px;
}

ul.borderXwidth li::after {
  right: 0px;
  bottom: 0px;
}

ul.borderXwidth li:hover::before,
ul.borderXwidth li:hover::after {
  opacity: 1;
  width: 70%;
}

ul.borderXwidth li:nth-child(1)::before,
ul.borderXwidth li:nth-child(1)::after {
  background: #fdab12;
}

ul.borderXwidth li:nth-child(2)::before,
ul.borderXwidth li:nth-child(2)::after {
  background: #0077ff;
}

ul.borderXwidth li:nth-child(3)::before,
ul.borderXwidth li:nth-child(3)::after {
  background: #29db29;
}

/* ================================ MENU ICON ANIMATION ================================ */

#nav-icon2 {
  margin-left: auto;
  width: 33px;
  height: 25px;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 12000;
}

.hamburger {
  display: block;
  position: absolute;
  height: 3px;
  width: 50%;
  background: white;
  opacity: 1;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

.darkBG {
  background: #333;
}

.deafultExpandedWhiteColor {
  background: white;
}

.hamburger:nth-child(even) {
  left: 50%;
  border-radius: 0 3px 3px 0;
}

.hamburger:nth-child(odd) {
  left: 0px;
  border-radius: 3px 0 0 3px;
}

.hamburger:nth-child(1),
.hamburger:nth-child(2) {
  top: 0px;
}

.hamburger:nth-child(3),
.hamburger:nth-child(4) {
  top: 10px;
}

.hamburger:nth-child(5),
.hamburger:nth-child(6) {
  top: 20px;
}

#nav-icon2.open span:nth-child(1),
#nav-icon2.open span:nth-child(6) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-icon2.open span:nth-child(2),
#nav-icon2.open span:nth-child(5) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-icon2.open span:nth-child(1) {
  left: 3.5px;
  top: 5px;
}

#nav-icon2.open span:nth-child(2) {
  left: calc(50% - 3.5px);
  top: 5px;
}

#nav-icon2.open span:nth-child(3) {
  left: -50%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(4) {
  left: 100%;
  opacity: 0;
}

#nav-icon2.open span:nth-child(5) {
  left: 3.5px;
  top: 14px;
}

#nav-icon2.open span:nth-child(6) {
  left: calc(50% - 3.5px);
  top: 14px;
}

#nav-icon2:hover span {
  background: #00b0df;
}

/* ========================EXPANDED NAV========================= */

.expanded-nav {
  background-color: #000;
  font-family: "Rubik", sans-serif;
  font-size: clamp(16px, 3vw, 18px);
  width: 50%;
  height: 100%;
  position: fixed;
  right: 0;
  top: 0;
  clip-path: circle(0px at 100% 0%);
  -webkit-clip-path: circle(0px at 100% 0%);
  transition: all 1s ease-out;
  pointer-events: none;
  z-index: 11000;
  box-shadow: 0px 0px 15px #111;
  display: flex;
  padding: 10px;
  color: #fff;
}

.expanded-nav.expanded {
  clip-path: circle(1800px at 100% 0%);
  -webkit-clip-path: circle(1800px at 100% 0%);
  pointer-events: all;
}

.expandedNavLeft {
  width: 60%;
  height: 100%;
  border-right: 2px solid #666;
}

.expandedNavRight {
  width: 40%;
  height: 100%;
}

.welcome {
  height: 35%;
  width: 100%;
  padding: 20% 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 2px solid #666;
}

.welcomeHeading {
  font-size: 27px;
  font-weight: 600;
  line-height: 30px;
  font-family: "Rubik", sans-serif;
  margin-bottom: 20px;
  letter-spacing: 0px;
  color: #ffffff;
}

.welcomeText {
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  letter-spacing: 0px;
  color: #ffffff;
}

.cracking {
  height: 65%;
  width: 100%;
  padding: 10% 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crackingText {
  margin-top: 4rem;
  font-size: 27px;
}

.contactBtn {
  height: 40px;
  width: 150px;
  color: white;
  border-radius: 25px;
  border: 2px solid white;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  transition: color 0.4s ease;
  transition: background 0.4s ease;
}

.contactBtn:hover {
  background: white;
  color: #222;
  font-weight: 600;
}

.contactBtn img {
  height: 9px;
  display: inline;
  filter: invert(98%) sepia(99%) saturate(3%) hue-rotate(252deg)
    brightness(107%) contrast(100%);
}

.contactBtn:hover img {
  filter: none;
}

.offices {
  display: flex;
  height: 16px;
  font-size: 14px;
}

.divider {
  margin: 0px 13px;
  height: 100%;
  width: 2px;
  background-color: white;
}

.offices a {
  color: white;
}

.offices a:hover {
  color: white;
}

.expandedNavRight ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 10% 10%;
}

.expandedNavRight li {
  width: fit-content;
}

.HDDR {
  height: 50%;
}

.HDDR a {
  color: white;
  font-size: 22px;
}

.HDDR a:hover,
.HDDR a:active {
  color: white;
}

.expandedNavLinks {
  height: 50%;
}

.expandedNavLinks a {
  color: white;
  font-size: 16px;
  width: 100%;
}

.expandedNavLinks a:hover,
.expandedNavLinks a:active {
  color: white;
}

.expandedNavRight li::after {
  display: block;
  content: "";
  border-bottom: solid 2px #00b0ef;
  transform: scaleX(0) translateX(0px);
  transform-origin: 0% 0%;
  transition: transform 350ms ease-in-out;
  width: 100%;
}
.expandedNavRight li:hover::after {
  transform: scaleX(0.3) translateX(340%);
}

/* ========================MOBILE VIEW========================= */

@media screen and (max-width: 786px) {
  .nav-list {
    display: none !important;
  }

  #nav-icon2 {
    margin-left: auto;
  }

  .logo {
    height: 20px;
    width: 65px;
  }

  #nav-icon2 {
    width: 25px;
    height: 15px;
  }

  .hamburger {
    height: 2px;
    width: 50%;
  }

  .hamburger:nth-child(1),
  .hamburger:nth-child(2) {
    top: -5px;
  }

  .hamburger:nth-child(3),
  .hamburger:nth-child(4) {
    top: 2px;
  }

  .hamburger:nth-child(5),
  .hamburger:nth-child(6) {
    top: 9px;
  }

  #nav-icon2.open span:nth-child(1) {
    left: 2px;
    top: 0px;
  }

  #nav-icon2.open span:nth-child(2) {
    left: calc(50% - 2.1px);
    top: 0px;
  }

  #nav-icon2.open span:nth-child(5) {
    left: 2px;
    top: 9px;
  }

  #nav-icon2.open span:nth-child(6) {
    left: calc(50% - 2.1px);
    top: 9px;
  }

  .expanded-nav {
    width: 100%;
    flex-direction: column-reverse;
    padding: 0;
  }

  .welcome {
    display: none;
  }

  .expandedNavLeft {
    width: 100%;
    height: 40%;
    border: none;
  }

  .expandedNavRight {
    width: 100%;
    height: 60%;
    display: flex;
  }

  .expandedNavRight ul {
    height: 100%;
    padding: 70px 35px;
  }

  .expandedNavRight ul.expandedNavLinks {
    padding: 85px 35px;
  }

  .cracking {
    background-color: white;
    color: #111;
    height: 100%;
  }

  .crackingText {
    margin-top: 0;
    font-weight: 500;
    margin-bottom: 0;
  }

  .offices {
    display: none;
  }

  .contactBtn {
    color: black;
    border: 2px solid black;
  }

  .contactBtn:hover {
    background: black;
    color: #fff;
  }

  .contactBtn img {
    filter: none;
  }

  .contactBtn:hover img {
    filter: invert(98%) sepia(99%) saturate(3%) hue-rotate(252deg)
      brightness(107%) contrast(100%);
  }

  .logo {
    background-image: url(../../img/black-logo-old.png);
  }

  .hamburger {
    background: black;
  }

  .deafultExpandedWhiteColor {
    background: white;
  }

  #nav-icon2:hover .hamburger {
    background: #222;
  }

  #nav-icon2:hover .deafultExpandedWhiteColor {
    background: white;
  }

  header {
    background-color: white;
    height: 60px;
  }

  #nav-icon2 {
    margin-top: 10px;
  }
}

@media screen and (min-width: 1400px) {
  header {
    padding: 0 30px;
    height: 80px;
  }

  .logo {
    height: 30px;
    width: 95px;
  }

  .welcomeHeading {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .welcomeText {
    margin-bottom: 0;
    letter-spacing: 1px;
  }

  .crackingText {
    font-size: 36px;
    margin: 0;
  }

  .cracking {
    padding: 20% 10%;
  }

  .contactBtn {
    height: 55px;
    width: 190px;
    border-radius: 28px;
    font-size: 15px;
  }

  .contactBtn img {
    height: 12px;
    padding-left: 4px;
  }

  .offices a {
    font-size: 18px;
  }

  #navSocial a div {
    height: 35px;
    width: 35px;
    margin-right: 30px;
  }

  .expandedNavLinks a {
    font-size: 20px;
  }

  .HDDR a {
    font-size: 24px;
  }

  .nav-list {
    right: 110px;
  }

  .nav-links {
    margin-left: 55px;
  }

  .nav-links a {
    font-size: 18px;
  }
}

@media screen and (min-width: 1700px) {
  header {
    height: 95px;
    padding: 0px 40px;
  }

  .nav-links a {
    font-size: 22px;
  }

  .logo {
    height: 40px;
    width: 124px;
  }

  .nav-list {
    right: 165px;
  }

  .nav-links {
    margin-left: 80px;
}

  .hamburger {
    height: 4px;
  }

  #nav-icon2 {
    width: 50px;
    height: 33px;
  }

  .hamburger:nth-child(3),
  .hamburger:nth-child(4) {
    top: 15px;
  }

  .hamburger:nth-child(5),
  .hamburger:nth-child(6) {
    top: 30px;
  }

  #nav-icon2.open span:nth-child(5) {
    left: 3.5px;
    top: 22px;
  }

  #nav-icon2.open span:nth-child(6) {
    left: calc(50% - 3.5px);
    top: 22px;
  }

  .hamburger:nth-child(even) {
    left: 50%;
    border-radius: 0 4px 4px 0;
}

.hamburger:nth-child(odd) {
  left: 0px;
  border-radius: 4px 0 0 4px;
}

.welcomeHeading {
  font-size: 50px;
  letter-spacing: 1px;
  margin-bottom: 45px;
}

.welcomeText {
  font-size: 24px;
}

.crackingText {
  font-size: 50px;
}

.cracking {
  padding: 22% 10%;
}

.offices a {
  font-size: 22px;
}

.divider {
  margin: 0px 17px;
  height: 36px;
}

.contactBtn {
  height: 65px;
  width: 225px;
  border-radius: 35px;
  font-size: 18px;
}

#navSocial a div {
  height: 40px;
  width: 40px;
  margin-right: 35px;
}

.HDDR a {
  font-size: 30px;
}

.expandedNavLinks a {
  font-size: 26px;
}

.expandedNavRight ul {
  padding: 8% 12%;
  margin-bottom: 0;
}

.offices {
  margin-bottom: 10px;
}

.contactBtn img {
  height: 15px;
  margin-bottom: 1px;
}
}
