
html {
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
}



:root {
    --bg-dark: #0a0a0a;
    --accent-green: #00ff87;
    --accent-gradient: linear-gradient(90deg, #00ff87 0%, #60efff 100%);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.mobile-menu-icon {
    display: none !important;
}






/* PRELOADER */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0d1117;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'JetBrains Mono', monospace;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.loader-logo {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    position: relative;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.logo-text .dot { color: var(--accent-green); }

/* Linha de Scanner */
.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-green);
    top: 0;
    box-shadow: 0 0 15px var(--accent-green);
    animation: scan 1.5s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0%; opacity: 0; }
    50% { top: 100%; opacity: 1; }
}

.loader-terminal {
    text-align: left;
    height: 80px;
    margin-bottom: 15px;
}

.terminal-line {
    font-size: 0.7rem;
    color: rgba(0, 255, 135, 0.7);
    margin: 4px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

/* Barra de Progresso */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}







/* --- HEADER --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none; /* Remove o sublinhado azul padrão */
    color: inherit; /* Mantém a cor original do texto */
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

.logo:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.logo span {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.btn-contact {
    position: relative;
    padding: 0.6rem 1.4rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark); /* Fundo sólido para cobrir o centro */
    border-radius: 8px;
    z-index: 1;
    overflow: hidden; /* Esconde o excesso do gradiente que gira */
    border: 1.5px solid rgba(0, 255, 135, 0.2); /* Borda padrão discreta */
    transition: 0.4s;
}

/* O gradiente que vai girar */
.btn-contact::before {
    content: '';
    position: absolute;
    width: 200%; /* Maior que o botão para cobrir tudo ao girar */
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--accent-green), 
        transparent 30%
    );
    animation: rotateBorder 3s linear infinite;
    z-index: -2;
    opacity: 0; /* Invisível por padrão */
    transition: 0.4s;
}

/* Camada interna para manter o fundo escuro e a borda fina */
.btn-contact::after {
    content: '';
    position: absolute;
    inset: 1.5px; /* Espessura da borda */
    background: var(--bg-dark);
    border-radius: 7px;
    z-index: -1;
}

/* --- Efeito Hover --- */
.btn-contact:hover {
    color: #fff;
    border-color: transparent; /* Remove a borda fixa no hover */
}

.btn-contact:hover::before {
    opacity: 1; /* Faz o gradiente giratório aparecer */
}

/* Animação de Rotação */
@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}








/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    top: 20%;
    right: -10%;
    z-index: -1;
}

.code-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-green);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.45rem;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-bottom: 2.5rem;
}


.hero-text h1 {
    font-size: 3.45rem;
    line-height: 1.2;      /* Aumenta o espaço entre as linhas do título */
    margin-bottom: 1.5rem; /* Empurra a descrição para baixo */
    font-weight: 800;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;      /* Melhora a legibilidade do texto menor */
    margin-bottom: 3rem;   /* Cria um espaço generoso antes dos botões */
    color: var(--text-gray);
    max-width: 550px;      /* Evita que o texto fique largo demais */
}

/* Botões */
.hero-btns {
    display: flex;
    gap: 2rem;             /* Aumenta a distância entre "View Projects" e "Official Certs" */
    align-items: center;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 135, 0.3);
}

/* Botão Base */
.btn-certs {
    position: relative;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0c0c0c; /* Fundo sólido para cobrir o centro */
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borda padrão discreta */
    transition: 0.4s;
}

/* O gradiente que vai girar atrás */
.btn-certs::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--accent-green), 
        transparent 20%
    );
    animation: rotateBorder 4s linear infinite; /* Rotação contínua */
    z-index: -2;
    opacity: 0;
    transition: 0.4s;
}

/* Camada interna para o fundo escuro (Mask) */
.btn-certs::after {
    content: '';
    position: absolute;
    inset: 1.5px; /* Espessura da borda */
    background: #0c0c0c;
    border-radius: 7px;
    z-index: -1;
}

/* --- Hover: Ativa o efeito --- */
.btn-certs:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 135, 0.1);
}

.btn-certs:hover::before {
    opacity: 1; /* O brilho aparece ao passar o mouse */
}


/* Container para não afetar o layout do h1 */
.badge-container {
    display: inline-block;
    margin-bottom: 2rem;
    perspective: 1000px; /* Prepara para efeitos 3D se quiser futuramente */
}

.code-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-green);
    
    /* Estilo Badge/Pílula */
    background: rgba(0, 255, 135, 0.08);
    border: 1px solid rgba(0, 255, 135, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    
    /* Efeito de Vidro e Brilho */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.1);
    
    /* A Animação */
    animation: floatingBadge 3.5s ease-in-out infinite;
}

/* Definição do movimento suave */
@keyframes floatingBadge {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px); /* Altura da flutuação */
    }
    100% {
        transform: translateY(0px);
    }
}




.hero-content-wrapper {
    padding-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-border {
    width: 350px;
    height: 420px;
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    padding: 15px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    filter: grayscale(100%); /* Dá um ar mais profissional e tech */
    transition: 0.5s;
}

.hero-image img:hover {
    filter: grayscale(0%); /* A cor volta ao passar o rato */
}

.image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}






/* PROJECTS */

.projects-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    /* Mantendo seus estilos anteriores */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    height: 100%; /* Garante que todos os cards na linha tenham a mesma altura */
    transition: 0.5s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Essencial */
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-green);
    box-shadow: 0 20px 40px rgba(0, 255, 135, 0.1);
}


/* O Título Principal */
.section-title {
    font-size: 2.5rem;    /* Tamanho da fonte */
    font-weight: 700;     /* Peso (negrito) */
    color: #ffffff;       /* Cor do "Featured" */
    margin-bottom: 1rem;  /* Espaço para o texto de baixo */
}

