/* User-Testing Recruitment Platform - Responsive CSS */
/* Mobile-First Approach - No animations on mobile */

/* Mobile Base Styles (320px and up) */
@media (max-width: 575.98px) {
  /* Disable all animations on mobile as required */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.375rem; /* 22px - even more conservative on mobile */
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.25rem; /* 20px */
  }
  
  h3 {
    font-size: 1.125rem; /* 18px */
  }
  
  .navbar-brand {
    font-size: 1rem !important; /* Even smaller on mobile */
  }
  
  /* Section padding for mobile */
  section {
    padding: 2rem 0;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Services cards mobile */
  .services-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Blog grid mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Core info mobile */
  .coreinfo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Team photos mobile */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  /* Price plan cards mobile */
  .priceplan-card.featured {
    transform: none; /* No transform on mobile */
  }
  
  .priceplan-price {
    font-size: 1.5rem;
  }
  
  /* Footer mobile */
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

/* Small tablets (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 1.5rem; /* 24px */
  }
  
  h2 {
    font-size: 1.375rem; /* 22px */
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Blog grid */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services responsive */
  .services-card {
    margin-bottom: 2rem;
  }
}

/* Medium tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  section {
    padding: 3rem 0;
  }
  
  /* Hero section */
  .hero-section {
    min-height: 80vh;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Services grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Team grid */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Features grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Large tablets and small desktops (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Team grid */
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Price plan grid */
  .priceplan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* FAQ grid */
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
  /* Full section padding */
  section {
    padding: var(--section-padding);
  }
  
  /* Hero section full height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Services grid full */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  /* Team grid full */
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  /* Features grid full */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  /* Gallery grid full */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Container max width */
  .container {
    max-width: var(--content-max-width);
  }
  
  /* Large screen enhancements */
  .hero-content {
    padding-right: 2rem;
    padding-top: 225px;
}
  
  /* Contact section layout */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  
  /* Footer layout */
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

/* Extra extra large screens (1400px and up) */
@media (min-width: 1400px) {
  /* Enhanced spacing for very large screens */
  .container {
    max-width: 1320px;
  }
  
  /* Services enhanced layout */
  .services-grid {
    gap: 3rem;
  }
  
  /* Enhanced hero spacing */
  .hero-content h1 {
    font-size: var(--font-size-xxl);
  }
  
  /* Enhanced card spacing */
  .services-card,
  .review-card,
  .casestudy-card,
  .career-card {
    padding: 2.5rem;
  }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements when printing */
  .navbar,
  .hero-section::before,
  .hero-section::after,
  footer {
    display: none !important;
  }
  
  /* Ensure good contrast for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* Focus styles for accessibility */
@media (min-width: 768px) {
  /* Enhanced focus styles for keyboard navigation on larger screens */
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Animation re-enable for larger screens (keeping conservative) */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Re-enable conservative animations on larger screens */
  .services-card,
  .gallery-item,
  .blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .services-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  .blog-card:hover {
    transform: translateY(-3px);
  }
}

/* Utility responsive classes */
@media (max-width: 767.98px) {
  .d-mobile-none { display: none !important; }
  .text-mobile-center { text-align: center !important; }
}

@media (min-width: 768px) {
  .d-desktop-none { display: none !important; }
}