@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root {
    --black: #373737;
    --sect1: #ff9900;
    --sect2: #2196F3;
    --sect3: #e63232;
    --sect4: #8BC34A;
    --sect5: #8946ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    transition: all 0.5s ease 0s;
    font-family: 'Varela Round', varela;
}

body:after {
    content: "";
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: var(--black);
    font-size: 1rem;
    padding: 0px 0;
}

header {
    width: 100%;
}

nav {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 65px;
    background: linear-gradient(0deg, #fff0 0px, var(--black) 1px 100%);
    text-align: center;
    display: flex;
    transition: all 0.5s ease 0s;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 16px 10px;
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 1.5rem;
    border: 0px solid;
    border-top-width: 0px;
    border-bottom-width: 1px;
}

nav a:first-child {
    border-left-width: 0;
}

nav a:last-child {
    border-right-width: 0;
}

nav a:hover {
    background: linear-gradient(90deg, var(--clr) 0 50%, var(--black) 0 100%);
    background-size: 200%;
    background-position: 100% 0;
    animation: colorize 0.5s ease 0s;
    animation-fill-mode: forwards;
    transition: all 0.5s ease 0s;
}

@keyframes colorize {
    100% { background-position: 0 0; }
}

nav a:nth-child(1):hover {
    --clr: var(--sect1);
}
nav a:nth-child(2):hover {
    --clr: var(--sect2);
}
nav a:nth-child(3):hover {
    --clr: var(--sect3);
}
nav a:nth-child(4):hover {
    --clr: var(--sect4);
}
nav a:nth-child(5):hover {
    --clr: var(--sect5);
}

nav:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20vw;
    width: 20%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(90deg, var(--sect1) 0 calc(20vw - 3px), var(--sect2) 0 calc(40vw - 6px), var(--sect3) 0 calc(60vw - 10px), var(--sect4) 0 calc(80vw - 13px), var(--sect5) 0 100vw);
    animation: progress linear;
    animation-timeline: scroll(root);
}

@keyframes progress {
    99% { width: 140%; }
}

section {
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #fff;
    padding-top: 30px;
    border-bottom: 4px solid #000;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

section h2, section p {
    margin: 0;
    width: 100%;
    text-align: center;
}

section p {
    font-size: 1.95rem;
    margin: 0 10%;
}

#quemsomos {
    background-color: var(--sect1);
}

#oquemaistemos {
    background-color: var(--sect2);
}

#paraquemserve {
    background-color: var(--sect3);
}

#comotrabalhamos {
    background-color: var(--sect4);
}

#comocontratar {
    background-color: var(--sect5);
}

/* .scroller {
    position: fixed;
    width: 30px;
    height: 50px;
    background: radial-gradient(ellipse at 50% 33%, #fff0 0 3px, #fff 4px 100%);
    top: calc(50vh - 15px);
    right: 10px;
    border-radius: 20px;
}

.scroller:before {
    content: "";
    position: absolute;
    width: 30px;
    height: 50px;
    background: radial-gradient(circle at 50% 33%, #fff0 0 6px, #fff 7px 100%);
    border-radius: 20px 20px;
    left: 0;
    bottom: 0;
}

.scroller span {
    position: absolute;
    height: 30px;
    border-left: 5px dotted #fff;
    top: -50px;
    left: 13px
}

.scroller span + span {
    top: inherit;
    top: 70px;
}

.scroller span:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 4px solid #fff;
    border-color: #fff #fff #fff0 #fff0;
    border-radius: 4px;
    transform: rotate(-45deg);
    left: -11px;
    top: -13px;
}

.scroller span + span:before {
    border-color: #fff0 #fff0 #fff #fff ;
    top: 28px;
} */

/* Estilo para dispositivos móveis
@media screen and (max-width: 767px) {
    nav a { font-size: 1.25rem; line-height: 2rem; }
    .scroller:after { content: ""; display: none; }
    body { font-size: 16px; }
} */
