/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Remove animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section */
  #hero {
    min-height: 90vh;
    padding-top: 60px;
    text-align: center;
  }
  
  #hero::before {
    display: none;
  }
  
  /* Section padding */
  section {
    padding: 2rem 0;
  }
  
  /* Cards */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Price cards */
  .price-card.featured {
    transform: none;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Navbar brand */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Button adjustments */
  .btn-primary {
    padding: 0.6rem 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #hero {
    min-height: 95vh;
    padding-top: 70px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 100vh;
    padding-top: 80px;
  }
  
  .hero-image {
    max-width: 80%;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hover effects on larger screens */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  #header,
  #footer {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066CC;
    --secondary-color: #009900;
    --accent-color: #FF6600;
    --tertiary-color: #CC0000;
    --quaternary-color: #6600CC;
  }
  
  .card,
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .blog-card {
    border: 2px solid var(--dark-color);
  }
}

/* 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;
  }
  
  #hero::before {
    display: none;
  }
}

/* Dark mode support */

/* Focus management for accessibility */
@media (max-width: 767.98px) {
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.5);
  }
  
  .nav-link:focus {
    background-color: var(--primary-light);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Landscape phone adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  section {
    padding: 1.5rem 0;
  }
} 

body {
    overflow-x: hidden;
}