@media (max-width: 1300px) {
  .testi-person {
    flex: 0 0 calc((100% - 2 * clamp(1rem, 2vw, 2rem)) / 3);
  }
}

@media (max-width: 1100px) {
  #page2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  #page2 .div2 {
    width: 80%;
    display: flex;
    justify-content: center;
  }

  .div2 .about-img {
    width: 60%;
  }

  #page2 .div3 {
    width: 100%;
    text-align: center;
  }

  .div3 .experience {
    padding: clamp(1vw, 2vw, 3vw) clamp(5vw, 10vw, 15vw);
  }

  #page3 {
    padding: 10vh 3vw;
  }

  .bento .box1 {
    width: clamp(22vw, 30vw, 30vw);
    height: clamp(25vh, 30vh, 35vh);
  }

  .bento .box2 {
    width: clamp(22vw, 30vw, 30vw);
    height: clamp(25vh, 30vh, 35vh);
  }

  .testi-rev p {
    font-size: clamp(0.8rem, 1.8vw, 2rem);
  }

  .testi-person {
    height: 40vh;
    overflow: hidden;
  }
  .testi-profile {
    margin-top: 3vw;
  }
}

@media (max-width: 768px) {
  /* nav */
  nav {
    width: calc(100% - 40px);
    margin: 10px 20px;
    padding: 15px 20px;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: absolute;
    top: 52px;
    right: 0;
    width: 100%;
    min-height: 35vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 20px 10px;
    border-radius: 10px;
    text-align: center;
    transform: scaleY(0);
    transform-origin: top;
  }
  .nav-list a {
    display: block;
    padding: 15px 0;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
  }
  .hamburger {
    display: block;
    font-size: 1.2rem;
    margin-right: 1vw;
    cursor: pointer;
  }
  nav .home {
    height: 40px;
    width: 200px;
  }

  /* page1 */
  #page1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  .content h1,
  span {
    text-align: center;
  }

  .content p {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    margin-top: clamp(30px, 10vw, 70px);
    margin-bottom: clamp(70px, 5vw, 100px);
  }

  .img-content {
    height: clamp(30vh, 30vh, 90vh);
  }

  /* page2 */
  .div1 p {
    font-weight: 200;
    width: 95%;
  }
  .div2 .about-img {
    width: 90%;
  }
  .div3 .experience {
    padding: clamp(1vw, 2vw, 3vw) clamp(4vw, 6vw, 8vw);
  }

  /* page3 */
  .background-glow {
    position: absolute;
    background: radial-gradient(
      circle at 50% 50%,
      rgba(0, 192, 152, 0.15) 0%,
      transparent 100%
    );
    filter: blur(10px);
    top: 50%;
    border-radius: 50%;
    width: 80vw;
    height: 40vh;
  }
  .services-grid {
    gap: 1rem;
  }

  .service-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    padding: 0 1rem;
  }

  .service-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    height: auto;

    max-height: 60px;
    position: relative;
  }
  .service-card .icon-wrapper {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .service-text {
    flex: 1;
    margin-left: 0.75rem;
    overflow: hidden;
  }
  .service-text h3 {
    font-size: 1.2rem;
    margin: 0;
  }
  .service-text p {
    display: block;
    max-height: 0;
    opacity: 0;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    transition: opacity 0.3s ease 0.1s;
  }
  .service-card.expanded {
    max-height: 300px;
    padding-bottom: 0.75rem;
  }
  .service-card.expanded .service-text p {
    max-height: none;
    opacity: 1;
  }
  .service-card:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .service-card:hover {
    transform: translateY(0px);
    background: none;
    box-shadow: none;
  }
  /* testimonials */
  .testi-person {
    flex: 0 0 calc((100% - clamp(1rem, 2vw, 2rem)) / 2);
  }

  .testi-rev p {
    font-size: clamp(1rem, 2vw, 2rem);
  }

  .testi-person {
    height: 38vh;
    overflow: hidden;
  }
  .testi-profile {
    margin-top: 3vw;
  }
  /* footer */
  .footer {
    padding: 10vh 5vw 8vh;
  }

  .links {
    flex-direction: column;
    gap: 2rem;
  }

  .sub-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .services h1 {
    margin-top: 4.5rem;
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  .testimonials {
    margin-top: -5vh;
  }
  .testi-rev p {
    font-size: 0.8rem;
  }
  .testi-person {
    height: 35vh;
    padding: 4vw;
    overflow: hidden;
  }
  .testi-profile {
    margin-top: 3vw;
  }
  .testimonials h1 {
    font-size: 1.2rem;
    margin-bottom: -10vh;
  }
  .testimonials h1 span {
    font-size: 1.4rem;
  }
  .testi-person.offset {
    margin-top: 0rem;
  }
  .testi-rev {
    height: 20vh;
  }
  .testi-person {
    flex: 0 0 calc((100% - clamp(1rem, 2vw, 2rem)) / 2);
  }
  .footer {
    margin-top: -30vh;
    padding: 6vh 5vw 5vh;
  }
  .footer-name {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
}
