﻿.portfolio-page {
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 80px;
}

.portfolio-title {
    margin: 0 0 36px;
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.portfolio-buttons {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.portfolio-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 74px;
    background: linear-gradient(180deg, #1b1b1b 0%, #141414 100%);
    border: none;
    border-radius: 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

    .portfolio-button i,
    .portfolio-button svg {
        font-size: 28px;
        transition: transform .25s ease;
    }

    .portfolio-button:hover {
        color: #ffffff;
        transform: translateY(-4px);
        background: linear-gradient(180deg, #232323 0%, #181818 100%);
        box-shadow: 0 0 28px rgba(237, 28, 36, .28), 0 14px 36px rgba(0, 0, 0, .55);
    }

        .portfolio-button:hover i,
        .portfolio-button:hover svg {
            transform: scale(1.08);
        }

    .portfolio-button:active {
        transform: translateY(-1px);
    }

    .portfolio-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 0 32px rgba(237,28,36,.35);
    }

@media (max-width: 768px) {

    .portfolio-page {
        min-height: auto;
        padding: 60px 20px;
    }

    .portfolio-title {
        font-size: 44px;
        margin-bottom: 28px;
    }

    .portfolio-buttons {
        max-width: 100%;
    }

    .portfolio-button {
        height: 68px;
        font-size: 20px;
    }

        .portfolio-button i,
        .portfolio-button svg {
            font-size: 24px;
        }
}


/* ==========================
   Анимация появления
========================== */

.portfolio-title {
    opacity: 0;
    transform: translateY(-25px);
    animation: portfolioFadeDown .7s ease forwards;
}

.portfolio-buttons {
    opacity: 0;
    transform: translateY(25px);
    animation: portfolioFadeUp .8s ease .2s forwards;
}

.portfolio-button:nth-child(1) {
    animation-delay: .35s;
}

.portfolio-button:nth-child(2) {
    animation-delay: .5s;
}

.portfolio-button {
    opacity: 0;
    transform: translateY(18px);
    animation: portfolioButton .6s ease forwards;
}

@keyframes portfolioFadeDown {

    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolioFadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portfolioButton {

    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}