/* General styles for max-width: 1400px */
@media screen and (max-width: 1440px) {
  #home-page,
  #about,
  #project,
  #skills,
  #contact {
    height: fit-content;
    overflow: hidden;
  }

  section {
    padding-top: 4vh;
    height: 98vh;
    margin: 0 4rem;
    box-sizing: border-box;
    min-height: fit-content;
  }
  #skills {
    margin: auto;
  }
  #home {
    width: 80%;
  }

  .home-image img {
    height: 570px;
    margin: -70px auto;
  }

  .home-p1 {
    font-size: 70px;
  }

  .home-title {
    font-size: 70px;
  }
  .home-about {
    font-size: 29px;
  }

  #social-container {
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .about-content p {
    padding: 40px;
    font-size: 23px;
    padding-bottom: 0px;
    padding-top: 40px;
  }

  .contact-container {
    margin-right: 2%;
  }
  .skill-contianer {
    margin: 25px auto;
    margin-left: 200px;
  }
  .skill-card {
    justify-content: center;
    margin-left: -6px;
    margin-right: 20px;
    width: 360px;
    height: 220px;
  }
  .skill-card i {
    font-size: 35px;
  }
  .skill-card h2 {
    font-size: 40px;
  }
  .skill-card .desc {
    margin-top: -15px;
    margin-bottom: -10px;
    font-size: 20px;
    text-align: center;
  }

  .skill-card .para {
    font-size: 16.5px;
  }
  .skill-card span {
    font-size: 22px;
  }
  .contact-all .contact-image img {
    width: 280px;
  }

  .contact-card {
    width: 460px;
    font-size: 24px;
  }
  .contact-card:hover {
    font-size: 30px;
  }
  .footer-links {
    font-size: 1.6rem;
  }
  .footer-container p {
    font-size: 1rem;
  }
}

/* Styles for max-width: 1300px */
@media screen and (max-width: 1300px) {
  .menu-list a::before {
    width: 0;
    height: 0;
  }

  .footer-links a::before {
    width: 0;
    height: 0;
    background-color: none;
  }

  /* Home Section */
  .home-image img {
    height: 570px;
    margin: -60px auto;
  }

  .home-p1 {
    font-size: 65px;
    margin-top: -30px;
    margin-bottom: -25px;
  }

  .home-title {
    font-size: 65px;
  }
  #typing {
    font-size: 45px;
  }

  .home-about {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 28px;
  }

  .btn-container {
    margin-top: 15px;
  }

  .btn-container button {
    font-size: 18px;
  }

  #social-container {
    margin-top: 25px;
  }

  #social-container i {
    font-size: 30px;
  }

  /* About section */
  .about-container {
    justify-content: flex-start;
  }

  .about-image {
    margin-left: -40px;
  }
  .about-image img {
    width: 360px;
    margin-top: 10px;
  }

  .about-content {
    margin-top: 4%;
    margin-left: 6px;
    margin-right: 10px;
    width: 100%;
    height: 470px;
  }

  .about-content p {
    font-size: 22px;
    padding-bottom: 0px;
    padding-top: 15px;
  }

  /* Skills Section */
  .skill-contianer {
    margin: 25px 90px;
    margin-left: 220px;
  }

  /* Contact section */
  .contact-container {
    margin-top: 5%;
  }
  #contact {
    margin: auto;
  }
  .contact-head {
    font-size: 5rem;
  }
  .contact-all {
    flex-wrap: nowrap;
  }
  .contact-all .contact-image img {
    margin-left: 50px;
    width: 290px;
    margin-right: 200px;
  }

  .contact-card {
    padding: 20px;
    width: 490px;
    height: 50px;
    margin-left: 260px;
    font-size: 25px;
    padding-top: 19px;
    padding-bottom: 0;
  }
  .contact-card:hover {
    font-size: 32px;
    padding-bottom: 10px;
  }
}

