/* Responsive Design for Mobile Optimization */

/* Mobile First Approach - Extra Small Devices */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Remove scroll animations on mobile for better performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Hero section mobile adjustments */
  .hero {
    min-height: 80vh;
    padding: 3rem 0;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 125px;
}
  
  /* Section padding adjustments */
  .section {
    padding: 3rem 0;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Service cards mobile stack */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards mobile adjustments */
  .price-card {
    margin-bottom: 2rem;
    transform: none !important;
  }
  
  .price-card.featured {
    transform: none !important;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile adjustments */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Footer mobile adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Process steps mobile */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Timeline mobile adjustments */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Gallery mobile grid */
  .gallery img {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Blog cards mobile */
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* FAQ mobile adjustments */
  .faq-item {
    padding: 1rem;
  }
  
  /* Navigation mobile adjustments */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Remove hover effects on mobile */
  .card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Button adjustments */
  .btn-primary {
    padding: 0.5rem 1.5rem;
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Form elements mobile */
  .form-control {
    margin-bottom: 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 90vh;
    padding: 4rem 0;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  /* Grid adjustments for small tablets */
  .service-card,
  .price-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    padding: 4rem 0;
  }
  
  /* Tablet specific adjustments */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Three column layout for some sections */
  .services .col-md-4,
  .features .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    padding: 5rem 0;
  }
  
  /* Desktop specific adjustments */
  .section {
    padding: 5rem 0;
  }
  
  .hero-content {
    padding-right: 2rem;
    padding-top: 125px;
}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero {
    padding: 6rem 0;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  /* Larger spacing for big screens */
  .container {
    max-width: 1200px;
  }
  
  .hero-content {
    padding-right: 3rem;
    padding-top: 125px;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border-width: 2px;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Dark mode preferences */

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}


body {
    overflow-x: hidden;
}