/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
  }
  
  /* Hide decorative shapes on mobile */
  .hero-shape {
    display: none;
  }
  
  /* Section spacing mobile */
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .section-desc {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Cards mobile spacing */
  .custom-card {
    margin-bottom: var(--spacing-md);
  }
  
  .custom-card .card-body {
    padding: var(--spacing-md);
    overflow-x: hidden;
}
  
  /* Service items mobile */
  .service-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .service-item img {
    width: 60px;
    height: 60px;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: var(--spacing-lg);
    margin: 0 var(--spacing-sm);
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile */
  .footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
  }
  
  /* NO ANIMATIONS ON MOBILE */
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .custom-card:hover {
    transform: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  /* Disable all scroll animations on mobile - SAL disabled */
  /* .sal-animate {
    transition: none !important;
  } */
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .service-item img {
    width: 70px;
    height: 70px;
  }
  
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  /* Limited animations on small devices */
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .service-item img {
    width: 75px;
    height: 75px;
  }
  
  .team-photo {
    width: 115px;
    height: 115px;
  }
  
  .gallery-item img {
    height: 230px;
  }
  
  /* Enable some animations on tablets */
  .custom-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .service-item img {
    width: 80px;
    height: 80px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }
  
  .service-item img {
    width: 80px;
    height: 80px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Full animations on large screens */
  .hero-shape {
    display: block;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .hero-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
  }
  
  section {
    padding: var(--spacing-md) 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  .hero-shape,
  .navbar,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 1rem 0;
  }
  
  .custom-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Accessibility - Focus indicators */
@media (prefers-reduced-motion: no-preference) {
  :focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark mode support (if user prefers) */