/* A frase "A showcase of engineering..." */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray); /* Geralmente um cinza claro */
    margin-bottom: 3rem;
}

.project-category {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-green);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    min-height: 3.2rem; /* Reserva espaço para títulos de até 2 linhas */
    display: flex;
    align-items: center;
}

.project-card p {
    flex-grow: 1; /* Este é o segredo: ele ocupa todo o espaço restante */
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Badges de Tecnologia */
.project-tech {
    margin-top: auto; /* Garante que os badges fiquem sempre no rodapé do card */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-tech span {
    background: rgba(255, 255, 255, 0.05);
    /* Borda sutil com a sua cor verde */
    border: 1px solid rgba(0, 255, 135, 0.3); 
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Quando passar o mouse no card, a borda dos badges fica mais nítida */
.project-card:hover .project-tech span {
    border-color: var(--accent-green);
}

/* Detalhe de luz no fundo do card ao dar hover */
.project-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}







/* STACK */

.stack-section {
    padding: 7rem 0; /* Aumenta o espaço em cima e embaixo da seção */
    display: flex;
    flex-direction: column;
    align-items: center;
}


.stack-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 4rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 135, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.tech-badge span {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-size: 0.95rem;
}

/* Animações puramente verticais */
.v-float-1 { animation: pureVertical 4s ease-in-out infinite; }
.v-float-2 { animation: pureVertical 5s ease-in-out infinite; }
.v-float-3 { animation: pureVertical 6s ease-in-out infinite; }

@keyframes pureVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); } /* Apenas sobe e desce */
}

/* Hover mais responsivo e focado no brilho */
.tech-badge:hover {
    background: rgba(0, 255, 135, 0.08);
    border-color: var(--accent-green);
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}

.tech-badge:hover span {
    color: var(--accent-green);
}







/* CERTIFICATIONS */
#certifications {
    padding: 7rem 0; /* Aumento expressivo para separar da nuvem de badges */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certs-grid {
    display: grid;
    /* Força exatamente 4 colunas de tamanhos iguais */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; /* Reduzimos um pouco o espaço entre eles para caber melhor */
    margin-top: 4rem;
    width: 100%;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho holográfico no hover */
.cert-card::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.1) 0%, transparent 50%);
    transition: 0.6s;
    pointer-events: none;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-green);
    background: rgba(0, 255, 135, 0.02);
}

.cert-card:hover::after {
    top: -50%;
    left: -50%;
}

.cert-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.2));
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cert-issuer {
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.cert-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cert-icon {
    height: 80px; /* Escolha uma altura fixa para todos */
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    margin-bottom: 20px;
}

.cert-icon img, .cert-icon i {
    max-height: 100%; /* Garante que o ícone não estoure o container */
    width: auto;      /* Mantém a proporção */
    object-fit: contain;
}




/* EXPIRIENCES */

.trajectory-section { padding: 120px 0; }

.trajectory-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.trajectory-container {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    min-height: 500px;
    overflow: hidden;
}

/* Sidebar Esquerda */
.trajectory-sidebar {
    width: 30%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
}

.trajectory-sidebar ul { list-style: none; }

.sidebar-link {
    padding: 1.2rem 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    display: block;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent-green);
    background: rgba(0, 255, 135, 0.05);
    border-left: 3px solid var(--accent-green);
}

/* Conteúdo Direita */
.trajectory-content {
    width: 100%;
    padding: 3rem;
    display: flex;
    gap: 2rem;
}

.content-text { flex: 1; }
.content-text h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #fff; }
.content-text p { color: var(--text-gray); line-height: 1.8; }

.content-media { flex: 1; display: flex; align-items: right; justify-content: center; }
.content-media img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}






