/* Responsive Design Enhancements */

/* Extra Large Devices (xl - 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.58rem;
  }
  
  .section-title {
    font-size: 2.63rem;
  }
  
  .section-subtitle {
    font-size: 1.36rem;
  }
}

/* Large Devices (lg - 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-content h1 {
    font-size: 2.88rem;
  }
  
  .hero-content h2 {
    font-size: 1.53rem;
  }
}

/* Medium Devices (md - 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-collapse {
    background: rgba(41, 98, 20, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.32rem;
  }
  
  .hero-content h2 {
    font-size: 1.29rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .gallery-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Devices (sm - 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .hero-content p {
    font-size: 1.09rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.77rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.29rem;
  }
  
  .service-card img,
  .blog-card img {
    height: 180px;
  }
  
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .price-card .price {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Extra Small Devices (xs - up to 575px) */
@media (max-width: 575px) {
  .container-fluid {
    padding: 0 15px;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    margin-bottom: 2rem;
    padding-top: 150px;
}
  
  .hero-content h1 {
    font-size: 1.78rem;
    margin-bottom: 1.03rem;
  }
  
  .hero-content h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.99rem;
  }
  
  .hero-image img {
    border-radius: 10px;
    max-width: 280px;
  }
  
  .navbar {
    padding: 0.3rem 0;
  }
  
  .navbar-brand {
    font-size: 1.22rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.02rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    text-align: center;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.61rem;
    margin-bottom: 0.85rem;
  }
  
  .section-subtitle {
    font-size: 0.98rem;
    margin-bottom: 0.78rem;
  }
  
  .section-description {
    font-size: 0.93rem;
    margin-bottom: 2rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .feature-card,
  .process-card,
  .timeline-card,
  .career-card,
  .info-card,
  .case-card,
  .review-card {
    margin-bottom: 1.74rem;
    padding: 1.5rem;
  }
  
  .service-card img,
  .blog-card img {
    height: 160px;
  }
  
  .service-card h4,
  .price-card h4,
  .team-card h4,
  .feature-card h4,
  .process-card h4,
  .timeline-card h4,
  .career-card h4,
  .info-card h4,
  .case-card h4,
  .blog-card h4 {
    font-size: 1rem;
  }
  
  .service-card p,
  .price-card p,
  .team-card p,
  .feature-card p,
  .process-card p,
  .timeline-card p,
  .career-card p,
  .info-card p,
  .case-card p,
  .blog-card p,
  .review-card p {
    font-size: 1.00rem;
  }
  
  .team-card img {
    width: 80px;
    height: 80px;
  }
  
  .process-number {
    width: 35px;
    height: 35px;
    font-size: 1.01rem;
  }
  
  .price-card .price {
    font-size: 1.95rem;
  }
  
  .service-price {
    font-size: 1.37rem;
  }
  
  .feature-card i,
  .info-card i {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
  
  .contact-form .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 1.04rem;
  }
  
  .btn-submit {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .contact-info p {
    font-size: 0.96rem;
  }
  
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .gallery-item {
    aspect-ratio: 4/3;
  }
  
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 0.98rem;
  }
  
  .footer p {
    font-size: 0.96rem;
  }
  
  .footer-bottom {
    margin-top: 1.57rem;
    padding-top: 0.96rem;
  }
  
  .footer-bottom small {
    font-size: 0.87rem;
  }
}

/* Portrait Orientation for Mobile */
@media (max-width: 575px) and (orientation: portrait) {
  .hero-section {
    min-height: 60vh;
  }
  
  .gallery-item {
    aspect-ratio: 3/2;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.92rem;
  }
  
  .hero-content h2 {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-card img,
  .team-card img,
  .blog-card img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .feature-card:hover,
  .process-card:hover,
  .timeline-card:hover,
  .career-card:hover,
  .info-card:hover,
  .case-card:hover,
  .review-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-submit:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .contact-form,
  .footer {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .feature-card {
    box-shadow: none;
    border: 1px solid #d9d9d9;
    page-break-inside: avoid;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .feature-card,
  .process-card,
  .timeline-card,
  .career-card,
  .info-card,
  .case-card,
  .review-card,
  .blog-card {
    transition: none;
  }
  
  .contact-form .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-submit {
    min-height: 44px; /* Minimum touch target size */
  }
}

/* Dark Mode Support (if user has dark mode preference) */