/* font-face} */
@import url('https://fonts.googleapis.com/css?family=Montserrat');
/* @keyframes */
@keyframes fromleft {
  0%{
    left: -50vw;
  }100%{
    left: 0;
  }
}
@keyframes fromright {
  0%{
    right: -50vw;
  }100%{
    right: 0;
  }
}
*{
  box-sizing: border-box;
}
/* Global */
html, body{
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  overflow-x: hidden;
}
div[class*="wrap"]{
  position: relative;
  z-index: 1;
}
ul{
  padding: 0;
}
.backed{
  background-color: gray;
  color: white;
  padding: 5px;
  font-weight: 400;
}
.backed{
  display: inline-block;
}
.taright{
  text-align: right;
}
div[class*="container"]{
  margin: auto;
}
/* front-wrap */
.front-wrap{
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-image: url(../img/cover-0.jpg);
  background-size: 50vw auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: black;
}
.front-wrap .col1 .backed{
  margin: 10px 5%;
}
.front-wrap .col2 .backed{
  margin: 5px 5%;
}
.front-wrap div[class*="col"]{
  position: relative;
}
.front-wrap .col1 .float{
  animation: fromleft 1s;
}
.front-wrap .col2 .float{
  animation: fromright 1s;
}
.front-wrap div .float{
  position: absolute;
  bottom: 20%;
  width: 100%;
}
/* Skills */
.skill-wrap{
  background: linear-gradient(178deg, black 20%, #333 80%);
}
.skill-container .grid-parent{
  display: grid;
  grid-template-columns: 25% auto;
  grid-template-rows: auto auto auto;
}
.skill-container ul{
  padding-left: 0;
}
.skill-container ul li.backed{
  display: inline-block;
  margin: 5px;
}
.cate{
  text-align: right;
}
.cate h3{
  display: inline-block;
  background-color: white;
  color: gray;
  font-weight: 400;
  margin: 19px 5px 0;
  padding: 5px;
}
/* Professional Experience */
.pro-wrap{
  width: 100;
  background: linear-gradient(182deg, #333 20%, white 80%);
}
.pro-container{
  max-width: 1430px;
  text-align: right;
}
.pro-container .flex-parent{
  display: flex;
  justify-content: center;
}
.pro-box{
  padding: 30px;
  background-color: rgba(150, 150, 150, 0.2);
  text-align: left;
  margin: 10px;
  font-weight: 400;
  flex: 0 1 calc(100%/3 - 20px);
}
.pro-box img{
  width: 50px;
  float: left;
}
.pro-box .backed{
  margin: 0 5px 5px;
  vertical-align: top;
}
.pro-box ul li{
  text-transform: capitalize;
  list-style-type: square;
  line-height: 25px;
}
/* Client */
.client-wrap{
  background-color: white;
  margin-bottom: 300px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.3);
}
.client-container{
  max-width: 900px;
}
#client{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  transition: max-height 1s;
  max-height: 160px;
}
#client.expanded{
  max-height: none;
}
#client div{
  text-align: center;
  max-width: calc(900px / 4);
  box-sizing: border-box;
  padding: 30px 20px;
}
#client div img{
  max-width: 100%;
  height: 100px;
  transition: 0.5s ease-out;
  object-fit: contain;
  transition-delay: 0.7s;
  filter: grayscale(1);
}
#client div span{
  line-height: 100px;
  display: initial;
}

#client-expand{
  text-align: center;
  border-top: 1px solid #ccc;
  padding: 10px;
  -moz-user-select: none;
  user-select: none;
  cursor: pointer;
}

/* individual client */
#client div img[src*="eateast"]{
  filter: grayscale(1) brightness(2.4);
}
#client div img[src*="wow"]{
  filter: grayscale(1) brightness(2.9);
}
#client div img[src*="twinkle"]{
  filter: grayscale(1) brightness(1.4);
}
#client div img[src*="spotknight"]{
  filter: grayscale(1);
}
#client div img[src*="wayip"]{
  filter: grayscale(1) contrast(80%) brightness(80%);
}
#client div img[src*="wayip"]:hover{
  filter: contrast(80%) brightness(80%);
}
#updown{
  margin: 0 10px;
  transition: all 1s;
}
/* End of individual client */
#client div img:hover{
  filter: initial;
  transition-delay: 0s;
  transform: scale(1.02);
}
/* footer */
footer{
  position: fixed;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 30px;
  grid-template-areas: "work play"
                       "copy copy";
}
footer > div{
  padding: 0 5%;
}
footer i{
  margin-right: 5px;
  margin-left: 5px;
  padding-right: 5px;
  width: 20px;
  height: 20px;
  text-align: right;
  border-right: 1px white solid;
  border-left: 1px gray solid;
  box-sizing: content-box;
}
.work{
  background-color: gray;
  grid-area: work;
}
.work .backed{
  background-color: white;
  color: gray;
}
footer ul li{
  list-style-type: none;
  line-height: 30px;
}
.work ul li a{
  color: white;
  text-decoration: none;
}
.play{
  text-align: right;
}
.play ul li{
  background-color: white;
  grid-area: play;
  text-align: right;
  text-transform: lowercase;
}
.play ul li a{
  color: gray;
  text-decoration: none;
}
.copyright{
  text-align: center;
  background-color: black;
  color: white;
  grid-area: copy;
  padding: 5px 0;
  height: auto;
}
@media only screen and (max-width: 992px) {
  .skill-container .grid-parent{
    grid-template-columns: auto;
  }
  .cate{
    text-align: left;
    margin-left: 3%;
  }
  .words{
    margin-left: 4%;
    margin-right: 4%;
  }
  .pro-container .flex-parent{
    flex-wrap: wrap;
  }
  .pro-box{
    flex-basis: calc(50% - 20px);
  }
  .client-container{
    max-width: 700px;
  }
  #client{
    grid-template-columns: repeat(3, 1fr);
  }
  #client.hidden{
    height: 320px;
  }
  #client div{
    max-width: calc(700px / 2);
  }

}
@media only screen and (max-width: 767px) {
  .front-wrap{
    grid-template-columns: auto;
  }
  .pro-container .flex-parent{
    flex-direction: column;
  }
  .client-wrap{
    margin-bottom: 0;
  }
  .client-container{
    max-width: 100vw;
  }
  h2.backed{
    margin-right: 25px;
  }
  #client{
    grid-template-columns: repeat(2, 1fr);
  }
  #client.hidden{
    height: 320px;
  }
  #client div{
    max-width: calc(100vw / 2);
  }

  footer{
    position: initial;
    height: auto;
    z-index: initial;
    grid-template-columns: auto;
    grid-template-rows: 1fr 1fr auto;
    grid-template-areas: "work"
    "play"
    "copy";
  }
}