/* CONTATO */
.contact-grid {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Efeito de Vidro nos Inputs */
.input-group {
    position: relative;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s;
}

/* Floating Label Magic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--accent-green);
}

.input-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
}

/* Botão Estilo Industrial */
.submit-btn {
    padding: 1rem 2rem;
    background: var(--accent-green);
    color: #000;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 0 30px var(--accent-green);
    transform: translateY(-2px);
}

/* Terminal de Código */
.terminal-box {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid #30363d;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}

.terminal-header {
    background: #161b22;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }


.terminal-content {
    padding: 30px; /* Aumentamos aqui para descolar da borda */
    font-size: 0.95rem; /* Ajuste fino na leitura */
    line-height: 1.6; /* Melhora o espaçamento entre as linhas de código */
    font-family: 'JetBrains Mono', monospace;
}


.terminal-content a {
    color: inherit; /* Herda a cor laranja/amarela que você já definiu */
    text-decoration: none; /* Remove o sublinhado */
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(209, 154, 102, 0.3); /* Adiciona um sublinhado tracejado bem discreto */
}

.terminal-content a:hover {
    color: var(--accent-green); /* Muda para o seu verde neon ao passar o mouse */
    border-bottom-color: var(--accent-green);
    text-shadow: 0 0 8px rgba(0, 255, 135, 0.5); /* Adiciona um leve brilho */
}



.terminal-content p {
    margin-bottom: 5px;
}
.indent { padding-left: 20px; }
.code-purple { color: #c678dd; }
.code-yellow { color: #d19a66; }
.code-blue { color: #61afef; }
.code-green { 
    color: var(--accent-green) !important; 
    text-shadow: 0 0 8px rgba(0, 255, 135, 0.4); /* Adiciona o brilho característico do seu terminal */
}
.terminal-output { color: rgba(255,255,255,0.4); margin-top: 10px; }



/* --- NOTIFICAÇÃO TOAST (Sucesso/Erro) --- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 0; /* O padding fica no content */
    min-width: 300px;
    transform: translateX(120%); /* Começa escondido na direita */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-green); /* Visual Tech */
}

.toast.show {
    transform: translateX(0); /* Entra na tela */
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px 20px; /* Um pouco mais de espaço nas laterais */
    gap: 0; /* Removemos o gap pois não tem mais ícone */
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-text h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.toast-text p {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin: 0;
}

/* Barra de Progresso da Notificação */
.toast-progress {
    height: 3px;
    background: var(--accent-green);
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 3s linear;
}

.toast.show .toast-progress {
    transform: scaleX(0); /* Animação da barra diminuindo */
}

/* Estado de Erro (Opcional) */
.toast.error {
    border-color: #ff5f56;
    border-left: 4px solid #ff5f56;
}
.toast.error .toast-text h4, 
.toast.error .toast-progress {
    color: #ff5f56;
    background: #ff5f56;
}












/* FOOTER */


.system-footer {
    margin-top: 5rem;
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 30px 40px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    position: relative;
    z-index: 100;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Ponto Pulsante de Status */
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.pulse {
    box-shadow: 0 0 0 rgba(0, 255, 135, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 135, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

/* Botão Voltar ao Topo */
#back-to-top {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.3s;
}

#back-to-top:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.2);
}











/* --- BOTÃO WHATSAPP --- */
.whatsapp-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    
    /* Gradiente para dar profundidade, não apenas chapado */
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    
    /* Sombra Neon Verde */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    
    /* Garante que fique acima de tudo */
    z-index: 99999;
    
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */

    display: none; /* Começa totalmente desligado */
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* O Ícone */
.whatsapp-link i {
    font-size: 35px;
    z-index: 2; /* Fica acima da animação de pulso */
}

/* --- EFEITO PULSE (A ONDA DE ENERGIA) --- */
.whatsapp-link::before,
.whatsapp-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: 1;
    /* Animação infinita */
    animation: pulse-wave 2s infinite;
}

.whatsapp-link::after {
    animation-delay: 1s; /* Segunda onda com atraso */
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6); /* Cresce 60% */
        opacity: 0; /* Desaparece */
    }
}

/* --- TOOLTIP "ONLINE AGORA" --- */
.status-tooltip {
    position: absolute;
    right: 80px; /* Fica à esquerda do botão */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    
    background: rgba(10, 20, 35, 0.9); /* Escuro tech */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(37, 211, 102, 0.3); /* Borda verde sutil */
    
    padding: 8px 15px;
    border-radius: 6px;
    
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* A setinha do tooltip apontando para o botão */
.status-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(10, 20, 35, 0.9);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* --- INTERAÇÃO (HOVER) --- */
.whatsapp-link:hover {
    transform: translateY(-5px) scale(1.05); /* Sobe e cresce um pouco */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-link:hover .status-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0); /* Entra suavemente */
}

/* Para o pulso ao passar o mouse para não distrair */
.whatsapp-link:hover::before,
.whatsapp-link:hover::after {
    animation: none;
    transform: scale(1);
    opacity: 0;
}

.whatsapp-link.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}








/* BOTÃO IDIOMAS */
.lang-switcher-fixed {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) translateX(100px); /* Começa fora da tela */
    z-index: 10000;
    display: none; 
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-switcher-fixed.show {
    display: flex;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.lang-btn-main {
    background: rgba(10, 20, 35, 0.9);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 2; /* Garante que o botão fique sobre a lista se necessário */
}

.lang-btn-main i {
    font-size: 1.2rem;
    color: #25d366;
    margin-bottom: 2px;
}

.lang-options {
    display: none;
    background: rgba(10, 20, 35, 0.95);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 10px;
    margin-top: 10px; /* AGORA A MARGEM É NO TOPO para empurrar para baixo */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.lang-options span {
    display: block;
    padding: 12px 18px;
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    transition: 0.2s;
    text-align: center;
}

.lang-options span:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

/* Hover para abrir as opções PARA BAIXO */
.lang-switcher-fixed:hover .lang-options {
    display: block;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); /* Vem de cima para baixo */
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}








@media (max-width: 767px) {





/*  TRAVA A LARGURA HORIZONTAL DO MOBILE */
    .hero-bg-glow {
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
    }
    
    /* Garante que nenhum card ou container vaze */
    .project-card, .cert-card, .container {
        max-width: 100vw !important;
        box-sizing: border-box !important; /* Garante que padding não some na largura */
    }


    





/* HEADER */
    header {
        height: 70px; /* Reduzimos um pouco a altura no mobile */
   
    }

    .logo {
        font-size: 1.2rem; /* Diminui o nome para não ocupar a linha toda */
    }

    /* Escondemos o menu original e preparamos para o formato vertical */
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0; /* Ele fica 'ancorado' na direita */
        width: 80%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.99);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;

        /* A MUDANÇA CRUCIAL: */
        transform: translateX(100%); /* Move o menu para fora sem esticar a tela */
        visibility: hidden; /* Diz ao navegador para ignorar o elemento enquanto escondido */
        transition: transform 0.4s ease-in-out, visibility 0.4s;
    }

    .nav-links.active {
        transform: translateX(0); /* Traz o menu de volta para o palco */
        visibility: visible; /* Torna-o visível e interativo */
    }
    .nav-links a {
        font-size: 1.1rem; /* Aumenta o clique para o polegar no mobile */
    }

    /* Exibimos o ícone do menu apenas no mobile */
    .mobile-menu-icon {
        display: block !important; /* O !important aqui vence o do Desktop */
        position: absolute; /* Garante que ele flutue no lugar certo */
        top: 22px; /* Ajuste fino para alinhar com o logo */
        right: 20px; /* Distância da direita */
        font-size: 1.5rem; /* Tamanho clicável */
        color: var(--accent-green);
        cursor: pointer;
        z-index: 1001; /* Garante que fique acima de tudo */
    }

    /* Ajuste no botão de contato dentro do menu mobile */
    .btn-contact {
        width: 100%;
        padding: 1rem;
    }




/* HERO */
.hero {
        height: auto; /* Permite que a seção cresça conforme o conteúdo */
        padding: 80px 0 50px; /* Espaço generoso para o header fixo */
    }

    .hero-content-wrapper {
        flex-direction: column-reverse; /* Imagem no topo (opcional) ou embaixo */
        text-align: center; /* Centraliza tudo para leitura mobile */
        gap: 3rem;
    }

    /* 2. Ajuste de Tipografia */
    .hero-text h1 {
        font-size: 2.2rem !important; /* Redução para não quebrar muitas linhas */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        max-width: 100%; /* Ocupa a largura total disponível */
    }

    /* 3. Botões Empilhados */
    .hero-btns {
        flex-direction: column; /* Botões um sobre o outro para facilitar o clique */
        gap: 1rem;
        width: 100%;
    }

    .btn-primary, .btn-certs {
        width: 100%; /* Botões ocupam a largura total para área de toque maior */
        padding: 1.2rem;
        justify-content: center;
    }

    /* 4. Ajuste da Imagem de Perfil */
    .image-border {
        width: 280px; /* Redução proporcional da moldura */
        height: 330px;
        margin: 0 auto; /* Centraliza horizontalmente */
    }

    /* 5. Glow (Brilho de Fundo) */
    .hero-bg-glow {
        width: 300px;
        height: 300px;
        top: 20%;
        right: 50%;
        transform: translateX(50%); /* Centraliza o brilho atrás do conteúdo */
        opacity: 0.1; /* Suaviza ainda mais no mobile */
    }







/* PROJETOS */

.projects-section {
        padding: 60px 0; /* Reduz o espaçamento vertical excessivo */
    }

    .projects-grid {
        /* Força 1 coluna apenas e ignora o minmax de 300px */
        grid-template-columns: 1fr !important; 
        gap: 2rem; /* Espaço menor entre os cards */
        margin-top: 2.5rem;
        padding: 0 5px; /* Margem de segurança interna */
    }

    /* Ajuste de Texto */
    .section-title, 
    .section-subtitle {
        text-align: center; /* Centraliza os títulos da seção */
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Card Mobile */
    .project-card {
        padding: 1.5rem; /* Um pouco menos de padding interno */
        min-height: auto; /* Remove altura forçada */
    }

    .project-card h3 {
        font-size: 1.4rem;
        min-height: auto; /* Remove a altura mínima do título para economizar espaço */
        margin-bottom: 0.8rem;
    }

    .project-card p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Badges de Tecnologia */
    .project-tech span {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    /* Desativa o efeito de "pulo" (hover) no celular para não bugar o scroll */
    .project-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: rgba(255, 255, 255, 0.05); /* Mantém a cor original */
    }
    
    /* Mantém os badges visíveis/acesos sempre, já que não tem mouse para passar */
    .project-tech span {
        border-color: rgba(0, 255, 135, 0.3);
    }






/* CERTIFICADOS */
    #certifications {
        padding: 60px 0; /* Reduz o espaçamento excessivo */
    }

    .certs-grid {
        /* A MUDANÇA CRUCIAL: De 4 colunas para 1 coluna */
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 2.5rem;
        width: 100%;
        padding: 0 5px; /* Margem de segurança */
    }

    .cert-card {
        padding: 1.5rem;
        /* Removemos o transform no hover para evitar pulos no scroll */
        transform: none !important; 
    }

    /* Desativa o efeito de escala no toque */
    .cert-card:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.03); /* Mantém o fundo original */
        border-color: rgba(255, 255, 255, 0.08);
    }

    /* Ajuste dos ícones para ficarem proporcionais */
    .cert-icon {
        height: 60px; /* Um pouco mais compacto */
        margin-bottom: 1rem;
    }

    .cert-icon img {
        width: 50px;
        height: 50px;
    }

    /* Segurança contra vazamentos do brilho holográfico */
    .cert-card::after {
        display: none !important; /* Desliga a animação pesada de brilho no mobile */
    }





