/* SESSÃO HEADER */

#navbar {
    display: flex;
    justify-content: space-between;
}


.logo__navbar {
    width: 100px;
    height: 100px;
}

#buttons__cabecalho {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-right: 3rem;
    cursor: pointer;
}

#menu-icon {
    cursor: pointer;
}

#mobile-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;

    & #close-menu {
        opacity: 0;
    }

}

#cabecalho__navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;

    & #cabecalho__navbar-itens {
        display: flex;
        align-items: center;
        list-style: none;
        gap: 6rem;
    }
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
}

#theme-switch {
    border: none;
    background-color: var(--background-color);
    cursor: pointer;
}

#theme-switch img:last-child {
    display: none;
}

.darkmode #theme-switch img:first-child {
    display: none;
}

.darkmode #theme-switch img:last-child {
    display: block;
}

#language-switch {
    border: none;
    background-color: var(--background-color);
}


/* SESSÃO SOBRE */

.sobre {
    display: flex;
    padding: 10rem;
    width: 100%;
    justify-content: space-between;
}

.sobre__descricao {
    width: 50%;
    display: flex;
    flex-flow: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.animated-text {
    font-family: "Silkscreen", sans-serif;
    font-weight: 600;
    font-size: 3rem;
    min-width: 500px;
    text-wrap: nowrap;

    & span {
        position: relative;

        &::before {
            content: "Desenvolvedor Frontend.";
            color: var(--text-color);
            animation: words 15s infinite;
        }

        &::after {
            content: "";
            position: absolute;
            width: calc(100% + 8px);
            height: 100%;
            background-color: var(--background-color);
            border-left: 2px solid var(--effect-color);
            right: -8px;
            animation: cursor .8s infinite, typing 15s steps(14) infinite;
        }
    }
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--text-color);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Desenvolvedor Frontend."
    }

    21%,
    40% {
        content: "Gabriel Amorim."
    }

    41%,
    60% {
        content: "Frontend Developer."
    }

    61%,
    100% {
        content: "Gabriel Amorim."
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

.sobre__buttons {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.sobre__buttons-links {
    display: flex;
    gap: 2rem;
}

.sobre__icons {
    display: flex;
    gap: 1rem;
}

.logo-programador {
    margin-right: 5rem;
    width: 50rem;
    height: auto;
}

.arrowdown {
    margin-top: 6rem;
    animation: floatY 3s ease-in-out infinite;
    transition: opacity 0.5s;
}

@keyframes floatY {

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

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


/* SESSÃO SKILLS */

/* #sessao-skills {
    background-color: #cccccc;
} */

.skills__section {
    /* padding: 4rem; */
    gap: 10;
    display: flex;
    justify-content: space-between;
}

.skills__container {
    width: 1200px;
    height: auto;
    display: flex;
    flex-flow: column;
    gap: 2rem;
    align-items: center;
    background: var(--color-container);
    padding: 5rem;
    border: none;
    border-radius: 20px;

}

.skills__container-title {
    width: 100%;
    left: 0;
}

.skills__container .skills__bar {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    align-items: center;
}

.skills__bar-image img {
    width: 40rem;
    cursor: pointer;
    transition: all 0.5s;

    &:hover {
        transform: translateY(-5px);
    }
}

.skills__bar .contents {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 5rem;
}

.content-skills {
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

.contents .skills:not(:last-child) {
    margin-bottom: 30px;
}

.skills {
    width: 150px;
}

.skills .details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    width: 0;
    opacity: 0;
}

.skills .details.html {
    animation: html-fill 2s forwards;
}

.skills .details.css {
    animation: css-fill 2s forwards;
}

.skills .details.js {
    animation: js-fill 2s forwards;
}

.skills .details.c {
    animation: c-fill 2s forwards;
}

.skills .details.tailwind {
    animation: tailwind-fill 2s forwards;
}

.skills .details.java {
    animation: java-fill 2s forwards;
}

.skills .details.git {
    animation: git-fill 2s forwards;
}

.skills .details.bootstrap {
    animation: bootstrapp-fill 2s forwards;
}

.skills .details.react {
    animation: react-fill 2s forwards;
}

.skills .bar {
    position: relative;
    border: 2px solid var(--text-color);
    border-radius: 20px;
}

.skills .bar div {
    position: relative;
    width: 0;
    height: 9px;
    border-radius: 10px;
    background-color: var(--text-color);
}

.bar #html-bar {
    animation: html-fill 2s forwards;
}

@keyframes html-fill {
    100% {
        width: 90%;
        opacity: 1;
    }
}

.bar #css-bar {
    animation: css-fill 2s forwards;
}

@keyframes css-fill {
    100% {
        width: 85%;
        opacity: 1;
    }
}

.bar #java-bar {
    animation: java-fill 2s forwards;
}

