@charset "UTF-8";

@media (prefers-reduced-motion: reduce) {
    .will-reveal,
    .will-reveal.is-in,
    .will-reveal.is-in:hover,
    .will-reveal.is-in.is-hover {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.will-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.will-reveal.desliza {
    transform: translateY(22px) translateX(-16px);
}

.will-reveal.is-in {
    opacity: 1;
    transform: none;
}

section#sobre .pilar,
section#sobre .formacao-card,
section#sobre .idioma,
section#sobre .frase-final,
section#habilidades div.bolha,
section#habilidades div.icons > p,
section#contato .contato-card {
    cursor: pointer;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

section#sobre .pilar:hover,
section#sobre .pilar.is-hover,
section#sobre .formacao-card:hover,
section#sobre .formacao-card.is-hover,
section#sobre .idioma:hover,
section#sobre .idioma.is-hover,
section#sobre .frase-final:hover,
section#sobre .frase-final.is-hover {
    transform: translateY(-4px);
    border-color: var(--principal);
    box-shadow: 0 10px 24px rgba(22, 131, 245, 0.18);
}

body.light section#sobre .pilar:hover,
body.light section#sobre .pilar.is-hover,
body.light section#sobre .formacao-card:hover,
body.light section#sobre .formacao-card.is-hover,
body.light section#sobre .idioma:hover,
body.light section#sobre .idioma.is-hover,
body.light section#sobre .frase-final:hover,
body.light section#sobre .frase-final.is-hover {
    box-shadow: 0 10px 24px rgba(8, 120, 232, 0.16);
}

.will-reveal.is-in.pilar:hover,
.will-reveal.is-in.pilar.is-hover,
.will-reveal.is-in.formacao-card:hover,
.will-reveal.is-in.formacao-card.is-hover,
.will-reveal.is-in.frase-final:hover,
.will-reveal.is-in.frase-final.is-hover {
    transform: translateY(-4px);
}

section#habilidades div.bolha:hover,
section#habilidades div.bolha.is-hover {
    transform: scale(1.018);
    border-color: var(--principal);
    box-shadow: 0 10px 26px rgba(22, 131, 245, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.will-reveal.is-in.bolha:hover,
.will-reveal.is-in.bolha.is-hover {
    transform: scale(1.018);
}

section#habilidades div.icons > p:hover,
section#habilidades div.icons > p.is-hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--principal);
}

section#projetos .card-projeto.is-hover,
section#projetos .will-reveal.is-in.card-projeto:hover,
section#projetos .will-reveal.is-in.card-projeto.is-hover {
    transform: translateY(-3px);
    border-color: var(--principal);
}

section#projetos .card-projeto.is-hover .imagem-projeto img {
    transform: scale(1.03);
}

section#projetos .card-projeto.is-hover .imagem-projeto.imagem8 img {
    transform: scale(2.12);
}

section#contato .contato-card:hover,
section#contato .contato-card.is-hover {
    transform: translateY(-4px);
    border-color: var(--principal);
    box-shadow: 0 8px 20px rgba(22, 131, 245, 0.16);
}

body.light section#contato .contato-card:hover,
body.light section#contato .contato-card.is-hover {
    box-shadow: 0 8px 20px rgba(8, 120, 232, 0.14);
}

/* Reflexo de luz */

body {
    --reflexo-centro: rgba(255, 255, 255, 0.16);
    --reflexo-tom: rgba(22, 131, 245, 0.14);
}

body.light {
    --reflexo-centro: rgba(255, 255, 255, 0.42);
    --reflexo-tom: rgba(8, 120, 232, 0.12);
}

@keyframes reflexo-luz {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    15%,
    85% {
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (hover: hover) and (pointer: fine) {
    section#sobre .formacao-card,
    section#sobre .frase-final {
        position: relative;
        overflow: hidden;
    }

    section#sobre .formacao-card::after,
    section#sobre .frase-final::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(
            110deg,
            transparent 30%,
            var(--reflexo-tom) 42%,
            var(--reflexo-centro) 50%,
            var(--reflexo-tom) 58%,
            transparent 70%
        );
        transform: translateX(-100%);
        opacity: 0;
    }

    section#sobre .formacao-card:hover::after,
    section#sobre .frase-final:hover::after {
        animation: reflexo-luz 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

/* Reflexo diagonal: foto, pilares e idiomas do Sobre, Habilidades, Projetos e Contatos */

body {
    --reflexo-faixa: rgba(236, 244, 255, 0.26);
    --reflexo-meio: rgba(176, 190, 208, 0.1);
    --reflexo-externo: rgba(22, 131, 245, 0.08);
    --reflexo-borda-centro: rgba(220, 230, 242, 0.85);
    --reflexo-borda-externo: rgba(110, 140, 180, 0.38);
}

