/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Hero Section */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px;
  }

  /* Service Cards */
  .service-card {
    margin-bottom: 30px;
  }

  /* Footer */
  .footer [class^="col-"] {
    margin-bottom: 30px;
  }

  /* Gallery */
  .gallery-item {
    height: 200px;
  }

  /* Team Section */
  .team-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Price Card */
  .price-card.featured {
    transform: scale(1);
  }

  .price-card.featured:hover {
    transform: translateY(-10px);
  }

  /* Reviews Section */
  .swiper-button-next, 
  .swiper-button-prev {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --section-padding: 4rem 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  /* Hero Section */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  /* Gallery */
  .gallery-item {
    height: 220px;
  }

  /* Team Section */
  .team-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Price Card */
  .price-card.featured {
    transform: scale(1.02);
  }

  .price-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 4.5rem 0;
  }

  /* Gallery */
  .gallery-item {
    height: 220px;
  }

  /* Price Card */
  .price-card.featured {
    transform: scale(1.03);
  }

  .price-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Price Card */
  .price-card.featured {
    transform: scale(1.04);
  }

  .price-card.featured:hover {
    transform: scale(1.04) translateY(-10px);
  }
}

/* For all mobile devices - disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .feature-card:hover,
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .coreinfo-item:hover,
  .feature-item:hover,
  .gallery-item:hover .gallery-img {
    transform: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .swiper-container {
    --swiper-autoplay-delay: 0 !important;
  }
}

/* Ensure proper spacing in form elements on mobile */
@media (max-width: 767.98px) {
  .form-control {
    margin-bottom: 1rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  /* Reduce padding for section elements */
  [class*="-section"] {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header adjustments */
  .navbar-collapse {
    background-color: var(--primary-color-4-light);
    padding: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
  }

  /* Breadcrumb adjustments */
  .breadcrumb-section {
    margin-top: 60px;
  }

  /* Page title section */
  .page-title-section {
    margin-top: 60px;
    padding: 3rem 0;
  }
} 