/* EXPERIENCIAS */
.trajectory-section {
        padding: 60px 0;
    }

    /* 1. Transforma o Container em Coluna */
    .trajectory-container {
        flex-direction: column; /* Sidebar vai para cima, conteúdo para baixo */
        min-height: auto; /* Remove altura fixa para não criar buracos */
    }

    /* 2. Sidebar vira Menu Horizontal (Scrollável) */
    .trajectory-sidebar {
        width: 100%; /* Ocupa toda a largura */
        border-right: none; /* Remove a linha divisória vertical */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Cria linha divisória horizontal */
        padding: 0;
        
        /* Mágica do Scroll Horizontal */
        overflow-x: auto;
        white-space: nowrap; /* Impede os itens de quebrarem linha */
        -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
        
        /* Esconde a barra de rolagem feia, mas mantém o scroll funcional */
        scrollbar-width: none; /* Firefox */
    }
    .trajectory-sidebar::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */ 
    }

    .trajectory-sidebar ul {
        display: flex; /* Coloca os itens um ao lado do outro */
        padding: 0 1rem; /* Espaço nas pontas para o primeiro e último item */
    }

    /* 3. Ajuste dos Links (Abas) */
    .sidebar-link {
        padding: 1rem;
        font-size: 0.9rem;
        border-left: none !important; /* Remove a marcação lateral desktop */
        border-bottom: 2px solid transparent; /* Prepara marcação inferior */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Estado Ativo no Mobile (Sublinhado em vez de borda esquerda) */
    .sidebar-link.active, .sidebar-link:hover {
        background: transparent; /* Remove o fundo verde claro */
        border-left: none !important;
        border-bottom-color: var(--accent-green); /* O destaque fica embaixo */
        color: var(--accent-green);
    }

    /* 4. Conteúdo (Texto + Imagem) */
    .trajectory-content {
        flex-direction: column-reverse; /* Imagem em cima, texto embaixo (ou vice-versa) */
        padding: 1.5rem;
        gap: 2rem;
    }

    .content-text h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .content-text p {
        font-size: 0.95rem;
        text-align: center; /* Centraliza para leitura mobile */
    }

    /* 5. Imagem da Experiência */
    .content-media {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .content-media img {
        max-height: 180px; /* Limita a altura para a imagem não dominar a tela */
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Ajuste nos botões de Tabs (Academic / Professional) */
    .trajectory-tabs {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        font-size: 1rem;
    }






/* CONTATO */
    .contact-grid {
        flex-direction: column; /* Coloca o form em cima e o terminal embaixo */
        gap: 3rem;
    }

    .contact-form {
        width: 100%;
    }

    /* 2. Centralização dos Títulos da Seção */
    .contact-section .section-title, 
    .contact-section .section-subtitle {
        text-align: center;
    }

    /* 3. Ajuste do Botão (UX Mobile) */
    .submit-btn {
        width: 100%; /* Botão largo para facilitar o clique com o polegar */
        padding: 1.2rem;
        font-size: 1rem;
    }

    /* 4. Blindagem do Terminal ( JSON ) */
    .terminal-box {
        width: 100%;
        font-size: 0.7rem; /* Redução da fonte para evitar quebras de linha estranhas */
    }

    .terminal-content {
        padding: 20px 10px; /* Reduz o respiro interno para ganhar espaço horizontal */
    }

    .indent {
        padding-left: 8px; /* Recuo menor para as chaves do JSON */
    }

    /* MATADOR DE VAZAMENTO: Força os links longos a quebrarem dentro do box */
    .terminal-content a {
        word-break: break-all; /* Essencial para o link do github e email não 'furarem' a tela */
        white-space: normal;
    }

    /* 5. Ajuste fino nos inputs */
    .input-group input, .input-group textarea {
        font-size: 16px; /* Evita que o iPhone dê zoom automático ao clicar no campo */
    }






/*  FOOTER  */
    
    .system-footer {
        padding: 30px 20px; /* Reduz padding lateral */
        margin-top: 3rem; /* Aproxima um pouco mais do conteúdo acima */
        text-align: center; /* Centraliza tudo */
        height: auto; /* Garante que cresça conforme o conteúdo empilhado */
    }

    .footer-container {
        flex-direction: column; /* Empilha os blocos verticalmente */
        gap: 1.5rem; /* Espaço entre Status, Location e Copyright */
    }

    /* REORDENAMENTO VISUAL */
    .footer-left {
        order: 1; /* Status e Versão aparecem primeiro */
        justify-content: center; /* Centraliza os itens na linha */
        width: 100%;
    }

    .footer-right {
        order: 2; /* Localização e Botão de Topo aparecem no meio */
        justify-content: center;
        width: 100%;
    }

    .footer-center {
        order: 3; /* O Copyright vai para o final (chão do site) */
        margin-top: 10px;
        font-size: 0.85rem; /* Fonte levemente menor para o copyright */
        width: 100%;
    }

    /* Ajuste nos textos para não quebrarem feio */
    .status-text, .location-text {
        font-size: 0.9rem;
    }

    /* Garante que o botão de voltar ao topo seja clicável */
    #back-to-top {
        padding: 8px 15px; /* Área de toque maior */
    }










/* BOTÃO WPP  */
.whatsapp-link {
        display: flex !important; /* Força a exibição */
        visibility: visible !important;
        pointer-events: auto !important;
        
        width: 50px;  /* Um pouco menor que no Desktop (65px) */
        height: 50px;
        bottom: 20px; /* Mais próximo da borda inferior */
        right: 20px;  /* Mais próximo da borda direita */
        font-size: 28px; /* Ícone ajustado */
    }

    .whatsapp-link i {
        font-size: 30px;
    }

    /* 2. MATADOR DE VAZAMENTO: Esconde o Tooltip */
    /* O texto "Online Agora" é largo e empurra a tela para a direita. Tchau. */
    .status-tooltip {
        display: none !important; 
    }

    /* 3. Contenção da Animação (Segurança) */
    /* Reduz a onda de choque para não bater na borda da tela */
    .whatsapp-link::before,
    .whatsapp-link::after {
        animation-name: pulse-mobile !important;
    }

    /* 4. Remove o "pulo" ao clicar */
    .whatsapp-link:hover {
        transform: none !important; /* No mobile, hover causa bugs de sticky */
    }







/* BOTÃO */
.lang-switcher-fixed {
        /* Define onde ele fica, mas NÃO mostra ainda */
        right: 20px;
        top: 30%;
        transform: translateY(-50%) scale(1); /* Posição segura sem vazar */
        
        display: none; /* Garante que comece escondido */
        opacity: 0;
        pointer-events: none;
    }

    /* 2. O Pulo do Gato: Só aparece quando ganha a classe .show */
    .lang-switcher-fixed.show {
        display: flex !important;       /* Agora sim aparece */
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    /* 2. Ajuste de Tamanho (Mais compacto) */
    .lang-btn-main {
        width: 45px;
        height: 45px;
        backdrop-filter: blur(15px); /* Vidro mais forte para ler melhor */
    }

    .lang-btn-main i { font-size: 1.1rem; }
    #current-lang-text { font-size: 0.7rem; }

    /* 3. O Menu de Opções (Dropdown) */
    .lang-options {
        /* Garante que o menu não fique mais largo que o botão */
        width: 45px; 
        margin-top: 5px;
        padding: 0;
    }

    .lang-options span {
        padding: 10px 0; /* Padding vertical maior para facilitar o toque */
        font-size: 0.75rem;
    }

    /* 4. Lógica de Abertura (Classe .active via JS) */
    /* No mobile, removemos o hover e usamos uma classe */
    .lang-switcher-fixed:hover .lang-options {
        display: none; /* Desativa o hover nativo que buga */
    }

    .lang-switcher-fixed.active .lang-options {
        display: flex !important; /* O !important vence o 'display: none' do hover */
        flex-direction: column;
        animation: slideInMobile 0.3s ease-out;
        pointer-events: auto; /* Garante que os itens dentro sejam clicáveis */
    }




}



/* Nova animação contida para mobile (Vai no CSS Global ou dentro da query) */
@keyframes pulse-mobile {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; } /* 1.3 é seguro, 1.6 vazava */
}


@keyframes slideInMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}







