/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-member-img {
    height: 250px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  /* Disable animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .animate {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .service-item-img {
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .service-item-img {
    height: 190px;
  }
  
  .team-member-img {
    height: 280px;
  }
}

/* Custom media query for slider controls */
@media (max-width: 767.98px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Specific responsive fixes */
@media (max-width: 991.98px) {
  /* Make all items in a row have the same height */
  .row-eq-height {
    display: block;
  }
  
  /* Adjust spacing between sections on mobile */
  section {
    overflow: hidden;
  }
  
  /* Make sure decorative shapes don't cause layout issues */
  .shape-1,
  .shape-2 {
    width: 150px;
    height: 150px;
  }
  
  /* Ensure proper spacing around accordion items */
  .accordion-button {
    padding: 1rem;
  }
  
  /* Adjust gallery items height */
  .gallery-img {
    height: 200px;
  }
}

/* Fix for very small mobile devices */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
} 