@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/* Bold 700, Semi Bold 600, ExtraBold 800*/
/*---------------*/
/*----Common-----*/
/*---------------*/
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    color: #959595;
    
    background-color: #202020;

    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: -0.5px;
    margin: 0;
}

img {
    max-width: 100%;
}

a {
    color: #DEDEDE;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    color: #ffffff;
}

.container{
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    font-size: 22px;
}

.subcontainer{
    max-width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;

    font-size: 18px;
    color: #FFFFFF;

    background: #9D9D9D;
    border-radius: 4px;
}

.btn:hover {
    opacity: 0.8;
}

.btn::before {
    content: "";
    width: 21px;
    height: 35px;

    background-image: url("Images/Group.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.title {
    font-weight: 700;
    font-size: 36px;
    line-height: 49px;
    text-align: center;

    color: #DEDEDE;
}

.burger-menu{
    display: none;
}


/*---------------*/
/*----HEADER-----*/
/*---------------*/

.header {
    background-color: #323232;
    backdrop-filter: blur(10px);
    padding: 0%;
}

.header .container{
    display: flex;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1px;
    transition: opacity 0.3s;
}

.header__nav {
    display: flex;
    align-items: center;
    gap:60px;
}

.header__link {
    font-weight: 700;
    font-size: 22px;
    transition: opacity 0.3s;
}


.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    filter: brightness(0) invert(1);
}
.logo-crop {
    width: 60px;
    height: 60px;
    /* 100px - 20% сверху - 20% снизу = 60px */
    overflow: hidden;
    display: inline-block;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.logo-crop img {
    width: 60px;
    height: 75px;
    display: block;
    transform: translateY(-10px);
    /* сдвиг вверх на 20% от 100px */
}

/*---------------*/
/*------MAIN-----*/
/*---------------*/



/*---------------*/
/*----WELCOME----*/
/*---------------*/

.welcome{
    margin-top: 160px;
}

.welcome .subcontainer{
    display: flex;
    justify-content: space-between;
}

.welcome__title {
    width: 550px;
    font-weight: 700;
    margin-top: 0;
    font-size: 54px;
    line-height: 1.19;
    margin-bottom: 24px;
    letter-spacing: -0.5px;

    color: #DEDEDE;
}

.welcome__text {
    width: 500px;
    margin-bottom: 88px;
}



.welcome__email{
    padding: 0;
    margin: 0;
    padding-bottom: 3px;
}

.welcome__img-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-right: 105px;
    flex-shrink: 0;
}

.welcome__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    margin-top: 0;

    object-fit: cover;
    object-position: center;

    position: relative;
    z-index: 2;
}

.ornament {
    position: absolute;
    z-index: 1;

    width: 120px;
    height: 120px;

    background-color: #DEDEDE;

    opacity: 0;

    mask-image: url("Images/ornament.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-image: url("Images/ornament.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    animation: ornamentFloat 5s ease-in-out infinite;
}

.flower,
.flower2 {
    position: absolute;
    z-index: 1;

    background-color: #DEDEDE;
    opacity: 0;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    pointer-events: none;
}

/* flowers.svg */
.flower {
    width: 140px;
    height: 140px;

    mask-image: url("Images/flowers.svg");
    -webkit-mask-image: url("Images/flowers.svg");

    animation: flowerRise 6s ease-in-out infinite;
}

/* flowers2.svg */
.flower2 {
    width: 130px;
    height: 130px;

    mask-image: url("Images/flowers2.svg");
    -webkit-mask-image: url("Images/flowers2.svg");

    animation: flowerSpinRise 7s ease-in-out infinite;
}
/* Первый flowers.svg */
.flower--1 {
    left: -45px;
    bottom: 5px;
    width: 85px;
    height: 85px;
    animation-delay: 0.4s;
}

/* Второй flowers.svg */
.flower--2 {
    right: -45px;
    bottom: 35px;
    width: 95px;
    height: 95px;
    transform: scaleX(-1);
    animation-delay: 1.8s;
}

/* Третий flowers.svg */
.flower--3 {
    left: 50%;
    bottom: -35px;
    width: 100px;
    height: 100px;
    transform: translateX(-50%);
    animation-delay: 3s;
}

/* Первый flowers2.svg */
.flower2--1 {
    left: -20px;
    top: 55px;
    width: 70px;
    height: 70px;
    animation-delay: 0.9s;
}

/* Второй flowers2.svg */
.flower2--2 {
    right: -25px;
    top: 110px;
    width: 80px;
    height: 80px;
    animation-delay: 2.4s;
}

/* Третий flowers2.svg */
.flower2--3 {
    right: 55px;
    bottom: -25px;
    width: 85px;
    height: 85px;
    animation-delay: 3.6s;
}

.ornament--1 {
    left: -45px;
    bottom: 30px;
    animation-delay: 0s;
}

.ornament--2 {
    right: -55px;
    bottom: 50px;
    transform: scaleX(-1);
    animation-delay: 0.8s;
}

.ornament--3 {
    left: 15px;
    top: -35px;
    width: 90px;
    height: 90px;
    animation-delay: 1.5s;
}

.ornament--4 {
    right: 10px;
    top: -45px;
    width: 100px;
    height: 100px;
    transform: rotate(25deg);
    animation-delay: 2.2s;
}

@keyframes ornamentFloat {
    0% {
        opacity: 0;
        translate: 0 40px;
        scale: 0.7;
    }

    25% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }

    75% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        translate: 0 -35px;
        scale: 1.05;
    }
}

