/* Responsive Design - Mobile First Approach */

/* Mobile Devices (up to 575px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* Hero Section */
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
    text-align: center;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-card,
  .review-card,
  .case-study-card,
  .pricing-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team Grid */
  .col-lg-2-4 {
    width: 50%;
    margin-bottom: 2rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Process Steps */
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Metric Cards */
  .metric-number {
    font-size: 2.5rem;
  }
  
  /* Buttons */
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Gallery adjustments */
  .gallery .col-6 {
    margin-bottom: 1rem;
  }
  
  /* Contact info stacking */
  .contact-info-item {
    margin-bottom: 2rem;
  }
  
  /* NO ANIMATIONS ON MOBILE SCROLL - Required by rules */
  * {
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .case-study-card:hover,
  .pricing-card:hover {
    transform: none !important;
  }
  
  /* Remove hover effects on mobile */
  .gallery img:hover {
    transform: none !important;
  }
}

/* Small tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .col-lg-2-4 {
    width: 33.333333%;
  }
  
  .team-member img {
    width: 110px;
    height: 110px;
  }
  
  /* Reduce animations on small tablets */
  .feature-card:hover,
  .service-card:hover,
  .case-study-card:hover,
  .pricing-card:hover {
    transform: translateY(-2px) !important;
  }
}

/* Medium tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-lg-2-4 {
    width: 50%;
  }
  
  .hero-section {
    padding-top: 110px;
  }
  
  /* Adjust card spacing */
  .feature-card,
  .service-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Large tablets and small desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-lg-2-4 {
    width: 20%;
  }
  
  /* Adjust container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
  }
  
  /* Enhanced spacing for large screens */
  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    padding-top: 80px;
    padding-bottom: 20px;
  }
  
  .space-section {
    margin-top: 60px;
    min-height: 50vh;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on retina displays */
  .service-card img,
  .case-study-card img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  .hero-section {
    padding-top: 0;
    background: white !important;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* Accessibility - Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .feature-card,
  .service-card,
  .case-study-card,
  .pricing-card,
  .gallery img,
  .btn {
    transition: none !important;
    transform: none !important;
  }
  
  html {
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  /* Touch devices */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
  }
}

/* Container width adjustments for better mobile experience */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Navbar adjustments for mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
  .row .col-md-6 {
    margin-bottom: 1rem;
  }
  
  #contact .row .col-md-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
  #gallery .col-6 {
    padding: 0.25rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  #gallery .col-md-4 {
    padding: 0.5rem;
  }
}

/* Service cards responsive adjustments */
@media (max-width: 767.98px) {
  .service-card .card-img-top {
    height: 150px;
  }
  
  .service-card .card-body {
    padding: 1rem;
  }
}

/* Pricing cards mobile adjustments */
@media (max-width: 767.98px) {
  .pricing-card .card-header {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  .pricing-card .price {
    font-size: 1.5rem;
  }
} 

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