/* ==========================================
   RESPONSIVE CSS - Mobile Optimizations
   No animations when scrolling in mobile resolution
   ========================================== */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile adjustments */
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero::before {
    display: none;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 3rem 0;
  }
  
  /* Card spacing */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .timeline-item,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Team photo sizing */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process number sizing */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  /* Price tag sizing */
  .price-tag {
    font-size: 2.5rem;
  }
  
  /* Feature icon sizing */
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Button sizing */
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Form control spacing */
  .form-control {
    padding: 0.75rem;
  }
  
  /* Gallery adjustments */
  .gallery img {
    margin-bottom: 1rem;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form,
  .contact-info {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 95vh;
  }
  
  /* Keep animations but reduce intensity */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  .gallery img:hover {
    transform: scale(1.03);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Standard desktop behavior - full animations */
  .hero::before {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  /* Increase touch targets */
  .navbar-nav .nav-link {
    padding: 1rem;
    display: block;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better text readability */
  body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
  
  /* Form improvements */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Card improvements */
  .card {
    border-radius: 8px;
  }
  
  /* Image responsiveness */
  .img-fluid {
    height: auto;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero,
  .section {
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #000;
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .form-control {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Reduced motion support - enhanced */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    display: none;
  }
}


.hero-content {
    padding-top: 250px;
}