/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Hero Section */
  #hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 3rem 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Price cards */
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact form */
  .contact-form {
    margin-bottom: 2rem;
  }
  
  /* FAQ cards */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Navbar brand conservative sizing */
  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero h1 {
    font-size: 2.25rem;
  }
  
  /* Service grid */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Price grid */
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  /* Service cards in 2 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team layout */
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery layout */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full hero height */
  #hero {
    min-height: 100vh;
  }
  
  /* Service cards in 3 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Features layout */
  .feature-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
  
  /* Hero full layout */
  #hero {
    min-height: 100vh;
  }
  
  /* Optimal spacing for large screens */
  section {
    padding: 100px 0;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI displays */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {
  /* Hide navigation and non-essential elements */
  #header,
  #footer,
  .btn,
  #gallery {
    display: none;
  }
  
  /* Ensure readable text */
  * {
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    page-break-after: auto;
  }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove floating animation */
  #hero::before {
    animation: none;
  }
}

/* Dark mode support (optional) */

body {
    overflow-x: hidden;
}