#about-section {
  display: grid;
  grid-template-columns: 5fr 6fr;
  height: 100vh;
  overflow-x: hidden;
}

#about-section img {
  width: 30rem;
}

.about-me-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 3rem;
}

#about-section .image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-7rem);
  opacity: 0;

  transition: transform 1s ease, opacity 1s ease;
}

#about-section .about-me-container {
  transform: translateX(7rem);
  opacity: 0;

  transition: transform 1s ease, opacity 1s ease;
}

#about-section .animate-about-me {
  transform: translateX(0);
  opacity: 1;
}

#about-section h3 {
  margin-bottom: .3rem;
}

#about-section h1 {
  margin-bottom: 2rem;
}

#about-section h3 span {
  color: var(--main-color);
}

#about-section p {
  margin: 0 5rem 3rem 0;
}


/* ----------- Code for responsive design ----------- */
@media only screen and (max-width: 1010px) {
  #about-section .image-container img {
    width: 20rem;
  }
}

@media only screen and (max-width: 750px) {
  #about-section {
    grid-template-columns: 1fr;
    height: auto;
    padding: 6rem 0;
  }

  #about-section .image-container {
    display: none;
  }

  .about-me-container {
    margin: 0 2.2rem;
  }

  #about-section p {
    margin-right: 1rem;
  }
}

@media only screen and (max-width: 650px) {
  #about-section {
    padding: 4rem 0;
  }
}