@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Flex';
    font-style: normal;
    color: white;
}

body {
    background-color: rgb(0, 22, 54);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* hero */
#hero {
    height: 100vh;
    background-color: rgba(1, 16, 39);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#hero h1 {
    font-size: 7rem;
    color: rgb(44, 138, 219);
    margin-top: 2rem;
}

#hero h2 {
    font-family: "Agdasima";
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
    color: rgb(255, 255, 255);
    animation: digitando 2s 1s steps(24, end) forwards,
        blink 0.75s step-end infinite;
    border-right: 2px solid rgb(44, 138, 219);
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    letter-spacing: 2px;

}

@keyframes digitando {
    0% {
        width: 0;
    }

    100% {
        width: 20.1ch;
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: rgb(44, 138, 219);
    }
}

#hero .imgContainer {
    border-radius: 50%;
    height: 25vh;
    width: 25vh;
    box-shadow: 0 0 20px rgba(10, 62, 109),
        0 0 20px rgb(19, 103, 175),
        0 0 20px rgba(10, 62, 109);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .imgContainer img {
    height: 150%;
    width: 150%;
}

#hero button {
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    color: white;
    background-color: rgb(44, 138, 219);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#hero button:hover {
    background-color: rgb(30, 94, 150);
    transform: scale(1.1);
}

/* nav */

nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(1, 16, 39) 10%, rgba(1, 16, 39, .95) 50%, rgba(1, 16, 39) 90%);
    backdrop-filter: blur(10px);
    z-index: 1;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0);
    opacity: 0;
}

nav.scrolled {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#navLogo img.scrolled {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
}

nav img {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    transition: 1s;
}

nav ul li a:active {
    color: rgb(44, 138, 219);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1rem 2.5rem;
    transform: scale(0.95);
}

nav ul li a:hover {
    color: rgb(44, 138, 219);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1rem 3rem;
}

nav ul li a:visited {
    color: white;
}

nav ul li a:focus {
    outline: 2px solid rgb(44, 138, 219);
    outline-offset: 2px;
}

/* defaults */
section {
    padding: 5rem 10rem;
}

.container {
    position: relative;
    border: 3px solid rgb(59, 178, 218);
    margin: 0 auto;
    padding: 4rem;
    border-radius: 2rem;
    transition: .5s;
    cursor: default;
}

.container:hover {
    box-shadow: 0 0 20px rgba(10, 62, 109),
        0 0 20px rgb(19, 103, 175),
        0 0 20px rgba(10, 62, 109);
    transform: scale(1.02);
}

.container .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.container .containerContent {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}


.container .dot {
    height: 1.5rem;
    width: 1.5rem;
    background-color: rgb(226, 175, 32);
    box-shadow: 0 0 10px rgba(226, 175, 32, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -1rem;
    left: 2rem;
    z-index: 10;
}

/* cards de serviços */

.containerCards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    position: relative;
}

.cardInner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .cardInner {
    transform: rotateY(180deg);
}

.card .front,
.card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    border-radius: 1rem;
    background: rgba(44, 138, 219, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.card .back {
    transform: rotateY(180deg);
}

.card img {
    height: 100px;
    margin: 1rem;
    filter: invert(1);
}


.card h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.card p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

.card .front {
    text-align: center;
}

.meio {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* contato */
.contatoCard {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin-top: 1rem;
}

.contatoCard .contatoTitle {
    margin-bottom: 0;
    font-size: 1.5rem;
    padding: 0;
}

.contatoCard a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    transition: 1s;
    margin: 0;
}

.contatoCardWhatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contatoCardWhatsapp p {
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
}

.contatoCardWhatsapp button {
    margin-top: 1rem;
    padding: 1rem 5rem;
    font-size: 3rem;
    color: white;
    background-color: rgb(37, 211, 102);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contatoCardWhatsapp button:hover {
    background-color: rgb(30, 150, 75);
    transform: scale(1.2);
}

/* projetos */
.containerCardsProjects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cardProject {
    background: rgba(44, 138, 219, 0.15);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cardProject:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(10, 62, 109),
        0 0 20px rgb(19, 103, 175),
        0 0 20px rgba(10, 62, 109);
}

.cardProject img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.cardProject h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.verMais {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    color: white;
    background-color: rgb(44, 138, 219);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.verMais:hover {
    background-color: rgb(30, 94, 150);
    transform: scale(1.1);
}


#modalProjeto .cortina {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#modalProjeto .modalContent {
    background: rgba(1, 16, 39);
    padding: 2rem;
    border-radius: 1rem;
    width: 85%;
    text-align: center;
    position: relative;
}

#modalProjeto .modalContent .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#modalProjeto .meio {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

#modalProjeto .modalContent h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

#modalProjeto img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

#modalProjeto p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

#modalProjeto .list {
    text-align: left;
    margin-top: 3rem;
}

#modalProjeto ul {
    list-style: disc;
    padding-left: 1.5rem;
    text-align: left;
}

