:root {
    --color-h2: #ffffff;
    --color-btn: #2086EB;
    --color-text: #ffffff;
    --bg: #0d111d;
    --card-color: #1a1f2e;
    --font-size: 0.8vw;
    --font-size-projects: 1.2vw;
}

html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--bg);
    box-sizing: border-box;
    overflow-x: hidden;
}

header {
    background-color: var(--bg);
    padding: 0.3vw 7vw;
    position: fixed;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    width: 100vw;
    z-index: 1000;
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;

    .material-symbols-outlined {
        color: var(--color-text);
    }
}

.logo img {
    width: 10vw;
}

.navbar-mobile {
    display: none;

    .material-symbols-outlined {
        color: var(--color-text);
    }
}

.navbar {
    display: flex;
    position: fixed;
    justify-content: center;
    width: 100vw;
    gap: 4vw;
    left: 0;
}

.navbar a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: ease-in-out 0.3s;
}

.navbar a:hover {
    color: var(--color-btn);
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.btn {
    background-color: var(--color-btn);
    color: var(--color-text);
    padding: 0.2vw 0.8vw;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    z-index: 999999;
}

.title {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 1.5vw;
    margin-top: 10vw;
}

.home-image img {
    width: 30vw;
}


.container {
    display: flex;
    justify-content: space-around;
    max-width: 90vw;
    height: 100vh;
    margin: auto;
    align-items: center;
}

#inicio {
    height: 100vh;
    justify-content: space-between;

    .container {
        width: 80vw;

    }
}

.container-cards {
    display: flex;
    justify-content: space-around;
    max-width: 90vw;
    height: 100vh;
    margin: auto;
    align-items: center;
}


#servicos_,
#aplicacoes_,
#metodologia_ {
    scroll-margin-top: 15vh;
}

#aplicacoes {
    display: grid;
    grid-template-columns: repeat(3, minmax(20vw, auto));
    gap: 2vw;
    justify-content: center;
    width: 90%;
    margin: 5vw auto;
    height: auto;
}

.card_project {
    display: flex;
    background-color: var(--card-color);
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 25vw;
    padding: 2vw 0;
    border-radius: 0.5vw;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card_project:hover {
    box-shadow: 1px 7px 10px rgba(0, 157, 230, 0.5);
    transform: translateX(0) scale(1.05);

    .project-btn{
        width: 75%;
    }
}

.projeto-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 2vw;
    font-size: var(--font-size-projects);
}


.projeto-text p {
    line-height: 2vw;
    text-align: center;
    width: 90%;
    font-size: 1vw;
}

.btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.project-btn {
    background-color: var(--color-btn);
    width: 70%;
    font-size: 1vw;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.5vw;
    border: none;
    border-radius: 0.3vw;
    padding: 0.5vw;
    font-weight: bold;
    transition: ease-in-out 0.2s;
}


.projeto-img {
    width: 20vw;
    text-align: center;
}

.card_project img {
    width: 20vw;
}


.home-text h2 {
    font-size: 2vw;
    margin-bottom: 5vw;
}

.btn-primary {
    background-color: var(--color-btn);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
}

#servicos {
    display: grid;
    grid-template-columns: repeat(3, minmax(20vw, auto));
    column-gap: 2vw;
    row-gap: 3vw;
    justify-content: center;
    width: 90%;
    height: auto;
    margin: 5vw auto;

    .card {
        background-color: #1a1f2e;
        padding: 1.5rem;
        width: 25vw;
        min-height: 12vw;
        border-radius: 10px;
        text-align: left;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: ease-in-out 0.2s;
    }

    .card:hover {
        box-shadow: 1px 7px 10px rgba(0, 157, 230, 0.5);
    }

    .card h3 {
        color: var(--color-btn);
        margin-bottom: 1rem;
        font-size: 1.7rem;
    }

    .card p {
        font-size: 1.2vw;
        color: #cfcfcf;
    }

}

span {
    color: var(--color-btn);
}

/* ------------------------------------------------------- */

#metodologia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    margin: 5vw auto;
    max-width: 80vw;
}

.etapa {
    background-color: #141a28;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
    width: 20vw;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


#metodologia .etapa:nth-child(-n+3) {
    margin-top: 0;
}


#metodologia .etapa {
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#metodologia.show .etapa {
    opacity: 1;
    transform: translateX(0);
}

#metodologia.show .etapa:nth-child(1) {
    transition-delay: 0.1s;
}

#metodologia.show .etapa:nth-child(2) {
    transition-delay: 0.3s;
}

#metodologia.show .etapa:nth-child(3) {
    transition-delay: 0.5s;
}

#metodologia.show .etapa:nth-child(4) {
    transition-delay: 0.7s;
}

#metodologia.show .etapa:nth-child(5) {
    transition-delay: 0.9s;
}

#metodologia.show .etapa:nth-child(6) {
    transition-delay: 1.1s;
}


.etapa:hover {
    box-shadow: 1px 7px 10px rgba(0, 157, 230, 0.5);
    transform: translateY(-10px);
}