@keyframes flowerRise {
    0% {
        opacity: 0;
        translate: 0 45px;
        scale: 0.75;
        rotate: -8deg;
    }

    25% {
        opacity: 0.45;
    }

    50% {
        opacity: 0.75;
        translate: 0 0;
        scale: 1;
        rotate: 4deg;
    }

    75% {
        opacity: 0.45;
    }

    100% {
        opacity: 0;
        translate: 0 -35px;
        scale: 1.08;
        rotate: 10deg;
    }
}

@keyframes flowerSpinRise {
    0% {
        opacity: 0;
        translate: 0 55px;
        scale: 0.65;
        rotate: 18deg;
    }

    30% {
        opacity: 0.35;
    }

    55% {
        opacity: 0.65;
        translate: 0 0;
        scale: 1;
        rotate: -8deg;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        translate: 0 -45px;
        scale: 1.12;
        rotate: -20deg;
    }
}
/*-----Works-----*/


.works {
    margin-top: 140px;
}

.works__btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;    
    gap: 20px;
    padding: 0;
    margin-bottom: 80px;

    background-color: transparent;
    border: none;

    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #DEDEDE;
    opacity: 0.7;

    cursor: pointer;
}


.works__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding-top: 140px;
}

.work {
    position: relative;
    display: block;
    height: 750px;
    overflow: hidden;
}


.work:nth-child(odd) {
    position: relative;
    margin-top: -140px;
}

.work__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

#work-1 {
    background-color: #FFFFE8;
}

#work-1 {
    clip-path: inset(0px 0 3px 0);
}

#work-2 {
    clip-path: inset(3px 0 3px 0);
}

#work-3 {
    clip-path: inset(3px 0 3px 0);
}

#work-4 {
    clip-path: inset(3px 0 3px 0);
}

#work-2 {
    background-color: #D4F8FA;
}

#work-3 {
    background-color: #550000;
}

#work-4 {
    background-color: #FFFFE8;
}

.work__name {
    position: absolute;
    inset: 0;
    opacity: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    font-size: 40px;
    transition: opacity 0.3s;
}

.work:hover .work__name{
    opacity: 1;
}


/*----PROJECTS------*/
.projects{
    margin-top: 200px;
}


.projects__wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 70px;
}

