@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: "Poppins", sans-serif;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, .05);
    -webkit-border-radius: 20px;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 20px;
    border-radius: 20px;
    background: #777777;
}

h1 {
    /*color: #0e0e0e;*/
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(90deg, rgba(0,76,131,1) 0%, rgba(109,68,187,1) 31%, rgba(57,15,54,1) 100%);
    text-align: center;
    margin: 0;
    font-size: 60px;
    font-weight: 500;
    line-height: 60px;

    @media only screen and (min-width: 768px) {
        font-size: 116px;
        line-height: 116px;
    }
}

h2 {
    text-align: center;
    color: #0e0e0e;
    font-size: 24px;
    line-height: 28px;

    @media only screen and (min-width: 768px) {
        font-size: 28px;
        line-height: 34px;
    }
}

.hero-section {
    position: relative;
}

.hero-section__video-container {
    opacity: 0.4;
    height: 100vh;
    justify-content: center;
    align-items: flex-end;
    display: flex;
}

.hero-section__video-background {
    display: block;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-section__video-background > video {
    vertical-align: baseline;
    display: inline-block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
    background-position: 50%;
    background-size: cover;
    margin: auto;
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: -100%;
    right: -100%;
    background-image: url('./video-bg.png');
}

.hero-section__info {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 24px;
    flex-direction: column;
    align-items: center;
    display: flex;
    pointer-events: none;

    @media only screen and (min-width: 768px) {
        gap: 60px;
    }
}

.hero-section__info--bottom {
    top: unset;
    bottom: 0;
}

.hero-section__subtitle {
    max-width: 60ch;
    text-align: center;
    color: #0e0e0e;
    font-size: 20px;
    line-height: 24px;

    @media only screen and (min-width: 768px) {
        font-size: 22px;
        line-height: 34px;
    }
}

.hero-section__subtitle--big {
    font-size: 36px;
    line-height: 44px;

    @media only screen and (min-width: 768px) {
        font-size: 30px;
        line-height: 34px;
    }
}

.hero-section__featured-block {
    gap: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    display: flex;

    @media only screen and (min-width: 768px) {
        gap: 32px;
    }
}

.hero-section__featured-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.works-section {
    background-color: #fefaf7;
    padding: 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 24px;

    @media only screen and (min-width: 768px) {
        padding: 140px 64px;
        grid-template-columns: 1fr 1fr;
        grid-gap: 64px;
    }
}

.works-section__link {
    display: block;
    text-decoration: none;
    outline: none;
}

.works-section__link > img {
    width: 100%;
    height: auto;
    transition: all 300ms;
}

.works-section__link:hover > img {
    transform: scale(1.1);
}

.footer {
    background-color: #fff;
}

.footer__contact-block {
    height: 100vh;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
}

.footer__contact {
    grid-row-gap: 32px;
    flex-direction: column;
    align-items: center;
    display: flex;
    position: relative;
    top: -40px;
}

.footer__title {
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(90deg, rgba(0,76,131,1) 0%, rgba(109,68,187,1) 31%, rgba(57,15,54,1) 100%);
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    line-height: 48px;

    @media only screen and (min-width: 768px) {
        font-size: 60px;
        line-height: 60px;
    }
}

.footer__contact-me {
    color: #0e0e0e;
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;

    @media only screen and (min-width: 768px) {
        gap: 48px;
    }
}

.footer__social-link {
    text-decoration: none;
    outline: none;
    width: 64px;
    height: 64px;
}

.footer__social-link > img {
    width: 64px;
    height: 64px;
    transition: all 300ms;
}

.footer__social-link:hover > img {
    transform: scale(1.2);
}

.footer__copyright {
    opacity: 0.7;
    color: #454545;
    text-align: center;
    font-size: 16px;
    padding-top: 0;
    padding-bottom: 24px;
    margin: 0;
}

.hero-section--full {
    position: relative;
    height: 100vh;
    justify-content: center;
    align-items: flex-end;
    display: flex;
}

.hero-section--image {
    background-image: url('./3d/3d-bg.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-section--image-3d {
    position: relative;
    justify-content: center;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;

    @media only screen and (min-width: 768px) {
        margin-bottom: 200px;
    }
}

.hero-section--image-3d > .hero-section__info--bottom{
    display: none;

    @media only screen and (min-width: 768px) {
        display: flex;
    }
}

.hero-section--image-cover,
.hero-section--second-image {
    width: 100%;
    height: auto;
}

.hero-section--pillow {
    background-color: #ffffff;
    opacity: 0.75;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.works-section__description {
    text-align: center;
    color: #0e0e0e;
    font-size: 18px;
    line-height: 20px;

    @media only screen and (min-width: 768px) {
        font-size: 22px;
        line-height: 28px;
    }
}

.hero-section__back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0;
    line-height: 0;

    @media only screen and (min-width: 768px) {
        top: 64px;
        left: 64px;
    }
}

.hero-section__back-btn > img {
    width: 40px;
    height: 40px;
    transition: all 300ms;
    background-color: #ffffff;
    border: 4px solid #ffffff;
    border-radius: 50%;

    @media only screen and (min-width: 768px) {
        width: 64px;
        height: 64px;
    }
}

.hero-section__back-btn:hover > img {
    transform: scale(1.2);
}
