@media (max-width: 1330px) {
  header {
    height: 170vh;
  }
}

@media (max-width: 1024px) {
  .small,
  .medium,
  .large,
  .xlarge {
    flex: 1 1 100%;
    height: 250px;
  }
}

@media (max-width: 950px) {
  .navItems ul li a {
    font-size: 25px;
  }
  .navItems {
    padding: 30px 40px;
  }
  .navItems ul {
    gap: 10px;
  }
  .logo {
    font-size: 22px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content h3 {
    font-size: 30px;
  }

  .about-content p {
    font-size: 16px;
  }

  .about-pic img {
    width: 80%;
    margin: 0 auto;
  }
  .service-cards {
    width: 98%;
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-form,
  .contact-info {
    width: 100%;
  }
  .contact-container:hover {
    transform: rotateY(0) rotateX(0);
  }
}

@media (max-width: 770px) {
  .top-content {
    line-height: 35px;
    /* left: 60px; */
  }
  .top-content h1 {
    font-size: 42px;
  }
  .top-content h3 {
    font-size: 32px;
  }
  .top-content p {
    font-size: 17px;
  }

  .about {
    flex-wrap: wrap;
    width: 100%;
  }
  .about-pic {
    width: 100%;
  }
  .about-content {
    width: 100%;
  }

  .service h1 {
    font-size: 52px;
  }
  .section-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 700px) {
  .navItems ul {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    text-align: center;
    gap: 32px;
    background-color: beige;
    max-height: 0; /* initially hidden */
    overflow: hidden; /* hide menu when collapsed */
    transition: max-height 0.5s ease-in-out;
    z-index: 14;
  }

  .navItems ul li a {
    color: #000;
    padding: 10px;
    display: block;
  }

  .menu-icon {
    display: block;
  }
}

@media (max-width: 470px) {
  .top-content {
    line-height: 28px;
    margin-top: -3em;
  }
  .top-content h1 {
    font-size: 32px;
  }
  .top-content h3 {
    font-size: 22px;
  }
  .top-content p {
    font-size: 13px;
    line-height: 18px;
  }

  .about-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .about-content p {
    font-size: 16px;
  }

  .service h1 {
    font-size: 37px;
    margin-bottom: 60px;
  }
  .top-btn {
    margin-top: 1.5em;
  }
    .section-title {
    font-size: 2.4rem;
  }

  .category-title {
    font-size: 1.2rem;
  }
}
