/* Responsive Design - Mobile First Approach */

/* Base styles for mobile (up to 575px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile to respect reduced motion */
  * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  
  /* Typography adjustments */
  .display-4 {
    font-size: 2rem;
  }
  
  .h2, h2 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navbar brand size reduction */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-buttons {
    text-align: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Feature boxes */
  .feature-box {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Team member images */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Timeline adjustments */
  .timeline-item {
    padding-left: 1rem;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Gallery grid adjustments */
  #gallery .col-md-3 {
    margin-bottom: 0.5rem;
  }
  
  /* Contact form */
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Footer adjustments */
  #footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  .hero-buttons .btn {
    width: auto;
    margin-right: 1rem;
  }
  
  /* Services grid */
  .services-grid .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Team grid adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 140px;
    height: 140px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .display-4 {
    font-size: 2.5rem;
  }
  
  /* Hero section */
  #hero {
    min-height: 100vh;
  }
  
  /* Feature boxes tablet layout */
  .feature-box {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Services cards */
  .services-grid .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Timeline tablet adjustments */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  /* Process steps tablet layout */
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery tablet grid */
  #gallery .col-md-3 {
    margin-bottom: 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Container max width adjustment */
  .container {
    max-width: 960px;
  }
  
  /* Hero section desktop */
  #hero {
    min-height: 100vh;
  }
  
  /* Feature boxes desktop spacing */
  .feature-box {
    padding: 2.5rem;
  }
  
  /* Services grid desktop */
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Team desktop layout */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width for very large screens */
  .container {
    max-width: 1140px;
  }
  
  /* Typography for large screens */
  .display-4 {
    font-size: 3rem;
  }
  
  .h2, h2 {
    font-size: 2rem;
  }
  
  /* Hero section large desktop */
  #hero {
    min-height: 100vh;
  }
  
  /* Feature boxes large desktop */
  .feature-box {
    padding: 3rem;
  }
  
  /* Services cards large desktop */
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  /* Adjust navbar for landscape */
  .navbar {
    padding: 0.25rem 0;
  }
  
  /* Reduce section padding */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .hero-buttons,
  #gallery,
  .btn,
  .breadcrumb-section {
    display: none !important;
  }
  
  /* Adjust colors for print */
  body {
    color: #000 !important;
    background: #fff !important;
    overflow-x: hidden;
}
  
  /* Ensure text is readable */
  .text-muted {
    color: #666 !important;
  }
  
  /* Remove shadows and transitions */
  .card,
  .feature-box,
  .info-card,
  .contact-method {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  /* Page breaks */
  .card,
  .feature-box {
    page-break-inside: avoid;
  }
  
  section {
    page-break-before: auto;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .card,
  .feature-box,
  .info-card,
  .contact-method {
    border: 2px solid #000 !important;
  }
  
  .btn {
    border: 2px solid #000 !important;
  }

  #footer {
    background: #000000 !important;
    color: #ffffff !important;
  }

  #footer h5, #footer h6, #footer p, #footer a {
    color: #ffffff !important;
  }
}

/* Dark mode support */

/* Accessibility improvements */
@media (max-width: 991.98px) {
  /* Larger touch targets for mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  /* Improved form controls */
  .form-control {
    min-height: 44px;
  }
  
  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
  /* Remove hover effects on touch devices */
  .card:hover,
  .feature-box:hover,
  .info-card:hover,
  .contact-method:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .hero-buttons .btn:hover {
    transform: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove transform effects */
  .card:hover,
  .feature-box:hover,
  .hero-buttons .btn:hover {
    transform: none !important;
  }
}

/* Very small screens (below 320px) */
@media (max-width: 319.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Mobile Footer Contrast Improvements */
@media (max-width: 768px) {
  #footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 2rem 0 !important;
  }
  
  #footer h5, #footer h6 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  #footer p {
    color: #f0f0f0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  #footer a {
    color: #93c5fd !important;
    font-size: 0.9rem !important;
  }
  
  .contact-info p {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }
}

/* Tablet Footer Improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  #footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
  }
  
  #footer h5, #footer h6 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
  }
  
  #footer p, #footer a {
    color: #f0f0f0 !important;
    font-size: 1rem !important;
  }
  
  #footer a {
    color: #93c5fd !important;
  }
} 