/* Mobile First Responsive Design */

/* Mobile Styles (Default) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 100vh;
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Section padding mobile */
  .section-padding {
    padding: 40px 0;
  }
  
  /* Cards mobile */
  .service-card,
  .feature-card,
  .price-card,
  .team-card {
    margin-bottom: 20px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Process steps mobile */
  .process-step {
    padding: 1.5rem;
  }
  
  /* Team images mobile */
  .team-img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .section-padding {
    padding: 60px 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section {
    padding: 100px 0;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-section {
    padding: 120px 0;
  }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
    box-shadow: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid black;
  }
  
  .btn-primary-custom {
    border: 2px solid black;
  }
}

/* Reduced motion support */
@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;
  }
  
  .service-card:hover,
  .price-card:hover,
  .case-study-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 

.hero-section h1 {
    padding-top: 150px;
}