/* Global */
:root {
  /* Color */
  --color-white: #ffffff;
  --color-light-white: #eeeeee;
  --color-dark-white: #bdbdbd;
  --color-pink: rgb(241, 166, 231);
  --color-dark-pink: #ff6863;
  --color-dark-grey: #4d4d4d;
  --color-grey: #616161;
  --color-light-grey: #7c7979;
  --color-blue: #73aace;
  --color-yellow: #fff3bd;
  --color-orange: #feb546;
  --color-black: #000000;
  --color-purple: rgb(79, 57, 92);
  --color-light-purple: #c78dea;

  /* 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 */
  --anmation-duration: 300ms;
}

/* Universal tags */
* {
  box-sizing: border-box;
}

html {
  min-width: 100vw;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  margin: 0;
  cursor: default;
}

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

ul {
  list-style: none;
  padding-left: 0;
}

button {
  background: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}

p {
  word-wrap: break-word;
}

/* Typography */
h1 {
  font-size: var(--font-large);
  font-weight: var(--weight-bold);
  margin: 16px 0px;
  color: var(--color-purple);
}

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

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

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

/* Navbar*/
#navbar {
  width: 800px;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translate(-50%, 0);
  transition: all var(--anmation-duration) ease-in-out;
  color: var(--color-white);
  background-color: var(--color-purple);
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  z-index: 3;
}
.navbar__logo {
  width: 150px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-purple);
  background-color: var(--color-white);
  font-size: var(--font-medium);
  border-radius: 20px 0px 0px 20px;
}

.navbar__logo__img {
  width: 70px;
}

.navbar__logo a {
  color: var(--color-purple);
}

.navbar__menu {
  width: 650px;
  display: flex;
  justify-content: space-around;
}

.navbar__menu__item {
  width: 100px;
  padding: 15px 0px;
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--anmation-duration) ease-out;
}

.navbar__menu__item:hover {
  text-decoration-line: underline;
  text-decoration-color: var(--color-orange);
  text-underline-position: under;
  text-decoration-thickness: 3px;
}

#navbar.navbar--dark {
  text-decoration-line: underline;
  text-decoration-color: var(--color-purple);
  text-underline-position: under;
  text-decoration-thickness: 3px;
}

.navbar__menu__item.active {
  text-decoration-line: underline;
  text-decoration-color: var(--color-orange);
  text-underline-position: under;
  text-decoration-thickness: 3px;
}

/* Home */
#home {
  background: center/cover no-repeat url(img/homebackground.png);
  padding-top: 85px;
  text-align: center;
  transition: all var(--anmation-duration) ease-in-out;
}

.home__container {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 70%;
  min-width: 800px;
  padding: 20px 0px;
}

.home__avatar {
  margin: auto;
  background: center/cover no-repeat url(img/profile.jpg);
  width: 250px;
  height: 450px;
  border-radius: 15px;
  border: 2px solid var(--color-white);
}

.home__right {
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text,
.blink {
  font-size: var(--font-large);
  font-weight: var(--weight-bold);
  margin: 16px 0px;
  color: var(--color-purple);
}

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

.home__description {
  padding: 10px 0;
  margin: auto;
  width: 80%;
}

.home__contact {
  color: var(--color-white);
  font-size: var(--font-regular);
  font-weight: var(--weight-bold);
  width: 400px;
  margin: 24px auto;
  padding: 8px 12px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
}

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

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

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

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

.major {
  flex-basis: 33.3%;
}

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

.major__icon {
  width: 170px;
  height: 170px;
  font-size: 70px;
  line-height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  border: 2px solid var(--color-purple);
  color: var(--color-purple);
  border-radius: 50%;
  margin-bottom: 16px;
}

.school_logo {
  width: 60px;
  height: auto;
}

.about__icon {
  transition: all var(--anmation-duration) ease;
}

.major__icon:hover .about__icon {
  color: var(--color-pink);
  transform: rotate(20deg) scale(1.1);
}

/*Study*/
#study {
  background-color: var(--color-yellow);
}

.study__categories {
  margin: 40px;
}
.category__btn {
  position: relative;
  border: 1px solid var(--color-purple);
  border-radius: var(--size-border-radius);
  font-size: var(--font-regular);
  padding: 8px 48px;
  background-color: var(--color-white);
}

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

