@charset "UTF-8";

h1 {
    line-height: 1;
}

/* title */
.title {
    padding: 136px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.first_name {
    text-shadow: 1px 1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, -1px -1px 0 #333;
    color: #eee;
}

.portfolio {
    margin-right: 24px;
}

.container {
    padding: 0 24px 24px;
}

.kv {
    height: 180px;
    background: url(../img/top_kv.jpg)center bottom no-repeat;
    background-size: cover;
}

@media screen and (min-width:600px) {
    .title {
        padding: 120px 24px 16px;
    }

    .container {
        padding: 0 20px;
    }

    .portfolio {
        margin-right: 0;
    }

    .kv {
        height: 520px;
    }
}


/* WORKS */
.works {
    margin: 48px;
}

.works_title {
    display: flex;
    align-items: flex-end;
}

.works_title h2 {
    padding-right: 8px;
}

.works_title p {
    padding-bottom: 10px;
    font-size: .8rem;
    color: #555;
}

.card {
    padding: 24px 0;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 0 0;
}

@media screen and (min-width:600px) {
    .works {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 80px 48px;
    }


    .wrap {
        max-width: 800px;
        padding-top: 48px;
        display: flex;
        flex-wrap: wrap;
        align-content: space-between;
        gap: 3%;
        position: relative;
    }

    .works_title {
        position: absolute;
        top: 0;
        left: 0;
    }

    .works_title h2 {
        padding-right: 24px;
    }

    .works_title p {
        padding-bottom: 16px;
    }

    .card {
        width: 48.5%;
        padding-top: 40px;
    }

    .card img {
        max-width: 100%;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.8rem;
    }

}


/* about */
.about a {
    display: block;
    background-color: #333;
    padding: 120px 0;
}

.about span {
    color: #eee;
    margin-left: 24px;
}

.about h2 {
    font-family: "Manrope";
    font-size: 2.4rem;
    color: #eee;
    margin-left: 24px;
}

@media screen and (min-width:600px) {
    .about a {
        padding: 180px 0;
    }

    .about a:hover {
        opacity: 1;
    }


    .about span {
        margin-left: 80px;
        font-size: .8rem;
    }

    .about h2 {
        margin-left: 80px;
        font-size: 1.6rem;
    }

    .link-text {
        display: inline;
        position: relative;
        z-index: 1;
    }

    .link-text:after {
        animation-name: under-line;
        animation-duration: .3s;
        animation-fill-mode: forwards;
        content: '';
        position: absolute;
        left: 0;
        width: 0%;
        bottom: -8px;
        height: 1px;
        background: #eee;
        z-index: -1;
    }

    @keyframes under-line {
        0% {
            width: 0%;
        }

        100% {
            width: 100%;
        }
    }
}