/*
 * Responsive CSS - Mobile-First Design
 * Bootstrap 5 responsive utilities with custom mobile optimizations
 * No animation on mobile for performance and accessibility
 */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile - override any animations */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Conservative mobile typography */
  h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Card padding mobile */
  .service-card,
  .contact-form,
  .price-card {
    padding: 1.5rem;
  }
  
  .testimonial-card,
  .faq-card {
    padding: 1.25rem;
  }
  
  /* Button sizing mobile */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Feature icons mobile */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  /* Process number mobile */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 2rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog cards mobile */
  .blog-card img {
    height: 150px;
  }
  
  /* Form controls mobile */
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Footer mobile */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Mobile spacing utilities */
  .mb-mobile-3 {
    margin-bottom: 1rem;
  }
  
  .mt-mobile-3 {
    margin-top: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .service-card,
  .contact-form {
    padding: 1.8rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .blog-card img {
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 3.5rem 0;
  }
  
  h1 {
    font-size: 2.1rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .service-card,
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .blog-card img {
    height: 190px;
  }
  
  /* Tablet specific adjustments */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Desktop hover effects enabled */
  .card:hover {
    transform: translateY(-4px);
  }
  
  .team-member:hover {
    transform: translateY(-8px);
  }
  
  .price-card:hover {
    transform: translateY(-8px);
  }
  
  .blog-card:hover {
    transform: translateY(-8px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding: 0 2rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Larger containers for XL screens */
  .service-card,
  .contact-form,
  .price-card {
    padding: 2.5rem 2rem;
  }
  
  /* Enhanced spacing for large screens */
  .gallery-item img {
    height: 280px;
  }
  
  .blog-card img {
    height: 220px;
  }
}

/* Extra extra large devices (2560px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .feature-icon,
  .process-number {
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .gallery-item {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* Accessibility - Reduced motion support for all screen sizes */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  /* Remove all transform effects */
  .card:hover,
  .team-member:hover,
  .price-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Dark mode support */

/* Focus styles for better accessibility */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Custom responsive utilities */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

.mb-responsive {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-responsive {
    margin-bottom: 0;
  }
}


body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 200px;
}