/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0b0b0b;
    color: #fff;
    overflow-x: hidden;
    width: 100vw;
}

/* ==========================================================================
   MENU SUSPENSO PROFISSIONAL (OVERLAY SEM DESLOCAMENTO)
   ========================================================================== */
.menu-checkbox {
    display: none; 
}

/* Ícone das 3 Linhas (Fixado estritamente sobre a página) */
.hamburger-button {
    position: fixed;
    top: 25px;
    left: 25px;
    font-size: 26px;
    color: #00f2fe; /* Verde Neon Digital */
    cursor: pointer;
    z-index: 2000;
    transition: transform 0.2s;
    background-color: rgba(11, 11, 11, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
}

.hamburger-button:hover {
    transform: scale(1.1);
}

/* Sidebar Estilo Gaveta Flutuante */
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px); /* Desfoca suavemente o fundo */
    position: fixed;
    top: 0;
    left: -280px; /* Completamente escondida fora da tela */
    padding: 40px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2500; /* Fica acima de qualquer outro elemento */
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.7);
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.sidebar .close-btn {
    cursor: pointer;
    font-size: 28px;
    color: #00f2fe;
    margin-right: 20px;
}

.sidebar-logo h3 {
    font-size: 20px;
    color: #fff;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 25px;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    color: #00f2fe;
}

/* Ativação por Checkbox - Apenas altera a posição da Sidebar */
.menu-checkbox:checked ~ .sidebar {
    left: 0 !important; /* Desliza para dentro da tela */
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (BLINDADO A 100% DA TELA)
   ========================================================================== */
.main-content {
    width: 100vw !important;
    max-width: 100% !important;
    margin-left: 0 !important; /* Impede qualquer tipo de corte ou empurrão */
    position: relative;
    z-index: 1;
}

.dark-bg {
    background-color: #0b0b0b;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 24px 24px;
}

.light-bg {
    background-color: #ffffff;
    color: #333;
}

/* ==========================================================================
   SEÇÃO 1: HERO
   ========================================================================== */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    background: linear-gradient(rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.85)), url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content .subtitle {
    color: #888;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero-content .tagline {
    color: #00f2fe;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.btn-outline-white {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: #000;
}

