/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .element-item {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* 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: 1.75rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 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: 1.875rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Disable Swiper autoplay and effects on tablets */
  .swiper-slide {
    transition: none !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section {
    padding: 6rem 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Disable animations on mobile for better performance */
@media (max-width: 767.98px) {
  .hero-shape-1,
  .hero-shape-2 {
    animation: none !important;
  }
  
  .feature-item:hover,
  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover,
  .element-item:hover {
    transform: none !important;
  }
  
  /* Disable Swiper autoplay on mobile */
  .reviews-swiper .swiper-slide {
    transition: none !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../images/hero-bg@2x.webp');
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .hero-section,
  .btn {
    display: none !important;
  }
  
  body {
  overflow-x: hidden;
    font-size: 12pt;
    color: black !important;
    background: white !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}


/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus improvements for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Skip navigation for screen readers */
.skip-navigation {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-navigation:focus {
  top: 6px;
}
