/* ====================================================== */
/* 1. Variáveis e Configurações Globais */
/* ====================================================== */

/* Variáveis de Cor (Tema Light Padrão) */
:root {
    --bg-color: #f0f2f5; 
    --card-bg: white; 
    --text-color: #333;
    --text-light: #888;
    --accent-color: #00c853; /* Verde vibrante para Light Mode */
    --shadow-color: rgba(0,0,0,0.05);
    --timeline-dot-bg: #ccc; 
    --skill-card-bg: #e8f5e9; /* Menta sutil para Skills */
    --tool-icon-bg: #f5f5f5; /* Fundo levemente cinza para Tools */

    /* Cores Alternadas para 'What I Do' (Light Mode) */
    --card-color-1: #e0f7fa; /* Ciano Claro */
    --card-color-2: #f3e5f5; /* Rosa Claro */
}

/* Estilos para o Dark Mode */
body.dark-mode {
    --bg-color: #121212; 
    --card-bg: #1e1e1e; 
    --text-color: #f0f0f0; 
    --text-light: #b0b0b0;
    --accent-color: #bb86fc; /* Roxo para Dark Mode */
    --shadow-color: rgba(255,255,255,0.05);
    --timeline-dot-bg: #555;
    --skill-card-bg: #2a2a2a; 
    --tool-icon-bg: #2a2a2a; /* Fundo Tool Icon no Dark Mode */

    /* Cores Alternadas para 'What I Do' (Dark Mode) */
    --card-color-1: #252e35; /* Azul Escuro Sutil */
    --card-color-2: #352535; /* Roxo Escuro Sutil */
}

/* Estilos Globais */
body {
    font-family: 'Chakra Petch', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color); 
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s; 
}
h1, h2, h3 {
    color: var(--text-color);
}
body {
    padding-bottom: 0; 
}
.sidebar-left, .content-area {
    background-color: var(--card-bg);
}


/* Estilo do Botão de Tema (FIXO, FORA DO FLUXO DO LAYOUT) */
.theme-toggle {
    background: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    
    position: fixed; 
    top: 20px;
    right: 20px;
    z-index: 1001; 
    
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s, color 0.3s;
}


/* ====================================================== */
/* 2. Layout Grid (Desktop Padrão) */
/* ====================================================== */

.portfolio-layout {
    display: grid;
    grid-template-columns: 300px 1fr 80px; 
    max-width: 1400px; 
    margin: 40px auto;
    gap: 20px;
    padding: 0 20px; 
    position: relative; 
}

/* Posicionamento dos Elementos no Grid */
.sidebar-left {
    grid-area: 1 / 1 / span 1 / 2; 
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
    text-align: center;
}
.content-area {
    grid-area: 1 / 2 / span 1 / 3; 
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
    min-height: 80vh; 
}
.sidebar-right {
    grid-area: 1 / 3 / span 1 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    padding-right: 10px; /* <--- ESPAÇO EXTRA À DIREITA */
    overflow: visible !important;
}

/* ====================================================== */
/* 3. Estilos do Card Lateral (sidebar-left) */
/* ====================================================== */

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
}
.profile-card h2, .profile-card .role {
    text-align: center;
}
.role {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* LINKS SOCIAIS (AJUSTADO PARA IMAGENS) */
.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--bg-color);
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: background-color 0.2s, box-shadow 0.2s;
}
.social-img {
    width: 60%; 
    height: 60%;
    object-fit: contain;
}
.social-icon:hover {
    background-color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Estilos do social-icon no Dark Mode */
body.dark-mode .social-icon {
    background-color: #3d3d3d; /* Fundo preto para ícones no Dark Mode */
    border: 1px solid #3d3d3d; /* Borda sutil */
}

/* Efeito de hover para social-icon no Dark Mode */
body.dark-mode .social-icon:hover {
    background-color: var(--accent-color); /* Usar a cor de destaque (lilás) */
    box-shadow: 0 2px 5px var(--shadow-color); /* Manter a sombra padrão do Dark Mode */
}


.contact-info {
    margin-top: 20px;
    border-top: 1px solid var(--text-light); 
    padding-top: 15px;
    text-align: left;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info p {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 5px;
}
.download-cv-btn {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background-color: var(--accent-color); 
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
}
body:not(.dark-mode) .download-cv-btn:hover {
    background-color: #008f3e; 
}
body.dark-mode .download-cv-btn:hover {
    background-color: #9d5ae6; 
}


/* Botões de Navegação Direita */
.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s, color 0.3s;
}
.nav-button span {
    font-size: 10px;
    margin-top: 2px;
}
.nav-button .icon {
    font-size: 1.2em;
}
.nav-button.active {
    background-color: var(--accent-color); 
    color: white;
}

/* Controle de Visibilidade das Seções */
.content-section {
    display: none; 
}
.content-section.active {
    display: block; 
}

/* ====================================================== */
/* 4. ESTILOS DA SEÇÃO ABOUT (INCLUI 'WHAT I DO') */
/* ====================================================== */
.intro-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-subtitle {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: none; 
    padding-bottom: 0;
}

/* Layout dos Cards What I Do (2x2) */
.what-i-do-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card h3 {
    font-size: 1.1em;
    margin-top: 0;
}
.service-card p {
    font-size: 0.9em;
    color: var(--text-light);
}

/* Cores Alternadas para os Cards */
.card-style-1 {
    background-color: var(--card-color-1);
}
.card-style-2 {
    background-color: var(--card-color-2);
}
.icon-box {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--accent-color); 
}

