/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-desc {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .service-card,
  .feature-card,
  .review-card {
    margin-bottom: var(--spacing-md);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: var(--spacing-xl) 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* 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-section {
    padding: var(--spacing-2xl) 0;
  }
}

/* Disable animations and autoplay on mobile devices (< 768px) */
@media (max-width: 767.98px) {
  .swiper-container {
    --swiper-navigation-size: 0;
  }
  
  .swiper-container .swiper-pagination {
    display: none;
  }
  
  /* Disable hover effects on touch devices */
  .service-card:hover,
  .feature-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Simplify animations for mobile */
  .btn-submit:hover {
    transform: none;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    text-align: center;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .gallery-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn-submit {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .feature-card,
  .review-card {
    box-shadow: none;
    border: 1px solid var(--medium-gray);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .feature-card,
  .gallery-item,
  .btn-submit {
    transition: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a202c;
    --light-gray: #2d3748;
    --medium-gray: #4a5568;
    --dark-gray: #e2e8f0;
    --black: #f7fafc;
  }
  
  .service-card,
  .feature-card,
  .review-card {
    background: var(--primary-slate-dark);
    color: var(--white);
  }
  
  .form-control {
    background: var(--primary-slate);
    color: var(--white);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 