@media (max-width: 1270px) {
  #section-projects .card {
    width: 19rem;
  }
  .card .type-time {
    width: 18rem;
  }
  .card .heading {
    width: 18rem;
  }
  .card .text {
    font-size: 0.95rem;
    width: 18.5rem;
  }
  #section-projects .card .img {
    width: 18rem;
  }
  #section-projects .desc .content {
    width: 60rem;
  }
}

@media (max-width: 1175px) {
  #section-about .desc .content {
    width: 35rem;
  }
  #section-about .skill {
    width: 7rem;
    text-align: center;
  }
}

@media (max-width: 1050px) {
  #section-about {
    flex-direction: column;
  }

  #section-about .desc .content {
    width: 52rem;
    padding-bottom: 2rem;
  }

  #section-projects .desc .content {
    width: 55rem;
  }
  #section-projects .wrapper {
    gap: 0.1rem;
  }
  .card {
    transform: scale(0.9);
  }
  #section-projects .card:hover {
    transform: scale(0.95);
  }
  .custom-input {
    width: 20rem;
  }
}

@media (max-width: 950px) {
  #section-about .desc .content {
    width: 51rem;
  }

  #section-projects .desc .content {
    width: 50rem;
  }

  #section-projects .wrapper {
    gap: 0.5rem;
    transform: scale(0.9);
  }
}

@media (max-width: 860px) {
  #section-about {
    padding: 1rem 2rem;
  }
  #section-projects {
    padding: 4.1rem 2rem;
  }
  #section-contact {
    padding: 1rem 2rem;
  }
  #section-about .desc {
    align-items: center;
    text-align: left;
  }

  #section-about .heading {
    width: 46rem;
  }

  #section-about .desc .content {
    width: 46rem;
  }

  #section-projects .desc .content {
    width: 46rem;
  }
  #section-projects .wrapper {
    gap: 0.1rem;
    transform: scale(0.85);
  }
  .card .text {
    font-size: 1.29rem;
  }

  .card .heading {
    font-weight: 600;
    font-size: 1.7rem;
  }
  #section-contact .content {
    width: 20rem;
  }
}

@media (max-width: 790px) {
  #section-about .desc .content,
  #section-about .heading {
    width: 40rem;
  }

  #section-about .desc {
    width: 40rem;
  }

  #section-projects .desc .content {
    width: 40rem;
  }
  #section-home .img {
    width: 15rem;
    height: 15rem;
  }
  #section-projects .wrapper {
    flex-direction: column;
    transform: scale(1);
  }

  #section-projects .wrapper .card {
    transform: scale(0.9);
    width: 40rem;
  }
  #section-projects .wrapper .card:hover {
    transform: scale(0.92);
  }
  .card .type-time {
    width: 38rem;
  }
  .card .heading {
    width: 37.5rem;
  }

  .card .text {
    width: 37.5rem;
    text-align: center;
  }
  .custom-input {
    width: 16rem;
  }
  #section-home .tagline {
    width: 25rem;
  }
}

@media (max-width: 670px) {
  #section-contact {
    flex-direction: column;
    padding: 4.5rem 2rem;
  }

  #section-contact .desc {
    margin-bottom: 4rem;
  }

  #section-contact .content {
    width: 35rem;
  }
  .custom-input {
    width: 25rem;
  }

  #section-contact .btn {
    align-self: center;
  }
  #section-about .desc .content,
  #section-about .heading {
    width: 34rem;
    text-align: center;
  }

  #section-about .desc {
    width: 34rem;
  }

  #section-projects .wrapper {
    width: 35rem !important;
  }

  #section-projects .wrapper .card {
    width: 35rem;
  }

  .card .type-time {
    width: 34rem;
  }
  .card .heading {
    width: 34rem;
  }

  .card .text {
    width: 34rem;
  }

  #section-projects .desc .content {
    width: 34rem;
    text-align: justify;
  }

  .heading,
  h3 {
    text-align: center !important;
  }

  .download {
    align-self: center;
  }
  #section-home .desc {
    width: 25rem;
  }
  #section-home .img {
    width: 13rem;
    height: 13rem;
  }
  #section-home {
    gap: 1rem;
  }
}

@media (max-width: 590px) {
  #section-projects .wrapper {
    width: 30rem !important;
  }

  #section-projects .wrapper .card {
    width: 30rem;
  }

  .card .type-time {
    width: 29rem;
  }
  .card .heading {
    width: 29rem;
  }

  .card .text {
    width: 29rem;
  }
  #section-contact .content {
    width: 30rem;
    text-align: justify;
  }
  #section-about .desc .content,
  #section-about .heading {
    width: 28rem;
    text-align: justify;
  }

  #section-about .desc {
    width: 28rem;
  }
  #section-projects .desc .content {
    width: 28rem;
  }
  .navItem:any-link,
  .navItem:visited {
    font-size: 0.9rem;
  }
  #theme-switch {
    height: 3rem;
    width: 3rem;
  }
}

@media (max-width: 500px) {
  .hideOnMobile {
    display: none;
  }

  .sidebar {
    width: 100%;
  }

  .menuButton {
    display: block;
  }

  #section-contact .content {
    width: 22rem;
    text-align: justify;
  }
  .custom-input {
    width: 20rem;
  }

  #section-projects .wrapper {
    width: 24rem !important;
  }

  #section-projects .wrapper .card {
    width: 24rem;
  }

  .card .type-time {
    width: 23rem;
  }
  .card .heading {
    width: 23rem;
  }

  .card .text {
    width: 22rem;
  }

  #section-about .desc .content,
  #section-about .heading {
    width: 24rem;
    text-align: justify;
  }

  #section-about .desc {
    width: 24rem;
  }
  #section-projects .desc .content {
    width: 24rem;
  }
}

@media (max-width: 430px) {
  #section-home .tagline {
    font-size: 1.6rem !important;
    width: 20rem;
  }

  #section-about .desc .content,
  #section-about .heading {
    width: 20rem;
    text-align: justify;
  }

  #section-about .desc {
    width: 20rem;
  }
  #section-projects .desc .content {
    width: 20rem;
  }
  #section-contact .content {
    width: 20rem;
    text-align: justify;
  }
  .custom-input {
    width: 18rem;
  }
  #section-home .desc {
    width: 21rem;
    text-align: justify;
  }
}

@media (max-width: 390px) {
  #section-about .skills {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  #section-about .skill {
    width: 5.5rem;
    font-size: 0.9rem;
  }

  #section-projects .wrapper {
    width: 20rem !important;
  }

  #section-projects .wrapper .card {
    width: 20rem;
  }

  .card .type-time {
    width: 19rem;
  }
  .card .heading {
    width: 19rem;
  }

  .card .text {
    width: 19rem;
  }
}

@media (max-width: 350px) {
  #section-about .desc .content,
  #section-about .heading {
    width: 18rem;
    text-align: justify;
  }

  #section-about .desc {
    width: 18rem;
  }
  #section-projects .desc .content {
    width: 18rem;
  }
  #section-contact .content {
    width: 18rem;
    text-align: justify;
  }
  .custom-input {
    width: 16rem;
  }
  #section-home .desc {
    width: 18rem;
    text-align: justify;
  }
}