.etapa .icone {
    width: 70px;
    height: 70px;
    color: white;
    font-size: 3vw;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etapa h3 {
    color: var(--color-btn);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.etapa p {
    color: #cfcfcf;
    font-size: 1rem;
    line-height: 1.4rem;
}


/* ----------------------------------------------------------- */


.footer {
    display: flex;
    justify-content: center;
    background-color: #0d111d;
    padding: 1rem 0;
    text-align: center;
    bottom: 0;
}

.footer p {
    color: #cfcfcf;
    font-size: 0.9rem;
}

/* ANIMACAO CSS=========================================== */

.hidden {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-100%);
    transition: all 2s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition: all 2s;
}


/* -------------------------------------------------------- */

.sobe-desce {
    animation: flutuar 4s ease-in-out infinite;
}

@keyframes flutuar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }

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

/* -------------------------------------------------------- */


.card {
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}


#servicos .card {
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#servicos.show .card {
    opacity: 1;
    transform: translateX(0);
}

#servicos.show .card:nth-child(1) {
    transition-delay: 0.1s;
}

#servicos.show .card:nth-child(2) {
    transition-delay: 0.3s;
}

#servicos.show .card:nth-child(3) {
    transition-delay: 0.5s;
}

#servicos.show .card:nth-child(4) {
    transition-delay: 0.7s;
}

#servicos.show .card:nth-child(5) {
    transition-delay: 0.9s;
}

#servicos.show .card:nth-child(6) {
    transition-delay: 1.1s;
}

/* -------------------------------------------------------- */

#aplicacoes .card_project {
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#aplicacoes.show .card_project {
    opacity: 1;
    transform: translateX(0);
}

#aplicacoes.show .card_project:nth-child(1) {
    transition-delay: 0.1s;
}

#aplicacoes.show .card_project:nth-child(2) {
    transition-delay: 0.3s;
}

#aplicacoes.show .card_project:nth-child(3) {
    transition-delay: 0.5s;
}

#aplicacoes.show .card_project:nth-child(4) {
    transition-delay: 0.7s;
}

#aplicacoes.show .card_project:nth-child(5) {
    transition-delay: 0.9s;
}

#aplicacoes.show .card_project:nth-child(6) {
    transition-delay: 1.1s;
}

#aplicacoes.show .card_project:nth-child(7) {
    transition-delay: 1.3s;
}

#aplicacoes.show .card_project:nth-child(8) {
    transition-delay: 1.5s;
}

#aplicacoes.show .card_project:nth-child(9) {
    transition-delay: 1.7s;
}



/* ==================== VERSAO MOBILE ==================== */

@media (max-width: 930px) {

    :root {
        --font-size: 3.5vw;
        --font-size-projects: 4vw;
    }

    body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;

    }


    header {
        display: none;
    }

    .logo {
        width: 100%;
        padding: 0 2vw;
        justify-content: space-between;

        span {
            font-size: 9vw;
        }
    }


    .logo img {
        width: 40vw;
    }

    .navbar {
        display: none;
    }

    .navbar-mobile {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 10vw;
        background-color: var(--bg);
        opacity: 0.98;
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 100;

        span {
            position: fixed;
            top: 3vw;
            right: 3vw;
            font-size: 10vw;
        }

        a {
            text-decoration: none;
            color: var(--color-text);
            font-weight: bold;
            font-size: 5vw;
        }

    }


    .home-image {
        display: flex;
        align-items: center;
        height: 50vh;
    }

    .home-image img {
        width: 80vw;

    }

    .etapa .icone {
        font-size: 12vw;
    }

    .etapa {
        background-color: #1a1f2e;
        border-radius: 10px;
        width: 80vw;
    }

    #inicio {
        height: 100vh;
        justify-content: space-between;

        .container {
            gap: 5vw;
            flex-direction: column-reverse;
            text-align: center;
            height: 90vh;
            padding: 5vh 0;
        }

        .home-text {
            line-height: 12vw;
            height: 60%;

        }

        .home-text h2 {
            font-size: 6vw;
            margin-bottom: 8vw;
        }

        .btn-primary {
            font-size: 4vw;
            padding: 1rem 2rem;
        }
    }

    .title {
        font-size: 5vw;
        margin: 10vw 0 2vw;
    }


    #aplicacoes {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95%;
        gap: 5vw;

        .card_project {
            width: 80vw;
            border-radius: 10px;
        }
    }

    #aplicacoes img {
        width: 70vw;
    }


    #servicos {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95%;
        height: auto;
        gap: 5vw;

        .card {
            background-color: #1a1f2e;
            padding: 1.5rem;
            width: 90%;
            height: auto;
            border-radius: 10px;
        }

        .card h3 {
            color: var(--color-btn);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .card p {
            font-size: 3vw;

        }

    }

    .container-cards {
        flex-direction: column;
        height: auto;
    }

    .projeto-img {
        width: 100%;
        height: 100%;
    }

    .card_project img {
        width: 90vw;
    }


    .projeto-text {
        width: 100%;
        text-align: center;
    }


    .projeto-text p {
        width: 100%;
        font-size: 1.4rem;
        line-height: 2rem;
        text-align: center;
    }

    #metodologia {
        padding: 0;
        margin: 5vw auto;
        gap: 5vw;
    }

    .btn-container {
        width: 100%;
        margin: 2rem 0;
        justify-content: center;
    }

    .project-btn {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    /* ---------------------------------------------------------- */

    .footer p {
        font-size: 0.8rem;
        text-align: center;
        padding: 0 1rem;
    }

    /* .card_project:hover {
        box-shadow: none;
        transform: none;

        .project-btn {
            width: 70%;
        }
    } */


}