@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap');

:root {
    --cor-fundo: #111827;
    --cor-sidebar: #1F2937;
    --cor-texto: #C7D2FE;
    --cor-destaque-1: #A78BFA;
    --cor-destaque-2: #F9A8D4;
}

* {
    font-family: "Abhaya Libre", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    color: var(--cor-texto);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: rgba(6, 6, 10, 0.829);
    text-align: right;
}

body,
html {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    height: 100vh;
    width: 100vw;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: var(--cor-sidebar);
    box-shadow: 1px 0 8px #0F172A44;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    z-index: 10;

    will-change: transform, opacity;
    backface-visibility: hidden;
}

.profile {
    margin-bottom: 32px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cor-destaque-1);
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.1em;
}

.sidebar nav ul li .material-symbols-outlined {
    font-size: 1.5em;
    margin-right: 12px;
    color: var(--cor-destaque-1);
}

.sidebar nav ul li a {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar nav ul li a:hover {
    color: var(--cor-destaque-2);
}

.sidebar-bottom {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.links {
    display: flex;
    gap: 16px;
}

.links img {
    border-radius: 30%;
    transition: box-shadow 0.2s;
}

.links img:hover {
    box-shadow: 0 0 8px var(--cor-destaque-1);
}

.idioma {
    margin-top: 8px;
    font-size: 0.95em;
    color: var(--cor-texto);
}

.idioma a {
    color: var(--cor-destaque-1);
    text-decoration: none;
    font-weight: 600;
}

.main-content {
    margin-left: 220px;
    padding: 48px 48px 0 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.intro {
    max-width: 600px;
    padding: 0;
    text-align: left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sobre-mim .columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.skill {
    position: relative;
    z-index: 10;
}

.skill::after {
    content: attr(data-skill);
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(.95);

    background: rgba(31, 41, 55, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: var(--cor-texto);
    font-size: 0.8rem;
    font-weight: 500;

    padding: 5px 12px;
    border-radius: 8px;

    border: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    z-index: 20;

    opacity: 0;
    pointer-events: none;
    white-space: nowrap;

    transition:
        opacity .25s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1);
}

.skill:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.skill::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(.8);

    border: 6px solid transparent;
    border-top-color: rgba(31, 41, 55, 0.9);
    z-index: 19;

    opacity: 0;
    transition: opacity .25s ease;
}

.skill:hover::before {
    opacity: 1;
}


.skills-carousel {
    margin: 40px 0;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    width: 100%;
    will-change: transform;
}

.skills-carousel::before,
.skills-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--cor-fundo), transparent);
}

.skills-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--cor-fundo), transparent);
}


/* trilho */
.skills-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: slideContainer 40s linear infinite;
    position: relative;
    z-index: 5;
}

/* ícones */
.skills-track img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform .3s ease, opacity .3s ease;
}

.skill:hover img {
    transform: scale(1.18) translateY(-2px);
    opacity: 1;
}

.skills-carousel:hover .skills-track {
    animation-play-state: paused;
}

.skills-carousel:hover .skills-track {
    animation-play-state: paused;
}

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

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

.sobre-mim {
    margin-top: 48px;
    width: 100%;
    padding: 0;
    text-align: left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}


.sobre-mim .skills-icons {
    right: 0;
    top: 20%;
}

.sobre-mim>.paragrafo {
    max-width: 600px;
    color: var(--cor-texto);
    font-size: 1.1em;
}

.highlight {
    color: var(--cor-destaque-2);
    font-weight: 700;
    font-size: 1.2em;
}

.intro h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
}

.intro h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cor-destaque-1);
    max-width: 520px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.intro h3 {
    font-size: 1.1rem;
    color: var(--cor-texto);
    max-width: 520px;
    opacity: 0.85;
    line-height: 1.6;
}

.skills {
    font-size: 1.1em;
    color: var(--cor-texto);
    margin: 8px 0 16px 0;
}

.sobre-mim h2 {
    color: var(--cor-destaque-1);
    font-size: 1.7em;
    margin-bottom: 16px;
}

.sobre-mim p {
    max-width: 600px;
    color: var(--cor-texto);
    font-size: 1.1em;
}

