/* Responsive Breakpoints */
@media (max-width: 575.98px) {
  /* Extra Small devices (portrait phones) */
  :root {
    --h1-size: 1.5rem;
    --h2-size: 1.25rem;
    --h3-size: 1.1rem;
    --p-size: 0.9rem;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  .service-card,
  .contact-form {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .navbar-brand {
    font-size: 1.13rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small devices (landscape phones) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    margin-bottom: 1.61rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium devices (tablets) */
  .hero-section {
  padding-top: 50px;
    min-height: 80vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large devices (desktops) */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  /* Extra large devices (large desktops) */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 23, 43, 0.95);
    margin-top: 1.23rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  .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;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover .gallery-image {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .service-card,
  .blog-card,
  .btn-primary {
    transition: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../YEM_images/hero-bg@2x.webp');
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-navigation {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .service-card,
  .blog-card,
  .review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #d5d5d5;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
  .service-card,
  .blog-card,
  .review-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000 !important;
    color: #fff !important;
  }
  
  .navbar {
    background: #000 !important;
  }
}

/* Accessibility - Reduced Transparency */
@media (prefers-reduced-transparency: reduce) {
  .contact-form,
  .faq-item,
  .navbar-collapse {
    backdrop-filter: none;
    background: rgba(0,0,0,0.9) !important;
  }
  
  .hero-section::before {
    opacity: 0.5;
  }
} 