/* === RESPONSIVE STYLES - MOBILE FIRST === */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.86rem;
  }
  
  h3 {
    font-size: 1.33rem;
  }
  
  .navbar-brand {
    font-size: 1.18rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 100px;
}
  
  /* Section Spacing */
  .section {
    padding: 2.5rem 0;
  }
  
  /* Service Cards */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.74rem;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-price {
    font-size: 1.30rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Forms */
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Price Plan */
  .priceplan-item {
    padding: 1.5rem;
    margin-bottom: 1.62rem;
  }
  
  .priceplan-price {
    font-size: 1.82rem;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Blog Items */
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Service Cards */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-image {
    height: 175px;
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Price Plan */
  .priceplan-grid {
    grid-template-columns: 1fr;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Hero Section */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Price Plan */
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Reviews */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Reviews */
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* Reviews */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  /* Price Plan - Center middle item */
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }
  
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
  .faq-card {
    padding: 1rem;
  }
}

/* Process/Timeline Responsive */
@media (max-width: 767.98px) {
  .process-item,
  .timeline-item,
  .career-item,
  .coreinfo-item,
  .casestudy-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* Blog Responsive */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767.98px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Contact Info Responsive */
@media (max-width: 767.98px) {
  .contact-info {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Utility Classes for Responsive */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-4-mobile {
    margin-bottom: 1.71rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .breadcrumb-section {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0 !important;
  }
  
  .hero-section {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .team-member,
  .review-card,
  .faq-card,
  .contact-form,
  .blog-item,
  .priceplan-item {
    border: 2px solid var(--text-dark);
  }
}

/* Dark Mode Support (for future implementation) */