@media (min-width: 481px) and (max-width: 768px) {
    
    .hero {
        height: auto; /* Permite que a seção cresça conforme o conteúdo */
        padding: 120px 0 50px; /* Espaço generoso para o header fixo */
    }

    /* Recupera o Grid de 2 Colunas para Certificações */
    .certs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Ajuste da Hero para aproveitar o espaço extra */
    .hero-content-wrapper {
        padding: 0 2rem; /* Mais respiro lateral */
    }
    
    .hero-text h1 {
        font-size: 2.8rem !important; /* Fonte maior que no celular pequeno */
    }

    /* Rodapé Híbrido: 2 colunas em vez de tudo empilhado */
    .footer-container {
        flex-direction: row; /* Volta a ser linha */
        flex-wrap: wrap; /* Mas permite quebrar se apertar */
        justify-content: center;
    }
    
    .footer-left, .footer-right {
        width: auto; /* Deixa eles ocuparem o espaço natural */
    }
    
    .footer-center {
        width: 100%; /* O Copyright fica em uma linha sozinho embaixo */
        order: 3;
        margin-top: 1.5rem;
    }
}







@media (min-width: 769px) and (max-width: 991px) {



    html, body {
        overflow-x: hidden; /* Corta qualquer excesso lateral */
        width: 100%;
    }
    
    /* 1. Container: Margem de segurança */
    .container {
        padding: 0 30px;
        max-width: 100%;
    }

    /* 2. HEADER: Menu Compacto (para não bater no logo) */
    .nav-links {
        gap: 1.2rem; /* Reduz o espaço entre os links */
    }
    .nav-links a {
        font-size: 0.85rem; /* Texto levemente menor */
    }
    .btn-contact {
        padding: 0.5rem 1rem; /* Botão mais fino */
    }

    .hero {
        height: auto; /* Remove altura fixa para evitar cortes */
        padding: 120px 0 60px; /* Mais espaço no topo por causa do header */
        overflow: hidden; /* Garante que o glow não vaze aqui */
    }

    .hero-content-wrapper {
        display: flex;
        flex-direction: row; /* Mantém lado a lado */
        align-items: center;
        gap: 2rem; /* Reduz o espaço entre texto e foto (era maior) */
        padding: 0 20px; /* Garante margem lateral */
    }

    /* Ajuste do Texto para não quebrar feio */
    .hero-text {
        flex: 1.2; /* Dá um pouco mais de espaço pro texto que pra imagem */
    }

    .hero-text h1 {
        font-size: 2.4rem; /* Reduz de 3.45rem para caber */
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%; /* Permite usar todo espaço disponível */
        margin-bottom: 2rem;
    }

    /* Ajuste da Imagem para não empurrar a tela */
    .hero-image {
        flex: 0.8; /* Imagem ocupa menos espaço */
        justify-content: center;
    }

    .image-border {
        width: 260px; /* Reduz um pouco o tamanho da moldura */
        height: 320px;
    }

    /* MATADOR DE VAZAMENTO: Traz o brilho para dentro */
    .hero-bg-glow {
        right: -5%; /* Reduz a "fuga" para a direita */
        width: 400px; /* Diminui o tamanho do brilho */
        height: 400px;
        opacity: 0.15; /* Suaviza */
    }

    /* --- PROJECTS SECTION (Títulos Centralizados) --- */
    .projects-section {
        padding: 60px 0;
    }

    /* Centraliza Título e Subtítulo da Seção */
    .projects-section .section-title,
    .projects-section .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 800px; /* Limita a largura para leitura confortável */
    }

    /* Grid de 2 Colunas (Ideal para Tablet) */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 2rem;
        margin-top: 3rem;
        padding: 0 20px; /* Margem de segurança lateral */
    }
    
    /* Ajuste de altura dos cards */
    .project-card {
        min-height: 100%;
    }



    /* --- STACK SECTION (Nuvem de Tags) --- */
    .stack-section {
        padding: 60px 0;
    }

    /* Centraliza Títulos */
    .stack-section .section-title, 
    .stack-section .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px; /* Garante que não encoste na borda em telas menores */
    }

    /* Ajuste da Nuvem de Badges */
    .stack-cloud {
        justify-content: center; /* Garante que as tags fiquem no meio */
        padding: 0 30px; /* Margem de segurança lateral */
        gap: 1rem; /* Espaçamento levemente menor */
    }

    /* --- CERTIFICATIONS SECTION (Grid 2x2) --- */
    #certifications {
        padding: 60px 0;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza o bloco todo */
    }

    /* Centraliza Títulos */
    #certifications .section-title, 
    #certifications .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
    }

    /* O Grid Mágico de 2 Colunas */
    .certs-grid {
        display: grid;
        /* Desktop é 4, Mobile é 1. Tablet TEM QUE SER 2. */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 1.5rem;
        margin-top: 3rem;
        width: 100%;
        padding: 0 30px; /* Evita que os cards colem na borda da tela */
    }

    .cert-card {
        width: 100%; /* Garante preenchimento da coluna */
        height: 100%; /* Garante que cards vizinhos tenham mesma altura */
        /* Reforça centralização interna do card */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }





    /* --- EXPERIENCES SECTION --- */
    .trajectory-section {
        padding: 60px 0;
    }

    /* 1. Centraliza Títulos da Seção e Abas */
    .trajectory-section .section-title, 
    .trajectory-section .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .trajectory-tabs {
        justify-content: center; /* Centraliza os botões Academic/Professional */
        margin-bottom: 3rem;
    }

    /* 2. Container Híbrido (Sidebar Esquerda / Conteúdo Direita) */
    .trajectory-container {
        display: flex;
        flex-direction: row; /* Mantém lado a lado */
        min-height: 450px; /* Altura mínima para ficar elegante */
    }

    /* 3. Ajuste da Sidebar (Mais compacta que no Desktop) */
    .trajectory-sidebar {
        width: 35%; /* Ocupa um pouco mais de 1/3 */
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-link {
        padding: 1rem 1.5rem; /* Padding menor para caber textos longos */
        font-size: 0.9rem; /* Fonte ajustada */
    }

    /* 4. Conteúdo (Texto + Imagem) */
    .trajectory-content {
        width: 65%;
        padding: 2rem; /* Espaço interno confortável */
        
        /* Empilha internamente se a imagem for grande demais */
        display: flex;
        flex-direction: column-reverse; /* Imagem em cima, Texto embaixo */
        justify-content: center;
        gap: 1.5rem;
    }

    /* 5. Centralização Interna do Card */
    .content-text {
        text-align: center; /* Centraliza o texto da descrição */
    }

    .content-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* 6. Controle da Imagem */
    .content-media {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .content-media img {
        max-width: 150px; /* Limita o tamanho do logo */
        max-height: 100px;
        object-fit: contain;
    }



    /* 1. Posicionamento e Reset */
    .lang-switcher-fixed {
        /* Tira o botão de fora da tela (Desktop usa translateX 100px) */
        transform: translateY(-50%) scale(1) !important; 
        right: 30px;
        top: 200px; /* Logo abaixo do Header */
        
        /* Começa escondido para o Preloader funcionar */
        display: none;
        pointer-events: none;
    }

    /* 2. Ativação via JS (Classe .show) */
    .lang-switcher-fixed.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important; /* CRUCIAL: Permite o clique */
    }

    /* 3. Desativa o Hover (Para não bugar com o toque) */
    .lang-switcher-fixed:hover .lang-options {
        display: none; 
    }

    /* 4. Ativa o Menu via Clique (Classe .active) */
    /* O JS adiciona .active quando você clica. O CSS obedece aqui. */
    .lang-switcher-fixed.active .lang-options {
        display: block !important; 
        width: 100%; /* Garante largura igual ao botão */
        margin-top: 10px;
        animation: fadeInTablet 0.3s ease-out;
    }

    /* Ajuste visual do botão para Tablet */
    .lang-btn-main {
        width: 50px;
        height: 50px;
        backdrop-filter: blur(10px);
    }
}