.class_ {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.first,
.second {
  flex-basis: 40%;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 5px;
  padding: 40px 0px;
  border-radius: 10px;
}

.study__title {
  font-size: var(--font-medium);
  font-weight: var(--weight-bold);
}

.study__list {
  line-height: 180%;
}

.anim-out {
  opacity: 0;
  transform: scale(0.96) translateY(40px);
}

.invisible {
  display: none;
}

/* Skill */

.skillset {
  background-color: #4f395c;
  color: var(--color-light-white);
  margin: 40px 0;
}

.skillset__title {
  color: var(--color-white);
  font-size: var(--font-medium);
  margin-bottom: 30px;
}

.skillset__left {
  margin: auto;
  padding: 60px 40px;
}

.skill {
  width: 70%;
  max-width: 700px;
  display: flex;
  justify-content: space-around;
  margin: auto;
}

.skillset__title__right {
  color: var(--color-white);
  font-size: var(--font-regular);
  margin-bottom: 20px;
}

.skillset__right {
  display: flex;
  max-width: 1200px;
  padding: auto;
}

.tools {
  flex-basis: 60%;
  background-color: #7b5890;
  padding: 40px 20px;
}

.etcs {
  flex-basis: 40%;
  background-color: #af8dc4;
  padding: 40px 20px;
}

.tool {
  width: 70%;
  max-width: 300px;
  height: 40px;
  display: flex;
  justify-content: space-around;
  margin: auto;
  margin-bottom: 8px;
}

.etc {
  width: 70%;
  max-width: 150px;
  display: flex;
  justify-content: space-around;
  margin: auto;
  margin-bottom: 8px;
}

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

.skill__icon {
  width: 70px;
  height: 70px;
  font-size: 70px;
  color: var(--color-white);
  fill: var(--color-white);
  transition: all 120ms ease;
}

.tools__icon,
.etc__icon {
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: var(--color-white);
  fill: var(--color-white);
  transition: all var(--anmation-duration) ease;
}

.skill__icon:hover,
.tools__icon:hover,
.etc__icon:hover {
  color: var(--color-orange);
  fill: var(--color-orange);
  transform: scale(1.1);
}

/* Work */
#work {
  background-color: var(--color-yellow);
  padding-bottom: 150px;
  margin: auto;
}

.project__title {
  margin-bottom: 30px;
}

.work__projects {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
}

.project__img {
  flex-basis: 40%;
  width: 400px;
  height: auto;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.project__description {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-basis: 60%;
  width: 500px;
  min-height: 380px;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0px 3px 4px 1px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.project__left {
  padding-left: 12%;
  right: 5%;
}

.project__img__left {
  left: 5%;
}

.project__right {
  padding-right: 12%;
  left: 5%;
}

.project__img__right {
  right: 5%;
}

.project__skill__icon {
  width: 40px;
  height: 40px;
  font-size: 35px;
  margin: 0px 10px;
  color: var(--color-purple);
  fill: var(--color-purple);
  transition: all var(--anmation-duration) ease;
}

.project__skill__link i {
  font-size: 25px;
  margin: 3px;
  color: var(--color-purple);
  transition: all 180ms ease-in;
}

.project__skill__link i:hover {
  color: var(--color-orange);
  transform: scale(1.1);
}

.project__link__left {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.project__link__right {
  position: absolute;
  bottom: 10px;
  left: 10px;
}
.learning-time {
  padding: 10px 0px;
  font-weight: var(--weight-bold);
}

.project__skill {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
}
.role {
  color: var(--color-orange);
}

/* Contact */
#contact {
  width: 100%;
  height: 150px;
  background-color: #2e2e2e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__container {
  width: 100%;
  margin: auto;
}

.contact__title {
  color: white;
  font-size: var(--font-medium);
  text-align: left;
  margin: 0px;
}

.contact__links {
  display: flex;
  justify-content: left;
  align-items: center;
  color: mediumpurple;
  font-size: 12px;
  transition: all 120ms ease-in;
}

.contact__email {
  font-size: var(--font-regular);
  color: mediumpurple;
}
.contact__links i {
  color: mediumpurple;
  padding-left: 10px;
  font-size: 20px;
}

.contact__links i:hover {
  transform: scale(1.1);
  color: var(--color-yellow);
}

.contact__rights,
.contact__credit {
  widows: 100%;
  color: var(--color-dark-white);
  text-align: left;
  font-size: 10px;
}

/* Up Button */
.up-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  font-size: var(--font-medium);
  color: var(--color-light-purple);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: all var(--anmation-duration) ease-in;
  z-index: 3;
}

.up-btn.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;
  }
  .section {
    padding: 16px;
    padding-top: 40px;
  }

  #navbar {
    width: 98%;
    height: 70px;
  }

  .navbar__logo {
    width: 70px;
    min-width: 70px;
  }

  .navbar__logo__img {
    width: 50px;
  }

  .navbar__menu {
    flex-wrap: wrap;
  }

  .navbar__menu__item {
    padding: 5px 0;
    flex-basis: 33.3%;
  }

  .navbar__menu.navbar_menu_open {
    display: block;
  }

  .home__container {
    width: 100%;
    flex-direction: column;
    min-width: 0;
  }

  .home__avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin-bottom: 20px;
  }

  .home__contact {
    width: 80%;
  }

  .home__description {
    padding: 20px 0;
    margin: auto;
    width: 71%;
  }

  .about__majors {
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 0px;
  }

  .major {
    margin-bottom: 38px;
  }

  .study__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
  }

  .category__btn {
    width: 45%;
    margin: 2px;
  }

  .first,
  .second {
    flex-basis: 50%;
  }

  .skillset__left {
    padding: 30px 10px;
  }

  .skill,
  .tool {
    width: 100%;
  }

  .tools,
  .etcs {
    padding: 20px 10px;
  }

  #work {
    padding: 40px 0;
  }

  .work__projects {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .project__img {
    width: 100%;
    right: 0;
    left: 0;
  }

  .project__description {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    right: 0;
    left: 0;
    bottom: 20px;
    order: 1;
  }

  .project__img__right {
    top: 100%;
  }

  .project__link__left,
  .project__link__right {
    padding-top: 10px;
    position: static;
  }

  .up-btn {
    width: 50px;
    height: 50px;
    font-size: 30px;
    line-height: 30px;
    right: 10px;
    bottom: 10px;
  }
}
