@import url('./reset.css');
@import url('./variable.css');
@import url('./typography.css');

header {
  margin: 0 auto;
  background-color: var(--white);
}
.sticky {
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 22;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 20px;
}
.header {
  margin: 0 auto;
  padding: 20px 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.logo-img {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: var(--lightGray);
  border-radius: 100vmax;
  overflow: hidden;
}

.logo-content {
  display: inline-flex;
  flex-direction: column;
}

.logo-content-name {
  font-size: 1.25rem;
  color: var(--textDark);
  font-family: "Kanit", sans-serif;
  font-weight: 400;
}

.logo-content-email {
  font-size: .75rem;
  color: var(--textLight);
  font-family: "Kanit", sans-serif;
  font-weight: 200;
}

.logo-content-email a{
  color: inherit;
  text-decoration: none;
}
.logo-content-email a:hover{
  color: var(--secondary);
}


nav {
  display: inline-flex;
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li {
  font-size: 1rem;
  text-transform: capitalize;
  color: var(--textDark);
  font-family: "Kanit", sans-serif;
  font-weight: 300;
}

nav ul li a {
  color: inherit;
  display: flex;
  gap: 5px;
  align-items: center;
}
nav ul li a img{
  height: 16px;
  opacity: 0.5;
}


nav ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* banner */
.banner {
  margin: 0 auto;
  background: var(--lightGray);
  background: linear-gradient(0deg, var(--lightGray) 0%, var(--white) 100%);
  text-align: center;
  padding-top: 50px;
  overflow: hidden;
  position: relative;
}

.banner::after {
  content: "";
  width: 100%;
  height: 733px;
  position: absolute;
  background: url("../images/cloud-all.png") center bottom no-repeat;
  background-size: cover;
  left: 0;
  bottom: -20px;
  animation: fade 10s linear infinite;
}

@keyframes fade {

  0%,
  100% {
    opacity: 0
  }

  50% {
    opacity: 1
  }
}


.banner-name {
  margin: 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.banner-name-hello {
  display: inline-flex;
  gap: 5px;
  color: var(--textDark);
  align-items: baseline;
}

.banner-text-hey {
  font-size: 1.125rem;
  font-family: "KoHo", sans-serif;
  font-weight: 400;
  line-height: 1;
}

.banner-text-iam {
  font-size: 2rem;
  font-family: "Karantina", system-ui;
  font-weight: 600;
  line-height: 1;
}

/* concept box */
.concept_box {
  margin: 0 auto;
  width: 693px;
  position: relative;
  /* overflow: hidden; */
  margin-top: 25px;
}

.concept_box-img{
  display: none;
  margin-top: 30px;
}
.concept_box-img img{
  vertical-align: middle;
}

.rock {
  margin: 0 auto;
  width: 693px;
  min-height: 590px;
  background: url("../images/rock.png") center bottom no-repeat;
  /* left: -22px; */
  position: relative;
  z-index: 1;
}

.man {
  margin: 0 auto;
  width: 170px;
  height: 180px;
  position: absolute;
  bottom: 70px;
  left: 50%;
  /* margin-left: 20px; */
  margin-left: 1px;
  transform: translateX(-50%);
  background: url("../images/man.png") center no-repeat;

}

.round {
  width: 570px;
  height: 570px;
  background: url(../images/banner_round.svg) center no-repeat;
  position: absolute;
  top: 0;
  left: 60px;
  /* left: 50%;
    transform: translateX(-50%); */
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 60s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: rotate;
  -moz-animation-duration: 60s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  transform-origin: center center;
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@-moz-keyframes rotate {
  from {
    -moz-transform: rotate(0deg);
  }

  to {
    -moz-transform: rotate(360deg);
  }
}

.tech-banner-icon {
  position: absolute;
  display: inline-flex;
}

.ps-pos {
  top: 375px;
  left: 86px;
  animation: float 10s ease-in-out infinite;
}

.ai-pos {
  top: 290px;
  left: 66px;
  animation: float 8s ease-in-out infinite;
}

.xd-pos {
  top: 196px;
  left: 75px;
  animation: float 12s ease-in-out infinite;
}

.animate-pos {
  top: 102px;
  left: 120px;
  animation: float 11s ease-in-out infinite;
}

.ae-pos {
  top: 32px;
  left: 206px;
  animation: float 12s ease-in-out infinite;
}

.figma-pos {
  top: 0;
  left: 334px;
  animation: float 10s ease-in-out infinite;
}

.html-pos {
  top: 30px;
  left: 446px;
  animation: float 11s ease-in-out infinite;
}

.css-pos {
  top: 102px;
  left: 528px;
  animation: float 12s ease-in-out infinite;
}

.js-pos {
  top: 196px;
  left: 574px;
  animation: float 10s ease-in-out infinite;
}

.angular-pos {
  top: 290px;
  left: 580px;
  animation: float 12s ease-in-out infinite;
}

.react-pos {
  top: 370px;
  left: 555px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    /* box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
    transform: translatey(0px);
  }

  50% {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    /* box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2); */
    transform: translatey(-10px);
  }

  100% {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
    /* box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6); */
    transform: translatey(0px);
  }
}

.rock-text {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 160px;
}

.i-can {
  font-size: 1.125rem;
  font-family: "KoHo", sans-serif;
  font-weight: 600;
  line-height: 1;
  color: var(--textDark);
}

.my-tools-container {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  padding-left: 4px;
}

.my-tools {
  font-size: 3rem;
  font-family: "Karantina", system-ui;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--secondary);
}

.typed-cursor {
  font-size: 2.75rem;
  font-family: "Karantina", system-ui;
  font-weight: 100;
  line-height: 1;
  color: var(--lightGray);
  position: relative;
  bottom: 1px;
}

/* circle power */
.circle-power {
  width: 75px;
  height: 75px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 275px;
  margin-left: 5px;
}

.circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--size);
  height: var(--size);
  /* width: 100%;
    height: 100%; */
  filter: url(#wavy) blur(1px);
}

.circle:before,
.circle:after {
  content: "";
  position: absolute;
  top: var(--s);
  left: var(--s);
  right: var(--s);
  bottom: var(--s);
  border-radius: 50%;
  border: var(--bor) solid #fff;
}

.circle:before {
  box-shadow: 0 0 var(--boxShadow) #0f0, inset 0 0 var(--boxShadow) #0f0;
  -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0002);
  animation: move 5s linear infinite;
}

