*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
    font-size: 10px;
    font-family: sans-serif;
}
body{
  overflow-x: hidden;
}

a{
  text-decoration: none;
  color: #eee;
}

header{
  width: 100%;
  height: 100vh;
  color: #fff;
  background: linear-gradient(-45deg,white,#0059b3,#004080,#001a33,#003366);
  background-size: 400% 400%;
  position: relative;
  animation: change 10s ease-in-out infinite;
}
.container{
  max-width: 120rem;
  width: 90%;
  margin: 0 auto;
}

nav{
  padding-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 1.6rem;
}

.brand{
  font-size: 30px;
  transform: translateX(-100rem);
  animation: slider .5s forwards;
}

.brand span.trojan{

  padding: 10px;
  color: yellow;
}


nav ul li:nth-child(1){
  animation-delay: 0s;
}
nav ul li:nth-child(2){
  animation-delay: .5s;
}
nav ul li:nth-child(3){
  animation-delay: 1s;
}
nav ul li:nth-child(4){
  animation-delay: 1.5s;
}
nav ul li:nth-child(5){
  animation-delay: 2s;
}

nav ul{
  display: flex;
}

nav ul li {
  list-style: none;
  transform: translateX(100rem);
    animation: slider .5s forwards;
}

nav ul li a {
  padding: 1rem 0;
  margin: 0 3rem;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  position: relative;
  letter-spacing: 2px;
}

nav ul li a:last-child{
  margin-right: 0;
}

nav ul li a::before,
nav  ul li a::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: yellow;
    left: 0;
    transform: scaleX(0);
    transition: all .5s;
  }

  nav ul li a.yel::before,
  nav  ul li a.yel::after{
      content: '';
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: white;
      left: 0;
      transform: scaleX(0);
      transition: all .5s;
    }

  nav ul li a::before{
    top: 0;
    transform-origin: left;
  }
  nav ul li a::after{
    bottom: 0;
    transform-origin: right;
  }

  nav ul li a:hover::before,
  nav ul li a:hover::after{
    transform: scaleX(1);
  }

 .title{
   position: absolute;
   top: 50%;
   left: 50%;
   border: 3px solid transparent;
   padding: 5px 10px;
   transform: translate(-50%,-50%);
 }
 .title h1{
   color: #fff;
   font-size: 70px;
 }

 .title .paragraph {
   color: white;
   font-weight: 300;
   font-size: 18px;
   text-align: center;
 }

 .nav_link a{
   position: absolute;
   top: 65%;
   left: 50%;
   padding: 5px 10px;
   font-weight: 600;
    color: yellow;
    letter-spacing: 4px;
   font-size: 24px;
   overflow: hidden;
   transform: translate(-50%,-50%);
   transition: 0.2s;
 }

 .nav_link a:hover{
   color: black;
   background: yellow;
   box-shadow: 0 0 10px yellow, 0 0 40px yellow, 0 0 80px yellow;
   transition-delay: 1s;
 }

 .hub{
   color: yellow;
 }

 .ethical{
   color: yellow
 }
 .ethi{
   color: white;
 }
 .yel{
   border: 1px solid transparent;
   color: yellow;
 }

 a span{
   position: absolute;
   display: block;
 }
 a span:nth-child(1){
     top: 0;
     left: -100%;
     width: 100%;
     height: 2px;
     background: linear-gradient(90deg,transparent,yellow);
 }
 a:hover span:nth-child(1){
   left: 100%;
   transition: 1s;
 }

 a span:nth-child(3){
     bottom: 0;
     right: -100%;
     width: 100%;
     height: 2px;
     background: linear-gradient(270deg,transparent,yellow);
 }
 a:hover span:nth-child(3){
   right: 100%;
   transition: 1s;
   transition-delay: 0.5s;
 }
 a span:nth-child(2){
     top: -100%;
     right: 0;
     width: 2px;
     height: 100%;
     background: linear-gradient(180deg,transparent,yellow);
 }
 a:hover span:nth-child(2){
   top: 100%;
   transition: 1s;
   transition-delay: 0.25s;
 }

 a span:nth-child(4){
     bottom: -100%;
     left: 0;
     width: 2px;
     height: 100%;
     background: linear-gradient(360deg,transparent,yellow);
 }
 a:hover span:nth-child(4){
   bottom: 100%;
   transition: 1s;
   transition-delay: 0.75s;
 }









@keyframes slider {
  from{

  }
  to{
    transform: translateX(0);
  }

}




@keyframes change {
  0%{
    background-position: 0 50%;
  }
  50%{
    background-position: 100% 50%;
  }
  100%{
    background-position: 0 50%;
  }
}

@media (max-width:922px){
  .container{
    width: 100%;
  }
  .container nav ul li a {
    font-size: 17px;
    margin: 10px;
    top: 50px;
    right: 330px;
  }
  .container nav h1{
    font-size: 40px;
    margin-left: 120px;
    border: 1px solid white;
  }
  .title h1{
    align-items: center;
    font-size: 70px;
  }
  .title h1 span.hub{
    margin-left: 70px;
  }
  .title p{
    margin-top: 10%;
  }

  .nav_link a {
    margin-top: 50px;
  }
}
