/* inports the poppins font from google fonts */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&display=swap');

:root {

    --main-color: #00eeff;
    --text-color: #ffffff;
    --bg-color-01: #1f242d;
    --bg-color-02: #323946;
    --color-00: #0000001a;


    /* Extra */

    --color-01: #999999;
    --color-02: #009539;
    --color-03: #7950f2;
    --color-04: #c00000;
    --color-05: #232323;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}


html {

    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

body {

    background-color: var(--bg-color-01);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem;
    background-color: var(--bg-color-01);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}


.logo {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.nav-responsivel {

    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-color-01);
}

.nav a,
.nav-responsivel a {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: 0.4s;
}

.nav a:hover,
.nav-responsivel a:hover {

    color: var(--main-color);
}

section {

    min-height: 100vh;
    padding: 6rem 6rem 2rem;
    flex-wrap: wrap;
    /* adicionado*/
}

span {

    color: var(--main-color);
}

.home,
.sobre {

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.home-img {

    border-right: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(141deg, transparent 50%, var(--main-color))1;
}

.sobre-img {

    border-left: solid 0.6rem;
    border-bottom: solid 0.6rem;
    border-image: linear-gradient(219deg, transparent 50%, var(--main-color))1;
}

.home-img img,
.sobre-img img {

    width: 100%;
}

.sobre {

    background-color: var(--bg-color-02);
}

.home-content h1,
.sobre-content h1 {

    font-weight: 700;
    line-height: 1.3;
}

.home-content h3,
.sobre-content h3 {

    font-weight: 700;
    font-size: 1.6rem;
}

.home-content p,
.sobre-content p {

    margin-top: 1.2rem;
    text-align: justify;

}

.services h2,
.portfolio h2,
.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.services-container {

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 20px;
    margin-top: 3rem;
}

.services-box {

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25rem;
    margin-bottom: 1rem;
}

.services-container .services-box {

    padding: 1rem 1rem;
    border-radius: 1.2rem;
    text-align: center;
    border: solid 0.15rem var(--bg-color-01);
    background-color: var(--bg-color-02);
    transition: 0.5s ease;
}

.services-container .services-box:hover {

    border-color: var(--main-color);
    transform: scale(1.01);
}

.services-box i {

    font-size: 4.3rem;
    color: var(--main-color);
}

.services-box h3 {

    font-size: 1.5rem;
}

.services-box p {

    margin: 0.5rem;
    letter-spacing: 0.1rem;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio {

    background-color: var(--bg-color-02);
}

.portfolio-container {

    display: grid;
    gap: 1rem;
    padding: 0.5rem;

}

.portfolio-box {

    width: 100%;
    /* alterado do original*/
    position: relative;
    border-radius: 0.6rem;
    box-shadow: 0 0 0.6rem var(--bg-color-01);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {

    width: 107%;
    /* width orinal 100%*/
    transition: 0.5s ease;

}

.portfolio-box img:hover {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {

    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, var(--main-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(50rem);
    transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {

    transform: translateY(0);
}

.portfolio-layer h4 {

    width: 140%;
    /* widht original 100%*/
    font-size: 1.5rem;
    color: #000000;
    font-weight: 800;
}

.portfolio-layer .todo-list {
    /*adicionado cor escura em uma capa de projeto TODO LIST*/
    color: #000000;
    font-weight: 800;

}

.portfolio-layer .sorteador {
    /* adicionado cor escura em uma capa de projeto sorteador*/
    color: #000000;
    font-weight: 800;
}

.portfolio-layer .nike {
    /* adicionado cor escura em uma capa de projeto nike*/
    color: #000000;
    font-weight: 800;
}

.portfolio-layer .previsao-do-tempo {
    /* adicionando cor escura em uma capa de projeto PREVISAO DO TEMPO*/

    color: #000000;
    font-weight: 800;

}

.portfolio-layer p {

    width: 100%;
    /*test no espaço do testo*/
    margin: 0.2rem 0 0.5rem;
    color: #000000;
    font-weight: bold;
}

.portfolio-layer a {

    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i {

    font-size: 1.2rem;
    color: var(--bg-color-01);
}

form {

    max-width: 45rem;
    margin: 0.6rem auto;
    text-align: center;
    margin-bottom: 2rem;

}

form .input-box {

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

}

form .input-box input,
form textarea {

    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color-02);
    border-radius: 0.5rem;
    margin: 0.4rem 0;

}

form textarea {

    resize: none;
}

footer {

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background-color: var(--bg-color-01);
}

.social-media img {

    width: 3.5rem;
}

.social-media a {

    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: solid 0.15rem var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 1.8rem 0.6rem;
    transition: 0.5s ease;
}

.social-media a:hover {

    background-color: var(--main-color);
    color: var(--bg-color-02);
    box-shadow: 0 0 0.3rem var(--main-color);
}

/* ===== button ===== */

.btn {

    display: inline-block;
    padding: 0.75rem 1.5rem;
    justify-content: center;
    background-color: var(--main-color);
    border-radius: 2rem;
    color: var(--bg-color-02);
    font-weight: 600;
    font-size: 0.95 rem;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    margin-top: 1.2rem;

    gap: 0.5rem;
    max-width: 100%; /* Evita ultrapassar contêiner */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    cursor: pointer
}

.certificate {
    display: inline-flex; /* Permite usar gap com alinhamento interno */
    align-items: center; /* Centraliza conteúdo verticalmente */
    justify-content: center; /* Centraliza conteúdo horizontalmente */
    padding: 0.75rem 1.5rem;
    background-color: var(--main-color);
    border-radius: 2rem;
    color: var(--bg-color-02);
    font-weight: 600;
    letter-spacing: 0.05rem;
    font-size: 0.95rem; /* Tamanho de fonte confortável */
    transition: all 0.3s ease;
    margin-top: 1.2rem;
    gap: 0.5rem;
    width: fit-content; /* Ajusta largura conforme conteúdo */
    min-width: 188px; /* Garante um tamanho mínimo razoável */
    max-width: 100%; /* Evita ultrapassar contêiner */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    cursor: pointer;
}

.certificate:hover {

    box-shadow: 0 0 0.3rem var(--main-color);
    background-color: inherit;
    color: var(--main-color);
    cursor: pointer;
}

.btn:hover {

    box-shadow: 0 0 0.3rem var(--main-color);
    background-color: inherit;
    color: var(--main-color);
    cursor: pointer;
}

/* ===== /button =====*/

/*icinio animação*/

.tags {
    overflow: hidden;
    padding: 2rem;
    width: 100%;
    position: relative;
}

.tags-slide {
    display: flex;
    width: max-content;
    animation: slide 70s linear infinite;
}

.tags-slide:hover {
    animation-play-state: paused;
}

.tags-slide .card {
    flex-shrink: 0;
    width: 210px;
    height: 180px;
    border: 1px solid rgb(0, 238, 255);
    border-radius: 20px;
    box-shadow: rgba(0, 238, 255, 0.2) 5px 5px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
    padding: 10px;
}

.tags-slide .card p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #ccc; /* tom sutil */
    font-weight: 400;
    text-align: center;
}

.tags-slide .card:hover {
    box-shadow: 0 0 15px var(--main-color);
    transform: scale(1.05);
    transition: 0.3s ease;
}

@keyframes slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}



/* final animação*/

/* ===== menu hamburguer =====*/
.menu-hamburguer {

    display: none;
    cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.4rem 0;
    transition: 0.3s ease;
}

.change .bar1 {

    transform: translate(0, 0.65rem) rotate(-45deg);
}

.change .bar2 {

    opacity: 0;
}

.change .bar3 {

    transform: translate(0, -0.65rem) rotate(45deg);
}

/* ===== /menu hamburguer =====*/


/* ===== media queries ====== */


/* Extra Small (xs): Smartphone (portrait) */

@media (min-width: 0px) {

    .menu-hamburguer {
        display: block;
    }

    .nav {

        display: none;
    }

    .nav-responsivel a {

        display: block;
        font-size: 1.2rem;
        margin: 0.5rem;
    }

    section {
        padding: 6rem 2.5rem;

    }

    /* .tags-slide .card {   verificar 
        width: 100%;
     } */

    .home,
    .sobre {

        flex-direction: column;
        gap: 1.2rem;
    }

    .home-img,
    .sobre-img {

        width: 80%;
        max-width: 80%;
    }

    .home-content,
    .sobre-content {

        width: 100%;
    }

    .home-content div {

        text-align: center;
    }

    .home-content h1,
    .sobre-content h1 {

        font-size: 2.2rem;
        font-weight: 700;
        line-height: 2.0rem;
        /*alterado para melhorar nome */
    }

    .services-container {

        flex-direction: column;
        align-items: center;
    }

    .services-box {

        width: 100%;
    }

    .portfolio-box h4 {
        /* ==== item adicionado na @midia ====*/

        font-size: 1rem;
        width: 16rem;

    }

    .portfolio-box p {
        /* ==== item adicionado na @midia ====*/

        font-size: 0.6rem;
        font-weight: 500;
        width: 16rem;
        padding: 0 0.2rem;

    }
}

/* Extra Small (sm): Smartphone (landscape) */

@media (min-width:576px) {

    .home-img,
    .sobre-img {
        width: 65%;
        max-width: 65%;
    }

    .services-box {

        width: 70%;

    }

    .portfolio-box h4 {
        /* ==== item adicionado na @midia ====*/

        font-size: 1.5rem;
        width: 30rem;

    }

    .portfolio-box p {
        /* ==== item adicionado na @midia ====*/

        font-size: 1.1rem;
        font-weight: 600;
        width: 30rem;
        padding: 1rem 1rem;

    }

}

/* Medium (md): Tablet */

@media (min-width:768px) {


    .menu-hamburguer {

        display: none;
    }

    .nav {

        display: block;
    }

    .nav-responsivel,
    .nav-responsivel a {

        display: none;
    }

    .home,
    .sobre {

        flex-direction: row;
        justify-content: space-evenly;
    }

    .home-img,
    .sobre-img {

        max-width: 35%;
    }

    .home-content,
    .sobre-content {

        width: 50%;
    }

    .services-box {

        width: 60%;
        margin-bottom: 2rem;
    }

    .portfolio-container {

        grid-template-columns: auto auto;
    }

    .portfolio-box h4 {
        /* ==== item adicionado na @midia ====*/

        width: 30rem;

    }

    .portfolio-box p {
        /* ==== item adicionado na @midia ====*/

        width: 21rem;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }

    .sobre-content h1 {

        padding: 0.2rem;
        font-size: 1.8rem;

    }

    form .input-box input {

        width: 49%;
    }


}


/* large (lg): Notebook*/


@media (min-width:992px) {



    .services-container {

        flex-direction: row;
        gap: 1.2rem;
    }

    .services-box {

        height: 10rem;
    }

    .portfolio-container {

        grid-template-columns: auto auto;

    }

    .portfolio-box h4 {
        /* ==== item adicionado na @midia ====*/

        width: 20rem;

    }

    .portfolio-box p {
        /* ==== item adicionado na @midia ====*/

        width: 26rem;
        padding: 0.2rem 0.2rem;
        font-size: 1rem;

    }
}

/* Extra large (xl): Desktop */

@media (min-width:1200px) {


    .home-img,
    .sobre-img {
        max-width: 25%;
    }

    .home-content h1 {

        font-size: 2.7rem;
    }

    .home-content h3 {

        font-size: 2rem;
    }

    .portfolio-box h4 {
        /* ==== item adicionado na @midia ====*/

        width: 24rem;

    }

    .portfolio-container {

        grid-template-columns: auto auto auto;
    }


    .portfolio-box p {
        /* ==== item adicionado na @midia ====*/

        width: 24rem;
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }

}

/* ===== /media queries ====== */