/* =========================================
   IndianAI - Responsive Stylesheet
   Mobile-first Media Queries
   Author: Mohd Rijvan Khan Mogia
   Year: 2026
   ========================================= */

/* =========================================
   Extra Small devices (< 576px)
   ========================================= */
@media (max-width: 575.98px) {
  .navbar-brand { font-size: 1.125rem; }

  .hero-section {
    padding: 3rem 0 2rem;
    min-height: auto;
    text-align: center;
  }

  .hero-title { font-size: 1.75rem; }
  .hero-description { font-size: 0.9375rem; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 1rem; }
  .hero-visual { margin-top: 2rem; }
  .hero-app-grid { max-width: 280px; }
  .product-card { padding: 1.25rem; }
  .section-title { font-size: 1.625rem; }
  .page-hero { padding: 2.5rem 0; }
  .page-hero h1 { font-size: 1.75rem; }
  .contact-form-wrapper { padding: 1.5rem; }
  .about-card { max-width: 100%; }
  .about-stats-mini { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .scroll-to-top { bottom: 1rem; right: 1rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn-cta-white,
  .btn-cta-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero-stat-number { font-size: 1.25rem; }
  .about-profile { flex-direction: column; text-align: center; }
  .service-item { flex-direction: column; text-align: center; }
  .service-icon { margin: 0 auto; }
}

/* =========================================
   Small devices (576px - 767px)
   ========================================= */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem;
    min-height: auto;
    text-align: center;
  }

  .hero-title { font-size: 2rem; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 2.5rem; }
  .section-title { font-size: 2rem; }
}

/* =========================================
   Medium devices (768px - 991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
  }

  .hero-title { font-size: 2.5rem; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 3rem; }
  .about-visual { margin-top: 2rem; }
}

/* =========================================
   Large devices (992px+)
   ========================================= */
@media (min-width: 992px) {
  .hero-section { text-align: left; }
  .hero-description { margin-left: 0; margin-right: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
}

/* =========================================
   Tablet Navigation
   ========================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
  }

  .service-item {
    flex-direction: row;
  }

  .footer-links { text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-description { text-align: center; }
  .footer-contact-item { justify-content: center; }
}

/* =========================================
   Product pages responsive
   ========================================= */
@media (max-width: 767.98px) {
  .app-mockup { max-width: 220px; }
  .about-visual { margin-top: 2rem; }
  .filter-tabs { gap: 0.375rem; }
  .filter-tab { padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
  .navbar,
  .footer,
  .cta-section,
  .scroll-to-top,
  .btn-primary-custom,
  .btn-secondary-custom { display: none !important; }

  .hero-section {
    background: white !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
  }

  body { font-size: 12pt; color: black; }
}

/* =========================================
   Accessibility - 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;
  }

  .hero-app-grid { animation: none !important; }
}
