* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 0;
    margin: 0;
    cursor: none;

}

.cursor {
    width: 50px;
    height: 50px;
    position: fixed;
    z-index: 10;
    pointer-events: none;
}

.cursor::after {
    content: '';
    width: 100%;
    height: 100%;
    border: 1px solid #222b36;
    border-radius: 50%;
    box-sizing: border-box;
    display: block;
}

.cursor.expand {
    transform: scale(1.5);
    opacity: 0.5;
}

strong {
    font-weight: bold;
}
#canvas {
    filter: url("#goo");
    height: 90%;
    width: 90%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

#blot {
    height: 0;
    width: 0;
    position: absolute;
    z-index: -1;
}

.header {
    margin: 0 auto;
    position: sticky;
    top: 0;
    min-height: 120px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    flex-direction: column;
    background-color: #ffffff;
}

.navbar {
    min-height: 110px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 70px;
}

.navbar:hover {
    color: #151414;
}

.header-icon {
    color: rgb(0, 0, 0, 0.9);
    justify-self: flex-start;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.header-icon-link {
    display: block;
    background-color: transparent;
    text-align: center;
    width: 160px;
    padding: 0;
    margin: 10px;
    list-style-type: none;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    color: rgba(0, 0, 0, 0.9);
    position: relative;
    transition: color 0.3s ease;
}

.header-icon-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #292b31;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.header-icon-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-icon-link:hover {
    color: #717070;
}

.btn-header-logo {
    justify-self: center;
    transform: none;
    position: relative;
    color: #717070;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-header-logo:hover {
    border: 1px solid #292b31;
    border-bottom: none;
}

.logo {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    border: 0 solid transparent;
    border-bottom: none;
}

.logo::before {
    content: "";
    position: absolute;
    display: block;
    height: 43px;
    width: 1px;
    right: 0;
    bottom: -3px;
    background: #292b31;
    transition: left 5s cubic-bezier(0, 0, 1, 1);
    transform: rotate(27deg);
    zoom: 1;
    transform-origin: 0 0;
}

.logo::after {
    position: absolute;
    content: "";
    display: block;
    width: 43px;
    height: 1px;
    left: 1px;
    background: #292b31;
    -ms-transform: rotate(63deg);
    transform: rotate(63deg);
    transform-origin: 0 0;
}

#line {
    position: fixed;
    left: 0;
    top: 110px;
    width: 0;
    height: 5px;
    background-color: #ffffff;
    border-bottom: 2px solid #151414;
}

section {
    height: 50vh;
    flex-direction: row;
    align-items: flex-end;
    display: flex;
}

article {
    background-color: white;
    padding: 10px;
    text-align: left;
    height: 450px;
    flex: 4 4;
}

.navbar-background-image {
    width: 150px;
    height: 310px;
    background-position: 55%;
    background-size: cover;
    border: 1px solid #292b31;
    border-radius: 100px;
    margin-top: 0;
    margin-bottom: 37px;
    margin-left: 50px;
    padding-top: 0;
    position: relative;
    background-image: url('images/13.jpg');
}

.title-navbar-text {
    color: #110d0d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    position: relative;
    margin-left: 0;
    padding-left: 205px;
    padding-right: 60px;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
}

.title-navbar-text:after {
    content: " TALK?";
    animation: underlineText 4s ease-in-out infinite;
}

@keyframes underlineText {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
        opacity: 0;
    }
}

.contact {
    cursor: pointer;
    display: flex;
    align-items: center;
}

#contact-btn {
    position: relative;
    display: block;
    background-color: transparent;
    text-align: center;
    width: 160px;
    margin: 10px;
    padding: 0;
    list-style-type: none;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transition: color 0.3s ease;
}

#contact-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #292b31;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

#contact-btn:hover::after,
#contact-btn:focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#contact-btn:hover,
#contact-btn:focus {
    color: #717070;
}

#contact-container {
    display: none;
    position: absolute;
    z-index: 1;
    overflow-y: scroll;
    width: calc(100% - 20px);
    max-width: 100%;
    height: 100vh;
    top: 100%;
    right: 0;
    transition-duration: 1.5s;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    transition: transform 0.3s ease;
}

.text-contact {
    margin: 0 0 200px 0;
    font-size: 54px;
    font-weight: 300;
    width: 550px;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.close-contact {
    border: none;
    font-size: 2rem;
    background: none;
    color: #292b31;
    position: relative;
    cursor: pointer;
    width: 35px;
    height: 73px;
    right: 80px;
}

.close-contact:hover,
.close-contact:focus {
    color: #717070;
}

#contact-container::-webkit-scrollbar {
    width: 8px;
}