.circle:after {
  box-shadow: 0 0 calc(var(--bor)/2) #fff, inset 0 0 var(--bor) #fff;
}

@keyframes move {
  0% {
    box-shadow: 0 0 var(--boxShadow) #0f0, inset 0 0 var(--boxShadow) #0f0;
    filter: hue-rotate(0deg);
  }

  20% {
    box-shadow: 0 0 30px #0f0, inset 0 0 20px #0f0;
  }

  40% {
    box-shadow: 0 0 20px #0f0, inset 0 0 15px #0f0;
  }

  60% {
    box-shadow: 0 0 40px #0f0, inset 0 0 25px #0f0;
  }

  80% {
    box-shadow: 0 0 50px #0f0, inset 0 0 30px #0f0;
  }

  100% {
    box-shadow: 0 0 var(--boxShadow) #0f0, inset 0 0 var(--boxShadow) #0f0;
    filter: hue-rotate(360deg);
  }
}

svg {
  width: 0;
  height: 0;
}

#canvas {
  width: 80%;
  height: 200px;
  position: absolute;
  z-index: 20;
  pointer-events: none;
  bottom: 0;
}


/* about me */
.about-me {
  background-color: var(--dark);
  padding: 150px 100px;
}

.about-me-content {
  display: flex;
  margin: 0 auto;
  gap: 40px;
}

.about-me-left {
  width: 300px;
}

.about-me-right {
  flex: 1;
  color: var(--white);
  padding-top: 100px;
  position: relative;
}

.about-me-profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.about-me-profile-top {
  background-color: var(--profile);
  padding: 40px 20px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  width: 100%;
  align-items: center;
  flex: 1;
  border-bottom: var(--lightGray) 1px solid;
}