/* Animação Suave para o Menu */
@keyframes fadeInTablet {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




@media (min-width: 992px) and (max-width: 1023px) {

    /* --- GERAL --- */
    .container {
        padding: 0 40px; /* Margem lateral generosa */
        max-width: 100%;
    }

    .hero {
        height: auto; /* Remove altura fixa para evitar cortes */
        padding: 150px 0 60px; /* Mais espaço no topo por causa do header */
        overflow: hidden; /* Garante que o glow não vaze aqui */
    }


    /* --- HERO SECTION --- */
    /* Mantemos lado a lado, mas reduzimos a fonte */
    .hero-text h1 {
        font-size: 3rem; /* Reduz de 3.45rem para caber melhor */
    }
    
    .hero-bg-glow {
        right: 0; /* Controla o brilho para não vazar */
        width: 450px;
        height: 450px;
    }

    /* --- PROJECTS SECTION --- */
    /* O Grid automático funciona bem aqui, mas garantimos o gap */
    .projects-grid {
        gap: 2rem;
    }

    /* --- STACK SECTION --- */
    .stack-cloud {
        padding: 0 50px; /* Nuvem mais contida */
    }

    /* --- CERTIFICATIONS (O Ajuste Crítico) --- */
    /* 4 colunas aqui fica muito apertado (230px cada). Vamos usar 3. */
    .certs-grid {
        /* Força exatamente 2 colunas largas */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem; /* Aumentei o espaço pois os cards ficarão maiores */
        width: 100%;
    }

    /* Ajuste para o card ficar elegante ocupando mais espaço */
    .cert-card {
        padding: 2.5rem 2rem; /* Mais respiro interno */
        height: 100%; /* Garante altura igual */
    }

    /* Opcional: Aumentar um pouco o ícone já que o card cresceu */
    .cert-icon img, .cert-icon i {
        transform: scale(1.1); 
    }

    /* --- EXPERIENCES SECTION (Otimizada para Laptop) --- */
    .trajectory-section {
        padding: 80px 0;
    }

    .trajectory-container {
        display: flex;
        flex-direction: row; /* Garante Sidebar na Esquerda, Conteúdo na Direita */
        min-height: 500px;
    }

    /* 1. Sidebar Mais Compacta */
    .trajectory-sidebar {
        width: 25%; /* Reduzimos de 30% para sobrar espaço pro texto */
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem; /* Fonte levemente ajustada */
    }

    /* 2. Conteúdo Expandido */
    .trajectory-content {
        width: 75%; /* Ganha o espaço que tiramos da sidebar */
        padding: 2.5rem; /* Respiro interno equilibrado */
        gap: 2rem;
    }

    /* 3. Ajuste de Título e Texto */
    .content-text h3 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .content-text p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%; /* Garante uso total da área */
    }

    /* 4. Controle da Imagem (Logo da Empresa) */
    .content-media {
        display: flex;
        align-items: flex-start; /* Alinha no topo junto com o título */
        justify-content: center;
        flex: 0 0 200px; /* Reserva espaço fixo para a imagem não espremer o texto */
    }

    .content-media img {
        max-width: 100%;
        max-height: 150px;
        object-fit: contain;
    }

    /* --- FOOTER --- */
    /* Garante que tudo caiba na linha sem quebrar */
    .system-footer {
        padding: 30px 40px;
    }
    .footer-container {
        gap: 1rem;
    }
    .status-text, .location-text {
        font-size: 0.9rem; /* Texto levemente menor */
    }

    /* --- BOTÕES FLUTUANTES (Fix para Touch/Mouse Híbrido) --- */
    /* --- FIX: BOTÃO DE IDIOMAS --- */
    .lang-switcher-fixed {
        /* Posicionamento seguro */
        right: 40px;
        top: 50%; /* Centralizado verticalmente ou ajuste conforme preferir */
        transform: translateY(-50%) translateX(0) !important; /* Remove animação de entrada lateral */
        
        /* Começa bloqueado (esperando o preloader) */
        display: none;
        pointer-events: none; 
    }

    /* 1. RESSURREIÇÃO: Quando o JS adiciona .show */
    .lang-switcher-fixed.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important; /* <--- O SEGREDO DO CLIQUE ESTÁ AQUI */
    }

    /* 2. INTERAÇÃO HÍBRIDA: Funciona com Clique E Hover */
    
    /* Se clicar (adiciona .active via JS), força abrir */
    .lang-switcher-fixed.active .lang-options {
        display: block !important;
        margin-top: 10px;
        width: 100%; /* Garante largura igual ao botão */
        animation: fadeInHybrid 0.3s ease-out;
    }

    /* Se passar o mouse (para quem usa trackpad/mouse), também abre */
    .lang-switcher-fixed:hover .lang-options {
        display: block;
        animation: fadeInHybrid 0.3s ease-out;
    }







    
}

