/* Virtual Craft Workshops Marketplace - Responsive Styles */

/* Mobile First - Base styles for mobile */
@media (max-width: 575.98px) {
  /* Disable animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 1.75rem;
  }
  
  #hero p {
    font-size: var(--font-size-base);
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  /* Card spacing */
  .service-card,
  .team-card,
  .blog-card,
  .case-card {
    margin-bottom: 1.5rem;
  }
  
  /* Price cards on mobile */
  .price-card.featured {
    transform: none;
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery items */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Team images */
  .team-card img {
    height: 200px;
  }
  
  /* Service images */
  .service-card img {
    height: 150px;
  }
  
  /* Footer */
  #footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  /* Navbar brand size */
  .navbar-brand {
    font-size: 1.1rem !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #hero h1 {
    font-size: 2rem;
  }
  
  .service-card img,
  .blog-card img,
  .case-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;
  }
  
  #hero h1 {
    font-size: 2.25rem;
  }
  
  .service-card img,
  .blog-card img,
  .case-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 240px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .service-card img,
  .blog-card img,
  .case-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .service-card img,
  .blog-card img,
  .case-card img {
    height: 200px;
  }
  
  .team-card img {
    height: 250px;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .navbar,
  #footer,
  .btn {
    display: none;
  }
  
  .container {
    width: auto;
    margin: 0;
    padding: 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #800080;
    --accent-color: #008000;
    --warning-color: #ff8000;
    --info-color: #0080ff;
  }
  
  .card,
  .service-card,
  .team-card,
  .blog-card,
  .case-card,
  .review-card,
  .faq-card {
    border: 2px solid #333;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
} 

body {
    overflow-x: hidden;
}