/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* No animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-section::before {
    display: none;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .service-card,
  .team-card,
  .price-card,
  .casestudy-card {
    margin-bottom: 1.5rem;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .navbar-brand {
    font-size: 1.125rem !important;
  }
  
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .footer {
    padding: 2rem 0 1rem 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .team-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
}

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

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 100px 0;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 175px;
}
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 568px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover {
    transform: none;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !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(--ocean-blue);
    outline-offset: 2px;
  }
}

/* Dark mode support (if preferred) */
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
