/* 3D-Printed Spare Parts Marketplace - Responsive Styles */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.00rem;
  }
  
  h2 {
    font-size: 1.56rem;
  }
  
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decoration {
    width: 100px;
    height: 100px;
  }
  
  .navbar-brand {
    font-size: 10px !important;
    font-size: 1.24rem;
  }
  
  .service-item,
  .about-feature,
  .feature-item,
  .priceplan-item,
  .team-member {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 2rem 1rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .service-item img {
    height: 180px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.5rem 0.75rem;
  }
  
  .service-item img {
    height: 190px;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .navbar {
    padding: 1.25rem 0;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.5rem 1rem;
  }
  
  .service-item:hover,
  .priceplan-item:hover,
  .custom-card:hover {
    transform: translateY(-8px);
  }
  
  .gallery-item img:hover {
    transform: scale(1.08);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decoration {
    width: 250px;
    height: 250px;
  }
  
  .hero-decoration:nth-child(2) {
    width: 180px;
    height: 180px;
  }
  
  .section-desc {
    max-width: 700px;
  }
}

/* XXL devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-decoration {
    width: 300px;
    height: 300px;
  }
  
  .section-desc {
    max-width: 800px;
  }
}

/* Height-specific media queries */
@media (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 120vh;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-decoration {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .custom-card,
  .service-item,
  .feature-item,
  .priceplan-item,
  .team-member,
  .review-item,
  .faq-item,
  .blog-item {
    box-shadow: none;
    border: 1px solid #dee5ea;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-card,
  .service-item,
  .feature-item,
  .priceplan-item,
  .team-member,
  .review-item,
  .faq-item,
  .blog-item {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    transform: scale(1.02);
  }
}

/* Dark mode support (if needed in future) */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-item,
  .priceplan-item,
  .custom-card {
    transform: none;
  }
  
  .service-item:hover,
  .priceplan-item:hover,
  .custom-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }
  
  .gallery-item img:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Enhance touch targets */
  .btn,
  .nav-link,
  .gallery-item a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Enhanced accessibility for screen readers */
@media (prefers-reduced-motion: reduce) {
  .hero-decoration {
    display: none;
  }
  
  .gallery-item img,
  .service-item,
  .custom-card {
    transition: none;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-decoration {
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-purple));
  }
}

/* Internet Explorer fixes */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .hero-section {
    background: var(--light-blue);
  }
  
  .custom-card,
  .service-item {
    height: auto;
    min-height: 300px;
  }
}

/* Firefox-specific optimizations */
@-moz-document url-prefix() {
  .form-control:focus {
    outline: 2px solid var(--primary-blue);
  }
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .hero-section {
      -webkit-backdrop-filter: blur(10px);
    }
    
    .navbar {
      -webkit-backdrop-filter: blur(10px);
    }
  }
} 

.hero-section h1 {
    padding-top: 175px;
}