/* REDES SOCIAIS NA HOME */
.social-icons-hero {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-icons-hero a {
    color: #ffffff !important;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-icons-hero a:hover {
    color: #00f2fe !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   SEÇÃO 2: PERFIL E SKILLS
   ========================================================================== */
.profile-section { padding: 80px 8%; }
.columns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.col h2 { font-size: 22px; margin-bottom: 20px; color: #111; }
.col .description { color: #666; font-size: 15px; margin-bottom: 25px; }
.info-meta p { margin-bottom: 12px; font-size: 14px; color: #333; }
.info-meta span { color: #777; }

.skill-bar-wrapper { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; font-weight: bold; }
.badge { background-color: #000; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px; }
.badge.grey { background-color: #666; }
.bar { width: 100%; height: 4px; background-color: #e0e0e0; }
.progress { height: 100%; background-color: #111; }

.btn-dark-outline { display: inline-block; border: 2px solid #111; color: #111; padding: 10px 25px; text-decoration: none; font-weight: bold; font-size: 13px; }
.btn-dark-filled { display: inline-block; background-color: #222; color: #fff; padding: 11px 25px; text-decoration: none; font-weight: bold; font-size: 13px; margin-top: 15px; }

/* ==========================================================================
   SEÇÃO 3 & 4: PROJETOS E METODOLOGIA
   ========================================================================== */
.portfolio-section, .services-section { padding: 80px 8%; text-align: center; }
.section-tag { color: #00f2fe; font-weight: bold; font-size: 11px; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.portfolio-section h2, .services-section h2 { font-size: 28px; margin-bottom: 40px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.project-category { font-size: 11px; font-weight: bold; color: #555; display: block; margin-bottom: 10px; text-align: left; }

.project-box { background-color: #fafafa; padding: 25px; border-radius: 6px; border: 1px solid #eee; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.project-box h3 { font-size: 16px; margin-bottom: 10px; color: #111; }
.project-box p { font-size: 13px; color: #666; margin-bottom: 6px; }
.project-link { color: #00f2fe !important; text-decoration: none; font-weight: bold; font-size: 13px; }

.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.service-card { flex: 1 1 250px; max-width: 300px; text-align: center; }
.service-icon { color: #00f2fe; font-size: 32px; margin-bottom: 15px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: #888; font-size: 13.5px; line-height: 1.5; }

/* ==========================================================================
   8. RESPONSIVIDADE ADAPTATIVA (MOBILE COMPLETO)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Ajusta a grade de projetos para 2 colunas em tablets antes de ir para celular */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* Força todas as grades a virarem uma única coluna vertical */
    .columns-grid, .projects-grid, .services-grid { 
        grid-template-columns: 1fr !important; 
        gap: 35px;
    }
    
    /* Reduz o tamanho exagerado das fontes na tela do celular */
    .hero-content h1 { 
        font-size: 34px !important; 
        line-height: 1.2;
    }
    
    .hero-content .subtitle {
        font-size: 11px !important;
        letter-spacing: 0.5px;
    }
    
    .hero-content .tagline {
        font-size: 11px !important;
    }
    
    /* Diminui os recuos laterais para o texto ter mais espaço no celular */
    .profile-section, .portfolio-section, .services-section {
        padding: 60px 5% !important;
    }
    
    /* Ajusta o menu suspenso para ocupar quase toda a tela no celular */
    .sidebar {
        width: 80%;
        left: -80%;
    }
    
    /* Faz o botão de 3 linhas ficar um pouco menor e mais discreto no celular */
    .hamburger-button {
        top: 15px;
        left: 15px;
        font-size: 22px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    /* Ajuste fino para celulares muito pequenos */
    .hero-content h1 { 
        font-size: 28px !important; 
    }
    
    .social-icons-hero a {
        font-size: 20px !important;
        gap: 20px;
    }
}

/* ==========================================================================
   9. SEÇÃO DE CONTATO E RODAPÉ (FOOTER)
   ========================================================================== */
.contact-section {
    padding: 100px 8% 40px 8%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Botão Verde Tecnológico Grande */
.btn-email-green {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #00f2fe; /* O tom verde esmeralda */
    color: #0b0b0b !important; /* Texto escuro para alto contraste */
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-email-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.4); /* Efeito brilhante neon */
}

/* Rodapé Simples */
.simple-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.simple-footer .design-by {
    font-size: 11px;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.simple-footer .design-by a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.simple-footer .design-by a:hover {
    color: #00e676;
}

/* Ajuste de responsividade para o contato em celulares */
@media (max-width: 480px) {
    .btn-email-green {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   10. ESTILIZAÇÃO DO STREAMLIT EMBED
   ========================================================================== */
.iframe-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Proporção ideal de tela (16:9) */
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background-color: #fff;
}

.iframe-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* No celular o app fica quadrado para o recrutador conseguir rolar o painel com o dedo facilmente */
@media (max-width: 900px) {
    .iframe-responsive {
        padding-top: 100%; 
    }
}

/* ==========================================================================
   11. SISTEMA DE NAVEGAÇÃO POR ABAS (TABS) PARA STREAMLIT
   ========================================================================== */
.tab-switch {
    display: none; /* Esconde os botões nativos do tipo radio */
}

/* Barra de Abas */
.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Design de cada Aba/Botão */
.tab-label {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: all 0.3s;
    margin-bottom: -2px; /* Encaixa em cima da linha da borda inferior */
}

.tab-label i {
    margin-right: 8px;
    font-size: 13px;
}

.tab-label:hover {
    color: #00e676;
    background-color: #f5f5f5;
}

/* Descrição interna de cada painel */
.tab-panel-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Esconde TODOS os painéis por padrão */
.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease;
}

/* LÓGICA DE SELEÇÃO: Exibe o painel correto de acordo com a aba marcada e acende o botão em verde */
#tab-app1:checked ~ .tabs-nav label[for="tab-app1"],
#tab-app2:checked ~ .tabs-nav label[for="tab-app2"],
#tab-app3:checked ~ .tabs-nav label[for="tab-app3"] {
    background-color: #fff;
    color: #00e676;
    border-top: 3px solid #00e676; /* Linha verde no topo do botão ativo */
    border-bottom: 2px solid #fff; /* Apaga a linha cinza embaixo do botão ativo */
}

#tab-app1:checked ~ .tabs-content-wrapper .panel-app1,
#tab-app2:checked ~ .tabs-content-wrapper .panel-app2,
#tab-app3:checked ~ .tabs-content-wrapper .panel-app3 {
    display: block; /* Mostra apenas o painel ativo */
}

/* Animação suave ao trocar de aba */
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste das abas em telas mobile */
@media (max-width: 600px) {
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
    }
    .tab-label {
        border: 1px solid #eee;
        border-radius: 4px !important;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   NOVAS REGRAS: BOTÃO DE IDIOMA E TRANSIÇÃO SUAVE 
   ========================================================================== */

/* Botão de Idioma Fixo no Canto Superior Direito */
.lang-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999; /* Garante que fica acima do menu e do Hero */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(0, 242, 254, 0.4); /* Seu Azul/Digital #00f2fe */
    padding: 8px 16px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px); /* Efeito glassmorphism sutil */
}

.lang-btn:hover {
    background: #00f2fe;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    border-color: #00f2fe;
}

/* Animação Suave para a troca de Idiomas (Injetada automaticamente no conteúdo) */
.main-content {
    animation: fadeInContent 0.4s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0.4;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste Responsivo do Botão para Telas de Celular */
@media (max-width: 768px) {
    .lang-btn {
        top: 20px;
        right: 20px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
