/* Responsive Styles - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations when scrolling in mobile resolution */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  /* Services cards stack */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Team photos smaller */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form padding */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Section spacing reduced */
  section {
    padding: 2.5rem 0;
  }
  
  /* Gallery grid single column */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1rem;
  }
  
  /* Step numbers smaller */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Process steps */
  .process-step {
    padding: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero {
    min-height: 85vh;
  }
  
  /* Gallery grid two columns */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services grid adjustment */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero back to full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Gallery three columns */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid three columns */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  /* Team grid adjustments */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full services grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team full grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Gallery four columns */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum container width */
  .container {
    max-width: 1140px;
  }
  
  /* Full services grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team full grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Gallery full grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Navbar Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and footer */
  #header,
  #footer {
    display: none;
  }
  
  /* Ensure proper page breaks */
  section {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  /* Remove shadows and transitions */
  * {
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Ensure text is black */
  body,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
  }
  
  /* Remove background colors */
  * {
    background: white !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #000080;
    --accent-color: #800000;
    --success-color: #008000;
    --warning-color: #FF8C00;
    --dark-text: #000000;
    --light-bg: #FFFFFF;
  }
  
  .service-card,
  .testimonial-card,
  .faq-card,
  .team-card,
  .contact-form {
    border: 2px solid #000000;
  }
}

/* Focus Styles for Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 90, 140, 0.5);
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure sufficient color contrast */
.text-muted {
  color: var(--medium-gray) !important;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Tables */
.table-responsive {
  overflow-x: auto;
}

/* Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Form Responsive */
@media (max-width: 767.98px) {
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
}

/* Card Responsive Spacing */
@media (max-width: 575.98px) {
  .card {
    margin-bottom: 1rem;
  }
}

/* Button Responsive */
@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
} 

body {
    overflow-x: hidden;
}