/* =========================
PROJETOS
========================= */
.projetos{
    padding: 80px 0 45px;
    text-align: center;
}
.projetos h2{
    font-size: 32px;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}
.projetos h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 225px;
    height: 3px;
    background: var(--green);
    border-radius: 4px;
}
.projetos-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    text-align: left;
}
/* CARD */
.card{
    background: linear-gradient(145deg, rgba(40, 61, 56, 0.637), rgb(8, 10, 10));
    border: 3px solid var(--border);
    padding: 18px;
    border-radius: 14px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    width: 100%;
}
.card:hover{
    transform: translateY(-10px);
    border-color: var(--green);
}
.card h3{
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 1px 3px 0px black;
}
.card p{
    color: var(--muted);
    margin-bottom: 16px;
}
.card-img{
    width: 100%;
    height: 290px;
    border-radius: 10px;
    margin-bottom: 12px;
    opacity: 0.9;
    transition: 0.3s ease;
    object-fit: cover;
}
.card:hover .card-img{
    opacity: 1;
    transform: scale(1.02);
}
/* TAGS */
.tags{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.tags span{
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    border: 2px solid var(--border);
    color: var(--text);
}
/* =========================
ACTIONS (BOTÕES DOS CARDS)
========================= */
.actions{
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
/* Botão com efeito sweep */
.btn-sweep{
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #06110b;
    background: var(--green);
    border: 2px solid rgba(34,197,94,0.25);
    transition: color .25s ease, transform .18s ease, box-shadow .25s ease;
    z-index: 1;
}
.btn-sweep::before{
    content: "";
    position: absolute;
    inset: 0;
    background: #0B0F0E;
    transform: translateX(-110%);
    transition: transform .35s ease;
    z-index: 0;
}
/* garante que texto fique acima do ::before */
.btn-sweep > *{
    position: relative;
    z-index: 1;
}
/* Hover padrão */
.btn-sweep:not(.outline):hover{
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}
.btn-sweep:hover::before{
    transform: translateX(0);
}
/* Versão outline (GitHub) */
.btn-sweep.outline{
    background: transparent;
    color: var(--text);
    border: 2px solid var(--green);
}
.btn-sweep.outline::before{
    background: var(--green);
}
.btn-sweep:hover.outline{
    color: #06110b;
    transform: translateY(-2px);
}