*,
*::after,
*::before {
  margin: 0;
  padding: 0;
}

.line_wrap {
  position: absolute;
  z-index: 3;
  top: 35px;
  right: 35px;
  cursor: pointer;
  transition: all 500ms ease-out;
}
.line_wrap .line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 5px 0;
  background-color: white;
}

.wrap .line_wrap {
  cursor: pointer;
  transition: all 500ms ease-out;
}
.line_wrap.cross {
  transform: rotate(180deg);
}
.line_wrap.cross .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.line_wrap.cross .line:nth-child(2) {
  opacity: 0;
}
.line_wrap.cross .line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  opacity: 1;
  visibility: hidden;
}
.nav.show {
  visibility: visible;
}
.nav .my_pic,
.nav .menu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  float: left;
  width: 50%;
  height: 100vh;
  overflow: hidden;
}
.nav .menu {
  background: #373737;
  list-style: none;
  transform: translateY(-100%) rotateY(90deg);
  transition: all 500ms ease-out;
}
.nav .menu.show {
  transform: translateY(0) rotateY(0deg);
}
.nav .my_pic {
  background: #444444;
  transform: translateY(100%) rotateY(-90deg);
  transition: all 500ms ease-out;
}
.nav .my_pic .portrait {
  width: 200px;
  height: 200px;
  background-image: url("../assets/me-sm.jpeg");
  background-position: center;
  background-size: cover;
  border: solid 3px #eece1a;
  border-radius: 50%;
}
.nav .my_pic.show {
  transform: translateY(0) rotateY(0deg);
}
.nav .menu_item {
  padding: 1rem 0;
  transform: translateY(1800px);
  transition: all 500ms ease-out;
  width: 100%;
}
.nav .menu_item:hover {
  background-color: rgba(230, 226, 226, 0.5);
}
.nav .menu_item a {
  display: inherit;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem;
  padding: 0.5rem 0;
  color: white;
}
.nav .menu_item a:hover {
  color: #eece1a;
  transition: all 500ms ease-out;
}
.nav .menu_item.show {
  transform: translateY(0);
}
.nav .menu_item.active > a {
  color: #eece1a;
}

.menu_item:nth-child(4) {
  transition-delay: 100ms;
}

.menu_item:nth-child(3) {
  transition-delay: 200ms;
}

.menu_item:nth-child(2) {
  transition-delay: 300ms;
}

.menu_item:nth-child(1) {
  transition-delay: 400ms;
}

* {
  box-sizing: border-box;
}

body {
  background-color: #444444;
  color: white;
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}
body.bckg_img {
  background-image: url("../assets/background.jpg");
  background-attachment: fixed;
  background-size: cover;
}
body.bckg_img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: rgba(68, 68, 68, 0.8);
}

h1,
h2,
h3 {
  font-weight: 400;
}
h1.lg,
h2.lg,
h3.lg {
  font-size: 5rem;
}
h1.sm,
h2.sm,
h3.sm,
h4.sm {
  margin-bottom: 2rem;
  padding: 0.2rem 1rem;
}
h5.sm {
  margin: 0.7rem 0;
  padding: 0.5rem;
}
h1.profession,
h2.profession,
h3.profession,
h4.profession,
h5.profession {
  background: rgba(73, 73, 73, 0.5);
}
a {
  color: white;
  text-decoration: none;
}
header {
  position: fixed;
  z-index: 2;
  width: 100%;
}
.color_secondary {
  color: #eece1a;
}
main {
  min-height: calc(100vh - 60px);
  padding: 3rem;
}
main .socials {
  margin-top: 2rem;
}
main .socials a {
  padding: 0.5rem;
}
main .socials a:hover {
  filter: invert(60%);
  transition: all 500ms ease-out;
}
main.home {
  overflow: hidden;
}
main.home h1 {
  margin-top: 20vh;
}
.hint {
  display: block;
  font-size: 0.7rem;
}
.disabled {
  pointer-events: none;
  cursor: not-allowed;
}
.w-80 {
  max-width: 80%;
}
.my_bio {
  grid-area: job;
  padding-right: 2rem;
}

