/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  html, body {
    font-size: 14px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero-section {
    height: auto;
    padding: 120px 0 80px;
    text-align: center;
  }
  
  .hero-title-1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle-1 {
    font-size: 1.2rem;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .service-card, 
  .feature-item, 
  .price-card,
  .team-member,
  .coreinfo-item,
  .blog-item {
    margin-bottom: 30px;
  }
  
  .contact-info {
    margin-top: 30px;
  }
  
  .review-item {
    margin: 10px 0;
  }
  
  .footer-widget {
    margin-bottom: 30px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section-padding {
    padding: 70px 0;
  }
  
  .hero-section {
    height: auto;
    padding: 130px 0 90px;
  }
  
  .hero-title-1 {
    font-size: 2.8rem;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .service-card, 
  .feature-item, 
  .price-card,
  .team-member,
  .coreinfo-item,
  .blog-item {
    margin-bottom: 30px;
  }
  
  .contact-info {
    margin-top: 30px;
  }
  
  .footer-widget {
    margin-bottom: 30px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .hero-section {
    height: auto;
    padding: 150px 0 100px;
  }
  
  .hero-title-1 {
    font-size: 3rem;
  }
  
  .service-card, 
  .feature-item, 
  .price-card,
  .coreinfo-item {
    margin-bottom: 30px;
  }
  
  .contact-info {
    margin-top: 30px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title-1 {
    font-size: 3.2rem;
  }
}

/* Specific rules for mobile navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-toggler-icon {
    width: 24px;
    height: 17px;
    background-image: none;
    position: relative;
    border-bottom: 1px solid var(--dark-gray);
    transition: all 300ms linear;
  }
  
  .navbar-toggler-icon:after, 
  .navbar-toggler-icon:before {
    width: 24px;
    position: absolute;
    height: 1px;
    background-color: var(--dark-gray);
    top: 0;
    left: 0;
    content: '';
    z-index: 2;
    transition: all 300ms linear;
  }
  
  .navbar-toggler-icon:after {
    top: 8px;
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(45deg);
    background-color: var(--primary-3);
    height: 2px;
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: translateY(8px) rotate(-45deg);
    background-color: var(--primary-3);
    height: 2px;
  }
  
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    border-color: transparent;
  }
}

/* Animation disabled for users who prefer reduced motion */
@media (prefers-reduced-motion) {
  .animate-up {
    animation: none;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 999999999s;
  }
  
  .service-card:hover,
  .feature-item:hover,
  .price-card:hover,
  .team-member:hover img,
  .blog-item:hover,
  .blog-item:hover .blog-item-img img,
  .gallery-item:hover img,
  .footer-links li a:hover {
    transform: none;
  }
} 