.link {
    position: relative;
    text-decoration: none;
    color: #fff;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.link:hover {
    opacity: 0.8;
}

.link:hover::after {
    width: 100%;
}