:root {
    --primary-blue: #0F89A5;
    --secondary-blue: #22ACC0;
    --third-blue: #215EAF;
    --text-color: #E4EBEC;
    --background-color: #0C0F14;
    --hidden-color: #152031;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background-color: var(--secondary-blue);
    color: var(--background-color);
}

nav {
    width: 100%;
    display: flex;
    background-color: var(--primary-blue);
    z-index: 5;
    align-items: flex-start;
}

main {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 1em;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Josefin Sans", sans-serif;
}

#navbar {
    top: 0;
    width: 100%;
    position: sticky;
    background: transparent;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    transition: top .35s;
    z-index: 10;
}

#nav-mobile {
    display: flex;
    gap: 1em;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2em;
}

.nav-link-ani {
    display: inline-block;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    display: inline-block;
    padding: 1em .9em;
    transition: color .35s ease;
}

.nav-link-ani:hover {
    color: var(--primary-blue);
}

.nav-link-ani:after {
    content: '';
    width: 0;
    height: 3px;
    display: block;
    margin: auto;
    background: transparent;
    transition: width .35s ease, background-color .35s ease;
}

.nav-link-ani:hover:after {
    width: 100%;
    background: var(--primary-blue);
}

.hero-section {
    z-index: 1;
    max-width: 80rem;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-bottom: 15rem;
    margin-block-start: 10%;
}

.logo-background {
    flex: 1;
    display: inline-block;
    justify-content: center;
}

.meshlogo {
    width: 100%;
    height: auto;
    max-width: 45%;
    opacity: 0.75;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    margin-top: 100px;
}

.catchphrase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
    font-family: 'Orbitron', 'Josefin Sans', sans-serif;
    font-size: 2em;
    font-weight: bold;
    overflow: hidden;
}

.catchphrase span {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    z-index: 1;
    overflow: hidden;
    font-family: inherit;
}

.catchphrase span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transform: translateX(-100%);
    animation: a-ltr-after 2s cubic-bezier(.77, 0, .18, 1) forwards;
}

.catchphrase span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 2;
    transform: translateX(0);
    animation: a-ltr-before 2s cubic-bezier(.77, 0, .18, 1) forwards;
}

/* delays para dar sequência */
.catchphrase span:nth-of-type(1)::before,
.catchphrase span:nth-of-type(1)::after {
    animation-delay: 0.5s;
}

.catchphrase span:nth-of-type(2)::before,
.catchphrase span:nth-of-type(2)::after {
    animation-delay: 1s;
}

.catchphrase span:nth-of-type(3)::before,
.catchphrase span:nth-of-type(3)::after {
    animation-delay: 1.5s;
}

.catchphrase span:nth-of-type(4)::before,
.catchphrase span:nth-of-type(4)::after {
    animation-delay: 2s;
}

@keyframes a-ltr-after {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(101%);
    }
}

@keyframes a-ltr-before {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(200%);
    }
}


.purpose-text {
    max-width: 750px;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 16px;
    text-align: left;
    padding-right: 10vw;
    margin-block-start: 1em;
    margin-block-end: 2em;
    overflow: hidden;
    font-size: 1.5em;
}

.text-appear {
    animation: 2s anim-textAppear ease-out forwards;
}

@keyframes anim-textAppear {
    0% {
        opacity: 0;
        transform: translateY(80%);
    }

    20% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        transform: translateY(0%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

.highlight-box {
    background: linear-gradient(140deg, var(--secondary-blue), var(--primary-blue), var(--third-blue));
    padding: 1rem;
    width: 75%;
    margin: 2rem auto;
    box-shadow: 12px 12px 0 var(--primary-blue);
}

.highlight-box-title {
    font-family: "Orbitron", "Josefin Sans", sans-serif;
    font-weight: 800;
    font-size: 3em;
    text-align: center;
    color: var(--background-color);
}

.highlight-box p {
    font-size: 20px;
    font-weight: 500;
    color: var(--background-color);
    margin: 0;
    text-align: center;
}

.card-section {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 0;
    color: transparent;
    align-items: stretch;
}

.info-card {
    background-color: var(--hidden-color);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    height: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: 0.5em;
    flex: 1 1 0;
    transition: flex 0.4s cubic-bezier(.77, 0, .18, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-card:hover {
    background: linear-gradient(0deg, var(--primary-blue), var(--secondary-blue));
    flex: 2 1 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.info-card:hover .info-card-title {
    color: var(--background-color);
    font-family: "Orbitron", "Josefin Sans", sans-serif;
    font-size: 3em;
    font-weight: 600;
}

.info-card:hover span {
    color: var(--background-color);
    font-weight: 500;
    font-size: 1.2em;
    width: 100%;
    max-width: 350px;
    height: 100%;
    overflow: hidden;
    flex-grow: 0;
    padding-top: 2em;
}

.card-section .info-card:not(:hover) {
    flex: 1 1 0;
    z-index: 1;
}

.main-text {
    padding-top: 10em;
    font-size: 1.5em;
    line-height: 1.4;
    margin-bottom: 1em;
    align-items: center;
    display: flex;
}

button {
    font-size: 1em;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    border: transparent;
    background-color: var(--primary-blue);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
    color: var(--background-color);
    text-decoration: none;
    transition: 0.3s ease all;
    z-index: 1;
    margin: 0 auto;
}

button:before {
    transition: 0.5s all ease;
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    opacity: 0;
    content: '';
    background-color: var(--secondary-blue);
    z-index: -1;
}

button:hover,
button:focus {
    color: var(--text-color);
}

button:hover:before,
button:focus:before {
    transition: 0.5s all ease;
    left: 0;
    right: 0;
    opacity: 1;
}

button:active {
    transform: scale(0.9);
}

.first-main-text {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    padding-right: 2em;
    max-width: 750px;
}

footer {
    background: var(--primary-blue);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.25em;
    color: var(--background-color);
    clip-path: polygon(0 49%, 100% 25%, 100% 100%, 0% 100%);
    gap: 10px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 60px;
    padding-top: 10%;
    text-align: center;
}

@media (max-width: 700px) {
    main {
        padding: 0.5em;
    }

    .navbar-center {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1em;
    }

    #nav-mobile {
        flex-direction: column;
        gap: 0.5em;
        width: 100%;
        align-items: flex-start;
        padding-left: 0;
    }

    .logo-site img {
        height: 36px;
        width: auto;
        margin-bottom: 1em;
    }

    .hero-section {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
        margin-block-start: 8%;
        margin-bottom: 2em;
        padding: 0 1em;
        max-width: 100vw;
    }

    .catchphrase {
        font-size: 1.2em;
        align-items: center;
        gap: 0.3em;
        text-align: center;
    }

    .catchphrase span {
        font-size: 1em;
        padding: 0.1em 0.2em;
    }

    .purpose-text {
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        margin-right: 0;
        margin-left: 0;
        font-size: 1em;
        text-align: left;
    }

    .logo-background {
        display: none;
    }

    .mobile-text {
        display: block;
    }

    .desktop-text {
        display: none;
    }

    .card-section {
        flex-direction: column;
        gap: 1em;
        width: 100%;
        padding: 0 1;
    }

    .info-card {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .main-text {
        flex-direction: column;
        max-width: 100%;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        padding-top: 75%;
    }
}

@media (min-width: 701px) {
    .mobile-text {
        display: none;
    }

    .desktop-text {
        display: block;
    }
}