.about-me-section {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10vh;
  box-sizing: border-box;
}

.about-me-container {
  width: 100%;
  max-width: 100vh;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  align-self: center;
}

h1 {
  position: relative;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: white;
}

.heading1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: rgb(207, 255, 4);
  animation: underline-animation 5s infinite;
}

@keyframes underline-animation {
  0% {
    width: 0;
    left: 0;
  }
  25% {
    width: 100%;
    left: 0;
  }
  50% {
    width: 0;
    left: 100%;
  }
  75% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 0;
  }
}

.about-me-text {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ccc;
}

.hobby-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  padding: 20px;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hobby-container:nth-child(even) {
  flex-direction: row-reverse;
  margin-left: -8%;
  margin-right: 8%;
}

.hobby-container:nth-child(odd) {
  flex-direction: row;
  margin-right: -8%;
  margin-left: 8%;
}

.hobby-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #444;
  border-radius: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgb(207, 255, 4);
}

.my-hobby-text {
  padding: 20px;
  font-size: 1em;
  flex: 2;
  text-align: justify;
  line-height: 1.6;
  color: #ccc;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
  .about-me-container {
    padding-top: 5vh;
  }

  .hobby-container:nth-child(even),
  .hobby-container:nth-child(odd) {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }

  .hobby-image {
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .about-me-container {
    max-width: 90%;
  }

  .hobby-container:nth-child(odd) {
    margin-left: auto;
  }
}

.image1 {
  background-image: url('../imgs/htmlcssjs.jpeg');
}

.image2 {
  background-image: url("../imgs/react.png");
}

.image3 {
  background-image: url('../imgs/node-express.jpg');
}