/* Styles for max-width: 1180px */
@media screen and (max-width: 1220px) {
  /* Home Section */
  .home-image img {
    height: 550px;
    margin: -48px auto;
  }

  .home-p1 {
    margin-top: -10px;
    font-size: 62px;
  }

  .home-title {
    font-size: 62px;
  }
  #typing {
    font-size: 42px;
  }
  .home-about {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 26px;
  }

  .btn-container button {
    font-size: 18px;
  }

  #social-container i {
    font-size: 29px;
  }

  /* About Section */
  .about-content {
    width: 680px;
  }

  .about-content p {
    font-size: 20px;
    padding-bottom: 0px;
    padding-top: 18px;
    text-align: justify;
  }
}

/* Styles for min-width: 1097px or max-width: 1172px */
@media screen and (min-width: 1097px), screen and (max-width: 1172px) {
  /* Home Section */

  .project-container {
    justify-content: center;
    margin-bottom: 70px;
  }
  #social-container i {
    font-size: 28px;
  }

  /* About section */
}

/* Styles for max-width: 980px or max-width: 1072px */
@media screen and (max-width: 980px), screen and (max-width: 1096px) {
  /* Home Section */
  .home-p1 {
    margin-top: -25px;
    font-size: 60px;
  }
  .home-title {
    font-size: 60px;
  }
  #typing {
    font-size: 40px;
  }

  .home-about {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 24px;
  }

  .btn-container button {
    font-size: 17px;
  }
  #social-container i {
    font-size: 27px;
  }

  /* About Section */
  .about-image img {
    margin-left: -40px;
    width: 300px;
  }
  .about-content {
    width: 660px;
    height: 380px;
  }

  .about-content p {
    font-size: 17px;
    padding-bottom: 0px;
    padding-top: 19px;
    text-align: justify;
  }
}

/* Styles for max-width: 996px */
@media screen and (max-width: 996px) {
  /* Home Section */
  .home-content {
    margin-left: 4%;
  }
  .home-p1 {
    margin-top: -20px;
    font-size: 55px;
  }
  #typing {
    font-size: 30px;
  }
  .home-about {
    font-size: 20px;
  }
  .home-title {
    margin-top: 10px;
    font-size: 45px;
  }
  .btn-container button {
    font-size: 15px;
  }
  #social-container i {
    font-size: 22px;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    align-items: center;
    margin-bottom: 40px;
  }
  .about-content {
    width: 520px;
    height: 400px;
    p {
      margin-top: 0;
    }
  }

  .contact-head {
    font-size: 2rem;
  }

  .contact-all .contact-image img {
    margin-left: 10px;
    width: 220px;
  }

  .contact-card {
    padding: 10px;
    width: 380px;
    height: 40px;
    font-size: 24px;
    padding-top: 14px;
    padding-bottom: 0;
    margin-right: 20px;
  }

  .contact-card:hover {
    font-size: 24px;
    padding-bottom: 0;
  }
}

