/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section */
  #hero {
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section padding */
  .section {
    padding: 3rem 0;
  }
  
  /* Cards spacing */
  .service-card,
  .feature-card,
  .team-card,
  .review-card,
  .case-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  /* Service images */
  .service-image {
    height: 150px;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 100px;
    height: 100px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimizations for retina displays */
  .service-image,
  .blog-image,
  .gallery-item,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 90vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative,
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .price-card.featured {
    transform: none;
  }
}

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
  }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 

body {
    overflow-x: hidden;
}

.hero-content {
    padding-top: 100px;
}