@media screen and (max-width: 1200px) {
  /* left text */
  .left-intro {
    width: 90%;
    height: 90%;
  }
  .left-intro h1 {
    font-size: 2.8rem;
  }
  .left-intro h3 {
    color: #0867a5;
    font-size: 1.8rem;
  }
  .left-intro p {
    font-size: 1.2rem;
  }
  .hire-me {
    letter-spacing: 2px;
    width: 20%;
  }
  /* right-profile-pic */
  .right-profile-pic {
    width: 90%;
    height: 90%;
  }
  .right-profile-pic img {
    width: 400px;
    margin-bottom: 80px;
  }

  .right-profile-pic img:hover {
    cursor: pointer;
    transform: scale(1.1);
  

  /* section 1 */

.my-picture{
    height: 80%;
    width: 70%;
  }
  .my-picture img {
    width: 350px;
  }
  .right-about-me {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-direction: column;
    width: 100%;
    height: 90%;
  }

  .about h1 {
    font-size: 2.8rem;
  }

  .right-about-me p {
   font-size: 0.4rem;
  }

  .read-more {
    font-size: 1rem;
  }
  .read-more:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    color: black;
    font-size: 1.3rem;
    background-color: #0099ff;
  }
}
}
@media screen and (max-width: 1094px) {
  .left-intro h1 {
    font-size: 2.4rem;
  }
  .left-intro h3 {
    font-size: 1.4rem;
  }
  .left-intro p {
    font-size: 1rem;
  }
  .hire-me {
    letter-spacing: 1px;
    width: 22%;
  }

  .social-icons {
    width: 80%;
  }
  .right-profile-pic img {
    width: 370px;
  }
  /* section 1 start */


  .my-picture {
    width: 80%;
  }
  .my-picture img {
    width: 300px;
  }

  .right-about-me h1 {
    font-size: 2.4rem;
  }
  .right-about-me p {
    font-size: 1rem;
  }

  .read-more {
    width: 25%;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .read-more:hover {
    font-size: 1rem;
  }

  /* section 2 */

  .my-projects {
    position: relative;
    top: 30px;
    width: 100%;
    height: 12%;
    font-size: 2.6rem;
  }
  .projects-box {
    width: 90%;
    height: 90%;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    align-items: center;
  }

  .project-small-box {
    height: 100%;
    position: relative;
    top: 35px;
  }
}

@media screen and (max-width: 920px) {
  .nav-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 60px; /* Space for the nav header */
    z-index: 2;
  }
  .logo h1{
    font-size: 2rem;
  }
  .nav-bar.open {
    transform: translateX(0);
  }

  .nav-bar ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-bar ul li {
    width: 100%;
  }

  .nav-bar ul li a {
    display: block;
    width: 100%;
    padding: 15px 20px;
  }

  /* Toggle label styling */
  .nav-toggle-label {
    position: relative;
    right:40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 3;
  }

  .nav-toggle-label span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
  }

  .header-container {
    height: 90%;
    width: 100%;
    flex-direction: column-reverse;
    gap: 5px;
  }

  .right-profile-pic {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 80%;
  }
  .right-profile-pic img {
    width: 250px;
    position: relative;
    top: 40px;
  }

  .right-profile-pic img:hover {
    cursor: pointer;
    transform: scale(1.05);
  }

  .left-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 100%;
  }
  .left-intro h1 {
    font-size: 2.3rem;
    width: 100%;
    height: 17%;
    text-align: center;
  }
  .left-intro h3 {
    height: 13%;
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
  }
  .left-intro p {
    overflow: hidden;
    height: 20%;
    width: 100%;
  }
  .hire-me {

   padding: 10px;
   font-size: 1.1rem;

  }
  .social-icons {
    
    width: 400px;
    position: relative;
    height: 60px;
    overflow: hidden;
  }
  .social-icons a {
    position: relative;
    left: 115px;
    margin: 10px;
  }


  /* section 1 */

  .section-one-container {
    height: 95%;
    width: 100%;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .right-about-me {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 80%;
    width: 90%;
  }
  .right-about-me h1 {
    font-size: 2.5rem;
  }
  .right-about-me p{
    height:250px;
  }

  .read-more {
    width: 18%;
    position: relative;
    bottom: 10px;
    font-size: 0.9rem;
  }
  .read-more:hover {
    font-size: 1.1rem;
  }
  .my-picture {
    height: 60%;
  }
  .my-picture img {
    width: 220px;
  }
}

@media screen and (max-width: 647px) {


  .footer-container p {
    font-size: 1rem;
  }
  .social-media {
    width: 90%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .social-media a {
    margin: 10px;
  }

  .social-media a i {
    background-color: #0099ff;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 1rem;
  }
  .projects-box {
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 160px;
  }
  .project-small-box {
    position: relative;
    left: 90px;
    width: 50%;
    height: 100%;
  }
  .left-intro h1 {
    font-size: 2rem;
  }
  .left-intro h3 {
    font-size: 1.3rem;
  }
  .left-intro p {
   height: 35%;
  }
  .hire-me {
    padding: 5px;
    width: 30%;
  }
.social-icons{
  height: 17%;
}
  .read-more {
    width: 35%;
    font-size: 0.9rem;
  }

  .read-more:hover {
    font-size: 0.9rem;
  }

  /* projects section */

  .section-two-container {
    width: 100%;
    height: 100%;
  }
  .my-projects {
    font-size: 2.5rem;
    padding-top: 10px;
  }
  .projects-box {
    position: relative;
    top: 30px;
    width: 90%;
    height: 80%;
  }

  .project-small-box {
    position: relative;
    left: 20px;
    width: 70%;
  }

  .contact {
    font-size: 2.5rem;
  }
  .contact-form {
    height: 60%;
  }
}