/* Styles for max-width: 768px */
@media screen and (max-width: 768px) {
  #home,
  #about,
  #contact,
  #skills,
  #project {
    overflow: hidden;
  }
  .logo {
    font-size: 3.5rem;
    text-align: center;
  }
  #home {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    width: 80%;
    height: 500px;
    margin-bottom: 40px;
  }
  .home-content {
    margin-top: -35px;
    margin-left: 4%;
    align-items: center;
    text-align: center;
  }

  .home-image img {
    width: 150px;
    height: 220px;
    margin-top: -10px;
    background-attachment: fixed;
  }

  .home-p1 {
    margin-top: 4px;
    font-size: 32px;
  }

  .home-title {
    font-size: 28px;
    margin-top: 20px;
  }
  #typing {
    font-size: 25px;
  }
  .home-about {
    font-size: 16px;
    padding-right: 12px;
  }

  .btn-container {
    margin-top: 4px;
  }

  .btn-container button {
    margin-top: 4px;
    font-size: 12px;
    padding: 9px;
  }

  #social-container {
    margin-top: 10px;
  }

  #social-container i {
    font-size: 19px;
  }

  .icon {
    display: block;
  }
  .icon.cancel-btn {
    font-size: 40px;
  }
  .icon.hide {
    display: none;
  }
  .logo {
    margin-right: 36px;
  }

  .navbar .menu-list {
    font-size: 10px;
    position: fixed;
    width: 100%;
    height: 100%;
    margin-right: 3%;
    right: -170%;
    top: 0;
    display: block;
    padding: 40px 0;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
  }
  .navbar .menu-list li a {
    top: 50px;
    color: rgb(0, 0, 0);
    margin-top: 15%;
    display: block;
    font-size: 40px;
    transition: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  .navbar.show .menu-list {
    right: 0%;
  }
  .navbar .menu-list li {
    margin-top: 45px;
  }
  .navbar.show .menu-list li a {
    margin-left: 0px;
  }

  /* about section */
  #about {
    margin: auto;
    margin-bottom: 60px;
  }

  .about-container {
    margin-top: -200px;
  }

  .about-head {
    font-size: 2rem;
  }

  .about-image img {
    margin-left: 30px;
    margin-top: 210px;
    width: 220px;
  }

  .about-content {
    width: 300px;
    height: 540px;
  }

  .about-content p {
    padding: 20px;
    text-align: justify;
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 0;
  }

  /* project section */
  #project {
    margin: auto;
  }

  .project-head {
    text-align: center;
    font-size: 2rem;
  }

  .project-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0px;
    margin-top: 20px;
    margin-bottom: 110px;
  }

  .project-container .project-card {
    width: 300px;
    height: 300px;
  }

  .project-container .project-card:hover {
    height: 450px;
  }

  .project-container .project-card .project-image {
    top: 10px;
    width: 280px;
    height: 220px;
  }

  .project-container .project-card:hover .project-content h2 {
    font-size: 28px;
  }

  .project-container .project-card .project-content h2 {
    font-size: 23px;
  }

  .project-container .project-card .project-content .p1 {
    font-size: 22px;
  }

  .project-container .project-card .project-content .p2 {
    font-size: 22px;
  }

  .project-container .project-card .project-content .p3 {
    font-size: 20px;
  }
  .project-container .project-card .project-content .p4 {
    font-size: 18px;
    padding: 5px;
  }
  .project-container .project-card .project-content .p5 {
    font-size: 21px;
    padding: 5px;
  }
  .project-container .project-card .project-content .p6 {
    font-size: 18px;
    padding: 5px;
  }

  .project-container .project-card .project-content .a4 {
    font-size: 16px;
  }

  .project-container .project-card .project-content .a1 {
    font-size: 17px;
  }
  .project-container .project-card .project-content .a3 {
    font-size: 17px;
  }

  .project-container .project-card .project-content .a3:hover {
    padding-top: 2px;
    font-size: 1.6rem;
  }

  .project-container .project-card .project-content .a1:hover {
    padding-top: 2px;
    font-size: 1.6rem;
  }

  .project-container .project-card .project-content p span {
    color: rgb(25, 25, 25);
    font-size: 24px;
  }

  /* skills section */
  #skills {
    margin: auto;
    margin-bottom: 30px;
  }
  .skill-head {
    font-size: 2rem;
  }
  .skill-contianer {
    margin: 25px auto;
    justify-content: center;
  }
  .skill-card {
    margin-left: 22px;
    margin-right: 20px;
    width: 360px;
    height: 250px;
  }

  /* contact section */
  .contact-container {
    margin-top: 5%;
  }
  #contact {
    margin: auto;
  }
  .contact-head {
    font-size: 2rem;
  }
  .contact-all {
    flex-wrap: wrap;
  }
  .contact-all .contact-image img {
    margin-left: 210px;
    width: 220px;
  }

  .contact-card {
    padding: 10px;
    width: 280px;
    height: 40px;
    font-size: 20px;
    padding-top: 14px;
    padding-bottom: 0;
    margin-right: 240px;
  }
  .contact-card a {
    padding-left: 5px;
  }
  .contact-card:hover {
    font-size: 20px;
    padding-bottom: 0;
  }

  /* footer section */
  .footer-container {
    margin: auto;
  }
  .footer-links {
    font-size: 1.2rem;
    text-align: center;
  }
  .footer-container p {
    font-size: 0.9rem;
  }
}
