@charset "UTF-8";
:root {
  --main_color: #2C97BB;
  --second_color: #2cbbbb;
  --bgcolor:rgb(55, 57, 58) /* #555758 舊的*/;
  --text_color: #eeeeee;
  --grey_color: #C6C6C6;
  --nocha_bgcolor: #555758;
  --nocha_text_color: #eeeeee;
}

.cha_mode {
  --bgcolor: #E9E9E9;
  --text_color: #555758;
  --second_color: #1DAFAF;
}

* {
  position: relative;
  font-family: "inter", "微軟正黑體";
  transition: 0.2s;
}
* a {
  text-decoration: none;
  color: var(--text_color);
}
* ul {
  padding: 0;
}
* li {
  list-style-type: none;
}

html, body {
  background-color: var(--bgcolor);
  color: var(--text_color);
  width: 100vw;
  height: 100vh;
  transition: 0.1s;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  max-width: 1200px;
  width: 90%;
  height: auto;
  margin: auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hr {
  width: 190px;
  height: 8px;
  display: block;
  background-color: var(--main_color);
}

.bgimg {
  display: block;
  position: absolute;
  height: 800px;
  transition: -2s;
  background-attachment: fixed;
}

.home_bg {
  top: 0;
  height: 860px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.about_bg {
  position: absolute;
  top: 700px;
  height: 900px;
  transform: translateX(-2px);
  background-image: url("../../img/about_bg.png");
  background-repeat: no-repeat;
  background-size: 101% auto;
  filter: contrast(1);
}

.navbar {
  position: relative;
  max-width: 1200px;
  padding: 28px;
  position: fixed;
  z-index: 20;
}
.navbar ul li, .navbar a {
  margin-right: 24px;
}
.navbar ul li:hover, .navbar a:hover {
  color: var(--second_color);
}
.navbar .navbar-toggler {
  border: 1.5px solid var(--grey_color);
  color: var(--text_color);
  background-color: var(--bgcolor);
  padding: 2px;
  z-index: 50;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1) inset;
}
.navbar .navbar-toggler svg {
  color: var(--text_color);
  width: 22px;
  height: 22px;
  stroke: var(--text_color);
  stroke-width: 6px;
}
.navbar .dark_lighten {
  width: 50px;
  height: 24px;
  display: block;
  border: 1.5px solid var(--nocha_text_color);
  border-radius: 20px;
  position: relative;
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1) inset;
}
.navbar .dark_lighten .cir, .navbar .dark_lighten .moon_sun {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}
.navbar .dark_lighten .cir {
  background-color: var(--nocha_text_color);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1) inset;
}
.navbar .dark_lighten .moon_sun {
  left: 5px;
  border-radius: 0;
  background-image: url(../../img/moon.png);
  background-size: 95% 95%;
  background-position: cover;
  background-repeat: no-repeat;
}

.inContact {
  color: var(--nocha_text_color);
}

.dark_lighten.dark {
  transition: 0.3s ease;
  border-color: var(--nocha_bgcolor);
}
.dark_lighten.dark .cir {
  left: 5px;
  background-color: var(--nocha_bgcolor);
}
.dark_lighten.dark .moon_sun {
  left: 28px;
  background-image: url(../../img/sun.png);
  background-size: 95% 95%;
  background-position: cover;
}

.distable_nav {
  position: fixed;
  background-color: rgba(40, 42, 43, 0.8);
  backdrop-filter: blur(5px);
  left: -50px;
  height: 100%;
  padding: 28px 128px;
  z-index: 200;
  width: 360px;
  height: 100%;
  display: none;
  transform: translateX(-360px);
}
.distable_nav .close {
  border: 1px solid;
  border-radius: 4px;
  display: inline-block;
  padding: 1px 8px;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  color: var(--nocha_text_color);
}
.distable_nav ul li, .distable_nav a {
  line-height: 1.8rem;
  color: var(--nocha_text_color);
}
.distable_nav ul li:hover, .distable_nav a:hover {
  color: var(--second_color);
}
.distable_nav .mail {
  margin-top: 50px;
  font-size: 15px;
  left: 0;
  color: var(--nocha_text_color);
}
.distable_nav .media {
  position: absolute;
  font-size: 24px;
  margin-top: 20px;
  left: 128px;
}
.distable_nav .media ul li, .distable_nav .media a {
  margin-right: 6px;
}

.fixed_bottom {
  position: fixed;
  top: calc(800px - 28px);
  padding-left: 28px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  z-index: 20;
}

.mail i {
  color: var(--second_color);
  font-size: 18px;
  font-weight: 300;
  transform: translateY(2px);
}