body.light {
    --reflexo-faixa: rgba(255, 255, 255, 0.6);
    --reflexo-meio: rgba(232, 238, 246, 0.24);
    --reflexo-externo: rgba(8, 120, 232, 0.08);
    --reflexo-borda-centro: rgba(255, 255, 255, 0.95);
    --reflexo-borda-externo: rgba(8, 120, 232, 0.7);
}

@keyframes reflexo-diagonal {
    from {
        background-position: 100% 100%;
        opacity: 0;
    }
    12%,
    85% {
        opacity: 1;
    }
    to {
        background-position: 0 0;
        opacity: 0;
    }
}

@keyframes reflexo-eco {
    from {
        background-position: 0 0;
        opacity: 0;
    }
    20%,
    80% {
        opacity: 0.7;
    }
    to {
        background-position: 100% 100%;
        opacity: 0;
    }
}

@keyframes reflexo-vai-volta {
    from {
        background-position: 100% 100%;
        opacity: 0;
    }
    6%,
    94% {
        opacity: 1;
    }
    62% {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
        opacity: 0;
    }
}

body {
    --reflexo-duracao: 1.2s;
}

@media (prefers-reduced-motion: reduce) {
    body {
        --reflexo-duracao: 1.8s;
        --reflexo-faixa: rgba(236, 244, 255, 0.18);
        --reflexo-borda-centro: rgba(220, 230, 242, 0.6);
    }

    body.light {
        --reflexo-faixa: rgba(255, 255, 255, 0.45);
        --reflexo-borda-centro: rgba(255, 255, 255, 0.75);
    }
}

section#sobre .sobre-foto {
    --reflexo-faixa: rgba(255, 255, 255, 0.62);
    --reflexo-meio: rgba(220, 226, 236, 0.3);
    --reflexo-externo: rgba(160, 190, 230, 0.12);
    --reflexo-borda-centro: rgba(255, 255, 255, 1);
    --reflexo-borda-externo: rgba(150, 195, 255, 0.85);
    cursor: pointer;
}

section#sobre .sobre-foto,
section#sobre .pilar,
section#sobre .idioma,
section#habilidades div.bolha,
section#projetos .card-projeto,
section#contato .contato-card,
section#contato button[type="submit"] {
    position: relative;
    overflow: hidden;
}

section#habilidades div.icons > p {
    position: relative;
}

section#sobre .sobre-foto::before,
section#sobre .sobre-foto::after,
section#sobre .pilar::before,
section#sobre .pilar::after,
section#sobre .idioma::before,
section#sobre .idioma::after,
section#habilidades div.bolha::before,
section#habilidades div.bolha::after,
section#habilidades div.icons > p::before,
section#projetos .card-projeto::before,
section#projetos .card-projeto::after,
section#contato .contato-card::before,
section#contato .contato-card::after,
section#contato button[type="submit"]::before,
section#contato button[type="submit"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-size: 250% 250%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0;
}

section#sobre .pilar::before,
section#sobre .pilar::after {
    z-index: 6;
}

section#sobre .sobre-foto::after,
section#sobre .pilar::after,
section#sobre .idioma::after,
section#habilidades div.bolha::after,
section#projetos .card-projeto::after,
section#contato .contato-card::after,
section#contato button[type="submit"]::after {
    background-image: linear-gradient(
        to bottom right,
        transparent 43%,
        var(--reflexo-externo) 46.5%,
        var(--reflexo-meio) 48.8%,
        var(--reflexo-faixa) 50%,
        var(--reflexo-meio) 51.2%,
        var(--reflexo-externo) 53.5%,
        transparent 57%
    );
}

section#sobre .sobre-foto::after {
    background-image: linear-gradient(
        to bottom right,
        transparent 39%,
        var(--reflexo-externo) 44%,
        var(--reflexo-meio) 47.5%,
        var(--reflexo-faixa) 50%,
        var(--reflexo-meio) 52.5%,
        var(--reflexo-externo) 56%,
        transparent 61%
    );
}

