/* ==============================================
   RESPONSIVE STYLES - MOBILE FIRST
   ============================================== */

/* === TABLET STYLES (768px - 991px) === */
@media (max-width: 991.98px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-section {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
  
  .price-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .casestudy-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
  
  .career-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* === MOBILE STYLES (up to 767px) === */
@media (max-width: 767.98px) {
  :root {
    --font-size-base: 15px;
    --font-size-small: 13px;
    --font-size-large: 17px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    font-size: var(--font-size-small);
    padding: 0.4rem 0.8rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 1.5rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-content p {
    font-size: var(--font-size-base);
  }
  
  /* Sections */
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  /* Grids - Mobile single column or 2 columns max */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .price-plan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .career-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  /* Cards and items */
  .service-card,
  .price-plan-item,
  .casestudy-item,
  .career-item {
    padding: 1.5rem;
  }
  
  .feature-item,
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .testimonial-item {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .testimonial-text {
    font-size: var(--font-size-base);
  }
  
  /* Process steps */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.6rem;
    font-size: var(--font-size-small);
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: var(--font-size-small);
  }
  
  /* FAQ */
  .faq-question {
    padding: 0.8rem;
    font-size: var(--font-size-small);
  }
  
  .faq-answer {
    padding: 0.8rem;
    font-size: var(--font-size-small);
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer h5 {
    font-size: 1rem;
  }
  
  .footer p,
  .footer a {
    font-size: var(--font-size-small);
  }
  
  /* Gallery */
  .gallery-item img {
    height: 180px;
  }
  
  /* Blog items */
  .blog-item img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* Utility classes for mobile */
  .mb-mobile-0 { margin-bottom: 0; }
  .mb-mobile-1 { margin-bottom: 0.5rem; }
  .mb-mobile-2 { margin-bottom: 1rem; }
  .mb-mobile-3 { margin-bottom: 1.5rem; }
  
  .mt-mobile-0 { margin-top: 0; }
  .mt-mobile-1 { margin-top: 0.5rem; }
  .mt-mobile-2 { margin-top: 1rem; }
  .mt-mobile-3 { margin-top: 1.5rem; }
  
  .py-mobile-2 { padding: 1rem 0; }
  .py-mobile-3 { padding: 1.5rem 0; }
  .py-mobile-4 { padding: 2rem 0; }
}

/* === SMALL MOBILE STYLES (up to 575px) === */
@media (max-width: 575.98px) {
  :root {
    --font-size-base: 14px;
    --font-size-small: 12px;
    --font-size-large: 16px;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  /* Typography for small mobile */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.15rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 0.9rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  /* Hero adjustments */
  .hero-content h1 {
    font-size: 1.4rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 0;
  }
  
  /* All grids to single column */
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Cards */
  .service-card,
  .price-plan-item,
  .casestudy-item,
  .career-item,
  .feature-item,
  .coreinfo-item,
  .testimonial-item {
    padding: 1rem;
  }
  
  .team-member {
    padding: 0.8rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1rem;
  }
  
  .form-control {
    padding: 0.5rem;
  }
  
  .btn-primary {
    padding: 0.7rem 1.2rem;
  }
  
  /* Process number */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Timeline */
  .timeline-item {
    padding: 1rem;
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 0.7rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 150px;
  }
  
  /* Blog */
  .blog-item img {
    height: 120px;
  }
  
  .blog-content {
    padding: 0.8rem;
  }
  
  /* Footer */
  .footer {
    padding: 1.5rem 0 0.8rem;
  }
  
  /* Service price */
  .service-price {
    font-size: 1.3rem;
  }
  
  .price-plan-price {
    font-size: 1.7rem;
  }
}

/* === SWIPER RESPONSIVE ADJUSTMENTS === */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects on mobile as per requirements */
  .swiper-container {
    --swiper-navigation-size: 25px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* === BOOTSTRAP RESPONSIVE OVERRIDES === */
@media (max-width: 767.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-auto,
  .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-sm-auto,
  .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-md-auto {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .price-plan-item,
  .blog-item,
  .gallery-item img {
    transition: none;
  }
  
  .service-card:hover,
  .price-plan-item:hover,
  .blog-item:hover {
    transform: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  .service-card,
  .price-plan-item,
  .casestudy-item,
  .career-item,
  .testimonial-item,
  .blog-item {
    border: 2px solid var(--color-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--color-primary-dark);
  }
  
  .form-control {
    border: 2px solid var(--color-primary);
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .footer,
  .contact-form {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .team-member,
  .testimonial-item {
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
} 