/* Mobile-first responsive design for Digital Art Marketplace */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .service-card .card-img-top {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.2rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .service-card .card-img-top {
    height: 240px;
  }
  
  .contact-form {
    padding: 4rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
  
  .service-card .card-img-top {
    height: 260px;
  }
  
  .gallery-item img {
    height: 300px;
  }
  
  .blog-card .card-img-top {
    height: 220px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .service-card .card-img-top {
    height: 280px;
  }
  
  .gallery-item img {
    height: 320px;
  }
}

/* Mobile-specific styles */
@media (max-width: 767.98px) {
  /* Remove animations on mobile as per requirements */
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Adjust spacing for mobile */
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  /* Stack hero content vertically on mobile */
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Improve mobile navigation */
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
  }
  
  /* Adjust card spacing on mobile */
  .service-card,
  .team-card,
  .review-card,
  .blog-card {
    margin-bottom: 2rem;
  }
  
  /* Process and timeline items mobile layout */
  .process-item::before,
  .timeline-item::before {
    left: 10px;
    width: 30px;
    height: 30px;
  }
  
  .process-item,
  .timeline-item {
    padding-left: 3rem;
  }
  
  /* FAQ cards mobile spacing */
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Footer adjustments */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Tablet portrait specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .service-card .card-img-top {
    height: 200px;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .team-photo,
  .service-card .card-img-top,
  .gallery-item img,
  .blog-card .card-img-top {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .blog-card {
    box-shadow: none;
    border: 1px solid #cecece;
    break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations when user prefers reduced motion */
  .service-card,
  .team-card,
  .gallery-item,
  .blog-card,
  .btn-primary {
    transition: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Dark mode support (if user has dark mode preference) */

.hero-content {
    padding-top: 175px;
}