/* ==========================================================================
   1. VARIÁVEIS — paleta de cores global (usada em todo o site)
   ========================================================================== */

:root {
    --bg:           #0F1111; /* Preto */
    --header:       #1C2321; /* Preto Esverdeado */
    --header_bright:#252e2b; /* Preto Esverdeado */
    --line:         #38373B; /* Cinza Escuro */
    --shadow:       #000000; /* Preto */

    --block:        #C24F1D; /* Laranja Queimado */
    --border:       #4E1C0D; /* Marrom Avermelhado */

    --highlight:    #DD8838; /* Âmbar */
    --text:         #F0E8D8; /* Off-White */
    --muted:        #B5AA9A; /* Bege Acinzentado */

    --paper:        #F0E8D8; /* Papel */
    --rust:         #8C2E0F; /* Ferrugem */
}


/* ==========================================================================
   2. BASE — estilo geral da página (body e separadores)
   ========================================================================== */

body {
    background: var(--bg);
    color: var(--text);

    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;

    line-height: 1.5;
    margin: 0 auto;
    padding: 20px;
    max-width: 1000px;
    text-align: justify;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 20px auto;
}


/* ==========================================================================
   3. TIPOGRAFIA E CONTEÚDO — títulos, listas e blocos de código
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "Syne", sans-serif;
    font-weight: 700;
}

h1 {
    text-align: center;
}

ol {
    list-style-type: decimal-leading-zero;
}

ul {
    list-style-type: disc;
}

code {
    color: var(--shadow);
    display: block;
    background: var(--muted);

    margin: 40px;
    padding: 20px;
    font-family: "IBM Plex Mono", monospace;
}


/* ==========================================================================
   4. NAVEGAÇÃO — menu (nav), links e ícones dentro dele
   ========================================================================== */

/* Container do menu */
nav {
    display: flex;
    margin-left: 40px;
    margin-right: 40px;
    justify-content: space-between;
}

/* Links diretos do menu */
nav > a {
    color: var(--highlight);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: "IBM Plex Mono", monospace;
    display: inline-block;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav > a:hover {
    color: var(--block);
    transform: scale(1.08);
}

/* Alinhamento de ícone + texto (vem depois de "nav > a" de propósito:
   o display: inline-flex sobrescreve o inline-block acima) */
nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Ícone dentro do link de nav que está dentro de um card */
.card nav a img {
    width: auto;
    height: 24px;
    border: none;
    display: inline-block;
}


/* ==========================================================================
   5. CARDS — caixa de projeto, imagens, ícones e legenda
   ========================================================================== */

.card {
    background: var(--header);
    border-radius: 10px;
    padding: 16px;
    margin: 24px 24px;
    text-align: left;

    transition: background 0.2s ease-in-out;
}

.card:hover {
    background: var(--header_bright);
}

/* Imagem principal do card */
.card img {
    border: 2px solid var(--line);
    display: block;
    width: 100%;
    height: auto;
}

/* Ícones pequenos dentro do card */
.card img.icone {
    width: auto;
    height: 24px;
    border: none;
    display: inline-block;
}

.card img.iconec {
    width: auto;
    height: 20px;
    border: none;
    margin: 3px;
    display: inline-block;
}

.card-legenda {
    margin: 12px 4px 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1rem;
}


/* ==========================================================================
   6. LAYOUTS DE LISTA — grades que organizam os cards
   (.skills precisa ficar depois de .card para sobrescrever a margem)
   ========================================================================== */

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 24px;
}

.skills .card {
    margin: 0;
}

.stack {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}


/* ==========================================================================
   7. CABEÇALHO DE PÁGINA / TEXTOS AUXILIARES — info do projeto, autor, descrição
   ========================================================================== */

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -20px;
    margin-bottom: 20px;
}

/* Separador "•" entre os itens do header-info */
.header-info span + span::before {
    content: "•";
    margin-right: 12px;
    color: var(--muted);
}

.autor {
    text-align: left;
    font-style: italic;
    font-size: 1.3rem;
}

.desc {
    text-align: left;
    font-size: 1.3rem;
    color: var(--muted);
}

#more {
    text-align: left;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: -20px;
    margin-bottom: 20px;
}

.explore {
    text-decoration: none;
    color: var(--block);
}


/* ==========================================================================
   8. RODAPÉ — texto do footer e redes sociais
   ========================================================================== */

footer p {
    text-align: end;
}

#footer {
    color: var(--muted);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px;
}

.social-links a img {
    transition: transform 0.2s ease;
    filter: brightness(0.7);
}

.social-links a:hover img {
    transform: scale(1.25);
    filter: brightness(1.0);
}