/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section img {
    margin-top: 30px;
  }
  
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .breadcrumb-section {
    padding: 120px 0 20px;
  }
  
  /* Disable animations on mobile */
  @media (prefers-reduced-motion: reduce) {
    .animated {
      animation: none !important;
      transition: none !important;
    }
    
    .swiper-container {
      --swiper-autoplay-delay: 0;
    }
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  section {
    padding: 70px 0;
  }
  
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
  
  .gallery-item:nth-child(4n) {
    grid-row: span 1;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Common responsive adjustments */
@media (max-width: 991.98px) {
  header {
    background-color: white;
  }
  
  .navbar-collapse {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }
  
  .price-card {
    margin-bottom: 30px;
  }
  
  .core-info-item {
    margin-bottom: 30px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .service-card:hover img,
  .blog-card:hover img,
  .team-card:hover img,
  .gallery-item:hover img {
    transform: none;
  }
  
  .service-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .about-feature:hover,
  .core-info-item:hover {
    transform: none;
  }
  
  .animated {
    animation: none;
  }
  
  .nav-link:before {
    transition: none;
  }
} 