@import "reset.css";
@import "theme.css";

* {
  transition: color 0.3s;
  transition: background 0.7s;
}
body {
  background-color: var(--backgroundColor);
  color: var(--fontColor);
}
.menu-toggle {
  z-index: 50;
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  background-color: var(--pointColor);
  border-radius: 30%;
  cursor: pointer;
  box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.3);
}
.menu-toggle svg {
  width: 70%;
  fill: var(--fontColor);
}
.container {
  max-width: 900px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.cover {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/5/50/STS41B-35-1613_-_Bruce_McCandless_II_during_EVA_%28Retouched%29.jpg/800px-STS41B-35-1613_-_Bruce_McCandless_II_during_EVA_%28Retouched%29.jpg)
    center 0 / cover no-repeat;
  transition: none;
}
.cover .profile {
  position: absolute;
  width: 100%;
  height: 40%;
  max-height: 300px;
  bottom: 0;
  background-color: var(--backgroundColor);
  border-bottom: 1px solid rgba(120, 120, 120, 0.2);
}
.cover .profile .container img {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  transform: translateY(-50%);
  /* box-shadow: 0 0 10px var(--pointColor); */
  border: 3px solid var(--backgroundColor);
}
.profile-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 70px 40px 70px 90px;
  .like {
    margin: auto 0 auto auto;
    height: 40px;
    width: 120px;
    background: none;
    color: var(--pointColor);
    font-size: 1em;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--pointColor);
    cursor: pointer;
    &:hover {
      background-color: var(--pointColor);
      color: white;
      transition: all 0.3s ease-in;
    }
  }
  span {
    color: var(--fontColor);
  }
  .name {
    font-size: 1.2em;
    font-weight: 600;
  }
  .introduce {
    font-size: 0.9em;
  }
  .career {
    max-width: 500px;
    display: grid;
    grid-template-columns: 50% 50%;
    font-size: 0.8em;
    opacity: 0.6;
    font-weight: 600;
    div {
      display: flex;
      height: 100%;
      align-items: center;
      gap: 5px;
      overflow: hidden;
      a:hover {
        color: var(--pointColor);
        transition: all 0.3s;
      }
    }
  }
}
.main {
  position: absolute;
  width: 100%;
  top: 100vh;
  background-color: var(--backgroundColor);
}
.nav {
  width: 100%;
  height: 50px;
  z-index: 100;
  position: unset;
  top: 0;
  background-color: var(--backgroundColor);
  border-bottom: 1px solid var(--pointColor);
}
.nav .nav-inner {
  max-width: 900px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto auto;
  color: var(--pointColor);
  font-weight: 600;
  span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    &:hover {
      background-color: var(--pointColor);
      color: #fff;
      transition: all 0.2s;
    }
  }
  .selected {
    background-color: var(--pointColor);
    color: #fff;
  }
}
.main .about {
  display: flex;
  align-items: center;
  flex-direction: column;
  img {
    width: 50%;
    margin: 20px;
  }
  span {
    text-align: center;
  }
}
.main .about .skill {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 50px 0;
  border-radius: 20px;
  background-color: rgba(170, 170, 200, 0.2);

  .title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
  }
  div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
  }
  span{
    width: 100px;
    overflow: hidden;
  }
  .skill-bar {
    width: 100%;
    height: 30px;
    border-radius: 30px;
    background-color: var(--backgroundColor);
    overflow: hidden;

    span {
      height: 100%;
      width: 0%;
      margin: 0;
      color: var(--backgroundColor);
      text-align: right;
      padding-right: 10px;
      line-height: 30px;
      transition: width 3s;
    }
  }
}
.main .projects {
}
.main .projects .project {
  border-bottom: 1px solid rgba(170, 170, 200, 0.2);
  display: flex;
  flex-direction: column;
  padding: 20px 0 10px;
  .title {
    font-size: 1.5em;
    padding: 5px 0;
  }
  .period {
    font-size: 0.9em;
    opacity: 0.5;
    margin: 0 0 20px 2px;
  }
  .desc {
    line-height: 150%;
  }
  .link {
    font-size: .8em;
    opacity: 0.7;
    margin: 10px 0;
    a {
      margin-right: 5px;
      &:hover {
        color: var(--pointColor);
        transition: all .2s;
      }
    }
  }
  .image-wrap {
    height: 200px;
    background-color: antiquewhite;
    margin: 10px 0;
  }
}
.main .contact {
  border: 1px solid yellowgreen;
  height: 100vh;
}
.footer {
}
