









.btn-section {
    /* margin-top: 96px; */
    padding: 96px 0 120px 0;
}

.btn-wrapper {
    
}

.btn-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 72px;

}

.btn-transition{
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn:focus {
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);

}

.btn {
    font-family: "Roboto", sans-serif;  
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--primary-brand, #4D5AE5);
    background-color: var(--light, #F4F4FD);
    cursor: pointer;
    border-radius: 4px;
    padding: 12px 24px;
    border: 1px solid var(--accent, #e7e9fc);
}

.btn:hover {
    color: var(--white-background, #FFFFFF);
    background-color: var(--pressed-state, #404BBF);
    border: 1px solid transparent;
}

.btn:focus {
    color: var(--white-background, #FFFFFF);
    background-color: var(--pressed-state, #404BBF);
    border: 1px solid transparent;
}

.portfolio-list {
    display: flex;
    row-gap: 48px;
    flex-wrap: wrap;
    column-gap: 24px;
    gap: 24px;
}

.portfolio-item {
    width: calc((100% - 48px) / 3);
    

}

.portfolio-link{
    display: block;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.portfolio-link:hover,
.portfolio-link:focus{
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 2px 1px rgba(46, 47, 66, 0.08);
}

.portfolio-wrapper {
    /* padding-bottom: 32px; */
}

.photo-wrapper {
    position: relative;
    overflow: hidden;
}

.overlay-text{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 32px;
    transform: translateY(100%);
     color: var(--light, #F4F4FD);
     font-size: 16px;
     font-weight: 400;
     line-height: 1.5;
     letter-spacing: 0.02em;

     background-color: #4d5ae5;

    
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-wrapper:hover .overlay-text, 
.photo-wrapper:focus .overlay-text {
    transform: translateY(0%);
}

.portfolio-wrapper {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

.portfolio-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--dark, #2E2F42);
    /* padding-bottom: 8px; */
    margin-bottom: 8px;
}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--text, #434455);

}