#contact-container::-webkit-scrollbar-thumb {
    background: rgb(180, 175, 175);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
}

.text-container {
    padding: 30px;
}

.wrapper-contacts {
    display: flex;
    flex-direction: column;
    min-height: 40vh;
}

.contacts {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.title-contacts {
    width: calc(50% - 70px);
    padding: 45px;
    box-sizing: border-box;
    font: inherit;
}

.contacts-address {
    width: calc(50% - 70px);
    padding: 20px;
    box-sizing: border-box;
    font: inherit;
}

.topic {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.linkedin, .github {
    display: block;
    margin-bottom: 10px;
}

.linkedin, .github {
    text-decoration: none;
    color: #292b31;
}

.linkedin:hover,
.github:hover {
    text-decoration: underline;
    color: #717070;
}

.stars-container {
    display: flex;
    align-items: center;
    width: 40%;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

#stars {
    flex: 1;
    background-image: url('images/8.jpg');
    width: 150px;
    position: relative;
    min-height: 500px;
    background-size: cover;
    -webkit-transition: all 0.8s ease-in-out;
    -moz-transition: all 0.8s ease-in-out;
    -ms-transition: all 0.8s ease-in-out;
    -o-transition: all 0.8s ease-in-out;
    transition: all 0.8s ease-in-out;
}

#stars:hover {
    background: #000;
}

.container {
    display: flex;
    align-items: flex-start; /* вирівнюємо по верхньому краю */
    padding: 20px;
    border-top: 1px solid black;
    max-width: 1600px;
    margin: 0 auto;
}

.down-button {
    flex: 0 0 auto; /* кнопка не розтягується */
    margin-right: 15px; /* відступ справа від кнопки до тексту */
    margin-top: 5px; /* вирівнювання по вертикалі з першим рядком */
}

#scroll-down-button {
    color: white;
    background-color: #000;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 8px 15px;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 300;
    cursor: pointer;
    min-width: 10vh;
    white-space: nowrap;
}

#scroll-down-button:hover {
    color: black;
    background-color: #fff;
}

.some-text {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-align: justify;
    max-width: 1000px;
    margin: 0;
}


.wrapper-projects {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    grid-auto-rows: 211px;
    grid-gap: 57px;
    margin-left: 100px;
    padding: 50px;
}

.box {
    position: relative;
    max-width: 460px;
    display: grid;
    border: 1px solid #151414;
    grid-column: span 1;
    grid-row: span 2;
    height: 510px;
    padding: 5px;
    margin: 10px;
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.block {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #110d0d;
    line-height: 12px;
    text-align: center;
    width: 120px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
    padding: 8px 15px;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 300;
}

.image-wide {
    position: absolute;
    object-fit: contain;
    justify-self: center;
    margin-left: 5px;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
}

.img-project {
    width: 409px;
    height: 226px;
}


.text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.title-box {
    margin: 0 0 2px 25px;
    font-weight: bold;
    font-size: 1rem;
}

.text-details {
    text-align: left;
    padding-left: 10px;
    font-size: 0.7rem;
    margin: 10px;
    color: #151414;
}

.github-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.project-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #292b31;
    font-size: 12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid #110d0d;
}


.project-link:hover {
    background-color: #110d0d;
    color: white;
}

.project-link-visit {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #292b31;
    font-size: 12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid #110d0d;
    position: relative;
}

.project-link-visit:hover {
    background-color: #110d0d;
    color: white;
}

.project-link-visit .hover-text {
    display: none;
}

.project-link-visit:hover .original-text {
    display: none;
}

.project-link-visit:hover .hover-text {
    display: block;
}

footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 33px;
    text-align: center;
    width: 100%;
}

.box-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.meet {
    font-size: 1.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    color: white;
    margin: 0;
}

.social-icons {
    display: flex;
    padding: 2rem 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 20px;

}

.fa-github, .fa-linkedin {
    color: #717070;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    transition: all 0.5s ease-in-out;
}

.fa-github:hover, .fa-github:focus,
.fa-linkedin:hover, .fa-linkedin:focus {
    color: #ffffff;
}

.cv {
    padding: 10px;
    margin-top: -20px;
    border-bottom: 1px solid #717070;
    border-top: 1px solid #717070;
}

