/* Global */

:root {
  /* Color */
  --color-white: #ffffff;
  --color-light-white: #eeeeee;
  --color-dark-white: #bdbdbd;
  --color-pink: #fe918d;
  --color-dark-pink: #ff6863;
  --color-dark-grey: #4d4d4d;
  --color-grey: #616161;
  --color-light-grey: #7c7979;
  --color-blue: #73aace;
  --color_dark-blue:#12496e;
  --color-yellow: #fff7d1;
  --color-orange: #feb546;
  --color-black: #000000;

  /* Font size */
  --font-large: 48px;
  --font-medium: 28px;
  --font-regular: 18px;
  --font-small: 16px;
  --font-micro: 14px;

  /* Font weight */
  --weight-bold: 700;
  --weight-semi-bold: 600;
  --weight-regular: 400;

  /* Size */
  --size-border-radius: 4px;

  /* Annimation */
  --animation-duration: 300ms;
}

/* universal tags*/

*{
  box-sizing:border-box;
}
body{
  margin:0;
  font-family: 'Open Sans', sans-serif;
}
button {
  background-color: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}
a{
  text-decoration: none;
  color:var(--color-white);
}
ul{
  list-style-type:none;
  padding-left: 0;
}
/* Typography */

h1 {
  font-size: var(--font-large);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  margin: 16px 0px;
}

h2 {
  font-size: var(--font-medium);
  font-weight: var(--weight-semi-bold);
  color: var(--color-black);
  margin: 8px 0;
}

h3 {
  font-size: var(--font-regular);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin: 8px 0;
}

p {
  font-size: var(--font-regular);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin: 4px 0;
}

/* navbar */
#navbar {
  position:fixed;
  width:100%;
  display:flex;
  justify-content: space-between;
  background-color: transparent;
  align-items: center;
  color:#ffffff;
  padding:4px;
  transition: 300ms ease-in-out;
  z-index: 1;
}
#navbar.navbar--dark{
  background-color: var(--color-blue);
  
}
.navbar__menu{
  display:flex;

}

.navbar__menu__item{
  
  padding: 8px 12px;
  margin: 0 4px;
  cursor:pointer;
  border-radius: 4px;
}

.navbar__menu__item.active{
  
  border: 1px solid white;
}


.navbar__menu__item:hover {
  border: 1px solid white;
  
  background-color: var(--color_dark-blue);
}


.navbar__toggle-btn{
  position:absolute;
  top: 10px;
  right:32px;
  font-size:24px;
  color:white;
  display:none;
}

/* Home */
#home {

  background: url('imgs/home-background.jpeg') center/cover no-repeat ;
  padding: 40px;
  padding-top: 120px;
  text-align: center;
}

.home__profile{
  
}
.home__title{
  color:white;
}
.home__discription{
  color:white;
}

.section{
  padding:50px;
  text-align:center;
   /*1000~1200 desktop */
  margin:auto;
}

.section__container{
  max-width:1200px;
  margin:auto;
}

.job{
  align-items: center;
}
.job__logo1{
  width:30%;
}
.job__logo2{
  width:30%;
}
.job__discription{
  margin: 0 16px;
  text-align: center;
}

.job__name{
  font-size: var(--font-small);
}


.job__period{
  font-size: var(--font-micro);
}

#skills{
  background-color: #fff7d1;
}

.skillset{
  display:flex;
  background-color: var(--color-light-grey);
  color:var(--color-light-white);
  margin :20px 0;


}
.skill__title{
  color:var(--color-white);
}
.skill__discription{
  display:flex;
  justify-content: space-between;
}
.skill__bar{
  width:100%;
  height:3px;
  background-color: grey;
}
.skill__value{
  width:50%;
  height:3px;
  background-color: orange;
}
.skill{
  margin-bottom: 32px;
}
.skillset__left{
  padding:20px 40px;
  flex-basis : 60%;
  background-color: var(--color-dark-grey);
}
.skillset__right{
  padding:20px 40px;
  flex-basis : 40%;
  background-color: var(--color-grey);
}

.category__btn{
  position: relative;
  border:1px solid var(--color-dark-white);
  font-size: var(--font-regular);
  padding: 8px 48px;
  
}

.work__categories{
  margin:40px;
}

.category__btn.selected,
.category__btn:hover{
  background-color: var(--color_dark-blue);
  color:var(--color-white);
}


.category__count{
  background-color: var(--color-orange);
  border-radius:  50%;
  color:var(--color-white);
  width:24px;
  height:24px;
  line-height:24px;
  display: inline-block;
  position: absolute;
  top:-10px;
  right:4px;
  
}

.work__projects{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
}
.project{
  position:relative;
  display:flex;
  justify-content: center;
  align-items: center;
  width:200px;
  height:250px;
  margin:2px;

}

.project__img{
  max-width:100%;
  max-height:100px;
}

.project__discription{
  position:absolute;
  display:flex;
  background-color: var(--color-black);
  flex-direction: column;
  justify-content: center;
  width:100%;
  height:100%;
  top: 0;
  left:0;

  opacity:0;
  transition: all 300ms ease-in;
  transform:translateY(10px);
  
}
.project:hover.project__discription{
  opacity:0.8;
}
.project__discription h3{
  color:var(--color-white);
}

.project__discription h3:after{
  content:'';
  display:block;
  position:relative;
  left:50%;
  margin-left:-12px;
  width:25px;
  height:2px;
  background-color: var(--color-dark-white);

}
/*contact*/
#contact{
  background-color: var(--color-blue);  
}
.contact__title,.contact__email,.contact__rights{
  color:white;
}

.contact__title{
  margin:32px 0;
}

.contact__links{
  font-size:var(--font-large);
  margin:24px 0;
  transition:all 300ms ease-in;

}

.contact__links i:hover{
  transform:scale(1.2);
  color: black;
  transition:all 300ms ease-in;
}

.arrowup{
  position: fixed;
  bottom: 40px;
  right: 40px;
  color:var(--color_dark-blue);
  font-size:40px;
  width:60px;
  height:60px;
  opacity: 0;
  border-radius: 50%;
  transition: opacity 300ms ease-in;
  
}
.arrowup.visible{
  opacity:1;
  pointer-events: auto;
}

.work__projects{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project{
  position:relative;
  display:flex;
  justify-content: center;
  background-color: white;

  
}
.project.invisible{
  display:none;
}

.project__img {
  max-width: 100%;
  max-height: 100%;
  align-self: center;
}

.project__description {
  position: absolute;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--animation-duration) ease-in;
}

.project:hover .project__description {
  opacity: 0.8;
  transform: translateY(0px);
}

.project__description h3 {
  color: var(--color-orange);
}

.project__description h3:after {
  content: '';
  display: block;
  position: relative;
  left: 50%;
  width: 50px;
  height: 2px;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: var(--color-dark-white);
}


@media screen and (max-width :600px){
  .navbar__toggle-btn {
    display: block;
    background-color: var(--color-blue)
  }

  #navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  #navbar.navbar--dark {
    padding:16px;
  }

  .navbar__menu {
    flex-direction: column;
    text-align: center;
    width: 100%;
    display: none;
    background-color: var(--color-blue);
  }
  .navbar__menu.open {
    display: block;

  }
  .major{
    margin-bottom:38px;
  }
  .skillset{
    flex-direction:column;
  }

  .category__btn{
    display:inline-block;
    padding:4px;
  }
  .contact__email{
    font-size:smaller;
  }
}