@keyframes java-fill {
    100% {
        width: 20%;
        opacity: 1;
    }
}

.bar #c-bar {
    animation: c-fill 2s forwards;
}

@keyframes c-fill {
    100% {
        width: 20%;
        opacity: 1;
    }
}

.bar #js-bar {
    animation: js-fill 2s forwards;
}

@keyframes js-fill {
    100% {
        width: 90%;
        opacity: 1;
    }
}

.bar #figma-bar {
    animation: figma-fill 2s forwards;
}

@keyframes figma-fill {
    100% {
        width: 45%;
        opacity: 1;
    }
}

.bar #git-bar {
    animation: git-fill 2s forwards;
}

@keyframes git-fill {
    100% {
        width: 70%;
        opacity: 1;
    }
}

.bar #tailwind-bar {
    animation: tailwind-fill 2s forwards;
}

@keyframes tailwind-fill {
    100% {
        width: 65%;
        opacity: 1;
    }
}

.bar #bootstrap-bar {
    animation: bootstrap-fill 2s forwards;
}

@keyframes bootstrap-fill {
    100% {
        width: 75%;
        opacity: 1;
    }
}

.bar #sass-bar {
    animation: sass-fill 2s forwards;
}

@keyframes sass-fill {
    100% {
        width: 60%;
        opacity: 1;
    }
}

@keyframes react-fill {
    100% {
        width: 80%;
        opacity: 1;
    }
}

.bar #react-bar {
    animation: react-fill 2s forwards;
}

.other-skills {
    display: flex;
    flex-flow: column;
    padding: 5rem;
    gap: 5rem;
    align-items: self-start;
    justify-content: center;
    width: 500px;
    height: auto;
}

/* #menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
} */

.soft__skills {
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

.soft__list {
    display: flex;
    gap: 10rem;
    align-items: center;
    list-style: none;
}

.soft__list-content {
    display: flex;
    flex-flow: column;
    gap: 5rem;
    align-items: center;
}

.scroller-wrapper {
    overflow: hidden;
    width: 100vw;
    background-color: var(--background-color);
}

.scroller-track {
    display: flex;
    cursor: pointer;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.scroller-wrapper:hover .scroller-track {
    animation-play-state: paused;
}

.scroller-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    margin: 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--background-second-color);
    background-color: var(--auxiliar-color);
    padding: 10px 30px;
    border-radius: 25px;
    white-space: nowrap;
}

.scroller-item img {
    width: 32px;
    height: 32px;
    align-items: center;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

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

/* SESSÃO PROJETOS */

#sessao-projeto {
    height: auto;
}

/* 1. Estilos Globais da Seção */
.project-detail-section {
    display: flex;
    /* Define a divisão principal em colunas */
    gap: 80px;
    /* Espaço entre as duas colunas */
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #121212;
    /* Fundo escuro */
    color: #f0f0f0;
    /* Texto claro */
    font-family: sans-serif;
    border-radius: 2rem;
}

/* 2. Coluna da Mídia/Arte (Esquerda) */
.project-media {
    flex: 1;
    /* Permite que ocupe o espaço disponível */
    min-width: 50%;
    /* Ocupa pelo menos metade da largura */
    position: relative;
}

/* 3. Estilo da Imagem (simulando a borda curva e a sombra) */
.project-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Tag "Conceptual Work" */
.tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8em;
    border-radius: 8px 0 8px 0;
    z-index: 10;
}