.about-me-profile-img {
  width: 145px;
  height: 145px;
  border-radius: 100vmax;
  /* background-color: var(--lightGray); */
  background: var(--lightGray) url("../images/profile-picture.png") center no-repeat;
  background-size: cover;
}

.about-me-profile-name {
  font-size: 1.625rem;
  font-family: "Kanit", system-ui;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
  border-bottom: var(--primary) 3px solid;
}

.about-me-profile-role {
  font-size: 1rem;
  font-family: "KoHo", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 5px;
  padding-top: 10px;
  /* text-transform: uppercase; */
}

.about-me-profile-bottom {
  background-color: var(--white);
  padding: 15px 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.about-me-profile-bottom  a{
  display: inline-flex;
    justify-content: center;
    align-items: center;
}
.about-me-profile-bottom  a img{
  vertical-align: middle;
}

.about-me-right h3,
.about-me-right h6,
.about-me-right p {
  color: var(--white);
}

.about-me-right h2 {
  position: absolute;
  top: -80px;
  left: -120px;
  opacity: 0.2;
}

.primary-button {
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary);
  font-weight: 400;
  
  border: none;
  outline: none;
  text-transform: uppercase;
  border-radius: 100vmax;
  font-family: "Kanit", system-ui;
  margin: 10px 0;
}
.primary-button a{
  color: inherit;
  text-decoration: none;
  padding: 7px 25px;
  display: flex;
}
.primary-button:hover{
  background-color: var(--secondary);
  cursor: pointer;
}

.tags {
  margin: 10px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tags li {
  font-size: 1rem;
  font-family: "KoHo", sans-serif;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  padding: 7px 15px;
  border-radius: 100vmax;
  display: flex;
  align-items: center;
}

.tags-ps {
  background-color: #0c619d;
}

.tags-ai {
  background-color: #EF652A;
}

.tags-xd {
  background-color: #A4169C;
}

.tags-animate {
  background-color: #1B1B7A;
}

.tags-ae {
  background-color: #6851AA;
}

.tags-figma {
  background-color: #108356;
}

.tags-html {
  background-color: #B74615;
}

.tags-css {
  background-color: #0D609C;
}

.tags-js {
  background-color: #FF9A00;
}

.tags-angular {
  background-color: #BD151A;
}

.tags-react {
  background-color: #1D8EE0;
}

/* experience */
.experience {
  margin: 0 auto;
  padding: 50px 100px;
  background-color: var(--white);
}

.experience h2 {
  opacity: 0.6 !important;
}

.experience h3,
.experience h6,
.experience p {
  color: var(--dark);
}

.experience-content {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.experience-left {
  flex: 1;
}

.experience-right {
  width: 500px;
}

.group-content {
  padding: 20px 0;
}

.experience-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.experience-container::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("../images/work_icon.svg") center no-repeat;
  position: relative;
  left: -12px;
  top: 4px;
}

.experience-box {
  display: flex;
  gap: 5px;
  padding: 20px 30px;
  border-left: var(--lightGray) 1px solid;
  flex-direction: column;
  align-items: flex-start;
}

.experience-date {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: var(--textLight) 1px solid;
  font-size: 0.875rem;
  color: var(--dark);
  border-radius: 100vmax;
  position: relative;
  font-weight: 200;
}

.experience-date::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 100vmax;
  left: -36.5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--lightGray);
}

.experience-box h5 {
  color: var(--primary);
}

