/* 3D-Printed Kitchen Gadgets Store - Responsive Styles */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Section padding reduction */
  section {
    padding: 50px 0;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.8rem 0;
    margin: 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Card spacing adjustments */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Service cards mobile layout */
  .service-img {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Price cards mobile adjustments */
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  /* Team photos smaller on mobile */
  .team-photo {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }
  
  /* Process steps mobile layout */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Contact form mobile adjustments */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Blog images smaller */
  .blog-img {
    height: 150px;
    font-size: 2rem;
  }
  
  /* FAQ cards mobile spacing */
  .faq-card {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Gallery items mobile adjustments */
  .gallery-item {
    height: 200px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Footer adjustments */
  #footer {
    text-align: center;
    padding: 40px 0 20px;
  }
  
  /* Remove animations on mobile to improve performance */
  .animate-fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  /* Section padding */
  section {
    padding: 60px 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 90vh;
  }
  
  /* Service cards layout */
  .service-card,
  .feature-card {
    margin-bottom: 2rem;
  }
  
  /* Price card featured effect reduced */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Gallery items */
  .gallery-item {
    height: 220px;
  }
  
  /* Remove complex animations on small devices */
  .animate-fade-in {
    animation-duration: 0.3s !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography fine-tuning */
  h1 {
    font-size: 2.1rem;
  }
  
  /* Section padding */
  section {
    padding: 70px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 95vh;
  }
  
  /* Cards layout adjustments */
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery items */
  .gallery-item {
    height: 240px;
  }
  
  /* Contact form layout */
  .contact-form {
    padding: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard desktop styles - most styles from main.css apply here */
  
  /* Hero shapes visible */
  .hero-shape {
    display: block;
  }
  
  /* Cards in proper grid layout */
  .feature-card,
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery items */
  .gallery-item {
    height: 250px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full desktop experience with all features */
  
  /* Typography can be slightly larger */
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  /* Section padding full */
  section {
    padding: 80px 0;
  }
  
  /* Hero full height */
  #hero {
    min-height: 100vh;
  }
  
  /* All decorative elements visible */
  .hero-shape {
    display: block;
  }
  
  /* Cards with full spacing */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  /* Featured price card full effect */
  .price-card.featured {
    transform: scale(1.05);
  }
  
  /* Gallery items full size */
  .gallery-item {
    height: 260px;
  }
  
  /* Contact form full padding */
  .contact-form {
    padding: 2.5rem;
  }
  
  /* Full animations enabled */
  .animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Enhanced experience for very large screens */
  
  /* Container max-width adjustment for better readability */
  .container {
    max-width: 1320px;
  }
  
  /* Typography enhanced */
  h1 {
    font-size: 2.4rem;
  }
  
  /* Section padding enhanced */
  section {
    padding: 100px 0;
  }
  
  /* Cards enhanced */
  .feature-card,
  .service-card,
  .price-card {
    padding: 2.5rem;
  }
  
  /* Gallery items enhanced */
  .gallery-item {
    height: 280px;
  }
  
  /* Hero shapes enhanced */
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 250px;
    height: 250px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  section {
    padding: 40px 0;
  }
  
  /* Disable animations in landscape mobile for performance */
  .animate-fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

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

/* Print styles */
@media print {
  /* Hide non-essential elements for printing */
  #header,
  #footer,
  .hero-shape,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  /* Optimize for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove parallax effects */
  .hero-shape {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase border visibility */
  .feature-card,
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid var(--text-dark);
  }
  
  /* Increase text contrast */
  p, .section-subtitle, .section-desc {
    color: var(--text-dark);
  }
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
  outline: 3px solid var(--primary-mint);
  outline-offset: 2px;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Increase touch target sizes */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


body {
    overflow-x: hidden;
}