@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Press+Start+2P&display=swap');
@import url("./popup.css");

@font-face {
    font-family: 'headingFont';
    src: url('/assets/fonts/custom.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overscroll-behavior-y: none;
    overflow: hidden;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans Code", monospace;
    font-optical-sizing: auto;
    font-style: normal;

}

body {

    color: #d9dcd6;
    background-color: #191919;
}

a {
    color: #d9dcd6;
    text-decoration: none;
}


.press-start {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
}


section.main {
    background-color: #000000;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 98.5vh;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    max-width: 1005px;
}

section.main header {
    display: flex;
    flex-direction: column;
    width: min-content;
}


section.main header section.title {
    animation-duration: 12s;
}

section.main header h3 {

    color: #c3c3c3ed;
    font-size: 1.7rem;
    margin: 0;
}

section.main header h2 {
    color: #c3c3c3ed;
    text-align: right;
    font-size: 1.5rem;
    margin: 0;
    margin-top: 12px;
}

section.main header h4 {
    margin: 0;
}

section.main header h1 {
    font-size: 1.6rem;
    margin: 0;
    margin-top: 10px;
}


.blue-text {
    color: #00dede;
}

.yellow-text {
    color: #ffe45b;
}



.nowrap {
    text-wrap: nowrap;
}

.nome {
    font-size: clamp(1.4rem, 4cqw, 1.6rem);
}


.scroll-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    animation: bounce 1.5s infinite;
}

.scroll-hint span {
    font-size: 2rem;
}


@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

section.info {
    margin-top: 32px;
    animation-duration: 3s;
    display: flex;
    justify-content: space-between;
}


section.info h4 {
    display: flex;
    align-items: center;
    gap: 2px;
}

section.info span {

    display: flex;
    justify-content: center;

}


section.nav {
    align-self: start;
    width: min-content;
    animation-duration: 16s;
    background-color: #00dede60;
    border-radius: 12px;
    margin-top: 16px;
    padding: 6px;
    gap: 6px;
    display: flex;
}

section.nav a {
    background-color: #00dededc;
    border-radius: 12px;
    display: flex;
}

a:hover {
    scale: 1.08;
}

section.nav img {
    width: 36px;
}

section.nav img.linkedin {
    width: 28px;
    margin: 2px;
    margin-top: 0;
    margin-bottom: 0;
}


section.personal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 95vh;
    flex-direction: column;
    padding-top: 12px;
}

section.personal-container>.container {
    max-width: 1500px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 128px;
    row-gap: 20px;
    /* 
    min-height: 90vh; */
}

section.personal-container>.container>section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section.personal-container section.img img {
    width: 160px;
    height: auto;
    border-radius: 50%;
}

section.personal-container h4 {
    margin: 0;
    margin-top: 24px;

    margin-bottom: 6px;
    padding: 0;
}

section.personal-container .bio {
    margin: 0;
    padding: 0;
    text-align: center;
}

section.personal-container .bio a>img {
    width: 24px;
}

