/* AI Job Bias Checker Template - Responsive CSS */

/* Mobile-first approach following Bootstrap 5 breakpoints */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  /* Hero section adjustments */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-decoration {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  /* Card adjustments */
  .service-card,
  .feature-card,
  .price-card,
  .review-card,
  .casestudy-card,
  .career-card,
  .coreinfo-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1rem;
  }
  
  /* Team photo size adjustment */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Process number adjustment */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Contact form adjustments */
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid adjustment */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Navbar brand adjustment */
  .navbar-brand {
    font-size: 1.125rem !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* No animations on mobile landscape */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 85vh;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Timeline adjustments for tablets */
  .timeline-item {
    padding-left: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Enhanced hover effects for large screens */
  .service-card:hover,
  .casestudy-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-decoration {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
  
  section {
    padding: 1rem 0;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #006400;
    --accent-color: #ff8c00;
    --warning-color: #dc143c;
    --info-color: #4682b4;
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .card {
    border-width: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    background: var(--primary-light);
  }
  
  .service-card:hover,
  .casestudy-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .career-card:hover {
    transform: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
}

/* Dark mode support (optional, commented out as not requested) */
/*
*/

/* Container max-width adjustments for better content flow */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1320px;
  }
}

/* Utility classes for responsive spacing */
.py-mobile-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .py-mobile-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  .py-mobile-2 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-start-md {
    text-align: left !important;
  }
  
  .text-end-md {
    text-align: right !important;
  }
}

/* Responsive image sizing */
.img-responsive-square {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.img-responsive-landscape {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Responsive font scaling */
@media (max-width: 575.98px) {
  .service-price {
    font-size: 1.125rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px; /* WCAG touch target size */
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Responsive grid adjustments */
@media (max-width: 767.98px) {
  .row.g-4 {
    --bs-gutter-y: 2rem;
  }
  
  .row.g-3 {
    --bs-gutter-y: 1.5rem;
  }
}

/* Loading performance optimization for mobile */
@media (max-width: 767.98px) {
  .lazy-image {
    background-color: var(--bg-light);
    min-height: 200px;
  }
}

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