/* ==========================================================================
   CARTOON AVATAR COMMISSIONS - RESPONSIVE STYLES
   ========================================================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-navbar-brand: 1.25rem;
  }

  .hero-content {
  padding-top: 100px !important;
    text-align: center;
    padding: 1rem 0;
  }

  .hero-image {
    margin-top: 2.15rem;
  }

  .section {
    padding: 40px 0;
  }

  .service-card,
  .price-card,
  .feature-item {
    margin-bottom: 1.70rem;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  .contact-form {
    padding: 2rem 1rem;
  }

  .navbar-brand {
    font-size: var(--font-size-navbar-brand);
  }

  .gallery-item img {
    height: 200px;
  }

  .blog-image {
    height: 150px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-content {
  padding-top: 100px !important;
    text-align: center;
  }

  .service-card {
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .price-card {
    max-width: 350px;
    margin: 0 auto 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-content {
  padding-top: 100px !important;
    text-align: left;
  }

  .hero-image {
    text-align: right;
  }

  .service-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .service-card {
    flex: 1;
    min-width: 300px;
  }

  .team-member {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
  }

  .gallery-item {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .service-card {
    min-width: 280px;
  }

  .team-member {
    width: 30%;
    margin-right: 3%;
  }

  .gallery-item {
    width: 31%;
    margin-right: 2%;
  }

  .blog-card {
    width: 31%;
    display: inline-block;
    margin-right: 2%;
  }

  .price-card.featured {
    transform: scale(1.1);
  }

  .price-card.featured:hover {
    transform: scale(1.1) translateY(-10px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .service-card {
    min-width: 300px;
  }

  .gallery-item {
    width: 23%;
    margin-right: 2%;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile-specific rules for Swiper (autoplay/effects disabled on mobile <768px) */
@media (max-width: 767.98px) {
  .swiper {
    overflow: visible;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    width: 100% !important;
    margin-bottom: 1.13rem;
  }
  
  /* Disable swiper autoplay and effects on mobile */
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Tablet landscape adjustments */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }

  .section {
    padding: 60px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-image,
  .team-photo,
  .gallery-item img,
  .blog-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .service-card,
  .price-card,
  .team-member {
    page-break-inside: avoid;
    margin-bottom: 23.00px;
  }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .swiper {
    scroll-behavior: auto;
  }
  
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}



/* Focus improvements for accessibility */
@media (min-width: 768px) {
  .navbar-nav .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover {
    transform: none;
  }
  
  .btn-primary {
    padding: 15px 35px;
    font-size: var(--font-size-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 15px 20px;
  }
} 