/* Categories Page Styles */
.categories-header {
    background: #2c3e50;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation-delay: 0.2s;
}

.header-subtitle {
    color: #ecf0f1;
    font-size: 1.4rem;
    opacity: 0;
    animation-delay: 0.4s;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pop-in {
    animation: pop-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.category-card {
    background: #d8d5d5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: #3498db;
}

.category-name {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: white;
}

.animate-slide-up {
    animation: slide-up 0.6s ease forwards;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.category-card:nth-child(1) { animation-delay: 0.2s; }
.category-card:nth-child(2) { animation-delay: 0.3s; }
.category-card:nth-child(3) { animation-delay: 0.4s; }
.category-card:nth-child(4) { animation-delay: 0.5s; }
.category-card:nth-child(5) { animation-delay: 0.6s; }
.category-card:nth-child(n+6) { animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.2rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-header {
        padding: 4rem 0;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
}