/* Responsive Design - Mobile First Approach */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-button {
    min-width: 180px;
    padding: 12px 20px;
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .container {
    padding: 0 12px;
  }
}

/* Large Mobile Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cta-button {
    min-width: 160px;
  }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) {
  /* Typography Adjustments */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.2rem;
  }
  
  /* Hero Section */
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-md);
  }
  
  .cta-button {
    min-width: 180px;
  }
  
  /* Services Grid */
  .services-container .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .section-header {
    grid-column: 1;
    margin-bottom: var(--spacing-lg);
  }
  
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    text-align: left;
    align-items: start;
    margin-bottom: 0;
  }
  
  .service-icon {
    margin: 0;
    width: 100px;
    height: 100px;
  }
  
  .service-icon svg {
    width: 56px;
    height: 56px;
  }
  
  .service-content {
    text-align: left;
  }
  
  .service-title {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .service-features {
    text-align: left;
  }
  
  /* Footer Grid */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
  
  .company-info {
    grid-column: 1 / -1;
  }
  
  /* Container Adjustments */
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) {
  /* Typography */
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  /* Hero Section */
  .hero-content {
    max-width: 900px;
  }
  
  /* Services Grid - 2 Columns */
  .services-container .container {
    display: block;
  }
  
  .services-container .container > .section-header {
    margin-bottom: var(--spacing-xl);
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  .service-card {
    display: block;
    text-align: center;
    padding: var(--spacing-xl);
  }
  
  .service-icon {
    margin: 0 auto var(--spacing-md);
    width: 120px;
    height: 120px;
  }
  
  .service-icon svg {
    width: 64px;
    height: 64px;
  }
  
  .service-content {
    text-align: center;
  }
  
  .service-title {
    font-size: 1.7rem;
  }
  
  .service-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto var(--spacing-md);
  }
  
  /* Footer Grid */
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
  }
  
  .company-info {
    grid-column: 1;
  }
  
  /* Hover Effects */
  .service-card:hover .service-icon {
    transform: scale(1.05);
  }
  
  .service-icon {
    transition: var(--transition);
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  /* Typography */
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  /* Hero Section */
  .hero-content {
    max-width: 1000px;
  }
  
  /* Services Grid - 3 Columns for larger screens */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Adjust service cards for 3-column layout */
  .service-card:nth-child(4) {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    text-align: left;
    align-items: start;
  }
  
  .service-card:nth-child(4) .service-icon {
    margin: 0;
    width: 100px;
    height: 100px;
  }
  
  .service-card:nth-child(4) .service-content {
    text-align: left;
  }
  
  .service-card:nth-child(4) .service-features {
    text-align: left;
    max-width: none;
    margin: 0 0 var(--spacing-md);
  }
  
  .service-card:nth-child(5) {
    grid-column: 3;
  }
  
  /* Enhanced spacing */
  .services-container {
    padding: 5rem 0;
  }
  
  .contact-footer {
    padding: 4rem 0 2rem;
  }
  
  /* Container max-width */
  .container {
    max-width: 1400px;
    padding: 0 var(--spacing-xl);
  }
}

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .container {
    max-width: 1600px;
  }
  
  .services-container {
    padding: 6rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  }
}

/* Landscape Orientation for Tablets */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .services-container {
    padding: var(--spacing-xl) 0;
  }
}

/* Portrait Orientation for Tablets */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .service-card {
    display: block;
    text-align: center;
  }
  
  .service-icon {
    margin: 0 auto var(--spacing-md);
  }
  
  .service-content {
    text-align: center;
  }
  
  .service-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto var(--spacing-md);
  }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --secondary-color: #1f2937;
    --text-light: #9ca3af;
  }
  
  .services-container {
    background-color: #111827;
  }
  
  .service-card {
    background-color: #1f2937;
    border: 1px solid #374151;
  }
  
  .section-title {
    color: var(--text-white);
  }
}

/* Print Optimizations */
@media print {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .service-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}