/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    text-align: center;
    padding: 40px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .case-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Disable animations on mobile for performance */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  /* Mobile navigation improvements */
  .navbar-collapse {
    background: white;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .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 h1 {
    font-size: 2.4rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .price-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 0;
  }
  
  .container-fluid {
    max-width: 1400px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Landscape phone specific adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 20px 0;
  }
  
  .section-padding {
    padding: 30px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .blog-image,
  .gallery-item,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  .navbar,
  .contact-form,
  .gallery-section {
    display: none;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  .service-card,
  .price-card,
  .team-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control {
    min-height: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
}

/* Container adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Navbar responsiveness */
@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Hero section responsive content */
@media (max-width: 767.98px) {
  .hero-content {
    text-align: center;
    padding-top: 175px;
}
  
  .hero-content .col-md-6:first-child {
    margin-bottom: 2rem;
  }
}

/* Team section responsive */
@media (max-width: 575.98px) {
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Process section responsive */
@media (max-width: 767.98px) {
  .process-step {
    margin-bottom: 3rem;
  }
  
  .process-number {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 1rem;
  }
}

/* Blog cards responsive */
@media (max-width: 767.98px) {
  .blog-image {
    height: 150px;
  }
}

/* Footer responsive */
@media (max-width: 767.98px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Contact info responsive */
@media (max-width: 767.98px) {
  .contact-info-card {
    margin-bottom: 1rem;
  }
}

/* FAQ section responsive */
@media (max-width: 575.98px) {
  .faq-card {
    padding: 1rem;
  }
} 