* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* background: linear-gradient(90deg,
      rgba(90, 2, 112, 1) 8%,
      rgba(235, 30, 30, 1) 65%,
      rgba(252, 176, 69, 1) 100%); */
  background: #3b3b3b;
}

header {
  display: flex;
  position: fixed;
  width: 100%;
  /* background: linear-gradient(90deg,
      rgba(131, 58, 180, 1) 0%,
      rgba(253, 29, 29, 1) 50%,
      rgba(252, 176, 69, 1) 100%); */
  background-color: #3b3b3b;
  justify-content: space-between;
  box-shadow: 0px 3px 20px #ffffff;
  z-index: 10;

  .logo {
    color: #e21111;
    margin: 5px 10px;
  }

  .menu {
    display: flex;
    margin-top: 5px;

    ul {
      display: flex;
      list-style: none;

      li {
        position: relative;
        cursor: pointer;
        transition: color 0.3s;

        .link {
          display: flex;
          margin: 8px 15px;
          text-decoration: none;

        }
      }
    }
  }
}


.link {
  position: relative;
  color: rgb(255, 253, 253);
  text-decoration: none;
  padding: 5px;
  transition: color 0.3s;
}

.link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: red;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.link:hover {
  color: red;
}

.link.active {
  color: red;
}

.link.active::after {
  width: 100%;
}



.link:hover::after {
  width: 100%;
}



.home-page {
  display: grid;
  /* background-color: #000; */
  width: 100%;
  font-family: "Montserrat", sans-serif;
  /* height: 300px; */
  /* border: 1px solid #000; */

  .textName {
    display: flex;
    width: 100%;
    height: 300px;
    align-items: center;
    padding-left: 230px;
    font-size: 5rem;
    text-shadow: 3px 3px 5px #ccc8c8;
  }

  .preface {
    display: flex;
    color: #000000;
    font-size: 2rem;
    text-shadow: 3px 3px 5px #ffffff;
    padding-left: 110px;
    margin-top: -60px;
  }
}

.headicons {
  /* background-color: #ffffff; */
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.headFacebook {
  display: inline;
  width: 40px;
  color: #000;
  background-color: #ffffff;
  padding: 10px 0px;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  box-shadow: 3px 3px 5px #000;

}

.headGoogle {
  display: inline;
  color: #000;
  width: 40px;
  background-color: #ffffff;
  padding: 10px 0px;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  box-shadow: 3px 3px 5px #000;

}

.headGithub {
  display: inline;
  color: #000;
  width: 40px;
  background-color: #ffffff;
  padding: 10px 0px;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  box-shadow: 3px 3px 5px #000;
}

.arrow {
  margin-top: 160px;
  text-align: center;
  font-size: 3rem;
  color: rgb(255, 255, 255);
  text-shadow: -3px -3px 10px #fff, 3px 3px 10px #ffffff;
  position: relative;
  z-index: 1;
  /* transform: scale(1.1); */
}

.arrow {
  animation-name: moveDown;
  /*ชื่อของ keyframes */
  animation-duration: 1s;
  /*เวลาที่ใช้เล่น animation (เช่น 2s, 1s) */
  animation-iteration-count: infinite;
  /*จำนวนรอบ เช่น 1, 3, infinite*/
  animation-direction: alternate;
  /*ทิศทาง เช่น normal, reverse, alternate*/
  /* เด้งกลับ */
  animation-timing-function: ease-in-out;
  /*ความเร็ว เช่น ease, linear, ease-in-out*/
}

@keyframes moveDown {
  0% {
    bottom: 0;
  }

  100% {
    bottom: 20px;
  }
}

#about {
  /* display: flex; */
  margin-top: 20px;
  padding: 50px;
  text-align: center;
  font-family: "Montserrat", sans-serif;


  .headAbout {
    color: #000000;
    font-size: 5rem;
    text-shadow: 3px 3px 5px #ffffff;
    /* text-align: center; */
    /* justify-items: center; */
    /* align-content: center; */
    /* align-items: center; */
  }
}

.leftAbout {
  display: flex;
  gap: 100px;
  margin-bottom: 10px;

  img {
    display: flex;
    width: 300px;
    height: 500px;
    margin-left: 100px;
    border-radius: 25px;
    box-shadow: -3px -3px 5px #fff, 3px 3px 5px#fff;
  }
}

.pAbout:hover {
  color: red;
}

.rightAbout {
  display: inline;
  /* border: 1px solid #000; */
  /* position: absolute; */
  /* background-color: #fff; */
  /* backdrop-filter: blur(3px); */
  box-shadow: -3px -3px 5px #fff,
    3px 3px 5px#fff;
  border-radius: 25px;

  p {
    display: block;
    color: #fff;
    margin: 50px 100px;
    padding-top: 20px;
    font-size: 2rem;
  }
}

#skills {
  margin-top: 30px;

  .headSkill {
    text-align: center;
    font-size: 5rem;
    font-family: "Montserrat", sans-serif;
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 5px #ffffff;
    /* justify-content: center; */
  }
}