/* Animação Suave */
@keyframes fadeInHybrid {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}






@media (min-width: 1024px) and (max-width: 1366px) {

    /* 1. TRAVA GERAL (Obrigatória) */
    html, body {
        overflow-x: hidden !important; /* Corta o excesso lateral brutalmente */
        width: 100%;
        position: relative;
    }

    /* 2. CONTAINER (Margem mais segura) */
    .container {
        /* Reduzi de 60px para 40px para sobrar mais espaço em telas de 1024px */
        padding: 0 40px; 
        max-width: 100%; /* Garante que não force largura fixa */
    }

    /* 3. HERO SECTION (O vilão do vazamento) */
    .hero {
        overflow: hidden; /* Garante que o brilho não saia da caixa */
        padding: 150px 0 60px; /* Mais espaço no topo por causa do header */
    }

    .hero-bg-glow {
        right: 0 !important; /* Puxa o brilho para dentro da tela (antes estava -10%) */
        width: 400px; /* Reduz um pouco o tamanho */
        height: 400px;
    }

    .hero-content-wrapper {
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem; /* Fonte ajustada para não quebrar layout */
    }

    .image-border {
        width: 300px;
        height: 360px;
    }

    /* --- HERO SECTION --- */
    .hero-content-wrapper {
        gap: 3rem; /* Aproxima um pouco texto e imagem */
    }

    .hero-text h1 {
        font-size: 3.2rem; /* Fonte quase tamanho Desktop full */
    }

    .image-border {
        width: 320px; /* Imagem tamanho médio */
        height: 380px;
    }

    /* --- PROJECTS SECTION (3 Colunas) --- */
    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Volta para 3 colunas */
        gap: 2rem;
    }
    
    .project-card h3 {
        font-size: 1.4rem; /* Ajuste para caber em 3 colunas */
    }

    /* --- STACK SECTION --- */
    .stack-cloud {
        padding: 0 80px; /* Nuvem mais compacta no centro */
    }



