body {
    background-color: #747474;
    color: #000000;
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    /* Linha fina vermelha embaixo do header */
    border-bottom: 2px solid #ff7474;
}

/* Foto de Perfil */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000000; /* Borda preta sólida */
    display: block;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: #ff7474; /* Fica vermelha ao passar o mouse */
}

h1 { 
    margin: 0; 
    font-size: 2.5rem; 
    color: #000000; 
    font-weight: 700;
}

h1.tucoff-handle {
    color: #740000;
}

h2 { 
    margin: 10px 0; 
    font-size: 1.2rem; 
    font-weight: normal; 
    color: #ff7474; /* Detalhe em vermelho */
}

h3 { 
    color: #ffffff;
}

/* Links do Header */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    color: #000000;
    margin: 0 10px;
    font-weight: bold;
    border: 2px solid #000000;
    padding: 5px 10px;
    border-radius: 0px; /* Cantos retos combinam mais com esse estilo */
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
}

.social-links a:hover {
    background: #ff7474;
    color: #ffffff;
    border-color: #ff7474;
}

.bio {
    max-width: 800px;
    margin: 20px auto;
    color: #333333;
}

.bio strong {
    color: #ff7474;
}

.portfolio {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

h3 { 
    border-left: 5px solid #ff7474; 
    padding-left: 10px; 
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* CARDS */
.card {
    background: #ffffff;
    border: 2px solid #000000; /* Borda preta grossa */
    border-radius: 0px; /* Cantos retos */
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 4px 4px 0px #000000; /* Sombra sólida estilo 'brutalismo' */
}

.card:hover { 
    transform: translate(-2px, -2px); 
    box-shadow: 6px 6px 0px #ff7474; /* Sombra fica vermelha no hover */
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #000000;
}

/* Video inside a card: match image sizing + border */
.video-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 2px solid #000000;
    background: #000000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.card-content { padding: 15px; }

/* Título do Projeto */
.card h4 {
    margin: 0 0 10px 0;
    color: #000000;
}

.card p {
    font-size: 0.9rem;
    color: #444;
}

/* Tech Stack (Tags) */
.tech-stack span {
    background: #ffffff;
    border: 1px solid #000000;
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-right: 5px;
    font-weight: bold;
    color: #000000;
    display: inline-block;
    margin-bottom: 5px;
}

/* Botões */
.btn {
    display: block;
    text-align: center;
    background: #000000;
    color: #ffffff;
    padding: 10px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover { 
    background: #ff7474; 
    color: #ffffff;
}

/* Placeholders (Sem Imagem) */
.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: #ffffff;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ff7474;
    letter-spacing: 2px;
}

/* Status e Bloqueados */
.status {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #ff7474;
    font-weight: bold;
    text-transform: uppercase;
}

.card.locked {
    opacity: 1; /* Mantive 1 para ficar nítido no tema branco */
}

/* ARTICLE CARD (Published Articles) */
.full-width-section {
    max-width: 1200px;
}

.article-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0px;
    box-shadow: 6px 6px 0px #000000;
    padding: 24px;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #ff7474;
}

.article-content h4 {
    margin: 0 0 10px 0;
    color: #000000;
}

.journal-info {
    margin: 0 0 14px 0;
    color: #ff7474;
    font-weight: bold;
}

.abstract {
    margin: 0 0 16px 0;
    color: #333333;
    font-size: 0.95rem;
}

.article-card .btn {
    display: inline-block;
    width: auto;
    padding: 10px 16px;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.8rem;
}

/* LANGUAGE SELECTOR */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #000000;
    padding: 10px 15px;
    border: 2px solid #ff7474;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
}

.lang-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.lang-link:hover {
    color: #ff7474;
}

.lang-link.active {
    color: #ff7474;
    border-bottom: 2px solid #ff7474;
}

.lang-separator {
    color: #666666;
    margin: 0 8px;
}

/* Language sections */
.language-section {
    display: none;
}

.language-section.active {
    display: block;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }

    .lang-link {
        font-size: 0.85rem;
    }
}

/* Mobile: social links as 2x2 grid on small screens */
@media (max-width: 600px) {
    .social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 360px;
        margin: 10px auto;
        justify-items: center;
    }

    .social-links a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0; /* remove lateral margins to fit grid */
        text-align: center;
    }

    .article-card {
        padding: 16px;
        box-shadow: 4px 4px 0px #000000;
    }
}