.categories {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
    justify-content: center;
    align-items: center;
}
.categories h2 {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: #333;
}

.category-link {
    background: linear-gradient(90deg, #f8fafc 0%, #e0e7ef 100%);
    color: #222;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    transition: 
        background 0.25s cubic-bezier(.4,0,.2,1), 
        color 0.2s, 
        box-shadow 0.25s cubic-bezier(.4,0,.2,1), 
        transform 0.15s;
    box-shadow: 0 2px 8px rgba(60, 72, 88, 0.07);
    margin: 0 1.2rem 1.2rem 1.2rem;
    border: 1px solid #e3e8ee;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.category-link::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(51,51,51,0.04);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.category-link:hover::after,
.category-link:focus::after {
    opacity: 1;
}

.category-link:hover, .category-link:focus {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.categories-icon{
    width: 200px;
    height: 300px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in .5s ease-in-out;
    animation-fill-mode: forwards;
}
/* fade-in animation for category-icon svg */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