.projects__img {
    width: 395px;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.projects__vertical .projects__img {
    height: 560px;
}

/*Contact*/

.contact{
    margin-top: 200px;
}

.contact .subcontainer {
    margin-left: auto;
    margin-right: auto;
    width: 1020px;
    text-align: center;
}

.contact__text {
    font-size: 26px;
    margin-bottom: 50px;
    line-height: 1.46;
    text-align: center;
    letter-spacing: -0.5px;
    width: 700px;
    margin-left: auto;
    margin-right: auto;

    color: #959595;
}

.contact .title{
    margin-bottom: 24px;
        
}

.contact__btn {
    font-size: 20px;
}

/* Logo */
.logo__presentation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-svg-box,
.logo-img-box {
    width: 45%;
}

.logo__svg,
.logo__img {
    width: 100%;
    height: auto;
    display: block;
}

.logo__svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.logo__shape {
    fill: #fff;
    stroke-width: 0;
}

.logo-frame,
.guide {
    fill: none;
    stroke: #d8d0bd;
    stroke-width: 0.8;
    opacity: 0.8;
}

.logo-frame {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: frameCycle 8s linear infinite;
}

.guide {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: guidesCycle 8s linear infinite;
}

.logo-mark {
    opacity: 0;
    animation: logoCycle 8s ease-in-out infinite;
}

@keyframes frameCycle {
    0% {
        stroke-dashoffset: 100;
    }

    12% {
        stroke-dashoffset: 0;
    }

    70% {
        stroke-dashoffset: 0;
    }

    92% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

@keyframes guidesCycle {
    0% {
        stroke-dashoffset: 100;
    }

    12% {
        stroke-dashoffset: 100;
    }

    32% {
        stroke-dashoffset: 0;
    }

    68% {
        stroke-dashoffset: 0;
    }

    92% {
        stroke-dashoffset: -100;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

@keyframes logoCycle {
    0% {
        opacity: 0;
    }

    32% {
        opacity: 0;
    }

    42% {
        opacity: 1;
    }

    68% {
        opacity: 1;
    }

    78% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.color-palette {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.color-square {
    width: 44px;
    aspect-ratio: 1;
    border: 1px solid #d8d0bd;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.color-square:hover {
    transform: scale(1.08);
    border-color: #fff;
}

.color-square:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    transform: none;
}

.logo-preview {
    margin: 28px 0;
    padding: 32px 24px;
    background-color: #0B0B0B;
    text-align: center;
    transition: background-color 0.3s ease;
}

.logo-mask {
    width: 100%;
    height: 120px;
    background-color: #F7EEDA;

    mask-image: url("./Images/white.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-image: url("./Images/white.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    transition: background-color 0.3s ease;
}

.logo-preview__text {
    margin-top: 24px;
    color: #F7EEDA;
    transition: color 0.3s ease;
}

/*Footer*/

.footer {
    margin-top: 150px;
    border-top: 1px solid #696969;
    padding: 20px 0;
    
    font-size: 16px;
    letter-spacing: -0.5px;
    
}
.footer .subcontainer {
    display: flex;
    justify-content: space-between;
}

.footer__copy span {
    color: #ECECEC;
}

.socials {
    display: flex;
    align-items: center;
    gap: 40px;
}

.socials__link {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.socials__img {
    width: 40px;
    height: 40px;
    display: block;
    opacity: 0.85;
    border-radius: 50%;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.socials__link:hover {
    transform: translateY(-4px);
    background-color: #202020;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.socials__link:hover .socials__img {
    opacity: 1;
    transform: scale(1.08);
}

.logos .title {
    margin-top: 200px;
    margin-bottom: 80px;
}

/* appear */

@keyframes appear {
    from {
        opacity: 0;
        clip-path: inset(100% 100% 0 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0); 
    }
}
.block {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.work:nth-child(1){
    transition-delay: 100ms;
}
.work:nth-child(2) {
    transition-delay: 100ms;
}
.work:nth-child(3) {
    transition-delay: 100ms;
}
.work:nth-child(4) {
    transition-delay: 100ms;
}

.projects__img:nth-child(2){
    transition-delay:  400ms;
}
.projects__img:nth-child(3) {
    transition-delay: 600ms;
}
.projects__img:nth-child(4) {
    transition-delay: 200ms;
}
.projects__img:nth-child(5) {
    transition-delay: 400ms;
}
.projects__img:nth-child(6) {
    transition-delay: 600ms;
}
.projects__img:nth-child(1) {
    transition-delay: 200ms;
}

.welcome__line {
    display: block;
}

.welcome__changing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 6px solid white;

    width: 0;
    animation: typing 1.5s steps(var(--steps)) forwards,
        blink 1s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: var(--text-width);
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
/* @media */
@media(max-width: 1200px) {
    .welcome__img {
        margin-right: 0;
    }

    .work {
        height: 650px;
    }
}
@media(max-width: 1100px) {
    .welcome__img {
        margin-right: 0;
    }

    .work {
        height: 600px;
    }
}

@media(max-width: 1000px){
    .welcome .subcontainer {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 45px;
        text-align: center;
    }
    
    .welcome{
        margin-top: 70px;
    }

    .welcome__text{
        margin-bottom: 40px;
    }

    .works__btn{
        margin-top: 0;
        margin-bottom: 40px;
    }

    .work{
        height: 550px;
       
    }
    
    .work__name {
        opacity: 1;
    }

    #work-1 {
        clip-path: inset(0px 0 0px 0);
    }

    #work-2 {
        clip-path: inset(0px 0 0px 0);
    }

    #work-3 {
        clip-path: inset(0px 0 0px 0);
    }

    #work-4 {
        clip-path: inset(0px 0 0px 0);
    }

    .logo__presentation {
        flex-direction: column;
    }

    .logo-svg-box,
    .logo-img-box {
        width: 60%;
    }

    .logo-svg-box{
        display: flex;
        flex-direction: column-reverse;
    }

    .logos .title {
        margin-top: 100px;
        margin-bottom: 60px;
    }

    .projects__img:nth-child(2) {
        transition-delay: 100ms;
    }

    .projects__img:nth-child(3) {
        transition-delay: 100ms;
    }

    .projects__img:nth-child(4) {
        transition-delay: 100ms;
    }

    .projects__img:nth-child(5) {
        transition-delay: 100ms;
    }

    .projects__img:nth-child(6) {
        transition-delay: 100ms;
    }

    .projects__img:nth-child(1) {
        transition-delay: 100ms;
    }

    .ornament,
    .flower,
    .flower2 {
        display: none;
    }

    .welcome__img-wrapper {
        margin-right: 0;
    }
}


@media(max-width: 900px) {
    .work {
        height: 500px;
    }

    .welcome__title{
        font-size: 32px;
    }

    .welcome__text{
        font-size: 20px;
    }

    .socials {
        gap: 30px;
    }

    .footer__copy {
        font-size: 16px;
    }
}

@media(max-width: 850px){
    .projects__img{
        width: 350px;
        height: 350px;
    }

    .projects__vertical .projects__img {
        height: 460px;
    }
}

@media(max-width: 850px) {
    .projects__img {
        width: 350px;
        height: 350px;
    }

    .projects__vertical .projects__img {
        height: 380px;
    }

    .contact__text {
        font-size: 20px;
    }

    .footer__copy {
        font-size: 16px;
    }

    .works, .projects, .contact{
        margin-top: 100px;
    }
}

@media(max-width: 800px) 
{
    .works__wrapper {
        flex-direction: column;
        display: flex;
        padding-top: 0;
    }

    .work:nth-child(odd) {
        position: relative;
        margin-top: 0;
    }

    .contact__text{
        width: 500px;
    }

    .projects__img {
        width: 320px;
        height: 320px;
    }

    .projects__vertical .projects__img {
        height: 350px;
    }

    #work-1 {
        clip-path: inset(0px 1px 0px 1px);
    }

    #work-2 {
        clip-path: inset(0px 1px 0px 1px);
    }

    #work-3 {
        clip-path: inset(0px 1px 0px 1px);
    }

    #work-4 {
        clip-path: inset(0px 1px 0px 1px);
    }
}

@media(max-width: 750px){
    .footer__copy{
        font-size: 16px;
    }

    .socials{
        gap: 10px;
    }

        
}

@media(max-width: 700px) 
{
    .footer .subcontainer{
        flex-direction: column-reverse;
        align-items: center;
    }

    .socials {
        gap: 35px;
    }
    .projects__img {
        width: 280px;
        height: 280px;
    }
 
    .projects__vertical .projects__img {
        height: 300px;
    }

    .logo-svg-box,
    .logo-img-box {
        width: 80%;
    }
}

@media (max-width: 550px){
    .projects__img{
        width: 100%;
        height: 470px;
    }

    .projects__vertical .projects__img {
        height: 500px;
    }

    .contact__text{
        width: 300px;
        font-size: 18px;
    }

    .welcome__title{
        font-size: 24px;
        width: 350px;
    }

    .welcome__text{
        width: 350px;
    }

    .welcome__img-wrapper {
        width: 250px;
        height: 250px;
        margin-right: 0;
    }

    .welcome__img {
        width: 100%;
        height: 100%;
    }
}

@media(max-width:500px){
    .header{
        position: relative;
    }

    .burger-menu{
        display: block;
        background-color: transparent;
        padding: 0;
        border:  none;

        position:  absolute;
        top: 20px;
        right: 15px;
    }

    .burger-menu__icon{
        height: 22px;
        width: 30px;
        object-fit: contain;
        object-position: center;
    }

    .header--mobile .header__nav{
        display: flex;
        align-self: center;
    }

    .header--mobile .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 10px;
    }

    .header__nav{
        display: none;
    }

    .btn {
        padding: 16px 20px;
    }

    .welcome__email{
        font-size: 18px;
    }

    h2 {
        margin: 0px 10px;
    }

    .work__name{
        font-size: 28px;
    }

    .title {
        font-size: 28px;
    }

    .socials {
        gap: 20px;
    }
}