/* ====================================================== */
/* 5. RESUME - LAYOUT DE 3 LINHAS/2 COLUNAS (GRID DEFINIDO) */
/* ====================================================== */

.resume-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto auto; 
    gap: 30px 40px; 
    margin-top: 20px;
}

/* POSICIONAMENTO DOS BLOCOS NO GRID */
.experience-area {
    grid-area: 1 / 1 / 2 / 2; 
}
.education-area {
    grid-area: 1 / 2 / 2 / 3; 
}
.tools-area {
    grid-area: 2 / 1 / 3 / 2; 
}
.languages-area {
    grid-area: 2 / 2 / 3 / 3; 
}
.skills-area {
    grid-area: 3 / 1 / 4 / 3; 
    margin-top: 0; 
}


/* Títulos padrão para todos os blocos do Resume */
.section-subtitle {
    font-size: 1.2em; 
    font-weight: bold;
    color: var(--text-color);
    margin-top: 0; 
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--timeline-dot-bg); 
    padding-bottom: 5px;
}

/* ====================================================== */
/* 6. ESTILOS DA TIMELINE (EXPERIENCE & EDUCATION) */
/* ====================================================== */

.timeline-container {
    position: relative;
    padding-left: 10px; 
    margin-top: 20px;
    margin-bottom: 10px; 
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background: var(--timeline-dot-bg);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--card-bg);
    z-index: 10;
}

.timeline-date {
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    color: var(--text-color); 
    position: relative; 
    z-index: 2; 
    padding: 0; 
    border-radius: 5px;
    margin-bottom: 5px;
}

/* CORREÇÃO CRÍTICA DO FUNDO DA DATA (Pseudo-elemento para fundo) */
.timeline-date::after {
    content: '';
    position: absolute;
    top: -2.5px; 
    left: -8px; 
    width: calc(100% + 15px); 
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.15;
    border-radius: 5px;
    z-index: -1; 
    padding: 2px 8px; 
    box-sizing: content-box; 
    transform: none; 
}

/* Ajusta o padding para todo o conteúdo do item, alinhando com o centro da bolinha */
.timeline-item h3, 
.timeline-item p {
    padding-left: 25px; 
}
.timeline-date {
    margin-left: 25px; 
}

.timeline-title {
    margin: 0;
    font-size: 1.1em; 
}

.timeline-company {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-light);
}
.timeline-location {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 2px;
}


/* ====================================================== */
/* 7. ESTILOS DAS FERRAMENTAS (Múltiplas Fileiras) */
/* ====================================================== */
.tools-grid-horizontal {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 20px;
}

.tool-icon {
    background-color: var(--tool-icon-bg); 
    padding: 8px; 
    border-radius: 8px; 
    box-shadow: 0 1px 3px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 45px; 
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tool-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ====================================================== */
/* 8. ESTILOS DAS SKILLS (Horizontalizado em 2 Colunas) */
/* ====================================================== */
.skills-grid-horizontal {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 30px;
}

.skill-card {
    background-color: var(--skill-card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--timeline-dot-bg); 
    flex: 1; 
    min-width: 250px; 
}

.skill-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: var(--accent-color); 
    margin-bottom: 10px;
}

