.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

@media (max-width: 1240px) {
    .categories-container {
      max-width: 1000px;
    }
  }
  
  @media (max-width: 1140px) {
    .categories-container {
      max-width: 800px;
    }
  }
  
  @media (max-width: 840px) {
    .categories-container {
      max-width: 600px;
    }
  }
  @media (max-width: 640px) {
    .categories-container {
      max-width: auto;
      margin: 1rem;
    }
  }

/* Categories section styles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 60px;
    background-color: #e67e22;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.section-title:hover h2::after {
    width: 100px;
}

.categories-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-img {
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(230, 126, 34, 0.9), transparent);
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.category-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.category-card:hover .category-description {
    height: 42px;
}

.explore-btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.category-card:hover .explore-btn {
    opacity: 1;
    transform: translateY(0);
}

.explore-btn:hover {
    background-color: #fff;
    color: #e67e22;
}

/* Counter section for category statistics */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
    background-color: #2c3e50;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-box {
    text-align: center;
    padding: 20px;
    color: #fff;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e67e22;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation for loading categories */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.3s; }
.category-card:nth-child(3) { animation-delay: 0.5s; }
.category-card:nth-child(4) { animation-delay: 0.7s; }
.category-card:nth-child(5) { animation-delay: 0.9s; }
.category-card:nth-child(6) { animation-delay: 1.1s; }

/* Animation for counter numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    opacity: 0;
    animation: countUp 1s forwards;
    animation-delay: 1.5s;
}