/* Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  .services-item h4 {
    font-size: 1rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .accordion-button {
    font-size: 0.9rem;
  }
  
  /* Disable autoplay and effects on mobile for Swiper */
  .swiper {
    --swiper-pagination-bullet-size: 8px;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .card-img-top {
    height: 170px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Disable animations and effects on mobile for Swiper */
@media (max-width: 767.98px) {
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card:hover .card-img-top {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .swiper-pagination,
  .accordion-button::after {
    display: none !important;
  }
  
  .card {
    break-inside: avoid;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    transition: all 0.15s ease-in-out;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }
  
  .btn-primary:hover {
    background: #333;
    border-color: #333;
  }
}
