@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.navbar {
  width: 100%;
  height: 80px;
  /* background-color: red; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}
.navbar ul {
  list-style: none;
  display: flex;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: 0.5s;
  overflow: hidden;
}

.navbar li {
  padding: 20px;
}
.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 800;
  transition: 0.5s;
}
.navbar a:hover {
  color: #173a7e;
}
.navbar .portfolio-logo {
  font-size: 24px;
  margin-left: 20px;
}
/* chansocheat */
.chansocheat {
  width: 100%;
  min-height: 500px;
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #5d77b918;
}
.chansocheat .welcome {
  max-width: 350px;
  line-height: 40px;
  margin-left: 50px;
  margin-right: 200px;
  transition: 0.5s ease-in-out;
}

.chansocheat .hi {
  font-size: 35px;
}
.wel-text {
  color: #5d77b9;
  font-weight: 700;
}
.chansocheat .cheat-name {
  color: #e7cd46;
}
.btn-hire {
  width: 200px;
  display: flex;
  justify-content: space-between;
}
.btn-hire .hire-block {
  margin-top: 20px;
  background-color: red;
  text-align: center;
  width: 100px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.5s ease;
  border-radius: 5px;
  background-image: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(255, 209, 67, 1) 0%,
    rgba(255, 145, 83, 1) 90%
  );
  box-shadow: 1px 2px 5px black;
}
.btn-hire .hireMe {
  width: 80px;
}
.hire-block a {
  color: black;
  text-decoration: none;
}
.hire-block:hover {
  color: white;
  font-weight: 500;
}
.hire-block a:hover {
  color: white;
  font-weight: 500;
}
/* image layer */
.chansocheat .image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 500px;
  position: relative;
}
.chansocheat .layer {
  width: 300px;
  height: 350px;
  background-color: #5d77b9;
  position: absolute;
  right: 0;
  margin-right: 50px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 10px;
  transition: 0.5s ease-in-out;
}
.chansocheat .layer2 {
  background-color: #e7cd46;
  z-index: 10;
  right: 30px;
  transform: translateY(-40%);
}
.chansocheat .layer3 {
  background: url("image/frame.jpg");
  background-position: center;
  background-size: cover;
  z-index: 20;
  right: 60px;
  transform: translateY(-30%);
  box-shadow: 0 0 20px rgb(77, 85, 107);
  border: 2px solid white;
  text-align: center;
  overflow: hidden;
}
.layer3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
}
.layer3 > h2 {
  position: relative;
  color: #fff;
  z-index: 10;
  transform: translateY(500px);
  transition: 0.5s;
}
.layer3:hover h2 {
  transform: translateY(200px);
}
.layer3:hover::before {
  background-color: rgba(68, 0, 255, 0.418);
}
.layer3:hover {
  transform: translateY(-40%);
  right: 30px;
}
.image:hover .layer1 {
  right: 30px;
  transform: translateY(-40%);
}
.section {
  margin-top: 300px;
  width: 100%;
  position: relative;
  background-color: #5d77b94d;
}
.layer.layer1Style {
  right: 30px;
  transform: translateY(-40%);
}
.layer.layer3Style {
  transform: translateY(-40%);
  right: 30px;
}
.section h1 {
  position: absolute;
  background-image: radial-gradient(
    circle farthest-corner at 10% 20%,
    rgba(255, 209, 67, 1) 0%,
    rgba(255, 145, 83, 1) 90%
  );
  width: 150px;
  height: 50px;
  text-align: center;
  padding: 10px;
  border-top-right-radius: 10px;
  top: -50px;
  left: 50px;
  box-shadow: 11px -9px 10px -5px rgba(0, 0, 0, 0.45);
  -webkit-box-shadow: 11px -9px 10px -5px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 11px -9px 10px -5px rgba(0, 0, 0, 0.45);
  font-size: 25px;
}
.pro-block {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  animation: 1s ease-in-out;
}
@keyframes sok {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateY(0);
  }
}
.pro-block progress {
  width: 70%;
}
.pro-block h2 img {
  width: 60px;
}
.html i:first-child {
  color: orange;
}
.css i:first-child {
  color: blue;
}
.javascript i:first-child {
  color: rgb(221, 224, 4);
}
.java i:first-child {
  color: rgb(255, 38, 0);
}
.cpp i:first-child {
  color: rgb(32, 52, 228);
}

