/* ================================================
   RESPONSIVE STYLES - MOBILE FIRST APPROACH
   ================================================ */

/* Base Mobile Styles (576px and below) */
@media (max-width: 575.98px) {
  /* No animations on mobile - strict rule */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Section spacing adjustments */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Service cards mobile */
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Team cards mobile */
  .team-photo {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Feature icons smaller on mobile */
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Timeline/Process items mobile */
  .timeline-item, .process-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-item::before, .process-item::before {
    left: 1rem;
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No scroll animations on small devices */
  .scroll-animation {
    animation: none;
  }
  
  /* Adjusted typography */
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  /* Hero adjustments */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Enable minimal animations for tablets */
  .service-card:hover,
  .team-card:hover,
  .case-study-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2.375rem;
  }
  
  h2 {
    font-size: 1.95rem;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 95vh;
  }
  
  /* Grid adjustments for better tablet layout */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    height: 220px;
  }
  
  /* Features grid adjustment */
  .feature-item {
    padding: 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full animations enabled for desktop */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Service cards grid */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Optimal spacing for large screens */
  .section-padding {
    padding: 6rem 0;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 100px;
}
  
  /* Team photos optimal size */
  .team-photo {
    height: 250px;
  }
  
  /* Contact form optimal spacing */
  .contact-form {
    padding: 3rem;
  }
  
  /* Timeline/Process optimal spacing */
  .timeline-item, .process-item {
    padding: 2.5rem;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  /* Container max width adjustment */
  .container {
    max-width: 1320px;
  }
  
  /* Even more spacing for very large screens */
  .section-padding {
    padding: 7rem 0;
  }
  
  /* Larger typography for big screens */
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Ensure sharp borders */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form,
  .case-study-card,
  .blog-card {
    backface-visibility: hidden;
  }
}

/* Print styles */
@media print {
  /* Remove animations and shadows for print */
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  /* Ensure good contrast for print */
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .hero-section {
    background: #fff !important;
    min-height: auto !important;
  }
  
  .hero-section::before {
    display: none !important;
  }
  
  /* Hide non-essential elements */
  .navbar,
  .footer {
    display: none !important;
  }
  
  /* Optimize spacing for print */
  .section-padding {
    padding: 2rem 0 !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero height on short landscape screens */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Reduce section padding */
  .section-padding {
    padding: 3rem 0;
  }
}

/* Dark mode support (respects user preference) */

/* Reduced motion - critical accessibility feature */
@media (prefers-reduced-motion: reduce) {
  /* Completely disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects */
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .case-study-card:hover,
  .blog-card:hover {
    transform: none !important;
  }
  
  /* Remove decorative elements that might animate */
  .hero-section::before {
    display: none !important;
  }
}

/* Focus styles for better accessibility */
@media (min-width: 768px) {
  .service-card:focus-within,
  .team-card:focus-within,
  .blog-card:focus-within,
  .case-study-card:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Ensure readability on very small screens */
@media (max-width: 320px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
} 