.container_10 {
  display: block;
  width: 10%;
}
.bio_container {
  display: grid;
  grid-gap: 30px;
  grid-template-areas: ". job job";
  grid-template-columns: repeat(3, 1fr);
}
.bio_container .job {
  margin-top: 1rem;
  box-shadow: 1px 1px 5px #888888;
  padding: 15px;
  border-top: 3px solid #eece1a;
}

.bio_img {
  margin: auto;
  border: 3px solid #eece1a;
  border-radius: 50%;
  max-width: 300px;
  height: auto;
}

.project_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
}
.project_container .project a img {
  width: 1.25rem;
  vertical-align: bottom;
}
.project_container .project a img.work_img {
  width: 100%;
  transition: all 500ms ease-out;
  border: 2px solid white;
}
.project_container .project a img.work_img:hover {
  opacity: 0.7;
  border-color: #eece1a;
  border-radius: 5px;
  box-shadow: 2px 2px 10px #888888;
}
.project_container .project a:last-child > img {
  filter: invert(100%);
}
article.description {
  line-height: 2;
  margin: 0 auto;
}
article.description img {
  margin-right: 2rem;
  width: 35%;
  float: left;
}
article.description ul li a {
  color: #00ffff;
}
.btn,
.btn_dark,
.btn_light {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .5rem 1rem;
  border: none;
  margin: 0.5rem auto;
  border-radius: 3px;
  transition: all 500ms ease-out;
}
.btn:hover,
.btn_dark:hover,
.btn_light:hover {
  background-color: #eece1a;
  color: #191b22;
  box-shadow: 2px 2px 10px #888888;
}
.btn_dark {
  background-color: #191b22;
  color: white;
}
.btn_light {
  background-color: #c4c4c4;
  color: #2c2c2c;
}
.btn_dark img,
.btn_light img {
  width: 2rem;
  vertical-align: bottom;
  padding-right: 5px;
}
.contact_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}
.contact_container div {
  font-size: 1.5rem;
  border: 2px solid white;
  padding: 2rem 3rem;
  margin-bottom: 3rem;
  transition: all 500ms ease-out;
}
.contact_container div:hover {
  padding: 1.5rem 2rem;
  background-color: #eece1a;
  color: #191b22;
  border-color: #888888;
  border-radius: 5px;
  box-shadow: 2px 2px 10px #747474;
}
.contact_container div:hover span {
  color: #191b22;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
  margin: 0 auto;

  .btn_light {
    margin: 0;
  }
}

footer {
  text-align: center;
  background-color: #2b2b2b;
  padding: 16px;
  height: 60px;
  color: white;
}

.m-0 {
  margin: 0;
}

@media screen and (min-width: 1171px) {
  .project_container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 769px) and (max-width: 1170px) {
  .project_container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  main {
    align-items: center;
    text-align: center;
  }
  main h1 {
    line-height: 1;
    margin-bottom: 1.5rem;
  }
  main h1.lg {
    font-size: 4rem;
  }
  .nav .my_pic,
  .nav .menu {
    float: none;
    width: 100%;
    min-height: 0;
  }
  .nav .my_pic.show,
  .nav .menu.show {
    transform: translateX(0);
  }
  .nav .menu {
    height: 70vh;
    transform: translateX(-100%);
  }
  .nav .menu .menu_item a {
    font-size: 1.5rem;
  }
  .nav .my_pic {
    height: 30vh;
    transform: translateX(100%);
  }
  .nav .my_pic .portrait {
    width: 150px;
    height: 150px;
  }
  .bio_container {
    grid-template-areas: "bio_img" "job";
    grid-template-columns: 1fr;
  }
  .btn,
  .project_container .project .btn_dark,
  .project_container .project .btn_light {
    padding: 0.5rem;
  }
}

@media screen and (max-width: 500px) {
  main h1 {
    margin-top: 10vh;
  }
  main h1.lg {
    font-size: 2rem;
  }
  main .socials a > img {
    width: 50px;
  }
  .project_container {
    grid-template-columns: 1fr;
  }
  .contact_container div {
    font-size: 1rem;
  }
}