.skill-card ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.skill-card ul li {
    font-size: 0.9em;
    color: var(--text-color);
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px; 
}
.skill-card ul li::before {
    content: '•'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* ====================================================== */
/* 9. ESTILOS DAS LINGUAGENS */
/* ====================================================== */
.languages-list p {
    font-size: 0.95em;
    margin-bottom: 5px;
}
.languages-list strong {
    color: var(--text-color);
}

/* ====================================================== */
/* 10. ESTILOS DA SEÇÃO RECOMENDATIONS (ATUALIZADO) */
/* ====================================================== */

.recommendations-grid {
    display: grid;
    /* Grid flexível que cria 3 colunas, mas ajusta o número se não houver espaço */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.recommendation-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid var(--timeline-dot-bg);
    
    /* CENTRALIZAÇÃO DE TODO O CONTEÚDO DO CARD */
    text-align: center; 
}

.recommendation-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.recommender-info {
    display: flex;
    flex-direction: column; /* Coloca a foto acima do texto */
    align-items: center;
    margin-bottom: 15px;
}

.recommender-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 0 10px 0; /* Centraliza a foto e adiciona margem abaixo */
    border: 3px solid var(--accent-color);
}

.recommender-info h3 {
    margin: 0;
    font-size: 1.1em;
}

.recommender-role {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-light);
}

.quote {
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.linkedin-link {
    /* Centraliza o link (agora que o pai está centralizado) */
    display: block; 
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px; /* Adiciona espaço acima do link */
}
/* Estilizando o link do LinkedIn como se fosse um botão discreto */
.linkedin-link::before {
    content: 'in';
    font-family: sans-serif;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 5px;
    background-color: var(--accent-color);
    color: white;
}

/* ====================================================== */
/* 11. RESPONSIVIDADE (MEDIA QUERIES) */
/* ====================================================== */

/* ------------------ TABLETS (Max 900px) ------------------ */
@media (max-width: 900px) {
    
    .portfolio-layout {
        grid-template-columns: 1fr 80px; 
        margin: 20px auto;
        gap: 15px;
        padding: 0 15px;
    }
    
    .sidebar-left {
        grid-area: 1 / 1 / 2 / 3; 
        text-align: center; 
        padding: 20px;
    }

    .profile-card {
        display: flex; 
        align-items: center;
        text-align: left;
        max-width: 500px;
        margin: 0 auto; 
    }
    .profile-photo {
        margin: 0 15px 0 0;
    }
    .profile-card h2, .profile-card .role {
        text-align: left;
        margin-top: 0;
        margin-bottom: 5px;
    }
    .contact-info, .download-cv-btn {
        display: none; 
    }

    .social-links {
        display: flex;
        position: absolute;
        top: 20px;
        right: 15px;
        margin: 0;
    }

    .content-area {
        grid-area: 2 / 1 / 3 / 2;
        padding: 20px;
        min-height: 50vh;
    }

    .sidebar-right {
        grid-area: 2 / 2 / 3 / 3;
        padding-top: 0;
    }

    /* Resume em coluna única no tablet */
    .resume-content-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
        gap: 20px;
    }
    /* Redefine a área de todos os blocos para ficarem em coluna */
    .experience-area, .education-area, .tools-area, .languages-area, .skills-area {
        grid-area: unset !important; 
        margin-top: 0;
    }
    .tools-area, .languages-area, .skills-area {
        margin-top: 20px;
    }

    /* Skills em coluna única no tablet */
    .skills-grid-horizontal {
        flex-direction: column; 
    }
    .skill-card {
        min-width: 100%;
    }

    /* Tools em fileiras horizontais normais */
    .tools-grid-horizontal {
        justify-content: center;
    }
    
    /* Ajustes da Timeline para caber melhor na coluna única */
    .timeline-item h3, 
    .timeline-item p {
        padding-left: 15px; 
    }
    .timeline-date {
        margin-left: 15px; 
    }
    .timeline-date::after {
        left: 15px;
    }
    .timeline-container::before {
        left: 5px;
    }
    .timeline-item::before {
        left: -1px;
    }
    
    /* What I Do em coluna única no tablet */
    .what-i-do-grid {
        grid-template-columns: 1fr;
    }
    
    /* Recomendações em coluna única no tablet */
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ------------------ CELULARES (Max 600px) ------------------ */
@media (max-width: 600px) {

    .portfolio-layout {
        display: flex; 
        flex-direction: column;
        gap: 15px;
        padding: 0 10px; 
        margin: 10px auto;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }

    .sidebar-left, .content-area {
        width: 100%;
        margin: 0;
    }

    .profile-card {
        flex-direction: column; 
        text-align: center;
        max-width: none; 
    }
    .profile-photo {
        margin: 0 auto 10px; 
    }
    .profile-card h2, .profile-card .role {
        text-align: center; 
    }
    
    .social-links {
        position: relative;
        margin-top: 10px;
        margin-bottom: 0;
    }
    
    .sidebar-right {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row; 
        justify-content: space-around;
        padding: 5px 0;
        border-radius: 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        background-color: var(--card-bg); 
    }

    .nav-button {
        width: 50px;
        height: 50px;
        margin: 0;
        box-shadow: none;
    }

    body {
        padding-bottom: 70px; 
    }

    .resume-content-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    .timeline-container {
        padding-left: 10px;
    }
    .timeline-container::before {
        left: 0;
    }
    .timeline-item::before {
        left: -6px;
    }

    .tools-grid-horizontal {
        justify-content: center; 
    }
    .tool-icon {
        width: 50px;
        height: 50px;
    }
    .skills-grid-horizontal {
        flex-direction: column; 
    }
    
    .what-i-do-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================== */
/* 12. PORTFÓLIO - ESTILO INCRÍVEL */
/* ====================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 25px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px var(--shadow-color);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #ddd;
    border-bottom: 3px solid var(--accent-color);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-info h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info h3::before {
    font-size: 1.1em;
}

#portfolio .project-info h3::before {
    content: '🕹️';
}

#works3d .project-info h3::before {
    content: '🎨';
}

.project-info p {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.project-links a {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-links a::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.project-links a:hover::after {
    width: 300px;
    height: 300px;
}

.project-links a:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

/* Em desenvolvimento */
.project-links a[href="#"] {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.project-links a[href="#"]:hover {
    background: #555;
    transform: none;
}

/* ====================================================== */
/* 13. EM DESENVOLVIMENTO - GRID 2 COLUNAS */
/* ====================================================== */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 25px;
}

.dev-project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px var(--shadow-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante que todos os cards tenham mesma altura */
}

.dev-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.dev-project-card h3 {
    background: var(--accent-color);
    color: white;
    margin: 0;
    padding: 14px 38px 14px 18px;
    font-size: 1.15em;
    text-align: center;
    position: relative;
    font-weight: 700;
    overflow: hidden;
}

.dev-project-card h3::after {
    content: 'WIP';
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 0.58em;
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2; /* Fica por cima do texto */
}

/* Vídeo responsivo */
.dev-media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
    margin-bottom: 12px;
}

.dev-media video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 0;
}

