/* ========== RESPONSIVE DESIGN ========== */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile and small tablets (768px and below) */
@media (max-width: 767.98px) {
  /* Typography adjustments */
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Spacing adjustments */
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1.125rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: var(--spacing-sm);
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    margin: var(--spacing-xs) 0;
  }
  
  /* Grid layouts mobile */
  .services-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Cards mobile */
  .service-card,
  .team-card,
  .testimonial-card {
    margin: 0 var(--spacing-sm);
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
  }
  
  /* Swiper slider mobile adjustments - DISABLE autoplay and effects */
  .swiper {
    padding-bottom: var(--spacing-lg);
  }
  
  .swiper-slide {
    margin-bottom: var(--spacing-md);
  }
  
  /* Disable transitions and animations on mobile for Swiper */
  .swiper-slide-transition,
  .swiper-slide-transform {
    transition: none !important;
    transform: none !important;
  }
  
  /* Pagination bullets larger on mobile */
  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ mobile */
  .faq-question,
  .faq-answer {
    padding: var(--spacing-sm);
  }
  
  /* Utility spacing mobile */
  .mb-mobile-0 { margin-bottom: 0; }
  .mb-mobile-1 { margin-bottom: var(--spacing-xs); }
  .mb-mobile-2 { margin-bottom: var(--spacing-sm); }
  .mb-mobile-3 { margin-bottom: var(--spacing-md); }
  
  .mt-mobile-0 { margin-top: 0; }
  .mt-mobile-1 { margin-top: var(--spacing-xs); }
  .mt-mobile-2 { margin-top: var(--spacing-sm); }
  .mt-mobile-3 { margin-top: var(--spacing-md); }
}

/* Extra small devices (575px and below) */
@media (max-width: 575.98px) {
  /* Further reduce spacing */
  :root {
    --spacing-xs: 0.375rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  
  .service-card,
  .team-card,
  .contact-form {
    padding: var(--spacing-md);
  }
  
  /* Team photos smaller */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Service card images smaller */
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  /* Gallery items smaller */
  .gallery-item img {
    height: 180px;
  }
}

/* Landscape mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .contact-form,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  .section {
    padding: var(--spacing-sm) 0;
    break-inside: avoid;
  }
  
  .service-card,
  .team-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.5);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.6);
  }
  
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-item {
    border: 2px solid var(--neutral-dark);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    --swiper-transition-duration: 0ms;
  }
  
  .swiper-slide {
    transition: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover,
  .btn-submit:hover {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --neutral-dark: #e2e8f0;
    --neutral-main: #cbd5e0;
    --neutral-light: #4a5568;
  }
  
  body {
    background-color: #1a202c;
    color: #e2e8f0;
  }
  
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-item {
    background-color: #2d3748;
    color: #e2e8f0;
  }
  
  .faq-answer {
    border-top-color: rgba(255,255,255,0.1);
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  .contact-form {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

/* Very large screens */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section {
    padding: calc(var(--spacing-xxl) + 1rem) 0;
  }
} 