/* Mobile First Responsive Design */

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile for performance */
  .sal-animate,
  .card,
  .img-fluid,
  .btn-primary {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  .display-4 {
    font-size: 1.75rem;
  }
  
  .h3 {
    font-size: 1.5rem;
  }
  
  .h4 {
    font-size: 1.25rem;
  }
  
  .h5 {
    font-size: 1.1rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content h2 {
    font-size: 1.1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Section padding reduction */
  section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .card-img-top {
    height: 150px;
  }
  
  /* Button sizing */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Navigation adjustments */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  /* Team member images */
  .team img,
  img[style*="width: 120px"] {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Process circles */
  .bg-primary[style*="width: 60px"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Gallery grid adjustments */
  .col-lg-3.col-md-4.col-sm-6 {
    margin-bottom: 1rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Footer adjustments */
  footer {
    padding: 2rem 0 !important;
  }
  
  /* Hide decorative elements */
  .hero-section::before {
    display: none;
  }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Team member adjustments */
  .team img,
  img[style*="width: 120px"] {
    width: 100px !important;
    height: 100px !important;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  /* Services grid adjustments */
  .services .col-lg-4.col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Team section adjustments */
  .team .col-lg-2.col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  /* Enhanced hover effects for larger screens */
  .card:hover {
    transform: translateY(-8px);
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  .form-control,
  footer,
  .breadcrumb {
    display: none !important;
  }
  
  /* Adjust layout for print */
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  /* Ensure proper spacing */
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  /* Card adjustments for print */
  .card {
    border: 1px solid #000;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  /* Typography for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  /* Remove background colors */
  * {
    background: transparent !important;
    color: #000 !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable 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 hover transforms */
  .card:hover,
  .btn-primary:hover,
  .img-fluid:hover,
  .team img:hover {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --primary-dark: #000060;
    --neutral-color: #000000;
    --neutral-dark: #000000;
    --background-light: #FFFFFF;
  }
  
  .card {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    border: 2px solid #000000;
  }
}

/* Dark Mode Support */

/* Focus Management */
@media (any-hover: none) {
  /* Touch devices - remove hover effects */
  .card:hover,
  .btn-primary:hover,
  .img-fluid:hover {
    transform: none;
    box-shadow: initial;
  }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
  /* Minimize visual effects to save bandwidth */
  .hero-section::before,
  .card:hover,
  .shadow,
  .shadow-sm {
    display: none !important;
    box-shadow: none !important;
  }
  
  /* Simplify gradients */
  .hero-section {
    background: var(--background-light) !important;
  }
}

/* Container Queries (Future-proofing) */
@container (max-width: 400px) {
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* Specific Mobile Navigation Fixes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  
  .navbar-nav .nav-item {
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }
} 