/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Remove animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  #hero .container {
    padding: 0 1rem;
  }
  
  /* Service cards mobile stacking */
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  /* Price cards mobile */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Team member mobile */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  /* Feature items mobile */
  .feature-item i {
    font-size: 2rem;
  }
  
  .about-feature i {
    font-size: 2.5rem;
  }
  
  /* Blog cards mobile */
  .blog-card img {
    height: 150px;
  }
  
  /* Case study cards mobile */
  .case-study-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding: 1.5rem;
  }
  
  /* Career cards mobile */
  .career-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Remove animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .navbar-brand {
    font-size: 1.15rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  /* Hero section tablet */
  #hero {
    padding: 3rem 0;
  }
  
  /* Service cards tablet - 2 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards tablet */
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Team member tablet */
  .team-member img {
    width: 175px;
    height: 175px;
  }
  
  /* Gallery tablet */
  .gallery-item img {
    height: 230px;
  }
  
  /* Contact section tablet */
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full animations enabled on desktop */
  
  /* Service cards desktop - 3 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery desktop */
  .gallery-item img {
    height: 240px;
  }
  
  /* Team spacing desktop */
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full animations and spacing for large screens */
  
  .container {
    max-width: 1200px;
  }
  
  /* Hero section large */
  #hero {
    padding: 4rem 0;
  }
  
  /* Service cards large - maintain 3 columns */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery large */
  .gallery-item img {
    height: 250px;
  }
  
  /* Contact section spacing */
  .contact-form,
  .contact-info {
    padding: 3rem;
  }
}

/* Print styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
    overflow-x: hidden;
}
  
  .navbar,
  #footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000;
    --color-primary-light: #333;
    --color-primary-dark: #000;
    
    --color-secondary: #000;
    --color-secondary-light: #666;
    --color-secondary-dark: #000;
    
    --color-neutral-light: #fff;
    --color-neutral-dark: #000;
  }
  
  .btn-primary {
    background-color: #000;
    border-color: #000;
    color: #fff;
  }
  
  .btn-outline-primary {
    color: #000;
    border-color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Container responsive padding */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Section responsive padding */
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 5rem 0;
  }
}

/* Image responsive behavior */
@media (max-width: 767.98px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Bootstrap responsive overrides */
@media (max-width: 575.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col,
  [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Navbar responsive behavior */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-neutral-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-neutral-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 