section#sobre .sobre-foto::before,
section#sobre .pilar::before,
section#sobre .idioma::before,
section#habilidades div.bolha::before,
section#habilidades div.icons > p::before,
section#projetos .card-projeto::before,
section#contato .contato-card::before,
section#contato button[type="submit"]::before {
    padding: 1px;
    background-image: linear-gradient(
        to bottom right,
        transparent 42%,
        var(--reflexo-borda-externo) 47%,
        var(--reflexo-borda-centro) 50%,
        var(--reflexo-borda-externo) 53%,
        transparent 58%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

@media (hover: hover) and (pointer: fine) {
    section#sobre .sobre-foto:hover::before,
    section#sobre .sobre-foto:hover::after {
        animation: reflexo-vai-volta 1.6s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    }

    section#sobre .pilar:hover::before,
    section#sobre .pilar:hover::after,
    section#sobre .idioma:hover::before,
    section#sobre .idioma:hover::after,
    section#habilidades div.bolha:hover::before,
    section#habilidades div.bolha:hover::after,
    section#habilidades div.icons > p:hover::before,
    section#projetos .card-projeto:hover::before,
    section#projetos .card-projeto:hover::after,
    section#contato .contato-card:hover::before,
    section#contato .contato-card:hover::after,
    section#contato .contato-card:focus-visible::before,
    section#contato .contato-card:focus-visible::after,
    section#contato button[type="submit"]:hover::before,
    section#contato button[type="submit"]:hover::after,
    section#contato button[type="submit"]:focus-visible::before,
    section#contato button[type="submit"]:focus-visible::after {
        animation: reflexo-diagonal var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) forwards;
    }
}

@media (hover: none) {
    section#sobre .pilar.is-hover::before,
    section#sobre .pilar.is-hover::after,
    section#sobre .idioma.is-hover::before,
    section#sobre .idioma.is-hover::after,
    section#habilidades div.bolha.is-hover::before,
    section#habilidades div.bolha.is-hover::after,
    section#habilidades div.icons > p.is-hover::before,
    section#projetos .card-projeto.is-hover::before,
    section#projetos .card-projeto.is-hover::after,
    section#contato .contato-card.is-hover::before,
    section#contato .contato-card.is-hover::after {
        animation: reflexo-diagonal var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) forwards;
    }
}

/* Eco nos vizinhos: mais fraco, atrasado e no sentido contrário */

@media (hover: hover) and (pointer: fine) {
    section#sobre .pilar:hover + .pilar::before,
    section#sobre .pilar:hover + .pilar::after,
    section#sobre .idioma:hover + .idioma::before,
    section#sobre .idioma:hover + .idioma::after,
    section#habilidades div.bolha:hover + div.bolha::before,
    section#habilidades div.bolha:hover + div.bolha::after,
    section#habilidades div.icons > p:hover + p::before,
    section#projetos .card-projeto:hover + .card-projeto::before,
    section#projetos .card-projeto:hover + .card-projeto::after,
    section#contato div.informacoes > div:hover + div .contato-card::before,
    section#contato div.informacoes > div:hover + div .contato-card::after {
        animation: reflexo-eco var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) 0.12s both;
    }

    section#sobre .pilar:has(+ .pilar:hover)::before,
    section#sobre .pilar:has(+ .pilar:hover)::after,
    section#sobre .idioma:has(+ .idioma:hover)::before,
    section#sobre .idioma:has(+ .idioma:hover)::after,
    section#habilidades div.bolha:has(+ div.bolha:hover)::before,
    section#habilidades div.bolha:has(+ div.bolha:hover)::after,
    section#habilidades div.icons > p:has(+ p:hover)::before,
    section#projetos .card-projeto:has(+ .card-projeto:hover)::before,
    section#projetos .card-projeto:has(+ .card-projeto:hover)::after,
    section#contato div.informacoes > div:has(+ div:hover) .contato-card::before,
    section#contato div.informacoes > div:has(+ div:hover) .contato-card::after {
        animation: reflexo-eco var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) 0.12s both;
    }
}

@media (hover: none) {
    section#sobre .pilar.is-hover + .pilar::before,
    section#sobre .pilar.is-hover + .pilar::after,
    section#sobre .idioma.is-hover + .idioma::before,
    section#sobre .idioma.is-hover + .idioma::after,
    section#habilidades div.bolha.is-hover + div.bolha::before,
    section#habilidades div.bolha.is-hover + div.bolha::after,
    section#habilidades div.icons > p.is-hover + p::before,
    section#projetos .card-projeto.is-hover + .card-projeto::before,
    section#projetos .card-projeto.is-hover + .card-projeto::after {
        animation: reflexo-eco var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) 0.12s both;
    }

    section#sobre .pilar:has(+ .pilar.is-hover)::before,
    section#sobre .pilar:has(+ .pilar.is-hover)::after,
    section#sobre .idioma:has(+ .idioma.is-hover)::before,
    section#sobre .idioma:has(+ .idioma.is-hover)::after,
    section#habilidades div.bolha:has(+ div.bolha.is-hover)::before,
    section#habilidades div.bolha:has(+ div.bolha.is-hover)::after,
    section#habilidades div.icons > p:has(+ p.is-hover)::before,
    section#projetos .card-projeto:has(+ .card-projeto.is-hover)::before,
    section#projetos .card-projeto:has(+ .card-projeto.is-hover)::after,
    section#contato div.informacoes > div:has(.contato-card.is-hover) + div .contato-card::before,
    section#contato div.informacoes > div:has(.contato-card.is-hover) + div .contato-card::after,
    section#contato div.informacoes > div:has(+ div .contato-card.is-hover) .contato-card::before,
    section#contato div.informacoes > div:has(+ div .contato-card.is-hover) .contato-card::after {
        animation: reflexo-eco var(--reflexo-duracao) cubic-bezier(0.3, 0, 0.45, 1) 0.12s both;
    }
}

