:root {
    --primary: #31326f;
    --secundary: #4fb7b3;
    --accent: #637ab9;
    --terciary: #a8fbd3;
    --white: #ebebeb;
    --dark-purple: #19183b;
    --black: #0f0e0e;
    font-size: 62.5%;

    --header: var(--primary);
    --footer: var(--secundary);
    --background: var(--white);
}

* {
    box-sizing: border-box;
}

@property --gradient-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 135deg;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    font-size: 1.6rem;
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: var(--header);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 6px, rgba(0, 0, 0, 0.23) 0px 1px 6px;
    padding: 6px;
    overflow: hidden;

    h1 {
        font-family: "Oxanium", sans-serif;
        font-optical-sizing: auto;
        font-size: 4rem;
        margin: 10px;

        span {
            display: inline-block;
            animation: foguete 4s ease-in-out normal both 1s;
        }
    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 40px;
        font-size: 2rem;
        padding: 0px;

        a {
            text-decoration: none;
            color: var(--white);
            transition: color 0.3s;
            transition: text-decoration-color 0.3s 0.1s;
            text-decoration: underline 2px transparent;

            &:hover {
                /* color: var(--secundary); */
                filter: brightness(1.5);
                text-decoration-color: var(--white);
            }
        }
    }
}



footer {
    padding: 15px;
    background: var(--footer);
    width: 100%;

    p {
        text-align: center;
        font-size: 1.4rem;
        margin: 10px 0px;
        color: var(--black);
    }

    .wrapper {
        display: inline-flex;
        list-style: none;
        width: 100%;
        justify-content: center;
        padding: 0px;

        .icon {
            position: relative;
            background: #fff;
            border-radius: 50%;
            margin: 10px;
            width: 50px;
            height: 50px;
            font-size: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .tooltip {
            position: absolute;
            top: 0;
            font-size: 14px;
            background: #fff;
            color: #fff;
            padding: 5px 8px;
            border-radius: 5px;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .tooltip::before {
            position: absolute;
            content: "";
            height: 8px;
            width: 8px;
            background: #fff;
            bottom: -3px;
            left: 50%;
            transform: translate(-50%) rotate(45deg);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .icon:hover .tooltip {
            top: -35px;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .icon:hover span,
        .icon:hover .tooltip {
            text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
        }

        .facebook:hover,
        .facebook:hover .tooltip,
        .facebook:hover .tooltip::before {
            background: #1877f2;
            color: #fff;
        }

        .twitter:hover,
        .twitter:hover .tooltip,
        .twitter:hover .tooltip::before {
            background: #1da1f2;
            color: #fff;
        }

        .instagram:hover,
        .instagram:hover .tooltip,
        .instagram:hover .tooltip::before {
            background: #e4405f;
            color: #fff;
        }
    }
}

@keyframes foguete {
    from {
        transform: scale(1);
    }
    20% {
        transform: rotateZ(45deg) scale(1.5);
    }
    50% {
        transform: scale(1.5) rotateZ(45deg) translateX(70vw) translateY(-70vw);
    }
    55% {
        transform: scale(1.5) rotateZ(-45deg) translateX(9vw) translateY(-9vw);
    }
    59% {
        transform: scale(1.5) rotateZ(-45deg) translateX(9vw) translateY(-9vw);
    }
    to {
        transform: scale(1.5) rotateZ(-45deg);
    }
}

@keyframes foguete-smartphone {
    from {
        transform: scale(1);
    }
    20% {
        transform: rotateZ(45deg) scale(1.5);
    }
    50% {
        transform: scale(1.5) rotateZ(45deg) translateX(70vw) translateY(-70vw);
    }
    55% {
        transform: scale(1.5) rotateZ(-45deg) translateX(13vw) translateY(-13vw);
    }
    59% {
        transform: scale(1.5) rotateZ(-45deg) translateX(13vw) translateY(-13vw);
    }
    to {
        transform: scale(1.5) rotateZ(-45deg);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --header: linear-gradient(180deg, var(--secundary), var(--primary));
        --footer: linear-gradient(180deg, var(--dark-purple), var(--secundary));
        --background: var(--dark-purple);
    }
}

@media (max-width: 768px) {

}

@media (max-width: 480px) {
    header {
        padding: 20px;
        flex-direction: column;

        h1 span {
            animation: foguete-smartphone 4s ease-in-out normal both 1s;
        }
    }
}

@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }
}