.media {
  position: absolute;
  right: 28px;
}
.media ul li, .media ul a {
  display: inline-block;
  margin-right: 8px;
  color: var(--second_color);
  transition: 0.2s;
}
.media ul li:last-child {
  margin-right: 0;
}
.media ul li:hover {
  text-shadow: 0 0 1px var(--second_color), 0 0 2px var(--main_color);
  transform: scale(1.1);
}

.media.inHome {
  bottom: 100px;
  left: 28%;
}
.media.inHome ul li, .media.inHome a {
  font-size: 40px;
}

.media.outHome {
  opacity: 0;
  position: absolute;
  transform: translateY(-4px);
}
.media.outHome ul li, .media.outHome a {
  font-size: 22px;
}

.box {
  width: 100%;
  height: 800px;
  padding: 28px;
  position: relative;
  scroll-snap-align: center;
}

#home .row2 {
  display: none;
}
#home .row2 .phone_title h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#home .left, #home .right {
  position: relative;
  margin: auto;
  padding: 200px 0px;
  width: 50%;
  height: 100%;
}
#home .left {
  padding-left: 16%;
}
#home .left h2 {
  letter-spacing: 0.8rem;
  font-weight: 400;
  font-size: 36px;
  padding-bottom: 10px;
}
#home .left h4 {
  letter-spacing: 0.4rem;
  font-weight: 300;
  font-size: 22px;
  padding-bottom: 42px;
}
#home .right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#home .block {
  width: 360px;
  height: 360px;
  display: block;
  border: 3px solid var(--grey_color);
  border-radius: 50%;
  left: 25%;
  transform: translateX(-25%);
  background-color: #999;
  background-image: url(../../img/my_photo.png);
  background-size: 100% 100%;
  background-position: cover;
}
#home .block:before, #home .block:after {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  background-color: var(--grey_color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#home .block:before {
  left: -25px;
}
#home .block:after {
  right: -25px;
}

#about {
  display: flex;
}
#about .col-sm-12 {
  display: none;
}
#about .col-sm-12 h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#about .left, #about .right {
  display: inline-block;
  position: relative;
}
#about .left {
  display: flex;
  align-items: flex-end;
  position: relative;
}
#about .left .p1, #about .left .p2 {
  filter: grayscale(100%) contrast(1.2);
  position: absolute;
  bottom: 30%;
}
#about .left .p1 {
  left: 100px;
}
#about .left .p2 {
  left: 360px;
}
#about .right {
  margin: auto;
}
#about .right h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#about .right p {
  margin-top: 40px;
  margin-right: 60px;
  letter-spacing: 0.2rem;
  line-height: 1.6rem;
}

#resume {
  position: relative;
  height: auto;
  padding-bottom: 180px;
}
#resume h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#resume .col-md-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 94px;
  position: relative;
}
#resume .col-md-12.timeline {
  margin-top: 84px;
}
#resume .col-md-12.timeline .line {
  width: 2px;
  height: 960px;
  display: inline-block;
  position: absolute;
  background: linear-gradient(0deg, var(--second_color), var(--main_color));
  left: 50%;
  transform: translateX(-50%);
}
#resume .col-md-12.timeline .line:before, #resume .col-md-12.timeline .line:after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--main_color);
}
#resume .col-md-12.timeline .line:before {
  width: 10px;
  height: 10px;
  position: absolute;
  top: -5px;
  left: -5px;
  transform: translateX(1.5px);
}
#resume .col-md-12.timeline .line:after {
  position: absolute;
  bottom: 0;
  left: -9px;
  background-color: var(--second_color);
}
#resume .col-md-12.timeline .born {
  position: relative;
  top: -12px;
  left: 100px;
}
#resume .col-md-12.timeline .tbc {
  position: relative;
  top: 109.5%;
  left: 40px;
}
#resume .col-md-12.timeline .timeblock {
  width: 360px;
  border-radius: 4px;
  position: relative;
  background-color: var(--main_color);
  padding: 60px 30px 40px 30px;
  margin-bottom: 60px;
}
#resume .col-md-12.timeline .timeblock h2 {
  font-weight: 400;
  position: relative;
  left: 10px;
  transform: translateY(-50%);
  font-size: 48px;
  font-weight: 300;
  position: absolute;
  top: -5px;
}
#resume .col-md-12.timeline .timeblock p {
  font-size: 14px;
  font-weight: 350;
  z-index: 3;
  color: var(--nocha_text_color);
}
#resume .col-md-12.timeline .timeblock:last-child {
  background-color: var(--second_color);
}
#resume .col-md-12.timeline .timeblock:last-child {
  background-color: var(--second_color);
  margin-bottom: 0;
  margin-top: -40px;
  padding-top: 40px;
  padding-bottom: 20px;
}
#resume .col-md-12.timeline .timeblock:nth-last-child(2) {
  padding-top: 50px;
  padding-bottom: 20px;
  height: 118px;
}
#resume .col-md-12.timeline .l_block {
  right: 20%;
}
#resume .col-md-12.timeline .l_block .sec_line {
  transform-origin: 0 0;
}
#resume .col-md-12.timeline .r_block {
  left: 20%;
}
#resume .col-md-12.timeline .r_block .sec_line {
  transform-origin: 0 100%;
  transform: rotate(180deg);
}
#resume .col-md-12.timeline .sec_line {
  display: block;
  position: absolute;
  height: 2px;
  width: 0;
  background-color: var(--main_color);
  top: 50%;
  left: 50%;
  transition: -0.1s;
  z-index: 1;
}

