/* Mobile First Responsive Design */

/* Small screens (phones) */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 0 10px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Medium screens (tablets) */
@media (min-width: 577px) and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens (desktops) */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large screens */
@media (min-width: 1025px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../GIF_images/hero-background@2x.webp');
  }
}

/* Print styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
  overflow-x: hidden;
    background: white;
    color: black;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .team-member:hover,
  .gallery-item img:hover {
    transform: none;
  }
  
  .swiper-slide {
    transition: none;
  }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
  body {
  overflow-x: hidden;
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .section:nth-child(even) {
    background-color: #2a2a2a;
  }
  
  .service-card,
  .team-member,
  .review-item,
  .faq-item,
  .contact-form {
    background: #2a2a2a;
    border: 1px solid #444;
  }
}

/* Focus styles for accessibility */
.form-control:focus,
.submit-btn:focus,
.faq-question:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 