.section.stack {
    padding: 40px 0;
    text-align: center;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    width: 83%;
    gap: 15px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.stack-group {
    padding: 15px;
    text-align: center;
}

.stack-group.full-width {
    width: 100%;
}

.stack-group.half-width {
    width: 49%;
}

.stack-group h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    color: #f3f4f6;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.stack-item {
    background-color: transparent;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 10px 5px;
    width: 95px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.stack-item:hover {
    transform: scale(1.05);
}

.stack-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

.stack-item span {
    font-size: 0.85rem;
    color: #d1d5db;
}

@media (max-width: 1100px) {
    .stack-item {
        width: 70px;
    }

    .stack-item img {
        width: 30px;
        height: 30px;
    }

    .stack-item span {
        font-size: 0.6rem;
        color: #d1d5db;
    }

    .stack-group h3 {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 10px;
        font-weight: 700;
        color: #f3f4f6;
    }

    .stack-group.half-width {
        width: 100%;
    }
}
