/* ===== Responsive CSS - Mobile-First Design ===== */

/* Mobile Devices (up to 767px) */
@media (max-width: 767.98px) {
  /* NO animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  
  /* Navbar brand smaller on mobile */
  .navbar-brand {
    font-size: 18px !important;
  }
  
  /* Section padding reduced on mobile */
  section {
    padding: 40px 0;
  }
  
  .section-sm {
    padding: 30px 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none; /* Hide decorative shapes on mobile */
  }
  
  /* Service cards stack properly */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team cards centered on mobile */
  .team-card {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Testimonial cards spacing */
  .testimonial-card {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ cards spacing */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Contact form padding */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery grid adjustments */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer spacing */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Buttons full width on mobile */
  .btn-mobile-full {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Moderate typography adjustments */
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  
  /* Section padding */
  section {
    padding: 60px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 80vh;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 220px;
  }
}

/* Tablet Landscape and Small Desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard section padding */
  section {
    padding: 70px 0;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 240px;
  }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
  /* Full section padding */
  section {
    padding: 80px 0;
  }
  
  /* Gallery full height */
  .gallery-item img {
    height: 250px;
  }
  
  /* Hero shapes visible on large screens */
  .hero-shape {
    display: block;
  }
}

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
  /* Container max width */
  .container {
    max-width: 1320px;
  }
  
  /* Larger decorative shapes */
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 250px;
    height: 250px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .gallery-item img,
  .team-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements when printing */
  nav,
  .btn,
  .hero-shape,
  footer {
    display: none !important;
  }
  
  /* Optimize text for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  /* Ensure proper page breaks */
  section {
    page-break-inside: avoid;
    padding: 20pt 0;
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Larger touch targets on mobile */
  .btn {
    min-height: 44px;
    padding: 12px 24px;
  }
  
  /* Improved form inputs */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Better navbar toggle */
  .navbar-toggler {
    border: none;
    padding: 8px 12px;
  }
  
  /* Improved link spacing */
  .navbar-nav .nav-link {
    padding: 12px 16px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  /* Reduce hero height in landscape mobile */
  #hero {
    min-height: 100vh;
  }
  
  /* Compact section padding */
  section {
    padding: 30px 0;
  }
}

/* Dark Mode Support (respects user preference) */
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