#skills {
  position: relative;
}
#skills .bgimg.skill_bg {
  background-color: var(--bgcolor);
  filter: brightness(0.95);
  top: 0;
}
#skills .col-md-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  position: relative;
}
#skills .col-md-12 h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#skills .col-md-12 .hr {
  background-color: var(--second_color);
}
#skills .col-md-12:last-child {
  margin-top: 70px;
}
#skills .col-md-10 {
  display: flex;
  flex-wrap: wrap;
  gap: 76px;
  justify-content: center;
}
#skills .skill_box {
  width: auto;
  height: auto;
  padding: 0;
}
#skills .round {
  width: 180px;
  height: 180px;
  position: relative;
  transform: rotate(-90deg);
  transition: 0.2s;
}
#skills .round circle {
  fill: none;
  stroke-width: 18;
  stroke: var(--bgcolor);
}
#skills .round .main_cir {
  stroke: var(--main_color);
  stroke-dasharray: 0 999;
}
#skills .skill_img {
  display: block;
  width: 80px;
  height: 80px;
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#skills .skill_img img {
  position: absolute;
  height: 130%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#skills .css {
  height: 53%;
}
#skills .vue {
  height: 40%;
}
#skills .skill_name {
  font-size: 18px;
  font-weight: 400;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

#works .col-md-12 {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 80px;
}
#works .col-md-12 h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#works .row {
  position: relative;
}
#works .row:nth-child(2) {
  padding: 40px;
}
#works .col-md-4 {
  padding: 0;
  overflow: hidden;
}
#works .block {
  width: 90%;
  height: 90%;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  transition: 0.2s;
  overflow: hidden;
  color: var(--nocha_text_color);
}
#works .block:hover {
  transition: 0.2s;
  border: 1px solid var(--grey_color);
}
#works .block:hover .title {
  opacity: 1;
}
#works .block:hover img {
  transform: scale(1.2) translate(-5%, -5%);
}
#works .block:hover .bg {
  opacity: 1;
}
#works .block .title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 5;
}
#works .block a {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}
#works .block img {
  width: 110%;
  position: relative;
  background-size: cover;
  transform: translate(-5%, -5%);
  background-position: center center;
  z-index: 1;
}
#works .block .bg {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  left: 0;
  top: 0;
  opacity: 0;
  transition: 0.2s;
  z-index: 3;
}
#works .loading {
  font-size: 40px;
  display: flex;
  margin: auto;
  text-align: center;
  justify-content: center;
  transform: translateY(100px);
  color: var(--grey_color);
}

#contact {
  position: relative;
  margin-top: 50px;
  color: var(--nocha_text_color);
}
#contact .row {
  height: 90%;
}
#contact .col-md-7, #contact .col-md-5 {
  position: relative;
  height: 100%;
}
#contact .col-md-7 {
  padding: 110px;
  padding-top: 140px;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  position: relative;
}
#contact .col-md-7 h3 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2rem;
}
#contact .col-md-7 h3 {
  font-size: 54px;
}
#contact .col-md-7 .hr {
  position: absolute;
}
#contact .col-md-7 .mail {
  font-size: 18px;
  margin-top: 80px;
}
#contact .col-md-7 .media.inHome {
  position: relative;
  margin-top: 100px;
  left: 0;
  bottom: 0;
}
#contact .col-md-5 {
  display: flex;
  align-items: center;
}
#contact .block {
  width: 300px;
  height: 300px;
  display: block;
  border: 4px solid var(--nocha_text_color);
  border-radius: 50%;
  left: 25%;
  transform: translateX(-35%);
  background-color: #999;
  background-image: url(../../img/my_photo.png);
  background-size: 100% 100%;
}
#contact .contact_bg {
  background-image: url("../../img/contact_bg.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 20%;
  top: -50px;
}

.footer {
  position: absolute;
  bottom: 0;
  background-color: #282A2B;
  color: var(--grey_color);
  width: 100%;
  height: auto;
  text-align: center;
  justify-content: center;
}
.footer h5 {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1rem;
  transform: translateY(4px);
  padding: 14px;
}