/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-section {
  padding-top: 50px;
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card {
    margin-bottom: 1.55rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-shape-1 {
    width: 80px;
    height: 80px;
  }
  
  .hero-shape-2 {
    width: 120px;
    height: 120px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card,
  .price-card {
    height: auto;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover {
    transform: translateY(-10px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-content {
  padding-top: 100px !important;
    max-width: 50%;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Mobile-specific adjustments for Swiper */
@media (max-width: 767.98px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination {
    position: static;
    margin-top: 1.10rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../ZEY_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .case-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #c5c5c5;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
  padding-top: 50px;
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Accessibility improvements */
@media (max-width: 767.98px) {
  .btn-primary {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Reduce animations for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-shape,
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .case-card,
  .career-card,
  .gallery-item {
    animation: none !important;
    transition: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .form-control:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
  }
  
  .nav-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}
