/* Mobile First Responsive Design */

/* Mobile Devices - Portrait (320px to 575px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile per requirements */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  
  :root {
    --section-padding: 2rem 0;
  }
  
  /* Typography adjustments for mobile */
  h1, .h1 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.75rem;
  }
  
  h3, .h3 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile adjustments */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Service cards stacked */
  .service-card,
  .team-card,
  .review-card,
  .price-card,
  .blog-card,
  .career-card,
  .casestudy-card {
    margin-bottom: 1rem;
  }
  
  /* Price plan specific mobile fixes */
  #priceplan .col-md-6 {
    width: 100%;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Process steps mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery items mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Blog grid mobile */
  .blog-card img {
    height: 150px;
  }
}

/* Small devices - Landscape phones (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card,
  .team-card,
  .review-card {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices - Tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: translateY(-0.25rem);
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Two columns for services on tablets */
  .services-grid .col-md-6:nth-child(odd) {
    padding-right: 0.75rem;
  }
  
  .services-grid .col-md-6:nth-child(even) {
    padding-left: 0.75rem;
  }
}

/* Large devices - Desktops (992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  /* Full hover effects on larger screens */
  .service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  }
  
  .team-card:hover {
    transform: translateY(-0.25rem);
  }
  
  .blog-card:hover {
    transform: translateY(-0.5rem);
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  .btn-primary:hover {
    transform: translateY(-0.125rem);
  }
  
  .price-card:hover {
    transform: translateY(-0.5rem);
  }
  
  /* Price plan section improvements */
  #priceplan .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  
  #priceplan [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Three columns for better layout */
  .services-grid .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Better spacing for larger screens */
  .section-padding {
    padding: 5rem 0;
  }
}

/* Extra large devices - Large desktops (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 0;
  }
  
  /* Enhanced decorative shapes for large screens */
  .hero-section::before,
  .hero-section::after {
    opacity: 0.08;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  /* Larger hero content on very large screens */
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.5rem;
  }
}

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

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

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery-section {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
    color: black !important;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black !important;
    background: white !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .price-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    background: white !important;
    page-break-inside: avoid;
  }
} 

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