/* Global */

:root {
  
  /* Color */
  --color-white: #ffffff;
  --color-light-white: #eeeeee;
  --color-dark-white: #bdbdbd;
  --color-green: #66bb6a;
  --color-light-green: #98ee99;
  --color-light-green2: #e1ffb1;
  --color-dark-green: #338a3e;
  --color-dark-grey: #4d4d4d;
  --color-grey: #616161;
  --color-light-grey: #7c7979;
  --color-blue: #73aace;
  --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;

  /* Animation */
  --animation-duration: 300ms;


}
/* Universal tags */


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'M PLUS 1 Code', sans-serif;
  cursor: default;
}

a {
  text-decoration: none;
  color: var(--color-white);
}

ul {
  list-style: none;
  
}

li {
  padding-left: 0;
}

button {
  background-color: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}
/* 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: var(--color-white);
  padding: 16px;
  transition: all var(--animation-duration) ease-in-out;
  z-index: 1;
}

#navbar.navbar--dark {
  background-color: var(--color-green);
  padding: 2px;
}

.navbar__menu {
  display: flex;

}

.navbar__logo {
  font-size: var(--font-medium);
  font-weight: var(--weight-semi-bold);
  margin-left: 20px;
}

.navbar__menu__item {
  padding: 8px 12px;
  margin: 0 4px;
  cursor: pointer;
  color: var(--color-white);
  border: 1px solid transparent;
  border-radius: var(--size-border-radius);
}

.navbar__menu__item.active {
  border: 1px solid var(--color-white);
}

.navbar__menu__item:hover {
  background-color: var(--color-dark-green);
  border-color: var(--color-white);
}

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

/* Home */
#home {
  background:url('imgs/home-background.png') center/cover no-repeat;
  padding: 40px;
  padding-top: 150px;
  text-align: center;
  padding-top: 250px;
  padding-bottom: 200px;
}

.home__avatar {
  width: 250px;
  height: 300px;
  border-radius: 50%;
  border: 10px solid var(--color-green);
}

.home__title,
.home__description {
  color: var(--color-dark-green);
}

.home__contact {
  color: var(--color-dark-green);
  font-size: var(--font-regular);
  font-weight: var(--weight-bold);
  margin: 24px;
  padding: 8px 12px;
  border: 2px solid var(--color-dark-green);
  border-radius: var(--size-border-radius);
}

.home__contact:hover {
  background-color: var(--color-light-green2);
}

/* Section common */
.section {
  padding: 50px;
  text-align: center;  
  margin: auto;
}

.section__container{
  max-width: 1200px;
  margin: auto;
}
.section__title {
  color: var(--color-dark-green);
}

.section__description {
  color: var(--color-dark-grey);
}


/* About */
.about__majors {
  display: flex;
  justify-content: space-evenly;
  margin: 80px 0;
}

.major__icon {
  width: 170px;
  height: 170px;
  line-height: 170px;
  font-size: 70px;
  margin: auto;
  color: var(--color-green);
  margin-bottom: 16px;
  border: 1px solid var(--color-light-green);
  border-radius: 50%;
  margin-bottom: 16px;

}
.major__icon i {
  color: var(--color-orange);
  transition: all 300ms ease-in;
}

.major__icon:hover {
  color: var(--color-dark-green);
  transform: rotate(-30deg) scale(1.1);
}


.major__title, .major__description {
  color: var(--color-dark-green);
}

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

.job {
  display: flex;
  align-items: center;
  
}

.job__description {
  margin: 0 16px;
  text-align: left;
}

.job__name {
  color: var(--color-dark-grey);
  font-weight: var(--weight-bold);
}

.job__period, .job__role {
  color: var(--color-light-grey);
}

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

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

 /* Skill */
#skills{
  background-color: var(--color-light-green2);
}

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

.skillset__title {
  color: var(--color-white);
}

.skillset__left {
  flex-basis: 60%;
  background-color: var(--color-dark-grey);
  padding: 20px 40px;
}

.skill {
  margin-bottom: 32px;
}

