/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .process-step {
    padding: 1rem 0.5rem;
  }
  
  .contact-info {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 75vh;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .service-card {
    height: 100%;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .contact-info {
    padding: 2.5rem 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .gallery-item img {
    height: 260px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Accessibility and reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-blob-1, .hero-blob-2 {
    animation: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
  
  .feature-item:hover {
    transform: none !important;
  }
  
  .btn-primary:hover, .btn-secondary:hover {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008080;
    --accent-color: #ff8c00;
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
  
  .card {
    border: 2px solid var(--border-color);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .btn, .contact-form, .hero-decorative-blob {
    display: none !important;
  }
  
  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  a, a:visited {
    text-decoration: underline;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Mobile menu specific adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  /* No animations on mobile for better performance */
  .hero-blob-1, .hero-blob-2 {
    display: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  .feature-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  .section-padding {
    padding: 1.5rem 0;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
} 

.hero-content {
    padding-top: 100px;
}