/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.375rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  #hero {
    padding-top: 5rem;
    min-height: auto;
    padding-bottom: 3rem;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 125px;
}
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card {
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .process-step {
    margin-bottom: 2rem;
  }
  
  .timeline-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile navigation adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  #hero {
    padding-top: 5rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  #hero {
    padding-top: 5.5rem;
  }
  
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  #hero {
    padding-top: 6rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  #hero {
    padding-top: 6rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 1rem 0;
    padding-top: 125px;
}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  .btn {
    border: 1px solid black;
  }
  
  .card {
    border: 1px solid black;
  }
  
  a {
    text-decoration: underline;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .row {
    page-break-inside: avoid;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .info-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none !important;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark mode considerations */

/* Container max-width adjustments for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile-specific improvements */
@media (max-width: 767.98px) {
  /* Improve touch targets */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better spacing for mobile */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
  .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
  .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Mobile-friendly forms */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better mobile gallery */
  .gallery-item {
    margin-bottom: 1rem;
  }
} 

body {
    overflow-x: hidden;
}