/* Global */

:root {
  /* Color */
  --color-white: #ffffff;
  --color-light-white: #eeeeee;
  --color-dark-white: #bdbdbd;
  --color-pink: #fe918d;
  --color-dark-pink: #ff7874;
  --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: 0.3s;
}

/* Universal tags */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open sans', sans-serif;
  cursor: default;
}

/* typography */
h1 {
  font-size: var(--font-large);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  margin: 16px 0;
}

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-bold);
  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;
}

button {
  cursor: pointer;
}

/* Navbar */
#navbar {
  display: flex;
  justify-content: space-between;
  background-color: transparent;
  align-items: center;
  width: 100%;
  color: var(--color-white);
  flex-wrap: wrap;
  position: fixed;
  padding: 0 20px;
  padding-top: 15px;
  left: 0;
  top: 0;
  z-index: 1;
  transition: all var(--animation-duration) ease-in-out;
}
#navbar.navbar--dark {
  background-color: #7fa3b3;
}
#navbar.navbar--wheelDown {
  top: -70px;
  background-color: transparent;
}
a {
  text-decoration: none;
  color: var(--color-white);
}

ul {
  list-style: none;
  padding: 0;
}

.navbar__menu {
  display: flex;
  flex-wrap: wrap;
}

.navbar__menu__item {
  padding: 8px 12px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: var(--size-border-radius);
  border: 1px solid transparent;
  transition: all 0.3s ease-in;
}
.navbar__menu__item:hover {
  background-color: var(--color-dark-pink);
  border: 1px solid white;
}
.navbar__logo {
  font-size: var(--font-medium);
  font-weight: var(--weight-semi-bold);
  bottom: 8px;
  position: relative;
}
.navbar__logo > a {
  font-family: 'Times New Roman', Times, serif;
}

.navbar__toggleBtn {
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 24px;
  color: var(--color-white);
  position: absolute;
  right: 32px;
  display: none;
}

/* Home */
#home {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: url('/image/background_comp.png') center/cover no-repeat;
  padding: 40px;
  text-align: center;
  height: 760px;
}

.home__title,
.home__description {
  color: var(--color-white);
}

.home__contact {
  font-size: var(--font-regular);
  margin: 24px;
  padding: 8px 12px;
  outline: none;
  border: none;
  background-color: var(--color-dark-pink);
  border: 2px solid var(--color-white);
  border-radius: 5px;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  transition: all var(--animation-duration) linear;
}
.home__contact:hover {
  background-color: #ff8985;
  transform: scale(1.05);
}
.home__contact:active {
  background-color: #fd6e69;
}
/* section common */
.section {
  padding: 50px;
  text-align: center;
}
.section__container {
  max-width: 1200px;
  margin: auto;
}

/* About */
img.about__avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid var(--color-light-white);
}
.carousel.slide.carousel-fade {
  margin: 20px 0;
  z-index: 0;
}
.about__majors {
  display: flex;
  justify-content: space-evenly;
  margin: 80px 0;
  flex-wrap: wrap;
}
.major__icon {
  width: 170px;
  height: 170px;
  font-size: 72px;
  line-height: 170px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  margin-bottom: 16px;
  color: var(--color-blue);
}
.major__icon:hover i {
  transform: rotate(-30deg) scale(1.1);
  color: var(--color-pink);
}
.major__icon i {
  transition: all var(--animation-duration) linear;
}

.major__title,
.major__description {
  color: var(--color-dark-grey);
}
.major__description {
  font-size: var(--font-small);
}
.about__info {
  text-align: left;
}
.about__education {
  margin-bottom: 48px;
}
.education__title {
  margin-bottom: 10px;
}
.about__certification {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}
.certification__date {
  font-size: 16px;
  color: rgb(90, 86, 86);
}

/* Skills */
#skills {
  background-color: rgb(179, 174, 174);
}
.skillset {
  display: flex;
  background-color: #f4d4d4;
  margin-top: 20px;
  padding: 20px;
  font-weight: bold;
}
.skillset__left {
  flex-basis: 60%;
}
.skillset__right {
  flex-basis: 40%;
  background-color: rgb(240, 162, 176);
}
.tools {
  padding: 10px;
  background-color: rgb(253, 169, 169);
}
.skill__description {
  display: flex;
  justify-content: space-between;
  padding: 10px 40px;
}
.skill {
  margin-bottom: 8px;
}
.skill__bar {
  width: 90%;
  height: 3px;
  background-color: gray;
  margin: auto;
}
.skill__value {
  height: 3px;
  background-color: rgb(226, 117, 135);
}

