* {
    box-sizing: border-box;
}

html, body {
    --border-radius: 100px;
    --gutter: 3.125vw 6.25vh;
   /* --pink: #ffd3dd;
    --purple: #cb9bde;
    --green: #81bfb7;
    --brown: #c6ece3;
    background: #f8f3ef;
    fbaca4
    ca99ab*/

    --pink: #e79796;
    --purple: #3e7eac;
    --green: #d57d6d;
    --brown: #f4efe6;

    margin: 0;
    padding: 0;
    background: white;
    color: black;
    font-size: 30px;
    font-family: "Syne", serif;
}

h1 {
    font-size: 70px;
    line-height: 1em;
    margin: 0px;
}

h2 {
    font-size: 60px;
    margin: 0px;
}

a {
    color: white;
    text-decoration: none;
}

section {
    position: relative;
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    top: 100px;
    z-index: 2;
}

section.sticky {
    position: sticky;
    margin-top: 100px;
}

section.full-screen {
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 3;
}

/* navegación */

nav {
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    font-size: 20px;
    z-index: 1;
}

nav ul {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    margin-left: 45px;
}

nav ul li a {
    color: black;
    font-family: "Space Mono", serif;
}

/* about section */

section.about .empty {
    flex-basis: 37.5vw;
    background: var(--brown);
    border-radius: var(--border-radius);
    transition: flex-basis 1s cubic-bezier(0, 0.9, 0.4, 0.99);
}

section.about article {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section.about article .title {
    color: white;
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--purple);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    transition: all 2s linear;
    transition: flex-basis 1s cubic-bezier(0, 0.9, 0.4, 0.99);
}

section.about article .description {
    font-size: 25px;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--pink);
    border-radius: var(--border-radius);
    padding: var(--gutter);
    transition: all 2s linear;
}

section.about article .title:hover {
    color: black;
    background: var(--pink);
}

section.about article .title:hover +.description {
    color: white;
    background: var(--purple);
}

section.service article {
    display: flex;
    width: 100%;
}

section.service figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 56.25vw;
    margin: 0;
    background: var(--green);
    border-radius: var(--border-radius);
    max-width: 55vw;
    transition: flex-basis 1s cubic-bezier(0, 0.9, 0.4, 0.99);
}

section.service figure img {
    width: 50%;
}

section.service .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    background: #d7cbb2;
    /*f2f3f5*/
    padding: var(--gutter);
    border-radius: var(--border-radius);
}

section.service .text a {
    font-family: "Space Mono", serif;
}

/*service section animations */

section.service figure img{
    animation-name: float;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%);
    }
}

section.service.service-tierra figure img{
    animation-name: izq-der;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes izq-der {
    0% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(10%);
    }
}

section.service.service-aire figure img{
    animation-name: rot;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-direction: reverse;
    animation-timing-function: ease-in-out;
}

@keyframes rot {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* service section overrides */

section.service.service-tierra figure{
    background: var(--green);
}

section.service-tierra .text h2,
section.service-tierra .text a{
    color: var(--brown);
}

section.service.service-agua figure{
    background: var(--purple);
}

section.service-agua .text h2,
section.service-agua .text a{
    color: var(--pink);
}

section.service.service-aire figure{
    background: var(--brown);
}

section.service-aire .text h2,
section.service-aire .text a{
    color: var(--green);
}

section.service.service-fuego figure{
    background: var(--pink);
}

section.service-fuego .text h2,
section.service-fuego .text a{
    color: var(--purple);
}

/* contact section */

section.contact {
    align-items: center;
    justify-content: center;
    background: linear-gradient(var(--purple), var(--green) 60%, var(--pink) 70%, var(--brown));
    border-radius: var(--border-radius);
    transition: background 1s cubic-bezier(0, 0.9, 0.4, 0.99);
}

section.contact a {
    font-weight: bold;
    font-size: 100px;
    color: #000000;
    transition: filter 2s cubic-bezier(0.77, 0, 0.175, 0.93);
    will-change: filter;
}

section.contact a:hover{
    /*color: #ffffff;*/
    filter: blur(10px);
}

/* responsive */

@media only screen and (max-width: 768px) {
    html, body {
        --border-radius: 50px;
        --gutter: 6.25vw;
    }

    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 40px;
    }

    nav ul li {
        margin-left: 25px;
    }

    section.service article {
        flex-direction: column;
    }

    section.service figure {
        flex-basis: 25vh;
    }

    section.service figure img {
        width: 20%;
    }
    
    section.contact a {
        font-size: 50px;
        transform: rotate(90deg);
    }
}