/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero h2 {
    font-size: 1.125rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Disable autoplay and effects on mobile */
  .swiper-autoplay {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    --swiper-effect: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero h2 {
    font-size: 1.375rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .team-card img {
    width: 175px;
    height: 175px;
  }
  
  /* Disable autoplay and effects on mobile */
  .swiper-autoplay {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-effect-fade,
  .swiper-effect-cube,
  .swiper-effect-coverflow,
  .swiper-effect-flip {
    --swiper-effect: none;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-card img {
    width: 180px;
    height: 180px;
  }
  
  /* Enable autoplay and effects on tablet and up */
  .swiper-autoplay {
    --swiper-autoplay-delay: 4000;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    width: 200px;
    height: 200px;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .team-card img {
    width: 220px;
    height: 220px;
  }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Accessibility - Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .swiper-autoplay {
    --swiper-autoplay-delay: 0;
  }
  
  .hero::before {
    animation: none;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  body {
  overflow-x: hidden;
    color: #000 !important;
    background: #fff !important;
  }
  
  .hero,
  .reviews {
    background: #fff !important;
    color: #000 !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #666;
    --neutral-color: #fff;
    --dark-color: #000;
  }
  
  .hero::before {
    opacity: 0.1;
  }
  
  .feature-card,
  .service-card,
  .contact-form {
    border: 2px solid #000;
  }
}
