*,
::before,
::after{
    box-sizing: border-box;
}
body{
    background-color: rgb(65, 119, 114);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    border: 3px solid gray;
}
img{
    width: 100%;
    height: 100%;
}
h1,h2,h3{
    margin: 0;
}
/* header */

.header__logo{
    color: inherit;
    text-decoration: none;
}
/* hero */
.hero{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container{
    max-width: 1230px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
.hero__container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(290px, 1fr));
    grid-gap: 20px;
}
.hero__about{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__about img{
    width: 20%;
    height: auto;
}
.hero__title{
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 1.1;
    color: rgb(49, 49, 49);
    
}
.hero__subtitle{
    font-size: 32px;
    font-weight: 400;
    color: rgb(49, 49, 49);
}
.hero__links{
    display: flex;
}
.hero__link{
    margin-right: 10px;
    font-size: 30px;
    color: rgb(49, 49, 49);
    transition: 0.3s;
}
.hero__link:hover{
    color: rgb(0, 0, 0);
}
.hero__box{
    max-width: 500px;
    justify-self: center;
    overflow: hidden;
    /* background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); */
    /* border: 10px solid rgb(202, 202, 202); */
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.5);
    /* animation: ava-animate 5s infinite alternate; */
}
.hero__box-img{
    height: 500px;
    animation: ava-bg 3s infinite alternate;
}

@media screen and (max-width: 978px){
    .hero{
        padding-top: 30px;
    }
    .hero__container{
        grid-row-gap: 20px;
    }
    .hero__title{
        font-size: 28px;
        margin-bottom: 10px;
    }
    .hero__subtitle{
        font-size: 22px;
        font-weight: 400;
    }
    .hero__description{
        font-size: 14px;
    }
    .hero__about{
        text-align: center;
    }
    .hero__links{
        justify-content: center;
    }
    .hero__box{
        min-width: 350px;
    }
    .logo{
        display:block;
        margin:auto;
    }
}

@keyframes ava-animate{
    0%{
        border-radius: 37% 73% 48% 52% / 17% 38% 62% 83%;
    }
    40%{
        border-radius: 61% 39% 69% 31% / 51% 59% 41% 49%;
    }
    60%{
        border-radius: 40% 60% 23% 77% / 24% 49% 51% 76%;
    }
    100%{
        border-radius: 28% 72% 56% 44% / 71% 26% 74% 29%;
    }
}

@keyframes ava-bg{
    from{
        backdrop-filter: hue-rotate(0);
    }
    to{
        backdrop-filter: hue-rotate(90deg);
    }
}