/* ========== Max-width: 1080px ========== */
@media (max-width: 1080px) {
  /* About */
  .about-us-grid {
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }
  .about-images {
    width: 62.5%;
    justify-self: center;
    align-self: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .about-text {
    justify-self: center;
    align-self: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .about-img-top {
    position: relative;
    width: 100%;
    z-index: 1;
  }
  .about-img-bottom {
    position: absolute;
    bottom: -1.5rem;
    left: 30%;
    transform: translateX(-50%);
    width: 60%;
    z-index: 1;
    border: 4px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .about-heading {
    font-size: 3rem;
  }

  /* How It Works */
  .steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .step {
    flex: 1 1 calc(50% - 1rem);
    display: flex;
    flex-direction: column;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    margin: auto;
    width: 100%;
  }
  .projects-grid > *:nth-child(3) {
    grid-column: span 2;
  }
}

/* ========== Max-width: 1024px ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .about-us-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-images {
    margin-bottom: 2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Max-width: 992px ========== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ========== Max-width: 768px ========== */
@media (max-width: 768px) {
  .hero {
    height: 30vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.3rem;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-heading {
    font-size: 2.4rem;
  }
  .about-paragraph {
    font-size: 1.2rem;
  }
  .about-list li {
    font-size: 1.4rem;
  }

  .services-heading {
    font-size: 2.4rem;
  }
  .services-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: auto;
  }
  .service-card {
    align-self: center;
  }
  .card-image {
    height: 140px;
  }
  .projects-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .project-image {
    aspect-ratio: 4 / 3;
  }
  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .testimonial-footer {
    align-items: center;
    gap: 1rem;
  }
  .contact-content {
    display: flex;
    flex-direction: column;
  }
  .footer-container {
    display: flex;
    flex-direction: column;
  }
  .footer-container > :nth-child(2),
  .footer-container > :nth-child(3) {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ========== Max-width: 576px ========== */
@media (max-width: 576px) {
  .cta-text h2 {
    font-size: 2.4rem;
  }
  .cta-text p {
    font-size: 1.2rem;
  }
  .btn-cta {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-logo {
    margin-bottom: 0.75rem;
  }
  .footer-logo-text {
    font-size: 1rem;
  }
  .footer-heading {
    font-size: 1.4rem;
  }
  .footer-links a,
  .footer-address,
  .footer-phone {
    font-size: 1.1rem;
  }
}

/* ========== Max-width: 550px ========== */
@media (max-width: 550px) {
  .hero {
    height: 27.5vh;
  }
  .about-paragraph,
  .about-list li {
    font-size: 1.35rem;
  }
  .steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  }
  .footer-logo-text {
    font-size: 1.25rem;
    text-align: center;
  }
  .footer-heading {
    font-size: 1.75rem;
  }
  .footer-links a,
  .footer-address,
  .footer-phone {
    font-size: 1.25rem;
  }
}

/* ========== Max-width: 480px ========== */
@media (max-width: 480px) {
  .hero {
    height:25vh;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 1.2rem;
    padding: 0.7rem 1.8rem;
  }
  .about-heading {
    font-size: 2.2rem;
  }
  .about-paragraph {
    font-size: 1.2rem;
  }
  .card-image {
    height: 120px;
  }
  .services-grid {
    display: flex;
    flex-direction: column;
    width: 90%;
  }
  .section-heading {
    font-size: 2rem;
  }
  .overlay-text {
    font-size: 1.4rem;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
  .step {
    flex: 1 1 100%;
  }
}




/* ========== Max-width: 450px ========== */
@media (max-width: 450px) {
  .hero {
    height: 60vh;
  }

  .about-heading {

    font-size: 2.2rem;

  }

  .about-paragraph {

    font-size: 1.3rem;

  }

  .about-list {

    flex-direction: column;

  }
  .testimonial-name {
    font-size: 1.8rem;
  }
  .testimonial-location {
    font-size: 1.425rem;
  }
  .testimonial-text {
    font-size: 1.25rem;
  }
  .testimonial-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .stars {
    font-size: 3rem;
  }
  .review-g-icon {
    width: 2.5rem;
  }

  
}
/* ========== Max-width: 350px ========== */
@media (max-width: 350px) {
  body {
    overflow-x: hidden;
  }
}
