/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .custom-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
  
  /* No animations on mobile */
  * {
    transition: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation: none !important;
    transform: none !important;
    transition-property: none !important;
    animation-iteration-count: 0 !important;
  }
  
  .custom-card,
  .service-card,
  .team-card,
  .price-card,
  .gallery-item,
  .blog-card,
  .btn-primary,
  .social-link {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
  }
  
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .btn-primary:hover,
  .social-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-section::before {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .custom-card {
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Disable animations on small devices as well */
  * {
    transition: none !important;
    animation-duration: 0s !important;
    animation: none !important;
    transform: none !important;
  }
  
  .custom-card,
  .service-card,
  .team-card,
  .price-card,
  .gallery-item,
  .blog-card,
  .btn-primary,
  .social-link {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
  }
  
  .custom-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .gallery-item:hover,
  .blog-card:hover,
  .btn-primary:hover,
  .social-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
  
  .custom-card {
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    padding: 0 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1200px;
  }
  
  .hero-section h1 {
    font-size: 3.2rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Landscape orientation specific */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Disable animations on landscape mobile */
  @media (max-width: 767.98px) {
    * {
      transition: none !important;
      animation: none !important;
      transform: none !important;
    }
  }
}

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

/* Print styles */
@media print {
  .hero-section,
  .navbar,
  footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .custom-card,
  .service-card,
  .price-card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ffffff;
    --secondary-color: #ffffff;
    --accent-color: #ffffff;
    --highlight-color: #ffffff;
    --neutral-color: #ffffff;
    --primary-dark: #000000;
    --secondary-dark: #000000;
    --accent-dark: #000000;
    --highlight-dark: #000000;
    --neutral-dark: #000000;
    --text-light: #000000;
    --border-light: #000000;
  }
  
  .custom-card,
  .service-card,
  .price-card,
  .team-card,
  .blog-card,
  .faq-card {
    border: 2px solid #000000;
  }
} 

.hero-content {
    padding-top: 225px;
}

/* Mobile-specific prefers-reduced-motion override */
@media (max-width: 767.98px) {
  @media (prefers-reduced-motion: no-preference) {
    * {
      animation-duration: 0s !important;
      animation-delay: 0s !important;
      transition-duration: 0s !important;
      animation: none !important;
      transition: none !important;
    }
  }
}