/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-shape-1, .hero-shape-2 {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .service-card, .feature-card, .team-card, .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .process-steps {
    flex-direction: column;
    gap: 2rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .process-step {
    flex: 0 0 45%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Disable animations and autoplay on mobile devices */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper {
    overflow: visible;
  }
  
  .swiper-slide {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  /* Disable autoplay and effects for Swiper on mobile */
  .swiper-autoplay {
    pointer-events: none;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card, .feature-card, .team-card, .review-card {
    border: 2px solid var(--dark-color);
  }
  
  .btn-primary {
    border: 2px solid var(--white);
  }
  
  .form-control:focus {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .hero-section {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card, .feature-card, .team-card, .review-card {
    box-shadow: none;
    border: 1px solid var(--dark-color);
    margin-bottom: 1rem;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
} 