@media (min-width: 1024px) and (max-width: 1366px) {

    /* --- CERTIFICATIONS (4 Colunas - Estilo Desktop) --- */
    .certs-grid {
        display: grid;
        /* Força 4 colunas lado a lado */
        grid-template-columns: repeat(4, 1fr) !important; 
        
        /* Reduzimos um pouco o gap (de 1.5rem para 1rem) para caber melhor */
        gap: 1rem; 
        width: 100%;
    }

    /* Ajuste Fino para o card não ficar apertado */
    .cert-card {
        padding: 1.5rem 1rem; /* Menos padding lateral para o texto respirar */
        min-height: 100%;
    }

    /* Ícones em tamanho padrão para não dominar o card estreito */
    .cert-icon img, .cert-icon i {
        transform: scale(1); 
        margin-bottom: 1rem;
    }

    .cert-info h3 {
        font-size: 1rem; /* Fonte levemente ajustada */
    }

    /* --- EXPERIENCES (Layout Clássico Ajustado) --- */
    .trajectory-container {
        flex-direction: row; /* Sidebar na esquerda */
    }

    .trajectory-sidebar {
        width: 25%; /* Sidebar levemente mais estreita que o padrão 30% */
    }

    .trajectory-content {
        width: 75%;
        padding-left: 3rem;
    }

    /* --- FIX: BOTÃO DE IDIOMAS (Para funcionar o clique) --- */
    .lang-switcher-fixed {
        right: 40px;
        top: 50%;
        transform: translateY(-50%) translateX(0) !important;
        
        /* Começa invisível esperando o Preloader */
        display: none;
        pointer-events: none;
    }

    /* 1. Ressurreição (.show) */
    .lang-switcher-fixed.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important; /* Permite o clique */
    }

    /* 2. Interação Híbrida (Clique ou Hover) */
    .lang-switcher-fixed.active .lang-options,
    .lang-switcher-fixed:hover .lang-options {
        display: block !important;
        width: 100%;
        animation: fadeInNotebook 0.3s ease-out;
    }
}
}

@keyframes fadeInNotebook {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}