/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  section {
    padding: 50px 0;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 50px;
  }
  
  .hero-img {
    position: static;
    width: 100%;
    margin-top: 30px;
  }
  
  .about-feature {
    flex: 0 0 100%;
  }
  
  .price-item {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .team-grid,
  .services-grid,
  .features-grid,
  .blog-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .shape {
    display: none;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  section {
    padding: 60px 0;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 70px;
  }
  
  .hero-img {
    position: static;
    width: 100%;
    margin-top: 30px;
  }
  
  .about-feature {
    flex: 0 0 calc(50% - 30px);
  }
  
  .price-item {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .services-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 20px;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    height: auto;
    min-height: 80vh;
  }
  
  .hero-img {
    width: 45%;
  }
  
  .about-feature {
    flex: 0 0 calc(50% - 30px);
  }
  
  .price-item {
    flex: 0 0 calc(50% - 30px);
  }
  
  .services-grid,
  .team-grid,
  .features-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-img {
    width: 45%;
  }
  
  .team-grid,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color-4);
    cursor: pointer;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 50px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  nav ul {
    flex-direction: column;
    margin-top: 50px;
  }
  
  nav ul li {
    margin: 10px 0;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .service-item:hover,
  .about-feature:hover,
  .price-item:hover,
  .blog-item:hover,
  .btn:hover,
  .gallery-item:hover .gallery-img {
    transform: none !important;
  }
  
  .swiper-container {
    --swiper-autoplay-delay: 999999999s;
  }
} 