/* Responsive CSS - Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container-sm {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container-md {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .hero-decoration {
    width: 300px;
    height: 300px;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .team-image {
    width: 150px;
    height: 150px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-lg {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-decoration {
    width: 400px;
    height: 400px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Mobile specific styles (max-width: 767px) */
@media (max-width: 767px) {
  /* Disable animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* No animations when scrolling in mobile resolution */
  .service-card:hover,
  .blog-card:hover,
  .price-card:hover,
  .gallery-item:hover,
  .btn-primary:hover {
    transform: none !important;
  }
  
  /* Hero section mobile adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  /* Padding adjustments */
  .section-padding,
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #contact,
  #blog,
  #faq,
  #gallery {
    padding: 60px 0;
  }
  
  /* Card adjustments */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Team image mobile size */
  .team-image {
    width: 100px;
    height: 100px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  /* Gallery mobile adjustments */
  .gallery-image {
    height: 200px;
  }
  
  /* Price value mobile */
  .price-value {
    font-size: 2rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Tablet specific adjustments (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .review-card,
  .case-card {
    margin-bottom: 2rem;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .navbar,
  #footer {
    display: none;
  }
  
  .container {
    width: auto;
    margin: 0;
    padding: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  .section-padding {
    padding: 20px 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0056b3;
    --primary-green: #155724;
    --primary-purple: #6f42c1;
    --primary-orange: #fd7e14;
    --primary-pink: #e83e8c;
    --light-gray: #f8f9fa;
    --medium-gray: #495057;
    --dark-gray: #212529;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--dark-gray);
  }
}

/* Reduced transparency for better accessibility */
@media (prefers-reduced-transparency: reduce) {
  .hero-decoration {
    opacity: 0.3;
  }
  
  .hero-decoration::before {
    opacity: 0.9;
  }
}

/* Focus styles for better keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Ensure adequate spacing between interactive elements */
.btn,
.nav-link,
.form-control {
  margin: 4px;
  min-height: 44px;
  min-width: 44px;
}

/* Improve text readability */
@media (max-width: 576px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
  
  p {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }
  
  .section-padding,
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #casestudy,
  #process,
  #contact,
  #blog,
  #faq,
  #gallery {
    padding: 40px 0;
  }
} 