/* Mobile First Responsive Design */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
  
  /* Typography adjustments for mobile */
  h1, .display-4 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  h3, .h3, .h4 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    margin: 0;
    border-bottom: 1px solid #E9ECEF;
  }
  
  /* Hero Section */
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 2rem 1rem;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* NO animations on mobile as per requirements */
  .shape,
  .hero-shapes {
    display: none;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .service-card .card-img-top {
    height: 180px;
  }
  
  /* Team section - stack vertically */
  .team-member {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Gallery - 2 columns on mobile */
  .gallery .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Footer */
  footer .col-lg-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  footer .text-md-end {
    text-align: center;
  }
  
  /* Spacing adjustments */
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Additional page specific */
  .process-step,
  .achievement-item,
  .metric-card,
  .future-item {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .step-number,
  .metric-icon {
    margin: 0 auto 1rem;
  }
  
  .support-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }
  
  .support-icon {
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Typography */
  h1, .display-4 {
    font-size: 2.25rem;
  }
  
  /* Hero adjustments */
  .hero-section {
    padding-top: 90px;
  }
  
  /* Gallery - 3 columns */
  .gallery .col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  /* Cards in rows */
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team members */
  .team-member img {
    width: 110px;
    height: 110px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Navigation */
  .navbar-nav .nav-link {
    margin: 0 0.25rem;
  }
  
  /* Hero section */
  .hero-section {
    padding-top: 100px;
  }
  
  /* Cards */
  .service-card .card-img-top {
    height: 200px;
  }
  
  /* Team grid */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer layout */
  footer .col-lg-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  footer .col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  .container {
    max-width: 960px;
  }
  
  /* Typography fine-tuning */
  h1, .display-4 {
    font-size: 2.5rem;
  }
  
  /* Team layout */
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  /* Service cards */
  .service-card .card-img-top {
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Full desktop experience */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Team layout - 5 columns */
  .team-member {
    margin-bottom: 1rem;
  }
  
  /* Service cards optimal size */
  .service-card .card-img-top {
    height: 220px;
  }
  
  /* Enhanced spacing */
  section {
    padding: 6rem 0;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  
  .container {
    max-width: 1320px;
  }
  
  /* Larger typography for ultra-wide */
  h1, .display-4 {
    font-size: 3rem;
  }
  
  h2, .h2 {
    font-size: 2.25rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  
  * {
    background: transparent;
    color: black;
    box-shadow: none;
    text-shadow: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .navbar,
  .hero-shapes,
  .btn,
  footer {
    display: none;
  }
  
  .container {
    width: auto;
    margin: 0;
    padding: 0;
  }
  
  section {
    padding: 1rem 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  
  /* Remove all animations and transitions on mobile */
  @media (max-width: 767.98px) {
    * {
      animation: none;
      transition: none;
      transform: none;
    }
    
    .card:hover,
    .btn:hover,
    .feature-card:hover {
      transform: none;
      box-shadow: none;
    }
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  
  :root {
    --primary-color: #0066CC;
    --primary-dark: #004499;
    --secondary-color: #00AA44;
    --neutral-dark: #000000;
    --white: #FFFFFF;
  }
  
  .card {
    border: 2px solid var(--neutral-dark);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Dark mode support */

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive tables */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Container padding adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
} 

.hero-section h1 {
    padding-top: 175px;
}