/* Responsive Styles for Refurbished Appliances Marketplace */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  /* No animations on mobile for performance */
  #hero::before {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover {
    transform: none;
  }
  
  #gallery img:hover {
    transform: none;
  }
  
  /* Mobile navigation */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  /* Reduced padding for mobile */
  section {
    padding: 2rem 0;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Stack team cards on mobile */
  .team-card {
    margin-bottom: 1.5rem;
  }
  
  /* FAQ mobile adjustments */
  .faq-question,
  .faq-answer {
    padding: 0.75rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #hero {
    min-height: 85vh;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .team-card img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #hero {
    min-height: 90vh;
  }
  
  .service-card img {
    height: 190px;
  }
  
  .team-card img {
    height: 230px;
  }
  
  /* Enable hover effects on tablets and up */
  .service-card:hover {
    transform: translateY(-3px);
  }
  
  .team-card:hover {
    transform: translateY(-2px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #hero {
    min-height: 95vh;
  }
  
  .service-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  #hero {
    min-height: 100vh;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  /* Full hover effects on large screens */
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
  
  #gallery img:hover {
    transform: scale(1.05);
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #006400;
    --accent-color: #ff8c00;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 2px solid #000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  #hero::before {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  #gallery img:hover {
    transform: none;
  }
} 

body {
    overflow-x: hidden;
}