section.personal-container .bio>a {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


section.personal-container .bio>a,
p {
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    margin-bottom: 4px;
}


section.personal-container>.container>section:nth-child(2) {
    gap: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

section.card {
    column-gap: 16px;
    padding: 16px;
    max-width: 800px;
    width: 100%;
    border-radius: 16px;
    background-color: #00dede83;
}

section.card header {
    width: 100%;
}



section.card p {
    font-size: 1rem;
}



/* Projects section */
section.projects {
    width: 100%;

    min-height: 98vh;
    margin-top: 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background-color: #00707083;
    background-image: url(/assets/images/paperBg.png);
    color: #e5e5e5;
    /*     color: #070707; */
    display: flex;
    flex-direction: column;

}

section.projects>header {
    width: 90%;
    padding-top: 36px;
    align-self: center;
    display: flex;
    /* 
    padding: 40px;
    padding-right: 0;
    padding-bottom: 0; */
}

section.projects>header h3 {
    padding: 0;
    margin: 0;
}


section.projects>.container-projects-p {
    justify-self: center;
    align-self: center;
    max-width: 2500px;
    width: 90%;
    /* 
    height: 100%; */
    margin-bottom: 12px;

    display: grid;
    /* ativa o grid */
    grid-template-columns: repeat(3, 1fr);
    /* 3 colunas iguais */
    grid-template-rows: auto;
    /* altura automática */
    gap: 20px;
    /* espaçamento entre os itens */
}

section.card-project {
    cursor: pointer;
    width: 100%;
    height: 350px;
    background-color: yellow;
    border-radius: 12px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

section.card-project:hover {
    scale: 1.01;
}

.card-project:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

section.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 16px;
    color: white;
    z-index: 2;
}

section.card-project .more {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

section.card-project .more span {
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #007070;
    border-radius: 8px;
    padding: 4px;
    /* 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); */
    background: rgba(0, 240, 240, 0.839);
}

section.card-content h2 {
    padding: 0;
    margin: 0;
    line-height: 1;
    padding-bottom: 12px;
}

section.card-content .links {
    display: flex;
    align-items: center;
    gap: 6px;
}

section.card-content .links img {
    width: 32px;
}

section.end {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
}

section.end>section {
    flex-grow: 1;
    display: flex;

    padding: 64px;
    padding-right: 0;
    padding-left: 0;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background-color: #d9edf7;
    background-image: url(/assets/images/contact-bg-vector.svg);
    border-radius: 0.5rem;
    width: 80%;
    max-width: 900px;
    min-height: 300px;
    padding: 40px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-card h2 {
    color: #073a4b;
    font-size: 2.3rem;
    font-family: "headingFont";
    margin: 0;
    margin-bottom: 20px;
}


.contact-card p {
    max-width: 80%;
    color: #0780a9;
    font-size: 1rem;
    font-style: italic;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.contact-card>a.button {
    margin-top: 32px;
    display: flex;
    padding: 12px;
    border-radius: 16px;
    gap: 8px;
    background: #073a4b;
    display: flex;
    align-items: center;
}

.contact-card>a.button>img {
    width: 28px;

}

section.end>footer {
    padding: 8px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    background-color: #141414;
    border-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

}

section.end>footer h4 {
    margin: 0;
    text-align: center;
    opacity: 0.6;
}

.copyleft {
    display: inline-block;
    transform: rotate(180deg);
}

/* Media Query */
@media (max-width: 800px) {

    section.personal-container>.container {
        flex-direction: column;
    }

    section.personal-container>.container>section:nth-child(1) {
        gap: 16px;
        /* display: flex;
        justify-content: center;
        align-items: center; */
        flex-direction: row;
    }

    section.personal-container h4 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    section.personal-container section.img img {
        width: 120px;
        height: auto;
        border-radius: 50%;
    }

    .bio p,
    a {
        font-size: 0.7rem !important;
    }

    section.card h3 {
        font-size: 1.2rem;
    }


    section.card p {
        font-size: 0.9rem;
    }


    section.projects>header {
        text-align: center;

        justify-content: center;
        align-items: center;

        padding-top: 16px;
    }

    section.projects>header h2 {
        font-size: 1.2rem;
    }


    section.projects>.container-projects-p {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    section.card-project {
        width: 100%;
        height: 190px;
        background-color: yellow;
    }

    section.card-content h2 {
        font-size: 1.06rem;
        padding-bottom: 4px;
    }

    section.card-project .more span {
        margin-bottom: 40px;
        font-size: 1.2rem;
    }



    /* 
    .scroll-hint {
        display: none;
    } */
}

/* Tech Faixa */

.tech-wrapper {
    opacity: 0.5;
    margin-top: 0px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;

    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    padding-bottom: 12px;
}

.tech-marquee {
    display: flex;
    width: max-content;
    animation: scroll 120s linear infinite;
    gap: 2rem;
}

.tech-marquee ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-marquee li {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}