#download-cv-btn {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    cursor: pointer;
    border: 1px solid #110d0d;
    border-radius: 2px;
    margin-bottom: 0;
    padding: 14px 55px;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 300;
    display: inline-block;
    transition: all 0.5s ease-in-out;
}

#download-cv-btn:hover, #download-cv-btn:focus {
    color: black;
    background-color: #ffffff;
}

.copyright {
    display: block;
    max-width: 800px;
    color: white;
    white-space: pre-wrap;
    font-size: 15px;
    margin-top: 0;
}

@media screen and (max-width: 576px) {
    .header {
        min-height: 120px;
    }

    .row {
        margin-left: 20px;
        grid-gap: 20px;
        padding: 10px;
    }

    .title-navbar-text {
        font-size: 2rem;
        margin-bottom: 80px;
    }

    .text-contact {
        font-size: 0.7rem;
    }

    .some-text {
        max-width: 100%;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .down-button {
        margin-left: 50px;
    }

    footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .box {
        max-width: 100%;
        height: auto;
    }

    .img-project {
        width: 100%;
        height: auto;
    }
    video{
        width: 60%;
        height: auto;
        margin: 0 auto;
    }

    .stars-container {
        width: 100%;
    }
    .text-details{
        margin: 0;
    }
    .close-contact {
        left: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .down-button {
        margin-right: 0;
        margin-bottom: 10px;
        margin-top: 0;
    }
}
@media screen and (max-width: 768px) {
    .header {
        min-height: 120px;
        flex-direction: row;
        position: sticky;
        top: 0;
        background-color: #ffffff;
        z-index: 100;
    }

    .navbar {
        justify-content: center;
        height: auto;
        min-height: auto;
        padding: 5px;
        overflow: hidden;
    }

    .header-icon {
        flex-direction: column;
        align-items: center;
    }

    .header-icon-link {
        width: auto;
        margin: 5px;
    }

    .btn-header-logo {
        display: none;
    }

    .title-navbar-text {
        font-size: 1rem;
        padding-left: 160px;
        margin-bottom: 120px;
    }

    .navbar-background-image {
        margin-left: 10px;
    }

    #line {
        top: 90px
    }

    #contact-container {
        /*display: flex;*/
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        margin-right: 0;
        position: relative;
    }

    .text-contact {
        font-size: 1.6rem;
        margin-bottom: 20px;

    }

    .text {
        font-size: 0.7rem;
        display: flex;
        justify-content: center;
        text-align: center;
        margin: 40px 40px 0 40px;
    }

    .container {
        align-items: center;
    }

    .contacts {
        flex-direction: column;
        align-items: center;
    }

    .text-container {
        padding: 0;
    }

    .contacts .contacts-address {
        width: 100%;
        text-align: center;
    }

    .some-text {
        max-width: 400px;
    }

    .down-button {
        margin-left: 20px;
    }

    .box-footer {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .meet {
        margin-bottom: 20px;
    }

    .social-icons {
        margin-bottom: 20px;
    }

    .social-icons-link {
        margin: 0 10px;
    }

    .copyright {
        font-size: 10px;
        text-align: center;
    }


    .row {
        padding: 80px 0 190px 10px;
        margin-left: 0;
    }

    .box {
        max-width: calc(100% - 150px);
    }

    #scroll-down-button {
        margin-bottom: 15px;
        padding: 8px 10px;
    }

    .close-contact {
        left: 40px;
    }

    .img-project {
        width: 100%;
        height: auto;
    }

    .stars-container {
        width: 80%;
    }
    video{
        width: 70%;
        height: auto;
        margin: 0 auto;
    }
}

@media screen and (min-width: 768px) {
    .custom-cursor {
        cursor: auto;
    }
    .some-text {
        max-width: 400px;
    }

    .down-button {
        margin-left: 315px;
    }

    .close-contact {
        left: 50px;
    }
}

@media only screen and (min-width: 992px) {

    .some-text {
        max-width: 730px;
        margin: 0 auto;
    }

    .down-button {
        margin-left: 225px;
        padding: 10px;
        max-width: 158px;

    }

    .row {
        grid-gap: 85px;
        margin-left: 170px;
        padding: 20px;
    }

    .close-contact {
        left: 50px;
    }

    .box {
        max-width: 450px;
    }
}

@media only screen and (min-width: 1200px) {
    .close-contact {
        left: 50px;
    }

    .some-text {
        padding-top: 10px;
        max-width: 730px;
        margin: 0 auto;
    }

    .down-button {
        margin-left: 552px;
        padding: 10px;
        max-width: 198px;
    }
}