/* Responsive CSS for Smart Home Device Installation Service */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
    padding-top: 250px;
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.8rem;
  }
  
  .price-plan-card {
    padding: 2rem 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-section {
    min-height: 85vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    padding-top: 250px;
}
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .team-card img {
    height: 220px;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .timeline-item {
    margin-bottom: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
    padding-top: 250px;
}
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card .price {
    font-size: 1.3rem;
  }
  
  .feature-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .price-plan-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-plan-card .price {
    font-size: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-card img {
    height: 200px;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .case-study-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number {
    width: 45px;
    height: 45px;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
  }
  
  .career-card {
    padding: 1.5rem;
  }
  
  .core-info-card {
    padding: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .core-info-icon {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .blog-card-body {
    padding: 1.2rem;
  }
  
  .faq-card {
    padding: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .gallery-item img {
    height: 150px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .hero-section {
    min-height: 75vh;
    text-align: center;
    padding: 1rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-top: 250px;
}
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  /* Hide decorative shapes on mobile for better performance */
  .hero-shape {
    display: none;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.4rem;
    text-align: center;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .service-card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .service-card .price {
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon {
    font-size: 1.8rem;
  }
  
  .price-plan-card {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .price-plan-card .price {
    font-size: 1.8rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .team-card img {
    height: 180px;
  }
  
  .team-card-body {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .case-study-card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-item::before {
    width: 10px;
    height: 10px;
  }
  
  .timeline-item::after {
    left: 4px;
  }
  
  .career-card {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .core-info-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .core-info-icon {
    font-size: 1.6rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    width: 100%;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  /* Navbar adjustments */
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    text-align: center;
  }
  
  /* Breadcrumb adjustments */
  .breadcrumb-container {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .breadcrumb-image {
    max-width: 150px;
  }
}

/* Special handling for very small screens (less than 400px) */
@media (max-width: 399.98px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .hero-section h1 {
    font-size: 1.4rem;
    padding-top: 250px;
}
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .service-card,
  .feature-card,
  .price-plan-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .faq-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .team-card img {
    height: 160px;
  }
  
  .process-number {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .breadcrumb-container,
  .footer {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .feature-card,
  .price-plan-card,
  .team-card,
  .review-card,
  .case-study-card,
  .career-card,
  .core-info-card,
  .blog-card,
  .faq-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}