/* Digital Collectibles Marketplace - Responsive Styles */
/* Mobile-First Responsive Design */

/* Mobile Styles (up to 576px) */
@media (max-width: 575.98px) {
  /* NO ANIMATIONS ON MOBILE - STRICT RULE */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  /* Section Padding Reduction */
  .section {
    padding: 40px 0;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Cards Mobile Adjustments */
  .service-card,
  .review-card,
  .price-card,
  .team-card,
  .casestudy-card,
  .process-step,
  .career-card {
    margin-bottom: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .contact-info {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  /* Footer Mobile */
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  /* Form Elements Mobile */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Price Values Mobile */
  .price-value {
    font-size: 2rem;
  }
  
  /* Process Numbers Mobile */
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Mobile Menu - Using Bootstrap 5 Standard Only */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-purple);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Tablet Styles (576px to 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section {
    padding: 60px 0;
  }
}

/* Medium Devices (768px to 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
}

/* Large Devices (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
}

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

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn,
  .gallery-grid {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .review-card,
  .price-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 30px 0;
  }
}

/* Accessibility Enhancements */
@media (max-width: 768px) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Better spacing for touch */
  .card {
    margin-bottom: 2rem;
  }
  
  /* Improved readability */
  p {
    line-height: 1.7;
  }
}

/* Container Max-Width Adjustments */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Sticky Navigation on Mobile */
@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

/* Mobile Form Improvements */
@media (max-width: 576px) {
  .form-floating > .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
  }
  
  .form-floating > label {
    padding: 1rem 0.75rem;
  }
  
  .contact-form .row > .col-12 {
    margin-bottom: 1rem;
  }
}

/* Hover Effects - Disabled on Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .career-card:hover,
  .price-card:hover {
    border-color: inherit;
  }
}

/* Dark Mode Support (if system preference) */


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