*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
    scroll-behavior: smooth;
}

:root{
    --primaria: #b30303;
    --secundaria: #d31818;
    --escuro: #1a1a1a;
    --chapado: #000;
    --claro: #dadada;
    --vidro: rgba(255, 255, 255, 0.1);
}

body{
    background-color: var(--chapado);
    color: var(--claro);
}

/* Acessibilidade: texto só para leitores de tela (labels invisíveis) */
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foco visível (teclado) */
:focus-visible{
    outline: 2px solid var(--secundaria);
    outline-offset: 3px;
}

/* Melhor UX: dá espaço pro menu fixo não "tapar" os anchors */
section, main{
    scroll-margin-top: 90px;
}

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

.navegacao{
    position: fixed;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    width: 100%;
    z-index: 99;
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}

.menu{
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
}

.menu-link{
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after{
    content: '';
    height: 2px;
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primaria),var(--secundaria));
    transition: width 0.5s ease;
}

.menu-link:hover::after{
    width: 100%;
}

/* ========== HEADER ========== */

.cabecalho{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem 2rem; /* pra não ficar colado no menu fixo */
    text-align: center;
}

.foto-perfil{
    width: 250px;
    height: 250px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    animation: flutuar 5s ease-in-out infinite;
}

h1{
    font-size: 3.5rem;
    color: var(--primaria);
    font-weight: bold;
    margin: 15px;
}

.cabecalho p{
    font-size: 1rem;
    color: var(--claro);
}

/* ========== SOBRE ========== */

.sobre{
    min-height: 100vh;
    padding: 1rem 2rem;
}

.titulo-sobre{
    font-size: 2rem;
    color: var(--claro);
    text-align: center;
    margin-bottom: 10px;
}

.sobre-caixa{
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.sobre-caixa:hover{
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
    border-color: rgba(255, 0, 0, 0.55);
}

.sobre-mim{
    color: var(--claro);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Lista dos pontos fortes (novo do HTML) */
.sobre-lista{
    margin: 0.5rem 0 1.2rem 1.2rem;
    color: var(--claro);
    display: grid;
    gap: 0.4rem;
}

.sobre-lista li{
    line-height: 1.6;
}

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

.projetos{
    padding: 1rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.projetos-caixa{
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 1000px;
}

.projetos-card{
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;

    padding: 1.5rem 1.5rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);

    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.projetos-card:hover{
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
    border-color: rgba(255, 0, 0, 0.55);
}

/* Botão do projeto */
.btn-projeto{
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;

    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);

    color: var(--claro);
    text-decoration: none;
    font-size: 0.9rem;

    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-projeto:hover{
    color: var(--primaria);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Link que envolve a imagem (novo do HTML) */
.projeto-link{
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

/* Imagem dos projetos */
.projetos-imagem{
    width: 400px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: block;
    transition: transform 0.25s ease;
}

.projeto-link:hover .projetos-imagem{
    transform: scale(1.02);
}

/* Corrigido: seu HTML usa .projetos-textos (plural) */
.projetos-textos{
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}

/* Título do projeto e link do título */
.titulo-projeto{
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primaria);
}

.titulo-projeto a{
    color: var(--primaria);
    text-decoration: none;
}

.titulo-projeto a:hover{
    text-decoration: none;
}

.paragrafo-projeto{
    margin: 0;
    color: var(--claro);
    line-height: 1.6;
}

/* ========== CONTATO ========== */

.contatos{
    min-height: 100vh;
    padding: 1rem 2rem;
}

.formulario-contato{
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--vidro);
}

.grupo-form{
    margin-bottom: 1.5rem;
}

.campo-form{
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--claro);
    border: 1px solid var(--vidro);
    outline: none;
    resize: vertical;
}

.campo-form:focus{
    border-color: var(--secundaria);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.35);
}

/* Botão */
.botao-form{
    color: var(--claro);
    background: linear-gradient(45deg, var(--primaria), var(--secundaria));
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, letter-spacing 0.25s ease, font-weight 0.25s ease;
    display: block;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.botao-form:hover{
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========== FUNDO PARTÍCULAS ========== */

.particulas{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    background:
    radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%),
    var(--escuro);
}

/* Animação da foto */
@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Respeita usuários que preferem menos animação */
@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .foto-perfil{ animation: none; }
    .projetos-card,
    .projetos-imagem,
    .btn-projeto,
    .botao-form{
        transition: none !important;
    }
}

/* ========== SOCIAL ========== */

.social-links{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-links a{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.25s ease, background 0.25s ease;
    text-decoration: none;
}

.social-links a:hover{
    background: #d10000;
    transform: translateY(-4px);
}

/* ========== FOOTER ========== */

.footer{
    width: 100%;
    padding: 5px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p{
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.5px;
}

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

@media (max-width: 900px){
    .projetos-card{
        flex-direction: column;
        align-items: stretch;
    }

    .projetos-imagem{
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* mantém proporção bonita */
    }

    .btn-projeto{
        position: static;
        margin-top: 1rem;
        align-self: flex-start;
    }

    h1{
        font-size: 2.6rem;
    }
}

@media (max-width: 520px){
    .menu{
        gap: 1.2rem;
    }

    .botao-form{
        width: 100%;
    }

    .foto-perfil{
        width: 210px;
        height: 210px;
    }
}



/* Remove o "vazio" causado por 100vh nas seções */
.sobre,
.projetos,
.contatos{
  min-height: auto !important;
  padding: 1rem 2rem !important;
}

/* Se você tiver margin-bottom em .projetos e não quiser, zera */
.projetos{
  margin-bottom: 0 !important;
}
