/* Art Supplies Marketplace Template - Responsive CSS */
/* Mobile-first responsive design following Bootstrap 5 breakpoints */

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are for mobile (up to 576px) */

/* ===== MOBILE STYLES (up to 575.98px) ===== */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  h3 {
    font-size: var(--font-size-lg);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  /* Navbar Brand - Conservative Size */
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  /* Section Padding Reduction */
  .section {
    padding: 3rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Team Members */
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Footer */
  .footer {
    text-align: center;
  }
  
  /* NO SCROLL ANIMATIONS ON MOBILE */
  /* Disable all animations for mobile as per requirements */
  .fade-in,
  .fade-in-up,
  .slide-in-left,
  .slide-in-right,
  .zoom-in {
    opacity: 1;
    transform: none;
  }
}

/* ===== SMALL DEVICES (576px to 767.98px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .team-member img {
    width: 175px;
    height: 175px;
  }
}

/* ===== MEDIUM DEVICES (768px to 991.98px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 95vh;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
}

/* ===== LARGE DEVICES (992px to 1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  /* Full desktop navigation spacing */
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  /* Container max width handling */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hero section for large screens */
  .hero-section::before,
  .hero-section::after {
    opacity: 0.15;
  }
  
  /* Larger cards for desktop */
  .service-card {
    padding: 2.5rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
  
  /* Enhanced gallery spacing */
  .gallery-item {
    margin-bottom: 2rem;
  }
}

/* ===== EXTRA EXTRA LARGE DEVICES (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced section padding for very large screens */
  .section {
    padding: 6rem 0;
  }
  
  .hero-section {
    padding: 0;
  }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar-collapse {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: none;
  }
  
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .card-img-top,
  .gallery-item img,
  .team-member img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #4A51CC;
    --color-secondary: #CC4471;
    --color-gray-600: #495057;
    --color-gray-700: #343A40;
  }
  
  .card {
    border: 2px solid var(--color-gray-300);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* ===== DARK MODE PREFERENCE ===== */

/* ===== FOCUS MANAGEMENT ===== */
@media (any-hover: none) {
  /* Touch devices - remove hover effects */
  .card:hover,
  .service-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn:hover {
    background-color: initial;
    border-color: initial;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
  /* Reduce complex layouts on mobile */
  .hero-section::before,
  .hero-section::after {
    display: none;
  }
  
  /* Simplify shadows on mobile */
  .card,
  .service-card,
  .contact-form {
    box-shadow: var(--shadow-sm);
  }
}


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