/* 4. Coluna de Informações (Direita) */
.project-info {
    flex: 1;
    min-width: 40%;
    gap: 2rem;
    /* Alinhe verticalmente com a imagem se necessário */
    display: flex;
    flex-direction: column;
}

.project-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

.description {
    color: #aaaaaa;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    gap: 2rem;
}

/* 5. Metadados do Projeto (Year, Role) */
.project-metadata {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.project-metadata h2 {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.metadata-row {
    display: flex;
    justify-content: space-between;
    /* Alinha o texto à esquerda e o valor à direita */
    padding: 10px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #333;
}

/* 6. Ações (Botões/Links) */
.project-actions {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.btn-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    /* Para simular o hover */
    transition: border-bottom 0.3s;
}

.btn-link:hover {
    border-bottom: 2px solid white;
    /* Exemplo de cor de destaque */
}

/* 7. Responsividade (quebra a coluna em uma única pilha para telas menores) */
@media (max-width: 900px) {
    .project-detail-section {
        flex-direction: column;
        /* Colunas viram linhas */
        gap: 40px;
        padding: 40px 20px;
    }
}


/* SESSÃO NFT */

#sessao-nft {
    height: auto;
}

.nft {
    display: flex;
    align-items: center;
    flex-flow: column;
}

.nft-titulo {
    margin-top: 10rem;
}

.swiper {
    margin-bottom: 5rem;
}

.p-nft {
    margin: 3rem;
    display: flex;
    flex-wrap: wrap;
}

.card-wrapper {
    max-width: 1100px;
    margin: 0 60px 35px;
    padding: 20px 10px;
    overflow: hidden;
}

.card-list .card-item {
    list-style: none;
}

.card-list .card-item .card-link {
    user-select: none;
    display: block;
    background: white;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;

}

.card-list .card-item .card-link:active {
    cursor: grabbing;
}

.card-list .card-item .card-link:hover {
    border-color: black;
}

.card-list .card-link .card-image {
    width: 100%;
    aspect-ratio: 16/16;
    object-fit: cover;
    border-radius: 10px;
}


.card-wrapper .swiper-pagination-bullet {
    height: 13px;
    width: 13px;
    opacity: 0.5;
    background: black;
}

.card-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}

.card-wrapper .swiper-slide-button {
    color: black;
    margin-top: -35px;
}

@media screen and (max-width: 768px) {
    .card-wrapper {
        margin: 0 10px 25px;
        padding: 10px 5px;
    }

    .card-wrapper .swiper-slide-button {
        display: none;
    }

    .card-list .card-item .card-link {
        padding: 10px;
    }

    .card-list .card-link .card-image {
        aspect-ratio: 1/1;
    }

    .p-nft {
        margin: 2rem;
        text-align: center;
    }
}


/* SESSÃO CONTATO */

.contato {
    padding: 10rem;
    margin-top: 5em;
    background-color: #595959;
    width: 100%;
}

.contato-container {
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contato-info,
.contato-formulario {
    flex: 1 1 40%;
}

.contato-info h2 {
    font-size: 3.32rem;
    color: var(--background-second-color);
    margin-bottom: 10px;
}

.contato-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--background-second-color);
}

.contato-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    flex-flow: column;
}

.butcontato {
    width: 100%;
}

.contato-info ul li {
    display: flex;
    width: max-content;
    gap: 1rem;
    margin-bottom: 10px;
}

.contato-info a {
    color: var(--background-second-color);
    text-decoration: none;
}

.redes-sociais a {
    margin-right: 15px;
    color: var(--text-second-color);
    font-weight: bold;
    text-decoration: none;
}

.contato-formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-formulario form {
    display: flex;
    flex-direction: column;
}

.contato-formulario input,
.contato-formulario textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
}

/* FOOTER */
.footer {
    background-color: #111;
    color: #fff;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 24px;
    width: auto;
}

.li-contato {
    display: flex;
    position: relative;
    cursor: pointer;
    align-items: center;
    color: #000000;
}

.li-contato::after {
    display: none;
}