/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.2rem !important;
  }
  
  /* Hero Section */
  #hero {
    min-height: 100vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Sections padding */
  section {
    padding: 50px 0 !important;
  }
  
  /* Cards */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Disable hover effects on mobile */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Sections */
  section {
    padding: 60px 0;
  }
  
  /* Cards spacing */
  .service-card,
  .feature-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 80vh;
  }
  
  /* Sections */
  section {
    padding: 70px 0;
  }
  
  /* Cards */
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team grid adjustment */
  .team-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full sections padding */
  section {
    padding: 80px 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 100vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing */
  section {
    padding: 100px 0;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable hover transforms */
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  /* Increase border visibility */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card {
    border: 2px solid var(--text-primary);
  }
  
  /* Enhance button contrast */
  .btn-primary {
    border: 2px solid var(--text-primary);
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements */
  #header,
  #footer,
  .btn,
  .hero-shape {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  /* Ensure readability */
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  /* Compact navigation */
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Dark mode support */