/* Mobile-first responsive design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-section .row {
    align-items: center;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Full height hero on desktop */
  .hero-section {
    min-height: 80vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile optimizations (up to 767px) */
@media (max-width: 767px) {
  /* Conservative mobile typography */
  h1, .h1, .display-4 {
    font-size: 2rem;
    line-height: 1.25;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3, .h3 {
    font-size: 1.5rem;
  }
  
  h4, .h4 {
    font-size: 1.25rem;
  }
  
  h5, .h5 {
    font-size: 1.125rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Mobile navbar */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
  }
  
  /* Mobile hero section */
  .hero-section {
    padding-top: 100px;
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Mobile spacing */
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  /* Mobile cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile buttons */
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    width: 100%;
  }
  
  /* Mobile form adjustments */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Mobile footer */
  footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  footer .row:last-child .col-md-6 {
    text-align: center;
  }
  
  /* Mobile gallery */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Mobile team section */
  .team .col-md-6 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Mobile process section - stack items */
  .process .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .process .flex-shrink-0 {
    align-self: center;
    margin-bottom: 1rem;
  }
  
  /* No hover effects on mobile */
  .card:hover {
    transform: none;
  }
  
  .img-fluid:hover {
    opacity: 1;
  }
  
  /* Mobile contact section */
  .contact .row .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Mobile space page */
  #space {
    padding-top: 100px;
    min-height: 70vh;
  }
  
  /* Mobile breadcrumbs */
  nav.pt-5 {
    padding-top: 100px !important;
  }
}

/* Tablet-specific adjustments (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet typography */
  h1, .h1, .display-4 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  /* Tablet hero */
  .hero-section {
    min-height: 70vh;
  }
  
  /* Tablet cards - 2 columns where appropriate */
  .services .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .features .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Tablet form adjustments */
  .contact .col-lg-8 {
    padding: 0 2rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  .container {
    max-width: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .py-5 {
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* Accessibility - Focus indicators */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark mode support (if user prefers) */

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
    padding-top: 80px;
  }
  
  #space {
    min-height: 50vh;
    padding-top: 80px;
  }
  
  .py-5 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1, .h1, .display-4 {
    font-size: 1.75rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
} 

.hero-section h1 {
    padding-top: 100px;
}