/****************************************/

/********** Navigation Bar *************/

/***************************************/

.main-nav {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 100%;
  z-index: 99999;
  padding: 50px 0 0 0;
}

/********** Navigation LOGO *************/

.main-nav-left {
  height: 100%;
  width: 100%;
}

.main-nav-left-logo {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.main-nav-left-logo-img {
  height: 4rem;
}

.nav-logo-first {
  display: inline-block;
  height: 4rem;
}

.nav-logo-second {
  display: none;
}

.main-nav-right-list-item-logo {
  display: none;
}

.main-nav-right-list-item-link-logo {
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 4px;

  width: 100%;

  text-transform: uppercase;
  border: none;
  background-color: transparent;
  font-weight: 600;
  color: white;
  border-bottom: transparent;
  border-bottom: 3px solid transparent;

  position: relative;
  padding: 20px 0;
  transition: color 0.3s ease;
}

/********** Navigation Center *************/

/********** Navigation Items *************/

.main-nav-right {
  height: 100%;
  width: 100%;
}

.main-nav-right-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-nav-right-list-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 25%;
  z-index: 1;
}

.nav-border {
  height: 100%;
  width: 100%;
}

.main-nav-right-list-item-link:link,
.main-nav-right-list-item-link:visited {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 4px;

  width: 100%;

  text-transform: uppercase;
  border: none;
  background-color: transparent;
  font-weight: 600;
  color: white;
  border-bottom: transparent;
  border-bottom: 3px solid transparent;

  position: relative;
  padding: 20px 0;
  transition: color 0.3s ease;
  text-shadow: 0px 0px 5px rgba(17, 37, 57, 0.9);
}

.main-nav-right-list-item-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 7px; /* اضبطه حسب الحاجة */
  background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 3.66'%3E%3Cpath d='M10,50a1.58,1.58,0,0,1,1.53-1.65q19.27-.48,38.52.33,10,.42,20,1.2c3.33.28,6.66.56,10,.89l10,1.06-10-.66c-3.33-.2-6.66-.35-10-.49q-10-.39-20-.41-19.2,0-38.36,1.21A1.56,1.56,0,0,1,10,50Z' transform='translate(-10 -48.17)' style='fill:%23f9cf59'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: width 0.6s ease;
}

.main-nav-right-list-item-link:hover {
  color: #f9cf59;
}

.main-nav-right-list-item-link.active {
  color: #f9cf59;
  font-weight: bold;
}

.main-nav-right-list-item-link:hover::after,
.main-nav-right-list-item-link.active::after {
  width: 100%;
}

/***************************************/

/********** Sticky Navigation  *********/

/***************************************/

/******** Sticky Change Color  ************/

.sticky .main-nav {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 20px;
  padding-bottom: 10px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  width: 100%;
  z-index: 9999;
  background-color: #112539;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: row;
}

.sticky .main-nav-right-list-item-link:link,
.sticky .main-nav-right-list-item-link:visited {
  border: none;
  background-color: transparent;
  color: white;
  font-size: 0.8rem;
}

.sticky .main-nav-right-list-item-link:hover,
.sticky .main-nav-right-list-item-link:active {
  color: #f9cf59;
}

.sticky .nav-border {
  height: 100%;
  width: 100%;
}

.sticky .main-nav-left-logo-img {
  height: 3rem;
}

.sticky .main-nav-left-logo {
  margin-bottom: 0px;
}

.sticky .nav-logo-first {
  display: none;
}

.sticky .nav-logo-second {
  display: inline-block;
  height: 4em;
}

.sticky .main-nav-right-list-item-link:hover::after,
.sticky .main-nav-right-list-item-link.active::after {
  width: 100%;
  display: none;
}

/***************************************/

/********** Mobile Navigation  *********/

/***************************************/

/* Nav Bar Toggler*/

.main-nav-hamburger {
  height: 100%;
  width: 20%;
  display: none;
}

.main-nav-hamburger-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
}

.main-nav-hamburger-btn:active,
.main-nav-hamburger-btn:focus {
  outline: none;
}

.navbar-toggler:active,
.navbar-toggler:focus {
  outline: none;
}

.navbar-toggler-icon {
  border: none;
  background: none;
  position: absolute;
  display: flex;
  outline: none;
  top: 10px;
  left: -10px;
}

.navbar-toggler-icon:after,
.navbar-toggler-icon:before {
  width: 27px;
  position: absolute;
  height: 2px;
  background-color: white;
  content: "";
  z-index: 2;
  transition: all 300ms linear;
  outline: none;
}

.main-nav-hamburger-btn .navbar-toggler-icon:after {
  top: 8px;
}

.nav-open .navbar-toggler-icon:after {
  height: 2px;
  transform: rotate(45deg);
}

.nav-open .navbar-toggler-icon:before {
  height: 2.5px;
  transform: translateY(8px) rotate(-45deg);
}

.nav-open .navbar-toggler-icon {
  border-color: transparent;
}

/****************************************/
/****** Media Query Breakpoints ********/
/***************************************/
/* // X-Large devices (large desktops, less than 1400px) */

