/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .services-item {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .hero-shape {
    display: none;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .services-item {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

/* Disable animations and autoplay on mobile devices */
@media (max-width: 767.98px) {
  .swiper-container {
    --swiper-navigation-size: 0;
  }
  
  .swiper-container .swiper-pagination {
    display: none;
  }
  
  .hero-shape {
    animation: none !important;
  }
  
  .services-item:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape,
  .contact-form {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .services-item {
    border: 2px solid var(--dark-gray);
  }
  
  .reviews-item {
    border: 2px solid var(--primary-ocean);
  }
  
  .faq-question {
    border: 2px solid var(--white);
  }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #0f172a;
    --light-gray: #1e293b;
    --gray: #94a3b8;
    --dark-gray: #f1f5f9;
    --black: #ffffff;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Container max-widths for better readability */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .swiper-container {
    --swiper-transition-duration: 0ms;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .services-item:hover,
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--white) !important;
  }
  
  .faq-question:hover {
    background: var(--primary-ocean);
  }
} 