@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Caveat:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Parkinsans:wght@300..800&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  margin: 0;
  padding: 0;
  color: white;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1c1c1c;
}

::-webkit-scrollbar-thumb {
  background-color: #c1975b;
  /* Gold color */
  border-radius: 10px;
  /* Rounded corners for a modern look */
  border: 2px solid #1c1c1c;
  /* Darker border for a sleek effect */
}

body {
  background-color: #151515;
  background-image: url(images/bg9.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.cursor {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  position: fixed;
  background-color: hsla(36, 72%, 70%, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  z-index: 10;
}

a {
  text-decoration: none;
}

.bttn {
  color: white;
  cursor: pointer;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  border: 1.5px solid hsla(36, 72%, 70%, 1);
}

.frost {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.heading {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  font-size: 40px;
  display: flex;
  justify-content: center;
  color: hsla(36, 72%, 70%, 1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 46px;
  background-color: #0c0c0c;
  top: 0;
  left: 0;
  position: sticky;
  z-index: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  gap: 80px;
}

nav ul li {
  font-family: "Public Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.2s ease-out;
}

nav ul li:hover {
  color: hsla(36, 72%, 70%, 1);
  transform: scale(1.05);
}

.tophead {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
}
.tophead span {
  font-family: "Caveat", cursive;
  font-size: 40px;
  font-weight: 400;
  color: hsla(36, 72%, 70%, 1);
}

/* Ham menu */
.ham {
  display: none;
  margin-left: auto;
  z-index: 9;
}

.sham {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 11;
}

.hmenu {
  box-sizing: border-box;
  position: fixed;
  background-color: #000000;
  width: 100%;
  height: 100vh;
  top: 0;
  left: -100%;
  transition: all 0.3s ease-in;
  z-index: 10;
}
.sbox {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  height: 100%;
  position: relative;
}
.slogo h1 {
  font-weight: 400;
  font-family: "Caveat", cursive;
  font-size: 3.5rem;
  color: hsla(36, 72%, 70%, 1);
}
.smenu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.smenu ul li {
  font-family: "Public Sans", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  transition: all 0.2s ease-out;
}
.sp {
  padding: 10px;
  left: 0px;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  bottom: 60px;
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  display: flex;
  justify-content: center;
}

main {
  margin: 0 0 40px 0;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 90px;
}

.profile {
  height: 60vh;
  width: 40vw;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  padding: 40px;
  justify-content: center;
}

.profile img {
  border: 1.5px solid hsla(36, 72%, 70%, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero .text {
  width: 70%;
}

.hero .text h1 {
  font-family: "Public Sans", sans-serif;
  color: hsla(36, 72%, 70%, 1);
  font-size: 40px;
}

.hero .text p {
  font-family: "Kanit", sans-serif;
  color: white;
  font-size: 30px;
}

.text h1 .emoji {
  width: 50px;
  height: 50px;
}

.hero .name {
  font-family: "Caveat", cursive;
  color: hsla(36, 72%, 70%, 1);
  font-size: 50px;
}

.text button {
  font-size: 019px;
  margin: 20px 0;
  padding: 20px;
  width: 15vw;
  transition: all 0.2s ease-out;
}

.text button:hover {
  background-color: #0000008a;
  color: hsla(36, 72%, 70%, 1);
  transform: scale(1.02);
}

/* skills */
.skills {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 70px 20px;
  padding: 20px 0;
}

.container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.skill {
  font-family: "Public Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 10px;
  height: auto;
  width: 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid hsla(36, 72%, 70%, 1);
}

.skill:hover {
  background-color: #0000008a;
  color: hsla(36, 72%, 70%, 1);
  transform: scale(1.037);
}

.skill svg {
  padding: 18px;
  height: auto;
  width: 4vw;
  display: flex;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* projects and work */
.work {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 50px 30px;
  justify-self: center;
  font-family: "Public Sans", sans-serif;
}

.box {
  display: grid;
  grid-template-columns: repeat(3, 30vw);
  gap: 20px;
  width: 100%;
  justify-self: center;
  align-items: center;
}

.project {
  display: grid;
  grid-template-rows: 24vh 1fr;
  border-radius: 20px;
  height: auto;
  padding: 20px 10px;
  border: 1.5px solid hsla(36, 72%, 70%, 1);
  cursor: pointer;
}

.project:hover {
  background-color: #0000008a;
}

.simg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.simg img {
  width: 150px;
  height: 150px;
}

.sinfo {
  display: grid;
  grid-template-rows: 3rem 11rem 1fr 1fr;
  justify-items: center;
  padding: 0 10px;
  overflow: hidden;
}

.sinfo button:hover {
  background-color: #0000008a;
  color: hsla(36, 72%, 70%, 1);
  transform: scale(1.02);
}

.sinfo h2 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: hsla(36, 72%, 70%, 1);
}

.tagbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tags {
  display: flex;
  justify-content: center;
  border: 1.5px solid hsla(36, 72%, 70%, 1);
  border-radius: 20px;
  width: 50px;
  padding: 8px;
}

.bttns {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  & .bttn {
    font-size: 1.2rem;
  }
}

/* Contact  */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 70px 0;
  gap: 30px;
}

form {
  background-color: #1c1c1c;
  border-radius: 20px;
  border: 1.5px solid hsla(36, 72%, 70%, 1);
  padding: 20px;
  width: 50vw;
}

form label {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  color: hsla(36, 72%, 70%, 1);
  font-size: 20px;
  margin: 10px 0;
}

form input,
form textarea {
  font-size: 17px;
  font-family: "Public Sans", sans-serif;
  background-color: hsla(0, 0%, 100%, 0.1);
  margin: 15px 0;
  border-radius: 15px;
  padding: 10px;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus {
  outline: none;
}

form label,
form input,
form textarea {
  display: block;
}
form input[type="submit"] {
  font-family: "Public Sans", sans-serif;
  margin: auto;
  transition: background-color 0.2s ease-out;
}

form input[type="submit"]:hover {
  background-color: #0000008a;
  color: hsla(36, 72%, 70%, 1);
}

/* Footer */
footer {
  background-color: #000000;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.coninfo {
  display: flex;
  justify-content: center;
  gap: 400px;
  font-family: "Public Sans", sans-serif;
}

.coninfo h2 {
  color: hsla(36, 72%, 70%, 1);
}

.left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left h2 {
  font-family: "Caveat", cursive !important;
  font-size: 40px;
}

.left p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.left svg {
  position: relative;
  top: 0.2em;
}

.right svg {
  height: 30px;
  width: 30px;
}

.right ul {
  list-style: none;
}

.right ul li {
  display: flex;
  font-family: "Public Sans", sans-serif;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.right ul li:hover {
  color: hsla(36, 72%, 70%, 1);
  transform: scale(1.02);
}

.right a {
  color: white;
}

.right a:hover {
  transition: all 0.2s ease-out;
  color: hsla(36, 72%, 70%, 1);
}

.icons {
  position: relative;
  top: 0.8em;
  height: 35px;
  width: 35px;
  margin: 0 5px 0 0;
}

.mid {
  background-color: hsla(36, 72%, 70%, 1);
  width: 100%;
  height: 2px;
  margin: 35px 0;
}

.end {
  font-family: "Public Sans", sans-serif;
  font-size: 17px;
  display: flex;
  justify-content: center;
}

/* Responsive section */
@media (max-width: 1200px) {
  .navright {
    display: none;
  }
  .cursor {
    display: none;
  }
  .ham {
    display: block;
  }
  .ham img {
    height: 40px;
    width: 40px;
  }
  .sham img {
    height: 40px;
    width: 40px;
  }
  .slogo h1 {
    font-size: 3.3rem;
  }
  .smenu ul li {
    font-size: 1.7rem;
  }
  .simg img {
    width: 100px;
    height: 100px;
  }
  .tags {
    font-size: 13px;
  }

  .sp {
    font-size: 24px;
  }
  .sinfo {
    grid-template-rows: 3rem 16rem 1fr 1fr;
  }
  .sinfo h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 974px) {
  .hero {
    margin: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .profile {
    width: 27vw;
    height: 38vh;
    border-radius: 10px;
    overflow: hidden;
  }
  .hero .text {
    width: 90%;
  }
  .hero .text h1 {
    font-size: 35px;
  }
  .hero .name {
    font-size: 40px;
  }
  .hero .text p {
    font-size: 25px;
  }
  .text .button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .project {
    height: 35rem;
    width: 15.6rem;
    grid-template-rows: 13vh 1fr;
  }
  .box:nth-child(n + 2):nth-child(-n + 3) .simg img {
    width: 60px;
    height: 60px;
  }
  .simg img {
    width: 100px;
    height: 100px;
  }
  .sinfo {
    grid-template-rows: 3rem 19rem 1fr 1fr;
  }
  .sinfo h2 {
    font-size: 1.5rem;
  }
  .sinfo button {
    left: 19vw;
  }
  form {
    width: 76vw;
  }
  .coninfo {
    justify-content: space-around;
    gap: 0;
  }
}

@media (max-width: 850px) {
  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    align-self: center;
  }
  .skill {
    width: 30vw;
  }
  .box {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 100vw;
  }
  .project {
    grid-template-rows: 24vh 1fr;
    width: 30rem;
    height: auto;
  }
  .sinfo {
    grid-template-rows: 3rem 11rem 1fr 1fr;
  }
  .box:nth-child(n + 2):nth-child(-n + 3) .simg img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 685px) {
  nav {
    padding: 12px 20px;
  }
  nav .navleft h1 {
    font-size: 33px;
  }
  .ham img {
    width: 33px;
    height: 33px;
  }
  .slogo h1 {
    font-size: 30px;
  }
  .smenu ul li {
    font-size: 22px;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
  }
  .profile {
    width: 50vw;
  }
  .button {
    margin-top: 5vw;
    display: flex;
    justify-content: center;
  }
  .hero .text h1 {
    font-size: 40px;
  }
  .hero .name {
    font-size: 44px;
  }
  .hero .text p {
    font-size: 30px;
  }
  .box {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 100vw;
  }
  .project {
    grid-template-rows: 24vh 1fr;
    width: 30rem;
    height: auto;
  }
  .sinfo {
    grid-template-rows: 3rem 11rem 1fr 1fr;
  }
  .box:nth-child(n + 2):nth-child(-n + 3) .simg img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 598px) {
  .slogo h1 {
    font-size: 28px;
  }
  .smenu ul li {
    font-size: 17px;
  }
  .profile {
    height: 39vh;
    width: 60vw;
  }
  .hero .text h1 {
    font-size: 28px;
  }
  .hero .name {
    font-size: 30px;
  }
  .hero .text p {
    font-size: 16px;
    font-weight: 600;
  }
  .button {
    width: 100%;
  }
  .text button {
    width: 45vw;
  }
  .heading {
    font-size: 37px;
  }
  .project {
    display: flex;
    flex-direction: column;
    width: 20rem;
  }
  .sinfo {
    grid-template-rows: 3rem 15rem 1fr 1fr;
  }
  .simg img {
    width: 70px;
    height: 70px;
  }
  .coninfo {
    flex-direction: column;
    gap: 40px;
  }
  .right h2 {
    font-size: 30px;
  }
  .right ul li {
    display: flex;
    gap: 100px;
    font-size: 20px;
  }
}

@media (max-width: 478px) {
  .slogo h1 {
    font-size: 2.8rem;
  }
  .smenu ul li {
    font-size: 2rem;
  }
  .sp {
    font-size: 1rem;
  }
  .text {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .sham img {
    height: 30px;
    width: 30px;
  }
}

@media (max-width: 380px) {
  .slogo h1 {
    font-size: 2.6rem;
  }
  .smenu ul li {
    font-size: 1.6rem;
  }
  .sp {
    font-size: 0.8rem;
  }
  nav .navleft h1 {
    font-size: 27px;
  }
  .ham img {
    width: 30px;
    height: 30px;
  }
  .skill {
    padding: 15px;
  }
  .project {
    width: 16rem;
  }
  form {
    width: 70vw;
  }
}
