@media (max-width: 1200px) {
  .aside {
    left: -25rem;
  }

  .aside.open {
    left: 0;
  }

  .nav-toggle-box {
    display: flex;
    left: 3rem;
  }

  .aside .nav-toggle-box.open {
    left: 30rem;
  }

  .section {
    left: 0;
  }

  .container {
    padding-top: 7rem;
  }

  .section.open {
    left: 25rem;
    width: 100%;
  }

  .info-item span {
    display: block;
    margin-left: 0;
  }
}

@media (max-height: 500px) {
  .aside .logo {
    display: none;
  }
}

@media (max-width: 940px) {
  .home .home-info {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .home-image {
    flex: 0 0 100%;
    max-width: 100%;
    padding-top: 5rem;
  }

  .home-image::after {
    left: 2rem;
    top: 4rem;
  }
  .home-image::before {
    display: none;
  }
  .service-item,
  .contact-info-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 760px) {
  .personal-info,
  .skills,
  .education,
  .experience {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .section {
    position: relative;
  }
}

@media (max-width: 600px) {
  .service-item,
  .portfolio-item,
  .contact-info-item,
  .col-6,
  .info-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .aside {
    display: none;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .fun-facts {
    flex-direction: column;
  }

  .fact-item {
    min-width: 100%;
  }

  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-form .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .contact-form .btn {
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
  }
}
