/* Comprehensive Responsive Styles */

/* Large tablets and small desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  
  section { padding: 4rem 0; }

  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1.1rem; }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }

  section { padding: 3rem 0; }

  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column !important;
    gap: 0.8rem;
    align-items: center;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .services-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .stat-item { padding: 1.5rem; }
  .stat-number { font-size: 2.5rem; }

  .card,
  .portfolio-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .cta-section { padding: 3rem 0; }

  #three-container { height: 300px; }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .footer-section { margin-bottom: 1.5rem; }
  .social-links { justify-content: center; }

  img {
    max-width: 100%;
    height: auto;
  }

  .card-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .card-icon-img {
    width: 35px;
    height: 35px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  input, textarea, select {
    font-size: 16px;
  }

  .btn, button {
    min-height: 44px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  section { padding: 2.5rem 0; }

  .hero { min-height: 70vh; }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-content p { font-size: 0.95rem; }
  .subtitle { font-size: 1rem; }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.85rem; }

  .card,
  .portfolio-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .cta-section { padding: 2.5rem 0; }

  #three-container { height: 250px; }

  .enhanced-feature-card .card-content {
    padding: 0 1rem 1rem;
  }

  .enhanced-feature-card .card-header h3 {
    font-size: 1.1rem;
  }

  .enhanced-feature-card .feature-item {
    font-size: 0.85rem;
  }
}

/* Extra small (max-width: 360px) */
@media (max-width: 360px) {
  .container { padding: 0 0.5rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .hero-content h1 { font-size: 1.5rem; }
  .btn { padding: 8px 14px; font-size: 0.85rem; }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  section { padding: 2rem 0; }
}

/* Utility classes */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  body { overflow-x: hidden; }
  
  .mobile-menu-btn {
    right: 2.5rem !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
