/* Responsive CSS - Mobile and Tablet Optimizations */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.71rem;
  }
  
  h3 {
    font-size: 1.42rem;
  }
  
  .navbar-brand {
    font-size: 1.30rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 200px;
}
  
  /* Service cards mobile */
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.60rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  /* Feature items mobile */
  .feature-item {
    padding: 1.5rem;
    margin-bottom: 1.64rem;
  }
  
  .feature-icon {
    font-size: 2.63rem;
  }
  
  /* Pricing cards mobile */
  .pricing-card {
    padding: 1.5rem;
    margin-bottom: 1.57rem;
  }
  
  .pricing-price {
    font-size: 2rem;
  }
  
  /* Team members mobile */
  .team-member {
    padding: 1.5rem;
    margin-bottom: 1.62rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 60px 0;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Blog cards mobile */
  .blog-card img {
    height: 180px;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
  
  /* Footer mobile */
  .footer {
    padding: 30px 0 15px;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.26rem;
  }
  
  h2 {
    font-size: 1.89rem;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  .service-card img {
    width: 70px;
    height: 70px;
  }
  
  .pricing-price {
    font-size: 2.25rem;
  }
  
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .section-padding {
    padding: 70px 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.37rem;
  }
  
  h2 {
    font-size: 1.95rem;
  }
  
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.8rem;
  }
  
  .service-card img {
    width: 75px;
    height: 75px;
  }
  
  .feature-item {
    padding: 1.8rem;
  }
  
  .pricing-card {
    padding: 2rem;
  }
  
  .pricing-price {
    font-size: 2.34rem;
  }
  
  .team-member img {
    width: 115px;
    height: 115px;
  }
  
  .gallery-item img {
    height: 230px;
  }
  
  .section-padding {
    padding: 75px 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .contact-info {
    padding: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .feature-item {
    padding: 2rem;
  }
  
  .pricing-card {
    padding: 2.2rem;
  }
  
  .team-member {
    padding: 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .feature-item {
    padding: 2.5rem;
  }
  
  .pricing-card {
    padding: 2.5rem;
  }
  
  .team-member {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Additional responsive utilities */
@media (max-width: 991.98px) {
  /* Navigation adjustments */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
  
  /* Hero text center on mobile/tablet */
  .hero-content {
    text-align: center;
    padding-top: 200px;
}
  
  /* Stack contact form and info vertically */
  .contact-info {
    margin-top: 2rem;
  }
  
  /* Adjust spacing for mobile */
  .section-title {
    margin-bottom: 2rem;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 50px 0;
  }
}

/* Print styles */
@media print {
  .hero-section::before {
    display: none;
  }
  
  .btn {
    border: 1px solid #000;
  }
  
  .navbar,
  .contact-form,
  .footer {
    display: none;
  }
  
  .section-padding {
    padding: 20px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .service-card:hover,
  .pricing-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Dark mode support */

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .service-card:focus,
  .pricing-card:focus,
  .blog-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Utility classes for responsive behavior */
.mobile-center {
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-center {
    text-align: left;
  }
}

.mobile-full-width {
  width: 100%;
}

@media (min-width: 768px) {
  .mobile-full-width {
    width: auto;
  }
}

/* Grid adjustments for better mobile experience */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Back to top button responsive */
@media (max-width: 767.98px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
  .breadcrumb-section {
    padding: 15px 0;
  }
  
  .breadcrumb-image {
    width: 20px;
    height: 20px;
  }
}

/* Space div responsive */
@media (max-width: 767.98px) {
  #space {
    min-height: 50vh;
    padding: 60px 0;
  }
}

/* Navbar brand responsive fix */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.19rem;
  }
}

/* Additional mobile optimizations */
@media (max-width: 575.98px) {
  .section-title h2 {
    font-size: 1.90rem;
  }
  
  .section-title p {
    font-size: 0.95rem;
  }
  
  .hero-content h1 {
    font-size: 1.94rem;
  }
  
  .hero-content p {
    font-size: 0.94rem;
  }
} 