.experience-company {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.experience-company h5 {
  color: var(--secondary);
}

.experience-company h5::after {
  content: ",";
}

.experience-url {
  display: flex;
  gap: 5px;
  font-size: 1.25rem;
  font-weight: 300;
}


/* my projects */
.my-projects {
  margin: 0 auto;
  padding: 50px 100px;
  background-color: var(--projectBg);
}

.my-projects-content {
  margin: 0 auto;
}

.my-projects-content h2 {
  line-height: 0.75;
  opacity: 0.5 !important;
}

.my-projects-content h2,
.my-projects-content h3,
.my-projects-content h6,
.my-projects-content p {
  text-align: center;
}

.my-projects-content p {
  padding-top: 20px;
}

.my-projects-content h3,
.my-projects-content h6 {
  color: var(--dark);
}

.project-container {
  margin: 100px auto;
  counter-reset: projectCount;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.project-box {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
}

.project-box:nth-child(even) {
  flex-direction: row-reverse;
}

.project-box:nth-child(even) .project-box-content {
  margin-left: 150px;
  margin-right: 0px;
  text-align: left;
}

.project-box:nth-child(even) .project-box-thumb {
  margin-left: 0px;
  margin-right: 150px;
}

.project-box::after {
  counter-increment: projectCount;
  content: "0" counter(projectCount);
  width: 100px;
  height: 100px;
  border: rgba(10, 207, 131, 0.2) 1px solid;
  border-radius: 100vmax;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 3.125rem;
  font-weight: 600;
  background-color: var(--projectBg);
}

.project-box::before {
  content: "";
  width: 1px;
  background-color: rgba(10, 207, 131, 0.2);
  height: calc(100% + 50px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.project-box-content {
  width: 330px;
  display: flex;
  flex-direction: column;
  text-align: right;
  justify-content: center;
  gap: 5px;
  margin-right: 150px;
}

.project-box-content h5 {
  color: var(--textDark);
}

.project-box-thumb {
  width: 330px;
  height: 230px;
  background-color: var(--lightGray);
  border-radius: 20px;
  margin-left: 150px;
  overflow: hidden;
}

.project-box-url {
  color: var(--secondary);
}

.project-box-url a {
  color: inherit;
  text-decoration: none;
}

.project-box-info {
  color: var(--textLight);
}

.project-folder-icon {
  width: 24px;
  height: 24px;
  background: url("../images/folder_icon.svg") center no-repeat;
  margin: 0 auto;
  position: relative;
  top: 80px;
}

.project-more-icon {
  margin: 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  position: relative;
  border-radius: 100vmax;
  background-color: var(--primary);
  gap: 4px;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 80px;
}

.project-more-icon::after,
.project-more-icon::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: var(--white);
  border-radius: 100vmax;
}

/* other works */
.other-works {
  margin: 0 auto;
  background-color: var(--white);
  padding: 50px 100px;
}

.other-works-content {
  margin: 0 auto;
}

.other-works-content h2 {
  line-height: 0.75;
  opacity: 0.45 !important;
}

.other-works-content h2,
.other-works-content h3,
.other-works-content h6 {
  text-align: center;
}

.other-works-content h3,
.other-works-content h6 {
  color: var(--dark);
}

.other-works-container {
  margin: 50px auto;
  display: grid;
  width: 80%;
  grid-template-columns: repeat(4, 240px);
  gap: 60px;
  justify-content: space-around;
}

.other-works-card {
  width: 240px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 0 5px;
  display: flex;
  flex-direction: column;
}

.other-works-card-thumb {
  height: 240px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
  background-color: var(--lightGray);
}

.other-works-card-content {
  padding: 10px;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  overflow: hidden;
  display: flex;
  gap: 3px;
  flex-direction: column;
}

/* contact me */
.contact {
  margin: 0 auto;
  padding: 50px 100px;
  background-color: var(--dark);
}

.contact-me {
  margin: 0 auto;
}

.contact-me h2 {
  line-height: 0.75;
  opacity: 0.2 !important;
}

.contact-me h2,
.contact-me h3,
.contact-me h6 {
  text-align: center;
}

.contact-me h3,
.contact-me h6 {
  color: var(--white);
}

.contact-info-container {
  display: flex;
  gap: 15px;
  padding-top: 40px;
  flex-direction: column;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 10px;
  color: var(--white);
  align-items: center;
}

.contact-info p {
  color: var(--white);
}

.contact-info a{
  color: inherit;
  text-decoration: none;
}

.copyrights{
  color: var(--lightGray);
  font-size: 0.8rem;
  padding: 20px 50px;
  background-color: var(--dark);
  text-align: center;
}