@media (max-width: 1399.98px) {
  /************ INTRO SECTION *************/
  .nav-border {
    height: 100%;
    width: 100%;
  }

  /********** Navigation LOGO *************/
  .main-nav-left-logo {
    z-index: 9999;
    width: 30%;
  }

  .main-nav-right {
    height: 100%;
    width: 60%;
  }

  .main-nav-middle {
    width: 10%;
  }
}

/* // Large devices (desktops, less than 1200px) */

@media (max-width: 75em) {
  /************ INTRO SECTION *************/
  .nav-border {
    height: 100%;
    width: 100%;
  }

  .main-nav-right-list-item-link:link,
  .main-nav-right-list-item-link:visited {
    font-size: 0.7rem;
  }

  /********** Navigation LOGO *************/
  .main-nav-left-logo {
    z-index: 9999;
    width: 30%;
  }

  .main-nav-right {
    height: 100%;
    width: 60%;
  }

  .main-nav-middle {
    width: 10%;
  }
}

/* // Medium devices (tablets, less than 992px) */

@media (max-width: 48em) {
  /********** Back-Drop ******************/
  .backdrop-nav {
    display: none;
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    transition: opacity 0.2s linear;
    cursor: pointer;
  }

  .open-backdrop-nav {
    display: block;
    opacity: 0.3;
  }

  .sticky .backdrop-nav {
    background: rgba(0, 0, 0, 0.5);
  }

  .main-nav {
    background-color: transparent;
    flex-direction: row;
    background-color: #112539;
    padding: 20px 0;
  }

  /********** Navigation LOGO *************/
  .main-nav-left-logo {
    z-index: 20;
    width: 40%;
    padding-left: 1rem;
    margin: 0;
  }

  .main-nav-left-logo-img {
    height: 3rem;
  }

  .main-nav-right-list-item-logo {
    display: flex;
  }

  .main-nav-right-list-item-link-logo {
    display: flex;
  }
  /********** Navigation Center *************/

  /*********** Nav Bar Toggler**************/
  .main-nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav-hamburger-btn {
    display: block;
    z-index: 999;
  }

  /********** Navigation Items *************/
  .main-nav-right {
    z-index: 999;
    background-color: #112539;
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100vh;
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open .main-nav-right {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .main-nav-right-list {
    padding-top: 0.5rem;
    flex-direction: column;
    width: 100%;
  }

  /********** Navigation Items transform *************/
  .main-nav-right-list-item {
    height: 100%;
    width: 100%;
    position: relative;
    transform: translateX(100%);
    opacity: 0;
  }

  .main-nav-right-list-item:nth-child(1) {
    transition: transform 0.8s ease-in-out;
  }

  .main-nav-right-list-item:nth-child(2) {
    transition: transform 1s ease-in-out;
  }

  .main-nav-right-list-item:nth-child(3) {
    transition: transform 1.2s ease-in-out;
  }

  .main-nav-right-list-item:nth-child(4) {
    transition: transform 1.4s ease-in-out;
  }

  .main-nav-right-list-item:nth-child(5) {
    transition: transform 1.6s ease-in-out;
  }

  .nav-open .main-nav-right-list-item {
    transform: translateX(0);
    opacity: 1;
  }

  /********** Navigation links  *************/
  .main-nav-right-list-item-link:link,
  .main-nav-right-list-item-link:visited {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding-left: 0rem;
    font-size: 0.7rem;
    letter-spacing: 4px;
    border-left: 3px solid transparent;
    border-bottom: none;
    z-index: 1;
    background-color: transparent;
    color: white;
  }

  .main-nav-right-list-item-link:hover::after,
  .main-nav-right-list-item-link.active::after {
    width: 100%;
  }

  /********** Navigation space  *************/
  .main-nav-right-space {
    padding: 1rem;
    text-align: center;
    height: 50%;
    width: 100%;
  }

  .sticky .main-nav {
    background-color: transparent;
    flex-direction: row;
    background-color: #112539;
    padding: 20px 0;
  }

  .sticky .main-nav-right-list-item-link::after,
  .sticky .main-nav-right-list-item-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 7px; /* اضبطه حسب الحاجة */
    background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 3.66'%3E%3Cpath d='M10,50a1.58,1.58,0,0,1,1.53-1.65q19.27-.48,38.52.33,10,.42,20,1.2c3.33.28,6.66.56,10,.89l10,1.06-10-.66c-3.33-.2-6.66-.35-10-.49q-10-.39-20-.41-19.2,0-38.36,1.21A1.56,1.56,0,0,1,10,50Z' transform='translate(-10 -48.17)' style='fill:%23f9cf59'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition: width 0.6s ease;
  }

  .sticky .main-nav-right-list-item-link:hover::after,
  .sticky .main-nav-right-list-item-link.active::after {
    width: 100%;
    display: block;
  }
  .sticky .nav-logo-first {
    height: 400em;
  }

  .sticky .nav-logo-second {
    height: 2.5em;
    /* // Done */
  }
}

/* // Small devices (landscape phones, less than 768px) */
@media (max-width: 48em) {
  .main-nav-right {
    width: 50%;
  }
}

/* // X-Small devices (portrait phones, less than 576px) */
@media (max-width: 36em) {
  .main-nav-right {
    width: 60%;
  }
}

@media (max-height: 36em) {
  .main-nav-right-space {
    height: 20%;
    padding: 0;
  }
}