/* Galeria de prints */
.dev-gallery {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gallery-img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 10;
}

/* Conteúdo */
.dev-content {
    padding: 16px 18px;
    font-size: 0.88em;
    line-height: 1.5;
    color: var(--text-light);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 9px; /* Espaço uniforme entre linhas */
}

.dev-content p {
    margin: 0;
    display: flex;
    align-items: flex-start; /* Alinha no topo */
    gap: 6px;
    line-height: 1.5;
    flex-wrap: nowrap;
    overflow: hidden;
}

.dev-content strong {
    color: var(--text-color);
    min-width: 95px;
    font-weight: 600;
    flex-shrink: 0; 
    text-align: left;
    /* Alinhar melhor o texto */
    align-self: flex-start; 
}

.dev-content span {
	white-space: normal;
    overflow-wrap: break-word;
    flex: 1; /* <-- Ocupa todo o espaço restante e permite quebra */
    word-break: break-word;
}

/* Regra específica para o status WIP */
.dev-content .status.wip {
    background: var(--accent-color);
    color: white;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    flex: 0 1 auto;
    width: fit-content;
    white-space: nowrap;
}

/* Responsividade */
@media (max-width: 900px) {
    .dev-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .gallery-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 600px) {
    .dev-project-card h3 {
        font-size: 1.1em;
        padding: 12px 16px;
    }
    .dev-content {
        font-size: 0.85em;
        padding: 14px 16px;
    }
    .gallery-img {
        width: 65px;
        height: 65px;
    }
}

