/* Responsive Design Enhancements */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 479px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.875rem;
    line-height: 1.1;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    gap: 0.75rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-value {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .cta-content {
    padding: 2rem 1.5rem;
  }
  
  .cta-title {
    font-size: 1.875rem;
  }
}

/* Small Devices (landscape phones, 480px and up) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .services-grid {
    gap: 2.5rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  header,
  .mobile-menu,
  .language-switcher,
  .cta-section {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .hero-section,
  .stats-section,
  .services-section {
    page-break-inside: avoid;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support (for systems that support it) */
@media (prefers-color-scheme: dark) {
  /* Already dark by default, but can add specific dark mode enhancements */
  :root {
    --background: oklch(0.05 0 0);
    --card: oklch(0.08 0 0);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: oklch(0.4 0 0);
  }
  
  .nav-menu a,
  .mobile-menu a {
    border-bottom: 1px solid transparent;
  }
  
  .nav-menu a:hover,
  .mobile-menu a:hover {
    border-bottom-color: currentColor;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}