.skill__description {
  display: flex;
  justify-content: space-between;
}

.skill__bar {
  width: 100%;
  height: 5px;
  background-color: var(--color-grey);
}

.skill__value {  
  height: 5px;
  background-color: var(--color-dark-green);
}

.skillset__right {
  flex-basis: 40%;
}

.tools{  
  background-color: var(--color-grey);
}

.tools,.etc{
  padding: 20px;
  height: 50%;
  
}

/* Work */
.work__categories {
  margin: 40px;
}

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


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

.category__btn.selected .category__count,
.category__btn:hover .category__count {
  opacity: 1;
  top: 6px;

}


.category__count {
  background-color: var(--color-orange);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: var(--color-white);
  display: inline-block;
  line-height: 24px;
  position: absolute;
  top: -20px;
  right: 16px;
  opacity: 0;
  transition: all var(--animation-duration) ease-in;
}

.work__projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 1;
  transition: all var(--animation-duration) ease-in;
}

.work__projects.anim-out {
  opacity: 0;
  transform: scale(0.9) translate(40px);
}

.project {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 250px;
  margin: 2px;
  background-color: var(--color-light-white);
}

.project.invisible {
  display: none;
}

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

.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-light-green);
}

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

/* Reference */
#reference {
  background-color: var(--color-light-white);
}

.reference {
  margin: 40px;
}

.reference {
  display: flex;
  margin: 32px 0;
}

.reference__avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

.reference__avatar:nth-child(odd) {
  margin-right: 40px;
}
.reference__avatar:nth-child(even) {
  margin-right: 40px;
}
.name {
  padding:18px;
  background-color: var(--color-white);
  border-radius: var(--size-border-radius);

}

.reference__contact p {
  color: var(--color-light-grey);
}

.reference__contact a {
  color: var(--color-dark-green);
}

/* Contact */
#contact {
  background-color: var(--color-dark-green);
}

.contac__links, .contact__email, .contact__rights, .contact__title{
  color: var(--color-white);
}

.contact__title {
  margin: 32px 0;
}

.contact__links {
  font-size: var(--font-large);
  margin: 24px 0;
}

.contact__links i:hover {
  transform: scale(1.1);
  transition: all var(--animation-duration) ease-in;
  color: var(--color-light-green)
}
.tools_list, .etc__list {
  padding-left: 0;
}
/* Scroll */
.arrow-up {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 70px;
  height: 70px;
  font-size: 50px;
  color: var(--color-white);
  background-color: var(--color-green);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-in;
}

.arrow-up.visible {
  opacity: 1;
  pointer-events: auto;
}

/* For below 768px screen width */
@media screen and (max-width: 768px) {
  :root {    
  /* Font size */
  --font-large: 30px;
  --font-medium: 18px;
  --font-regular: 16px;
  --font-small: 14px;
  --font-micro: 12px;
  }
  .navbar__toggle-btn {
    display: block;
    top: 16px;
    right: 16px;
    font-size: var(--font-medium);
  }
  #navbar {
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--color-green);
  }
  #navbar.navbar--dark{
    padding: 16px;
  }
  .navbar__menu{
    flex-direction: column;
    text-align: center;
    width: 100%;
    display: none;
  }
  .navbar__menu.open {
    display: block;
  }

  .section {
    padding: 16px;
    padding-top: 40px;
  }

  .about__majors {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 0px;
  }
  .major {
    margin-bottom: 30px;
  }
  .skillset {
    flex-direction: column;
  }
  .category__btn {
    margin: 4px 0;
    width: 100%;
  }
  .project {
    flex-grow: 1;
  }
  .reference__avatar{
    width: 80px;
    height: 80px;
    
  }
  .job__role{
    display: none;    
    flex-direction: column;
  }

  .job__description {
    width: 100%;
  }

  .reference__avatar:nth-child(even)
  .reference__avatar:nth-child(odd) {
    margin: 0;
    margin-bottom: 8px;
  }
  .referece__contact {
    order: 1;
  }
  .arrow-up {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    line-height: 50px;
  }
}