/* ====================================================== */
/* 14. SUBMENU - VISUAL DE SUBPASTA */
/* ====================================================== */
#submenu {
    margin-left: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 0;
}

#submenu.visible {
    max-height: 100px;
}

.submenu-btn {
    width: 70px !important;           /* Menor que os outros (80px → 70px) */
    min-height: 50px !important;      /* Altura reduzida */
    padding: 8px 4px !important;      /* Menos padding interno */
    margin: 6px 0 6px 20px !important; /* Indentação à esquerda */
    border-radius: 10px !important;
    box-shadow: 0 2px 6px var(--shadow-color) !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68em !important;     /* Texto um pouco menor */
    line-height: 1.1 !important;
    text-align: center;
    background: rgba(255,255,255,0.12) !important;
    color: var(--text-light) !important;
    position: relative;
    overflow: hidden;
	hyphens: auto;
}

body.dark-mode .submenu-btn {
    background: rgba(0,0,0,0.2) !important;
}

.submenu-btn::before {
    content: "→";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: var(--accent-color);
    font-weight: bold;
}

.submenu-btn .icon {
    font-size: 1.1em !important;
}

.submenu-btn .nav-label {
    display: block;
    word-break: normal;
    white-space: normal;
    max-width: 55px;                  /* Limita a largura do texto */
    overflow: hidden;
    text-overflow: clip;
}

/* ===== SUBMENU HOVER SEM MOVIMENTO ===== */
.submenu-btn:hover,
.submenu-btn.active {
    background: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25) !important;
    z-index: 10;
}

/* Mobile */
@media (max-width: 600px) {
    .submenu-btn:hover,
    .submenu-btn.active {
        background: var(--accent-color) !important;
        color: white !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    }
}

/* ====================================================== */
/* 15. BOTÕES DE NAVEGAÇÃO */
/* ====================================================== */
.nav-button {
    width: 80px !important;
    height: auto !important;
    min-height: 70px;
    padding: 10px 6px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 8px var(--shadow-color) !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8em !important;
    line-height: 1.2 !important;
    text-align: center;
}

.nav-button .icon {
    font-size: 1.4em !important;
}

.nav-button .nav-label {
    display: block;
    word-break: normal;
    white-space: normal;
    margin-top: 2px;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color) !important;
}

.nav-button.active {
    background-color: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

body.dark-mode .submenu-btn {
    background: rgba(0,0,0,0.25) !important;
}

/* RESPONSIVO - MOBILE */
@media (max-width: 600px) {
    .nav-button {
        width: 60px !important;
        min-height: 60px !important;
        padding: 8px 4px !important;
        font-size: 0.7em !important;
    }
    .nav-button .icon {
        font-size: 1.2em !important;
    }
    .nav-button .nav-label {
        font-size: 0.65em !important;
    }
}

/* ====================================================== */
/* 16. VÍDEO LOCAL + GALERIA DE IMAGENS */
/* ====================================================== */
.dev-media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.dev-media video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    border-radius: 12px;
}

.dev-gallery {
    display: flex;
    justify-content: center; /* Isso centraliza o grupo de imagens como um todo */
    align-items: center;     /* Alinha verticalmente, se necessário */
    gap: 8px;                /* Espaçamento entre as imagens */
    margin-bottom: 15px;
    /* max-width opcional para garantir que o grupo não fique muito grande em telas largas */
    /* max-width: 400px; */ 
}

.gallery-img {
    /* Define um tamanho fixo e quadrado para cada imagem */
    width: 100px;  
    height: 100px; 
    
    object-fit: cover; /* Garante que a imagem preencha o quadrado sem distorcer */
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Responsivo */
@media (max-width: 900px) {
    .dev-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-img {
        height: 80px;
    }
}

@media (max-width: 600px) {
    .dev-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gallery-img {
        height: 100px;
    }
}

/* ====================================================== */
/* BOTÃO DE IDIOMA */
/* ====================================================== */
.lang-toggle {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1001;
    background: var(--card-bg);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* ===== REMOVE EFEITO DE MOVIMENTO NO BOTÃO DE IDIOMA ===== */
.lang-toggle:hover {
    transform: none !important;     /* Remove a escala */
    box-shadow: 0 2px 5px var(--shadow-color); /* Mantém a sombra original */
}