/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Conservative navbar brand size */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 100vh;
    padding: 60px 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Section Padding Mobile */
  section {
    padding: 50px 0;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: 20px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .contact-info {
    padding: 30px 20px;
    margin-top: 20px;
  }
  
  /* Button Adjustments */
  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Gallery Images */
  .gallery-img {
    height: 200px;
    margin-bottom: 15px;
  }
  
  /* Team Images */
  .team-img {
    height: 250px;
  }
  
  /* Blog Images */
  .blog-img {
    height: 180px;
  }
  
  /* Service Price */
  .service-price {
    font-size: 2rem;
  }
  
  /* Process Number */
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.25rem;
  }
  
  /* Footer */
  footer {
    padding: 40px 0 20px;
  }
  
  /* NO SCROLL ANIMATIONS ON MOBILE */
  .sal-animate,
  [data-sal],
  [data-sr] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .navbar-brand {
    font-size: 1.375rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .contact-form,
  .contact-info {
    padding: 35px 25px;
  }
  
  .gallery-img {
    height: 220px;
  }
  
  .team-img {
    height: 280px;
  }
  
  /* NO SCROLL ANIMATIONS ON SMALL DEVICES */
  .sal-animate,
  [data-sal],
  [data-sr] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .navbar-brand {
    font-size: 1.4375rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .gallery-img {
    height: 230px;
  }
  
  .team-img {
    height: 290px;
  }
  
  .blog-img {
    height: 190px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Standard desktop styles from main.css apply */
  
  /* Ensure full hero height on desktop */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Hover effects enabled on desktop */
  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .case-card:hover,
  .career-card:hover,
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-img:hover {
    transform: scale(1.05);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Larger spacing for XL screens */
  section {
    padding: 100px 0;
  }
  
  .hero-section {
    padding: 120px 0;
  }
}

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

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 40px 0;
  }
  
  section {
    padding: 40px 0;
  }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .gallery-img,
  .team-img,
  .blog-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  section {
    padding: 20px 0 !important;
  }
  
  .hero-section {
    min-height: auto !important;
    background: none !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none !important;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: no-preference) {
  /* Enable smooth scrolling only when motion is not reduced */
  html {
    scroll-behavior: smooth;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--black);
  }
  
  .btn-primary,
  .btn-outline-primary {
    border-width: 3px;
  }
}

/* Dark mode preferences */

.hero-content {
    padding-top: 250px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