/* Work */
#work h1 {
  margin-bottom: 40px;
}
.category__btn {
  font-size: var(--font-regular);
  padding: 8px 48px;
  background-color: transparent;
  border: 1px solid gray;
  border-radius: 4px;
  outline: none;
}

.category__btn.active,
.category__btn:hover {
  background-color: var(--color-pink);
  color: var(--color-white);
}
.category__btn.active .category__count,
.category__btn:hover .category__count {
  opacity: 1;
  top: 0;
}
.category__count {
  background-color: var(--color-orange);
  border-radius: 50%;
  color: white;
  width: 24px;
  height: 24px;
  display: inline-block;
  line-height: 24px;
  position: relative;
  top: -20px;
  left: 4px;
  opacity: 0;
  transition: all var(--animation-duration) ease-in;
}

.work__projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  opacity: 1;
  transition: all var(--animation-duration) ease-in;
}
.work__projects.animation-out {
  opacity: 0;
  transform: scale(0.95) translateY(40px);
}
.project {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 230px;
  height: 200px;
  margin: 2px;
  background-color: var(--color-light-white);
  position: relative;
}
.project:hover .project__description {
  opacity: 0.8;
  transform: translateY(0);
}
.project__img {
  max-width: 100%;
  max-height: 100%;
}
.project.invisible {
  display: none;
}
.project__description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  color: var(--color-white);
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--animation-duration) ease-in;
}
.project__description h3 {
  color: yellow;
}

/* Award */
#award {
  background-color: #b3aeae;
}
#award > h1 {
  margin-bottom: 40px;
}
.award__title > p {
  font-style: italic;
  text-align: left;
  font-weight: bold;
}
.award__content > p {
  font-weight: bold;
  color: rgb(0, 0, 0);
  font-size: 16px;
  text-align: right;
}

.award__content > p > a {
  color: rgb(226, 117, 135);
}
.award__img {
  width: 100%;
}

/* Contact */
#contact {
  background-color: #f4d4d4;
}
.contact__email > a {
  color: var(--color-dark-grey);
}
.contact__links {
  margin: 24px 0;
}
.contact__links a > i {
  color: black;
  font-size: 48px;
  margin: 0 16px;
  transition: all var(--animation-duration) ease-in;
}
.contact__links a > i:hover {
  transform: scale(1.2);
}
.sideNav {
  width: 70px;
  height: 70px;
  background-color: #7fa3b3;
  border-radius: 50%;
  position: fixed;
  right: 30px;
  bottom: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in;
}
.sideNav:hover {
  background-color: #8ca9b6;
  transform: scale(1.05);
}
.sideNav:active {
  background-color: #79a4b8;
}
.sideNav i {
  line-height: 70px;
  font-size: 35px;
  color: white;
}

/* media */
@media screen and (max-width: 768px) {
  #home {
    height: 350px;
  }
  .navbar__toggleBtn {
    display: block;
  }
  #navbar {
    flex-direction: column;
    padding-bottom: 15px;
    background-color: #7fa3b3;
  }
  .navbar__menu {
    flex-direction: column;
    align-items: center;

    display: none;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: all var(--animation-duration) ease-in;
  }
  .navbar__menu.open {
    display: block;
    opacity: 1;
  }

  .home__contact {
    width: 120px;
    height: 50px;
    font-size: 16px;
    position: relative;
    bottom: -30px;
  }
  .major {
    margin-bottom: 30px;
  }
  .skillset {
    flex-direction: column;
  }
  .skillset__left {
    margin-bottom: 20px;
  }
  .project {
    flex-grow: 1;
  }
  .navbar__logo {
    position: relative;
    top: 1px;
  }
  .sideNav {
    width: 50px;
    height: 50px;
  }
  .sideNav i {
    font-size: 20px;
    line-height: 50px;
  }
}
@media screen and (max-width: 1000px) and (min-width: 769px) {
  #home {
    height: 600px;
  }
}
