/* Tablet landscape */
@media screen and (max-width: 1024px) {
  section {
    padding: 2rem 8rem 4rem;
  }

  .header-content .right-header {
    padding-right: 6rem;
  }

  .header-content .right-header .name {
    font-size: 2.5rem;
  }

  .about-stats .progress-bars {
    grid-gap: 1.5rem;
  }

  .projects {
    grid-gap: 1.5rem;
  }

  .main-title h2 {
    font-size: 3.5rem;
  }

  .main-title h2 .bg-text {
    font-size: 5rem;
  }
}

/* Tablet portrait */
@media screen and (max-width: 768px) {
  section {
    padding: 2rem 3rem 4rem;
  }

  .header-content {
    grid-template-columns: 1fr;
    height: auto;
    padding: 4rem 3rem;
  }

  .header-content .left-header .image {
    width: 50%;
    height: auto;
    margin: 0 auto 2rem;
  }

  .header-content .left-header .image img {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
  }

  .header-content .right-header {
    padding-right: 2rem;
    text-align: center;
    align-items: center;
  }

  .header-content .right-header .name {
    font-size: 2.2rem;
  }

  .btn-con {
    align-self: center;
  }

  .about-container {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .about-container .left-about {
    padding-right: 0;
  }

  .about-container .right-about {
    margin-top: 2rem;
  }

  .about-stats .progress-bars {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-title h2 {
    font-size: 2.8rem;
  }

  .main-title h2 .bg-text {
    font-size: 3.8rem;
  }

  .contact-content-con {
    flex-direction: column;
  }

  .contact-content-con .left-contact {
    flex: 1;
  }

  .buttons .btn {
    width: 45px;
    height: 45px;
    padding: 0.8rem;
  }

  .buttons i {
    font-size: 1rem;
  }
}

/* Phone */
@media screen and (max-width: 480px) {
  section {
    padding: 1.5rem 1.5rem 4rem;
  }

  .header-content {
    padding: 2rem 1.5rem;
  }

  .header-content .left-header .image {
    width: 65%;
  }

  .header-content .right-header .name {
    font-size: 1.8rem;
  }

  .header-content .right-header p {
    font-size: 0.95rem;
    line-height: 1.6rem;
  }

  .about-container .right-about {
    grid-template-columns: 1fr;
  }

  .about-stats .progress-bars {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .main-title h2 {
    font-size: 2rem;
  }

  .main-title h2 .bg-text {
    font-size: 2.8rem;
  }

  .buttons {
    right: 2%;
  }

  .contact-content-con .left-contact .contact-info .contact-item {
    display: block;
    margin-bottom: 0.5rem;
  }

  .contact-content-con .left-contact .contact-info .contact-item .icon {
    width: auto;
  }

  .buttons .btn {
    width: 38px;
    height: 38px;
    padding: 0.6rem;
    margin: 0.5rem 0;
  }

  .theme-btn {
    width: 50px;
    height: 50px;
    top: 3%;
    right: 2%;
  }

  .theme-btn i {
    font-size: 1.1rem;
  }
}