#whatsapp {
    position: fixed;
    z-index: 100;
    bottom: 20px;
    right: 20px;
    opacity: 1;
}

#whatsapp.naTela {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}


#whatsapp img {
    height: 70px;
    width: 70px;
    cursor: pointer;
}

#drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 3000;
    transform: translateX(-90%);
    display: none;
}

#drawer.open {
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

#drawer img {
    position: absolute;
    top: 20px;
    right: -30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    filter: invert(1);
}

#drawer ul {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(1, 16, 39);

    list-style: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

#drawer ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    transition: 1s;
}


@media screen and (max-width: 1300px) {

    section {
        padding: 5rem 2rem;
    }

    .container {
        padding: 2rem;
    }

    .divContainerCards {
        width: 90%;
    }

    .front,
    .back,
    .card {
        height: 250px;
        width: 30%;
        padding: 0;
    }

    .front h3 {
        font-size: 1.5rem;
    }

}


@media screen and (max-width: 1100px) {

    .containerCardsProjects {
        display: flex;
        align-items: center;
        align-items: stretch;
        height: max-content;
        gap: 1rem;
    }

    .cardProject {
        width: 30%;
        padding: 0;
        justify-content: space-between;
        padding: .5rem;
    }

    .front h3 {
        font-size: 1.5rem;
    }

}

@media screen and (max-width: 850px) {

    .front h3 {
        font-size: 1rem;
    }

    .front img {
        height: 80px;
    }

    .front,
    .back,
    .card {
        height: 150px;
        width: 27%;
        padding: 0;
    }

    #modalProjeto .meio {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        justify-content: center;
        align-items: center;
        gap: .5rem;
    }

    #modalProjeto img {
        height: 200px;
        width: auto;
        margin: 0 auto;
    }

    #modalProjeto .list {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 710px) {

    #hero h1 {
        font-size: 5rem;
    }

    #hero h2 {
        font-size: 2rem;
        width: 0;
    }

    @keyframes digitando {
        0% {
            width: 0;
        }

        100% {
            width: 22ch;
        }
    }

    .meio {
        display: flex;
        flex-direction: column;
    }

    .esquerda,
    .direita {
        width: 100%;
        align-items: center;
        gap: 2rem;
        justify-content: center;
    }


    .containerCardsProjects,
    .containerCards {
        display: flex;
        align-items: center;
        justify-content: center;
        height: max-content;
        gap: 1rem;
        flex-direction: column;
    }

    .cardProject {
        width: 90%;

        padding: 0;
        justify-content: space-between;
        padding: .5rem;
    }

    .front,
    .back,
    .card {
        height: 250px;
        width: 80%;
        padding: 0;

    }

    .front h3 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
        padding: .5rem 1rem;
    }

    nav ul li a {
        padding: .5rem;
        font-size: 1rem;
        color: red;
    }
}

@media screen and (max-width: 500px) {
    #hero h1 {
        font-size: 3rem;
    }

    #hero h2 {
        font-size: 1.5rem;
        width: 0;
    }

    @keyframes digitando {
        0% {
            width: 0;
        }

        100% {
            width: 23ch;
        }
    }


    .esquerda {
        display: flex;
        flex-direction: column;
    }

    .contatoCardWhatsapp .contatoTitle {
        font-size: 2rem;
    }

    .contatoCardWhatsapp button {
        padding: .5rem 2rem;
        font-size: 2rem;
    }

    .front h3 {
        font-size: 1rem;
    }

    nav {
        display: none;
    }

    #drawer {
        display: flex;
    }

    #modalProjeto .modalContent {
        width: 95%;
        padding: 1rem;
    }

    #modalProjeto h2 {
        font-size: 1rem;
        margin-bottom: .5rem;
    }

    #modalProjeto p,
    #modalProjeto li {
        font-size: 1rem;
    }

    #modalProjeto img {
        height: auto;
        width: 90%;
    }
}