.about-me{
  /* display: flex; */
  margin-top:10rem;
  align-items: center;
  justify-content: center;
  height: 100%; /* Full height of the viewport */
  box-sizing: border-box;
}

.about-header{
  text-align: left;
  margin-left: 10rem;
}


.row-2{
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  /* width:100%; */

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width:100%;
  flex: wrap;
  margin-left: 10rem;
  margin-right: 10rem;
}

.box-three{
  flex:1;
  height: 100%;
  display: flex;
  justify-content: center;
  width:60%;

}

.box-four{
  flex: 2;
  /* max-width: 55%; /* The text will take up to 55% of the container's width */ */
  width: 40%;
}
.profile-pic{
  margin-right: 5%; /* Space between the image and the text */
  max-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.profile{

 width: 100%; /* Image scales with its container */
 height: auto;
}


@media (min-width: 1700px) {
  .row-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width:100%;
    flex: wrap;
    margin-left: 20rem;
    margin-right: 20rem;
  }

  .about-header{
    margin-left: 20rem;
  }
}

@media (max-width: 1388px) {
  .row-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width:100%;
    flex: wrap;
    margin-left: 5rem;
    margin-right: 5rem;
  }

  .about-header{
    margin-left: 5rem;
  }
}

@media (max-width: 1200px) {
  .row-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width:100%;
    flex: wrap;
    margin-left: 5rem;
    margin-right: 5rem;
  }

  .about-header{
    margin-left: 5rem;
  }
}

@media (max-width: 900px) {

.about-me{
  margin-top: 5rem;
}
  .about-header{
    margin-left:5rem;
    margin-right:5rem;
    font-size: 2.5rem;
    line-height: 115%;
    text-align: center;
  }
  .row-2 {
    flex-direction: column; /* Stack the image and text vertically */
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right:auto;
  }

.box-three{
  justify-content: center;
}
  .profile-pic {
    margin-right: 0;
    margin-bottom: 20px; /* Add some space below the image */
    max-width: 100%; /* Increase image size on smaller screens */
    justify-content: center;
  }

  .profile{
    width: 80%;
  }

  .box-four {
    margin-top: 2rem;
    max-width: 65%; /* Text container takes up more space on smaller screens */
    text-align: left; /* Center text on smaller screens */
  }


}
