/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero .container {
    padding-top: 2rem;
  }
  
  /* Section padding adjustments */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contacts, #blog, #faq, #gallery {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .feature-card, .service-card, .price-card, .team-card,
  .review-card, .case-card, .career-card, .info-card,
  .blog-card, .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team card image adjustments */
  .team-card img {
    width: 120px;
    height: 120px;
  }
  
  /* Process steps adjustments */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Timeline adjustments */
  .timeline-item::before {
    display: none;
  }
  
  /* No animations on mobile for better performance */
  .feature-card:hover, .service-card:hover, .price-card:hover,
  .team-card:hover, .case-card:hover, .career-card:hover,
  .info-card:hover, .blog-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .gallery-item img:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero section adjustments */
  #hero {
    min-height: 90vh;
  }
  
  /* Section padding adjustments */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contacts, #blog, #faq, #gallery {
    padding: 4rem 0;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 220px;
  }
  
  /* Team card image adjustments */
  .team-card img {
    width: 130px;
    height: 130px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section adjustments */
  #hero {
    min-height: 95vh;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team card image adjustments */
  .team-card img {
    width: 140px;
    height: 140px;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Hero section full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Full section padding */
  #about, #services, #features, #priceplan, #team, #reviews, 
  #casestudy, #process, #timeline, #career, #coreinfo, 
  #contacts, #blog, #faq, #gallery {
    padding: 5rem 0;
  }
  
  /* Gallery adjustments */
  .gallery-item img {
    height: 250px;
  }
  
  /* Team card image full size */
  .team-card img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form full padding */
  .contact-form {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max-width adjustments for better readability */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for larger screens */
  .section-title {
    margin-bottom: 4rem;
  }
  
  /* Gallery enhanced size */
  .gallery-item img {
    height: 280px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced gallery for very large screens */
  .gallery-item img {
    height: 300px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  #hero .container {
    display: flex;
    align-items: center;
    min-height: 80vh;
  }
}

/* Print styles */
@media print {
  #header, #footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  .card, .feature-card, .service-card, .price-card, 
  .team-card, .review-card, .case-card, .career-card, 
  .info-card, .blog-card, .faq-card {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  .btn {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #333333;
    --neutral-color: #ffffff;
    --neutral-light: #ffffff;
    --neutral-dark: #000000;
    --text-dark: #000000;
    --text-light: #333333;
  }
  
  .card, .feature-card, .service-card, .price-card, 
  .team-card, .review-card, .case-card, .career-card, 
  .info-card, .blog-card, .faq-card {
    border: 2px solid #000000 !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions on mobile */
  @media (max-width: 767.98px) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
  
  /* Reduce animations on larger screens but keep some subtle effects */
  @media (min-width: 768px) {
    .feature-card:hover, .service-card:hover, .price-card:hover,
    .team-card:hover, .case-card:hover, .career-card:hover,
    .info-card:hover, .blog-card:hover {
      transform: none;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .gallery-item img:hover {
      transform: none;
    }
    
    .btn-primary:hover {
      transform: none;
    }
  }
} 