.tech-categories-container {
    width: 100%;
}

.tech-categories-header {
    font-weight: 600;
    font-size: 40px;
    line-height: 100%;
    text-align: center;
    color: var(--text-main);
    padding-bottom: 40px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 24px), 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card {
    background-color: #E7E7E7;
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    aspect-ratio: 0.95;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    padding: 28px 0 0 20px;
}

.category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    /*padding: 28px 0 0 50px;*/
}

.card-header {
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.top-section-subtitle {
    color: #444444;
    margin-bottom: 11px;
    display: block;
    font-weight: 300;
    font-size: 18px;
    line-height: 100%;

}

.top-section-title {
    color: #4C4C4CA6;
    margin: 0;
    font-weight: 800;
    font-size: 32px;
    line-height: 100%;
}

.image-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 75%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.category-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    transform: scale(1) rotate(0deg) translate(0, 0);
}

/*.category-card:hover .top-section-title {*/
/*    color: var(--text-main);*/
/*    font-weight: 700;*/
/*}*/

.category-card:hover .category-image {
    transform: scale(1.4) rotate(15deg) translate(5%, 5%);
}

@media (max-width: 1600px) {
    .tech-categories-header {
        font-size: 32px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(25% - 12px), 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 18px 0 0 13px;
    }

    .top-section-subtitle {
        margin-bottom: 2px;
        font-size: 16px;
    }

    .top-section-title {
        font-size: 20px;
    }

    .category-card:hover {
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
        /*padding: 38px 0 0 40px;*/
    }
}

@media (max-width: 1279px) {
    .tech-categories-header {
        font-size: 28px;
        padding-bottom: 28px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(25% - 24px), 1fr));
        gap: 24px;
    }

    .category-card {
        padding: 12px 0 0 10px;
    }

    .top-section-subtitle {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .top-section-title {
        font-size: 18px;
    }

    .category-card:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
        /*padding: 20px 0 0 30px;*/
    }
}

@media (max-width: 1023px) {
    .tech-categories-header {
        font-size: 24px;
        padding-bottom: 26px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(25% - 20px), 1fr));
        gap: 20px;
    }

    .category-card {
        padding: 8px 0 0 8px;
        border-radius: 12px;
    }

    .top-section-subtitle {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .top-section-title {
        font-size: 14px;
    }

    .category-card:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
        /*padding: 16px 0 0 20px;*/
    }
}

@media (max-width: 768px) {
    .tech-categories-header {
        font-size: 20px;
        padding-bottom: 21px;
        text-align: left;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 4px), 1fr));
        gap: 8px 7px;
    }

    .top-section-subtitle {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .category-card {
        height: 157px;
        width: 100%;
    }
}

@media (max-width: 374px) {
    .tech-categories-header {
        font-size: 18px;
        padding-bottom: 27px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 4px), 1fr));
        gap: 8px;
    }

    .top-section-subtitle {
        font-size: 10px;
    }

    .category-card {
        height: 154px;
    }
}