@media (max-width: 1250px) {
  .grid-work {
    grid-template-columns: 1fr;
    padding: 0rem 2rem;
  }
}

@media (max-width: 1220px) {
  header {
    height: 100%;
  }
  
  h1 {
    font-size: 5rem;
  }
  .welcome {
    text-align: center;
  }

  .principal-section {
    flex-direction: column;
    margin-top: 5rem;
    gap: 4rem;
    justify-content: space-between;
    height: 100%;
  }
  .principal-section figure {
    position: relative;
    bottom: 0;
    width: min(50rem, 80%)
  }
  .social-network {
    margin-top: 7rem;
  }
  .principal-section figure img.icon {
    display: none;
  }

  .about-section {
    flex-direction: column;
  }
  .about {
    width: 90%;
    color: white;
    text-align: center;
  }
  .first-section a {
    margin-bottom: 5rem;
  }
}

@media (max-width: 1020px) {
  header {
    background-position: left;
  }
}

@media (max-width: 800px) {
  #toggle {
    display: flex;
  }
  nav ul {
    display: none;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 490px) {
  h1 {
    font-size: 2.5rem;
  }
  .logo p {
    font-size: 2rem;
  }
  .logo figure {
    width: 5rem;
  }
}

@media (max-width: 344px) {
  .work button:first-of-type {
    margin-bottom: 1rem;
  }
  .logo figure {
    display: none;
  }
}