.sobre-mim>.status {
    margin-top: 16px;
    font-size: 1.1em;
    color: var(--cor-destaque-2);
}

.sobre-mim>button {
    margin-top: 16px;
    padding: 12px 24px;
    background-color: var(--cor-destaque-1);
    color: var(--cor-fundo);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sobre-mim>button:hover {
    background-color: var(--cor-destaque-2);
}

.sobre-mim>button>a {
    color: var(--cor-fundo);
    text-decoration: none;
    font-weight: 600;

}

/* ================= PROJETOS ================= */

.projetos {
    margin-top: 48px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projetos h2 {
    color: var(--cor-destaque-1);
    font-size: 1.7em;
    margin-bottom: 32px;
}

.titulo {
    color: var(--cor-destaque-1);
    font-size: 1.1em;
    margin: 10px 0;
}

/* ===== CONTAINER COM MÁSCARA ===== */

.cardproj {
    position: relative;
    overflow: hidden;
    padding-inline: 20px;
    isolation: isolate;
    /* máscara lateral */
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0px,
            black 40px,
            black calc(100% - 40px),
            transparent 100%);

    mask-image: linear-gradient(90deg,
            transparent 0px,
            black 40px,
            black calc(100% - 40px),
            transparent 100%);
}

.cardproj.focus-mode .scrollcards>div:not(.card-expandido) {
    opacity: .35;
    filter: blur(2px);
}

/* fades laterais */
.cardproj::before,
.cardproj::after {
    content: "";
    position: absolute;
    top: 0;
    width: 110px;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity .35s ease;
}

.cardproj.fade-left::before {
    opacity: 1;
}

.cardproj.fade-right::after {
    opacity: 1;
}

/* esquerda */
.cardproj::before {
    left: 0;
    background: linear-gradient(to right,
            rgba(17, 24, 39, 1) 0%,
            rgba(17, 24, 39, .95) 35%,
            rgba(17, 24, 39, .75) 60%,
            rgba(17, 24, 39, 0) 100%);
}

/* direita */
.cardproj::after {
    right: 0;
    background: linear-gradient(to left,
            rgba(17, 24, 39, 1) 0%,
            rgba(17, 24, 39, .95) 35%,
            rgba(17, 24, 39, .75) 60%,
            rgba(17, 24, 39, 0) 100%);
}

/* ===== SCROLL HORIZONTAL ===== */

.scrollcards {
    display: flex;
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 40px;

    padding: 0 0 8px 0;
    cursor: grab;
    width: 100%;
}

/* ===== CARDS ===== */

.scrollcards>div {
    background: var(--cor-sidebar);
    border-radius: 12px;
    padding: 16px;

    width: 280px;
    min-width: 280px;
    min-height: 420px;

    flex-shrink: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    scroll-snap-align: start;

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        filter .35s ease,
        opacity .35s ease;
}

.scrollcards>div:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

/* ===== CARD EXPANDIDO ===== */

.card-expandido {
    width: 720px;
    max-width: 85vw;

    height: auto;
    overflow: visible;

    z-index: 20;
    position: relative;

    /* anima somente tamanho */
    transition:
        width .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease;
}

.scrollcards>div.card-expandido {
    width: 350px;
    min-width: 350px;

    overflow: visible;

    z-index: 15;

    transition: width .45s cubic-bezier(.22, 1, .36, 1),
        transform .35s ease,
        box-shadow .35s ease,
        filter .3s ease;
}

/* remove corte do texto */
.scrollcards>div.card-expandido .descricao p:not(.titulo) {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* ===== IMAGENS ===== */

.projetos img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ===== TEXTOS ===== */

.projetos>div>div>.descricao>.titulo {
    color: var(--cor-destaque-1);
    font-size: 1.1em;
    margin: 10px 0;
}

.descricao p:not(.titulo) {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .35s ease;
}

/* ===== SCROLLBAR ===== */

.scrollcards::-webkit-scrollbar {
    height: 8px;
}

.scrollcards::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg,
            var(--cor-destaque-1),
            var(--cor-destaque-2));
    border-radius: 20px;
}

/* ---------- CONTATOS ---------- */

.contatos {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    min-height: 100vh;
    justify-content: center;
}

