/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Container padrão */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Cabeçalho */
/* Cabeçalho com auto-hide */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1e1e1e;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hide {
    transform: translateY(-100%);
}

/* Espaço para evitar que o conteúdo fique coberto */
body {
    padding-top: 140px; /* ajustado para altura do cabeçalho */
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #61dafb;
}

header h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
}

/* Navegação */
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-top: 1rem;
    gap: 0.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #bbb;
    background: #2c2c2c;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: #61dafb;
    color: #000;
    font-weight: bold;
}

/* Seções */
section.container {
    display: none;
    animation: fade 0.5s ease-in-out;
}
section.container.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

section h2 {
    font-size: 1.8rem;
    color: #61dafb;
    margin-bottom: 1rem;
}

section h3 {
    margin-top: 1rem;
    color: #ccc;
}

section ul {
    list-style: disc;
    padding-left: 1.5rem;
}

section li {
    margin-bottom: 0.5rem;
}

/* GitHub Card */
.github-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.github-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.5rem;
    fill: #61dafb;
}

/* Lista de linguagens */
.lang-list ul {
    list-style: none;
    padding: 0;
}

.lang-list li {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
}

.lang-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Contatos */
.icon-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.icon-list li {
    list-style: none;
}

.icon-list a {
    font-size: 2rem;
    color: #61dafb;
    transition: transform 0.3s ease;
}

.icon-list a:hover {
    transform: scale(1.2);
}

/* Jogo */
#jogo-adivinhacao {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.game-controls {
    margin: 1rem 0;
}

#palpite {
    padding: 0.5rem;
    width: 60%;
    border: none;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

button {
    background-color: #61dafb;
    color: #000;
    padding: 0.5rem 1rem;
    border: none;
    margin: 0.3rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #4fc3f7;
}

/* Rodapé */
footer {
    background: #1e1e1e;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsividade */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .icon-list {
        flex-direction: column;
    }

    #palpite {
        width: 100%;
    }
}
.repos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.repo-card {
    background-color: #222;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 280px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.repo-card h3 a {
    color: #61dafb;
    text-decoration: none;
}

.repo-card h3 a:hover {
    text-decoration: underline;
}
