/* Responsive Design for Yarn Dyeing Tutorials */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
  .hero h1 {
    font-size: 3.13rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.64rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-sm {
    padding: 40px 0;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1.13rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .team-member img {
    width: 150px;
    height: 150px;
  }
  
  .process-step::after {
    display: none;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
}

/* Small devices - Mobile (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  /* Disable Swiper autoplay and effects on mobile as per requirements */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-wrapper {
    transition-duration: 0ms !important;
  }
  
  /* General mobile styles */
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.10rem;
    margin-bottom: 1.10rem;
  }
  
  .hero p {
    font-size: var(--font-size-base);
    margin-bottom: 1.75rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-sm {
    padding: 30px 0;
  }
  
  /* Conservative font sizes for mobile */
  h1 {
    font-size: 1.86rem;
  }
  
  h2 {
    font-size: 1.65rem;
  }
  
  h3 {
    font-size: 1.29rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  .navbar-brand {
    font-size: 1.15rem !important;
  }
  
  .service-card {
    padding: 1.25rem;
    margin-bottom: 1.75rem;
  }
  
  .service-card img {
    height: 150px;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-amount {
    font-size: 2.10rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.29rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .case-card img {
    height: 200px;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .feature-item i {
    font-size: 2.64rem;
  }
  
  /* Mobile navigation improvements */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    margin-top: 1.13rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.86rem;
  }
  
  h1 {
    font-size: 1.70rem;
  }
  
  h2 {
    font-size: 1.50rem;
  }
  
  h3 {
    font-size: 1.30rem;
  }
  
  .navbar-brand {
    font-size: 1.02rem !important;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .price-card {
    padding: 1.25rem 0.75rem;
  }
  
  .price-amount {
    font-size: 1.86rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.02rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .review-card {
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .feature-item i {
    font-size: 2.10rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .case-card img {
    height: 150px;
  }
  
  .blog-card img {
    height: 120px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .hero-shape {
    animation: none;
  }
  
  .service-card,
  .feature-card,
  .price-card,
  .case-card,
  .blog-card {
    transition: none;
  }
  
  .gallery-item img {
    transition: none;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .feature-card:hover,
  .price-card:hover,
  .case-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .faq-question {
    padding: 1rem 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
}