/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: 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: 100vh;
    text-align: center;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1rem;
    padding-top: 175px;
}

  /* Section spacing mobile */
  section {
    padding: 3rem 0;
  }

  /* Service cards mobile */
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }

  /* Team cards mobile */
  .team-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }

  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Footer mobile */
  #footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }

  /* Hide decorative elements on mobile */
  .decorative-blob {
    display: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  #hero {
    min-height: 100vh;
  }

  section {
    padding: 4rem 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  #hero {
    min-height: 100vh;
  }

  section {
    padding: 4.5rem 0;
  }

  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section {
    padding: 5rem 0;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  section {
    padding: 6rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .navbar {
    padding: 0.25rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .service-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}

  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }

  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #800080;
    --accent-color: #008000;
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-white: #ffffff;
    --border-color: #000000;
  }

  .btn-primary {
    background-color: #000080;
    border-color: #000080;
    color: #ffffff;
  }

  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid #000000;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Container adjustments for different screen sizes */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* Utility classes for responsive visibility */
.d-mobile-none {
  display: none;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: block;
  }
  
  .d-desktop-none {
    display: none;
  }
} 