
@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&family=Lexend+Deca:wght@100..900&display=swap");

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

@keyframes myAnim {
  0% {
    animation-timing-function: ease-in;
    opacity: 1;
    transform: translateY(45px);
  }
  /* remaining keyframes */
}

html {
  scroll-behavior: smooth;
}

section {
  padding-top: 80px; /* Adjust based on header height */
  margin-top: -80px; /* Negative margin to compensate */
}

body {
  max-width: 100%;
}

header {
  display: flex;
  justify-content: space-between; /* or space-around for more equal spacing */
  align-items: center; /* vertically center items */
}

header .logo {
  font-size: 40px;
  font-family: "Lexend Deca", sans-serif;
  color: #0597ff;
  cursor: pointer;
  margin: 0 50px;
}

header span {
  color: #057be1;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: white; /* Ensures the background color remains consistent */
}

.sticky + main {
  padding-top: 100px;
  /*  // Adjust based on header height */
}

.sticky + .content {
  padding-top: 70px; /* Adjust based on header height */
}

.nav-menu {
  margin: 0 40px 0 0;
}

.menu {
  display: flex;
  margin: 10px 0;
  padding: 5px;
}

.menu li {
  font-size: 20px;
  list-style-type: none;
  margin: 0 50px;
}

.menu li a {
  text-decoration: none;
  color: black;
  font-family: "Lexend Deca", sans-serif;
  animation: 0.8s;
}

.menu li a:hover {
  color: #1a78e4;
  padding-bottom: 5px;
  border-bottom: 2px solid #1a78e4;
}

.menu li #home {
  color: #1a78e4;
}

.container {
  display: flex;
  place-content: center;
  width: 93%;
  background-color: aliceblue;
  height: 650px;
  margin: 30px;
  padding: 70px;
  border-radius: 20px;
}

.container .home {
  width: 50%;
  text-align: center;
  padding: 100px 150px 100px 0;
}

.container .home h1 {
  font-size: 2em;
  font-family: "Lexend Deca", sans-serif;
  color: #0597ff;
}

.home span {
  color: #057be1;
}

.home p {
  padding: 50px;
  font-size: 3em;
  margin: 0 0 0 30px;
}

.container .img {
  width: 50%;
}

.container .img img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
}

.container .img #School {
  border-radius: 0;
  margin: 40px 0 0 70px;
  width: 100%;
  max-width: 600px;
}

.container .about {
  width: 40%;
}

.container .about h1 {
  font-size: 1.7rem;
  margin: 0 20px;
  font-family: "Lexend Deca", sans-serif;
  color: #057be1;
}

.container .about p {
  margin: 30px 0;
  width: 100%;
  font-family: "Lexend Deca", sans-serif;
  text-indent: 2rem; /* 32px */
  font-size: 1.4rem;
}

.container .about .experienc {
  text-align: center;
  padding: 20px;
  font-size: 3rem;
}

.card-skill {
  display: flex;
  place-items: center;
  height: 350px;
  padding: 20px;
}

.skill h1 {
  text-align: center;
  font-size: 3rem;
  margin: 0 0 10px 0;
  font-family: "Lexend Deca", sans-serif;
  color: #057be1;
}

.card-skill .card img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 1px 1px 13px 0px #2884e6;
  opacity: 0.82;
  transition: opacity 1s linear 0s;
  filter: blur(0.7px);
  animation: myAnim 2s ease 0s 1 normal forwards;
}

.card img:hover {
  filter: none;
  opacity: 0.95;
}

.contact {
  text-align: center;
}

.contact h1 {
  font-size: 3rem;
  margin: 0 0 10px 0;
  font-family: "Lexend Deca", sans-serif;
  color: #057be1;
}

.contact h4 {
  font-family: "Lexend Deca", sans-serif;
}

.contact-input {
  margin: 50px;
  display: grid;
  font-size: 1.5rem;
}

.contact-input label {
  margin: 10px 300px 0 0;
}

.contact-input input {
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  margin: 10px 0;
  box-shadow: 0px 0px 2px 2px #dfd8d8;
}

button {
  padding: 10px 20px;
  font-size: 1.3rem;
  border-radius: 10px;
  color: white;
  border: none;
  background-color: #057be1;
}

button:hover {
  background-color: #0597ff;
}

footer {
  text-align: center;
  margin: 10px;
  font-size: 1rem;
}

footer span {
  color: #057be1;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    margin: 20px;
    padding: 20px;
  }

  .container .home,
  .container .about {
    width: 100%;
    padding: 20px;
  }

  .container .img img {
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  header .logo {
    font-size: 24px;
  }

  .menu li a {
    font-size: 16px;
  }

  .container .home h1,
  .container .about h1 {
    font-size: 1.5rem;
  }

  .home p {
    font-size: 2em;
  }

  .container .about p {
    font-size: 1rem;
  }

  .skill h1,
  .contact h1 {
    font-size: 2rem;
  }
}