.contatos h2 {
    color: var(--cor-destaque-1);
    font-size: 1.7em;
    margin-top: 20px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cor-sidebar);
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--cor-texto);
    transition: background .2s ease, color .2s ease;
}

.contact-item:hover {
    background: var(--cor-fundo);
}


/* ---------- DOWNLOAD CV ---------- */

.cv {
    margin-bottom: 10px;
}

.cv h2 {
    color: var(--cor-destaque-1);
    font-size: 1.7em;
    margin-top: 20px;
}

button.download-cv,
button.download-cv a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cor-sidebar);
    color: var(--cor-texto);
    padding: 10px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

button.download-cv:hover,
button.download-cv:hover a {
    background: var(--cor-fundo);
}

/* ================= RESPONSIVO ================= */

/* ---------- TABLET / TELAS MÉDIAS ---------- */
@media (max-width: 900px) {
    * {
        font-size: 1.1rem;
    }

    .sobre-mim {
        padding: 0 12px;
    }

    .sobre-mim .columns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Sidebar compacta */
    .sidebar {
        width: 60px;
        padding: 16px 0;
    }

    .main-content {
        margin-left: 60px;
        margin-top: 6px;
        padding: 12px 12px 0 12px;
    }

    .profile,
    .sidebar-bottom {
        display: none;
    }

    .sidebar nav ul li {
        margin-bottom: 16px;
    }

    .intro {
        padding-right: 0;
    }

    /* ================= TABLET — GRID HORIZONTAL ================= */

    .cardproj {
        overflow: visible;
        padding-inline: 0;

        -webkit-mask-image: none;
        mask-image: none;
    }
    .cardproj > h2 {
        margin: 0 0 12px 0;
    }

    /* container dos cards */
    .scrollcards {
        display: grid;
        /* duas linhas */
        grid-template-rows: repeat(2, auto);
        /* fluxo horizontal */
        grid-auto-flow: column;
        /* largura automática das colunas */
        grid-auto-columns: 320px;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }

    /* cada card */
    .scrollcards>div {
        scroll-snap-align: center;
    }
}

    /* ---------- MOBILE ---------- */
    @media (max-width: 768px) {
        * {
            font-size: 1rem;
        }

        .sobre-mim .columns {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* transforma carrossel em layout vertical */
        .scrollcards {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            overflow-x: visible;
        }

        /* cards padrão */
        .cardproj {
            width: 92%;
            max-width: 420px;
            transition:
                width .4s cubic-bezier(.22, 1, .36, 1),
                transform .3s ease,
                box-shadow .3s ease;
        }

        /* card expandido no mobile */
        .card-expandido {
            width: 92%;
            min-width: unset;
            transform: translateY(-4px);
            box-shadow: 0 14px 35px rgba(0, 0, 0, .35);
        }

        /* remove fades laterais (não fazem sentido no mobile) */
        .cardproj::before,
        .cardproj::after {
            display: none;
        }

        .scrollcards {
            flex-direction: column;
            overflow-x: visible;
            align-items: center;
            gap: 24px;
        }

        .scrollcards>div {
            width: 100%;
            max-width: 420px;
        }

        .card-expandido {
            width: 100%;
            transform: none;
        }

        /* remove fades */
        .cardproj::before,
        .cardproj::after {
            display: none;
        }
    }

    /* ================= NAV RESPONSIVA ================= */

    /* ----- TABLET E MOBILE ----- */
    @media (max-width: 900px) {

        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;

            flex-direction: row;
            align-items: center;
            justify-content: center;

            padding: 0 16px;
            z-index: 999;
        }

        /* menu vira horizontal */
        .sidebar nav ul {
            display: flex;
            flex-direction: row;
            gap: 24px;
            align-items: center;
            justify-content: center;
        }

        .sidebar nav ul li {
            margin: 0;
        }

        /* esconde infos grandes */
        .profile,
        .sidebar-bottom {
            display: none;
        }

        .sidebar nav ul li .material-symbols-outlined {
            display: none;
        }

        /* conteúdo desce para não ficar atrás da navbar */
        .main-content {
            margin-left: 0;
            margin-top: 80px;
            padding: 24px 16px;
        }
    }