.block-html {
  animation-delay: 0.2s;
}
.block-css {
  animation-delay: 0.4s;
}
.block-js {
  animation-delay: 0.6s;
}
.block-java {
  animation-delay: 0.8s;
}
.block-cpp {
  animation-delay: 1s;
}
.block-cs {
  animation-delay: 1.2s;
}
.block-sql {
  animation-delay: 1.4s;
}
.aboutMe {
  width: 100%;
  padding: 20px;
  min-height: 500px;
  display: flex;
  justify-content: center;
}
.aboutMe > h1 {
  width: 200px;
}
.aboutMeTxt {
  transform: translateY(150px);
  transition: 1s ease-in-out;
}
.aboutMeTxtMode {
  transform: translateY(0);
}
.aboutMe > p {
  font-size: 25px;
  line-height: 50px;
  text-align: justify;
  opacity: 0;
  transition: 1s ease-in-out;
}

/* .txtBlur {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #0093e9;
  background-image: linear-gradient(160deg, #0093e9 0%, #80d0c7 100%);

  backdrop-filter: blur(20px);
  transition: 1s ease-in-out;
  opacity: 1;
} */
.txtBlurChange {
  opacity: 1;
  pointer-events: none;
  height: 0;
}

.aboutMe > p::first-letter {
  font-size: 60px;
  color: #e7cd46;
}
.myCv {
  height: 500px;
  position: relative;
}
/* my CV */
.myCv .myCvImg {
  width: 0%;
  height: 100%;
  object-fit: contain;
  transition: 0.7s ease-in-out;
  width: 70%;
  position: absolute;
  left: -100%;
}
.myCvImg.myCvMode {
  left: 0;
}
.start-play a {
  text-decoration: none;
}

.start-play {
  animation: play 2s linear infinite;
  box-shadow: 0 0 10px #fff;
}
@keyframes play {
  0% {
    box-shadow: 0 0 10px #fff;
  }
  25% {
    box-shadow: 0 0 10px rgb(41, 96, 199), 0 0 20px rgb(56, 59, 216);
  }
  50% {
    box-shadow: 0 0 10px rgb(41, 96, 199), 0 0 20px rgb(56, 59, 216),
      0 0 30px rgb(41, 96, 199);
  }
  75% {
    box-shadow: 0 0 10px rgb(41, 96, 199), 0 0 20px rgb(56, 59, 216);
  }
  100% {
    box-shadow: 0 0 10px #fff;
  }
}

.contact {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.contact > h2 {
  margin: 30px auto;
}
.bx {
  font-size: 60px;
  color: black;
  transition: 0.5s;
}
.social-media {
  display: flex;
}
.phone-number > p {
  font-size: 18px;
}
.bx:hover {
  color: blue;
}

@media only screen and (max-width: 850px) {
  .chansocheat .welcome {
    margin: auto;
  }
  .chansocheat {
    flex-direction: column;
    transition: 0.5s;
    align-items: center;
    justify-content: center;
  }
  .chansocheat .image {
    margin-left: 50px;
  }
}
.toggle {
  width: 50px;
  height: 50px;
  background-color: rgba(22, 20, 20, 0.466);
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s ease-in-out;
  position: absolute;
  right: 10px;
}
.toggle .line {
  width: 40px;
  height: 5px;
  background-color: white;
}
@media only screen and (max-width: 700px) {
  .navbar {
    position: sticky;
    top: 0;
  }
  .aboutMe p {
    transition: 0.4s;
    font-size: 20px;
  }
  .chansocheat .welcome {
    transform: scale(0);
  }
  .chansocheat .welcomeMode {
    transform: scale(1);
  }
  .toggle {
    opacity: 1;
    pointer-events: all;
  }
  .navbar .menu {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
  }
  /* .navbar .menuAction {
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: #e7cc46cc;
    top: 80px;
    width: 100%;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    opacity: 1;
    backdrop-filter: blur(20px);
    pointer-events: all;
  } */
  .navbar a {
    color: white;
  }
  /* .cheatAction {
    margin-top: 300px;
  } */
}
.small-screen {
  width: 0;
  height: 500px;
  background-image: linear-gradient(135deg, #79f1a4 10%, #0e5cad 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  opacity: 0;
  transition: 0.5s ease-in-out;
  border-bottom: 2px rgb(95, 73, 73) solid;
}

.small-screen li {
  padding: 20px;
  list-style: none;
  text-align: center;
}
.small-screen a {
  color: white;
  text-decoration: none;
  font-weight: 800px;
  transition: 0.5s;
}
.small-screen a:hover {
  color: #173a7e;
  font-weight: 800;
}
.small-screen-mode {
  width: 100%;
  opacity: 1;
}
.close {
  position: absolute;
  width: 50px;
  height: 50px;
  font-size: 30px;
  background: none;
  border: none;
  border: 5px solid red;
  color: red;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 0 10px red;
  right: 10px;
  outline: none;
}
.close:hover {
  color: white;
  border: 5px solid white;
  box-shadow: 0 0 10px red;
}
