/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Typography Adjustments */
  h1, .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  #hero .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Cards */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  /* Services Grid */
  #services .col-lg-4 {
    margin-bottom: 1.5rem;
  }
  
  /* Team Section */
  #team .col-lg-2 {
    margin-bottom: 1.5rem;
  }
  
  #team img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  #process .col-lg-2 {
    margin-bottom: 2rem;
  }
  
  /* Timeline */
  #timeline .col-lg-2 {
    margin-bottom: 2rem;
  }
  
  /* Gallery */
  #gallery .col-lg-3 {
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  #contact .col-lg-8 {
    margin-bottom: 2rem;
  }
  
  /* Footer */
  footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1, .display-4 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
  }
  
  /* Grid Adjustments */
  .col-sm-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Services */
  #services .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Team */
  #team .col-sm-6 {
    margin-bottom: 2rem;
  }
  
  /* Disable scroll animations on mobile */
  .sal-animate {
    animation: none !important;
    transition: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1, .display-4 {
    font-size: 2.25rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 85vh;
  }
  
  /* Services Grid */
  #services .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Team Layout */
  #team .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Process Steps */
  #process .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery */
  #gallery .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ */
  #faq .col-lg-6 {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container adjustments */
  .container {
    max-width: 960px;
  }
  
  /* Typography */
  h1, .display-4 {
    font-size: 2.5rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Services */
  #services .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team */
  #team .col-lg-2 {
    margin-bottom: 1.5rem;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Full typography scale */
  h1, .display-4 {
    font-size: 2.5rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
  }
  
  /* Enhanced spacing */
  section {
    padding: 5rem 0;
  }
}

/* Landscape Orientation */
@media screen and (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding-top: 80px;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .card-img-top,
  #gallery img,
  #team img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .breadcrumb {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .sal-animate,
  .fade-in,
  .card:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid currentColor;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border: 2px solid currentColor;
  }
}

/* Focus Styles for Keyboard Navigation */
@media (any-hover: none) {
  /* Touch device specific styles */
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
  /* Minimize data usage */
  .card-img-top,
  #gallery img,
  #team img {
    display: none;
  }
  
  /* Show alt text instead */
  .card-img-top::after,
  #gallery img::after,
  #team img::after {
    content: attr(alt);
    display: block;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
  }
}

/* Dark Mode Support (if browser supports) */

/* Container Queries (Future-proofing) */
/* When supported by browsers, these will provide more granular responsive design */
@supports (container-type: inline-size) {
  .card-container {
    container-type: inline-size;
  }
  
  @container (max-width: 300px) {
    .card-body {
      padding: 0.75rem;
    }
    
    .card-title {
      font-size: 1rem;
    }
  }
} 