/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero-content {
    padding: 4rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content {
    padding: 6rem 0;
  }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
  /* Disable animations on mobile for performance */
  .service-card,
  .blog-card,
  .gallery-item img {
    transition: none;
  }
  
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Mobile navigation */
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Mobile hero adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero .col-md-6:first-child {
    order: 2;
    margin-top: 2rem;
  }
  
  #hero .col-md-6:last-child {
    order: 1;
  }
  
  /* Mobile spacing adjustments */
  section {
    padding: 3rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile form adjustments */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Mobile gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile team photos */
  .team-photo {
    height: 200px;
  }
  
  /* Mobile price cards */
  .price-card {
    margin-bottom: 2rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Mobile FAQ cards */
  .faq-card {
    margin-bottom: 1rem;
  }
  
  /* Mobile process steps */
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  /* Mobile case study cards */
  .case-card {
    margin-bottom: 2rem;
  }
  
  /* Mobile info cards */
  .info-card {
    margin-bottom: 1.5rem;
  }
}

/* Tablet Portrait Specific Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .team-photo {
    height: 220px;
  }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-resolution displays */
  .service-card,
  .team-card,
  .review-card,
  .blog-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and decorative elements */
  .navbar,
  #footer,
  .btn,
  .gallery-item,
  #hero::before {
    display: none;
  }
  
  /* Adjust colors for print */
  body {
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  /* Ensure text is readable */
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
  
  /* Remove shadows and gradients */
  .service-card,
  .team-card,
  .review-card,
  .contact-form,
  .contact-info {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  #hero {
    background: #f8f9fa;
    min-height: auto;
    padding: 2rem 0;
  }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
  /* Larger touch targets on mobile */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved form inputs on mobile */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Ultra-wide Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content {
    padding: 8rem 0;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions for users who prefer reduced motion */
  *,
  *::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,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
} 