/* =========================================================
   DESTAQUES — dourado premium (#C6A15B) com brilho e fagulhas
   Só o botão "Destaques" do filtro de Projetos
   ========================================================= */

section#projetos .filtro button[data-filtro="destaques"] {
    --ouro: #C6A15B;
    --ouro-claro: #F3DFA8;
    position: relative;
    overflow: hidden;
    border-color: var(--ouro);
    color: var(--ouro);
    box-shadow: 0 0 4px rgba(198, 161, 91, 0.35), inset 0 0 5px rgba(198, 161, 91, 0.12);
    animation: destaques-pulso 3.4s ease-in-out infinite;
}

section#projetos .filtro button[data-filtro="destaques"]:hover,
section#projetos .filtro button[data-filtro="destaques"].filtro-ativo {
    border-color: var(--ouro);
    color: var(--ouro);
    background: rgba(198, 161, 91, 0.12);
}

section#projetos .filtro button[data-filtro="destaques"].filtro-ativo {
    background: rgba(198, 161, 91, 0.18);
    text-shadow: 0 0 8px rgba(198, 161, 91, 0.55);
}

@keyframes destaques-pulso {
    0%, 100% {
        box-shadow: 0 0 4px rgba(198, 161, 91, 0.30), inset 0 0 4px rgba(198, 161, 91, 0.10);
    }
    50% {
        box-shadow: 0 0 9px rgba(198, 161, 91, 0.70), inset 0 0 9px rgba(198, 161, 91, 0.26);
    }
}

/* reflexo de luz (mesmo movimento do resto do site), em dourado */
section#projetos .filtro button[data-filtro="destaques"]::before,
section#projetos .filtro button[data-filtro="destaques"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-size: 250% 250%;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0;
}

section#projetos .filtro button[data-filtro="destaques"]::after {
    background-image: linear-gradient(
        to bottom right,
        transparent 43%,
        rgba(198, 161, 91, 0.14) 46.5%,
        rgba(243, 223, 168, 0.30) 48.8%,
        rgba(255, 244, 214, 0.70) 50%,
        rgba(243, 223, 168, 0.30) 51.2%,
        rgba(198, 161, 91, 0.14) 53.5%,
        transparent 57%
    );
    /* brilho passando de tempos em tempos, chamando atenção */
    animation: destaques-varredura 6s ease-in-out 1.5s infinite;
}

section#projetos .filtro button[data-filtro="destaques"]::before {
    padding: 1px;
    background-image: linear-gradient(
        to bottom right,
        transparent 42%,
        rgba(198, 161, 91, 0.85) 47%,
        rgba(255, 244, 214, 1) 50%,
        rgba(198, 161, 91, 0.85) 53%,
        transparent 58%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: destaques-varredura 6s ease-in-out 1.5s infinite;
}

@keyframes destaques-varredura {
    0% { background-position: 100% 100%; opacity: 0; }
    4% { opacity: 1; }
    20% { background-position: 0 0; opacity: 1; }
    24%, 100% { background-position: 0 0; opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
    section#projetos .filtro button[data-filtro="destaques"]:hover::before,
    section#projetos .filtro button[data-filtro="destaques"]:hover::after {
        animation: reflexo-diagonal var(--reflexo-duracao, 1.2s) cubic-bezier(0.3, 0, 0.45, 1) forwards;
    }
}

/* no clique (e no celular, onde não há hover) o reflexo passa uma vez */
section#projetos .filtro button[data-filtro="destaques"].filtro-ativo::before,
section#projetos .filtro button[data-filtro="destaques"].filtro-ativo::after {
    animation: reflexo-diagonal var(--reflexo-duracao, 1.2s) cubic-bezier(0.3, 0, 0.45, 1) forwards;
}

body.light section#projetos .filtro button[data-filtro="destaques"] {
    box-shadow: 0 0 4px rgba(198, 161, 91, 0.45), inset 0 0 5px rgba(198, 161, 91, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    section#projetos .filtro button[data-filtro="destaques"],
    section#projetos .filtro button[data-filtro="destaques"]::before,
    section#projetos .filtro button[data-filtro="destaques"]::after {
        animation: none;
    }
}

/* ícone: estrela dourada */
section#projetos .filtro button[data-filtro="destaques"] i.fa-star {
    color: #C6A15B;
    filter: drop-shadow(0 0 3px rgba(198, 161, 91, 0.7));
}
