*{
   /* Reseta as configurações padrão do navegador pra garantir consistência */
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-padding-top: 100px;
}

/* Configurações necessárias para o Lenis */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Definição das cores principais (variáveis) pra facilitar trocas futuras */
:root {
    --primaria: #ffffff; /* Branco Puro para Destaques */
    --secundaria: #94a3b8; /* Cinza Prateado */
    --accent: #cbd5e1; /* Cinza Claro */
    --maisEscuro: #000000; /* Preto Absoluto */
    --vermelho-tech: #e11d48; /* Vermelho Profissional */
    --vermelho-glow: rgba(225, 29, 72, 0.3);
    --cinza-claro: #94a3b8; /* Cinza para textos secundários */
    --branco: #ffffff; /* Branco Puro */
    --claro: #f8fafc; /* Branco Gelo */
    --vidro: rgba(255, 255, 255, 0.05);
    --borda-vidro: rgba(255, 255, 255, 0.1);
    --escuro: #09090b; /* Preto Profundo */
    --glow: rgba(255, 255, 255, 0.15); /* Brilho branco sutil */
    --container-width: 1200px;
    --section-padding: clamp(4rem, 10vw, 8rem);
}

/* Fundo geral da página com um degradê sutil */
body {
    background-color: var(--maisEscuro);
    color: var(--claro);
    overflow-x: hidden;
}

/* --- Decorações de Fundo Profissionais --- */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

/* Efeito de Ruído Digital (Grain) */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04; /* Intensidade sutil para textura */
    z-index: 1;
    pointer-events: none;
}

/* Gradiente de malha para profundidade */
.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, var(--maisEscuro) 0px, transparent 100%);
}

/* --- Efeito Nebula Animado --- */
.nebula-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15; /* Mais sutil para o tema monocromático */
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: nebula-movement 25s infinite alternate ease-in-out;
}

.blob-purple {
    width: 600px;
    height: 600px;
    background: var(--cinza-claro);
    top: -10%;
    left: -10%;
    animation-duration: 30s;
}

.blob-pink {
    width: 500px;
    height: 500px;
    background: var(--claro);
    bottom: 10%;
    right: -5%;
    animation-duration: 20s;
    animation-delay: -5s;
}

.blob-magenta {
    width: 450px;
    height: 450px;
    background: var(--secundaria);
    top: 40%;
    left: 30%;
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes nebula-movement {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(100px, 50px) scale(1.1) rotate(45deg); }
    100% { transform: translate(-50px, 100px) scale(0.9) rotate(-45deg); }
}

/* Grade de pontos (Dot Grid) estética */
.dot-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Desenhos de triângulos flutuantes */
.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 255, 255, 0.03); /* Branco sutil para paleta monocromática */
    filter: blur(2px);
    animation: float-triangle 20s infinite linear;
}

.tri-1 {
    top: 20%;
    left: 10%;
    transform: rotate(30deg);
}

.tri-2 {
    bottom: 20%;
    right: 10%;
    transform: rotate(150deg);
    border-bottom-color: rgba(255, 255, 255, 0.02);
    animation-duration: 25s;
}

@keyframes float-triangle {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Elemento Geométrico de Fundo */
.geometric-divider {
    position: absolute;
    top: -50px;
    top: 0; /* Ajustado para começar no topo da seção 'Sobre' */
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--escuro);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

/* Estilização Geral de Cards Modernos */
.modern-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navegacao {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 95%;
    z-index: 100;
    padding: 0.6rem 1.5rem;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navegacao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Efeito de borda prateada que percorre a pílula */
    background: 
        linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.85)) padding-box,
        linear-gradient(90deg, transparent, var(--primaria), transparent) border-box;
    background-size: 200% 100%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid transparent;
    border-radius: 100px;
    z-index: -1;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 15px var(--glow);
    animation: neon-trail 4s linear infinite;
}

@keyframes neon-trail {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--branco);
}

.logo-thin {
    font-weight: 300;
    opacity: 0.6;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--vermelho-tech);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--vermelho-glow);
}

.Menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: var(--cinza-claro);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: var(--branco);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--vermelho-tech);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-link:hover::after {
    transform: translateX(-50%) scale(1);
}

.lang-toggle {
    text-decoration: none;
    color: var(--branco);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--borda-vidro);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--vidro);
    border-color: var(--primaria);
    color: var(--primaria);
}

/* Botão hambúrguer (só aparece no mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
}

/* As três linhas do ícone hambúrguer */
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação do ícone quando o menu está aberto */
.navegacao.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navegacao.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.navegacao.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Seção principal (Hero) que ocupa boa parte da tela inicial */
.cabecalho {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative; /* Necessário para clip-path e z-index */
    overflow: hidden; /* Garante que o clip-path funcione corretamente */
    /* Novo: V-shape na parte inferior para um efeito triangular estético */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    padding: clamp(100px, 15vh, 160px) 1.5rem 100px; 
    text-align: center;
}

/* Estilo da foto de perfil com brilho e animação de flutuar */
.foto-perfil {
    width: clamp(200px, 40vw, 350px);
    height: clamp(200px, 40vw, 350px);
    object-fit: cover;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primaria), var(--branco), var(--secundaria));
    background-size: 300% 300%;
    border: 2px solid var(--branco);
    animation: flutuar 3s ease-in-out infinite, borda-colorida 4s ease infinite;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--branco);
    font-weight: bold;
    margin: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.cabecalho-sub-titulo {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--claro);
}

/* Informações Pessoais (Header) */
.info-pessoais {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Começa invisível para a animação */
    animation-delay: 0.5s;
}

/* Info Items (Localização e Idade) - Estilo Readout */
.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    border-left: 2px solid transparent;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--vermelho-tech);
    color: var(--branco);
}

.info-icon {
    color: var(--vermelho-tech);
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 5px var(--vermelho-glow));
}

/* --- Seção Sobre Mim --- */
.sobre {
    padding: var(--section-padding) 1.5rem;
}

.sobre-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--claro);
    text-align: center;
    margin-bottom: 20px;
}

.sobre-caixa {
    padding: 3rem;
    max-width: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sobre-caixa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--vermelho-tech), var(--secundaria));
    opacity: 0.7;
}

.sobre-caixa:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.sobre-header {
    margin-bottom: 2rem;
}

.sobre-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--secundaria);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.sobre-subtitle {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(90deg, #fff, var(--cinza-claro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.sobre-paragrafo {
    font-size: 1.05rem;
    color: var(--cinza-claro);
    line-height: 1.8;
    letter-spacing: 0.2px;
}

/* --- Seção de Skills --- */
.skills {
    padding: var(--section-padding) 1.5rem;
    position: relative;
    z-index: 1;
}

.skills-container {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
}

.skills-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.skills-subtitulo {
    font-size: 1.2rem;
    color: var(--claro);
    opacity: 0.8;
    margin-bottom: 4rem;
}

.skills-category {
    margin-bottom: 5rem;
    position: relative;
}

/* Variáveis de cor por categoria para um design organizado */
.frontend-category, .backend-data-category, .tools-category, .soft-skills-category {
    --cat-color: var(--primaria); /* Unifica para branco/prateado */
}
.skills-category h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: default;
    transition: all 0.3s ease;
    color: var(--branco);
    border-left: 3px solid var(--vermelho-tech);
    padding-left: 15px;
}

.skills-category h3:hover {
    color: var(--vermelho-tech);
    text-shadow: 0 0 10px var(--vermelho-glow);
}

.skills-category h3::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
}

/* Card individual de cada habilidade */
.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--vermelho-tech);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

/* Animação de pulso exclusiva para ícones de Soft Skills */
.skills-category:last-of-type .skill-card img {
    animation: none; /* Removido para manter sobriedade monocromática */
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card:hover span {
    color: var(--branco);
}

/* --- Seção de Projetos --- */
.projetos{
    padding: 6rem 2rem;

}

/* Card de projeto com efeito de vidro */
.projetos-card{
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.9));
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--vermelho-tech);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.projetos-card:hover{
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--vermelho-glow);
    transform: translateY(-8px);
    border-color: var(--vermelho-tech);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-id {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--vermelho-tech);
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-weight: 700;
}

.projetos-titulo{
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}


.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;

}

.projetos-imagem{
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-projeto{
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--branco);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-projeto::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--vermelho-tech);
    box-shadow: 0 0 8px var(--vermelho-glow);
}

.paragrafo-projeto{
    color: var(--accent);
    line-height: 1.6;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.paragrafo-projeto.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-read-more {
    display: none; /* Oculto por padrão, o JS decidirá quando mostrar */
    background: none;
    border: none;
    color: var(--vermelho-tech);
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    transition: all 0.2s;
}

.btn-read-more:hover {
    color: var(--branco);
    text-shadow: 0 0 8px var(--vermelho-glow);
}

.caixa-textos-projeto{
    padding: 1.5rem;
}

.projeto-tech-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: space-between; /* Garante que ícones fiquem de um lado e botão do outro */
}

.tech-icons-wrapper {
    display: flex;
    gap: 0.8rem;
}

.projeto-tech-icons img {
    width: 20px;
    height: 20px;
    filter: none; /* Cores agora ficam visíveis */
    transition: all 0.3s ease;
    animation: iconPulse 3s infinite ease-in-out;
}

.projeto-tech-icons img:hover {
    transform: scale(1.2);
    animation-play-state: paused; /* Pausa o pulso ao passar o mouse */
}

/* Classes específicas para as cores de pulso */
.icon-html { --pulse-color: #e34f26; animation-delay: 0s !important; }
.icon-css { --pulse-color: #1572b6; animation-delay: 0.5s !important; }
.icon-js { --pulse-color: #f7df1e; animation-delay: 1s !important; }
.icon-api { --pulse-color: #00d8ff; animation-delay: 1.5s !important; }
.icon-maps { --pulse-color: #34a853; animation-delay: 1.5s !important; }
.icon-whatsapp { --pulse-color: #25d366; animation-delay: 2s !important; }

@keyframes iconPulse {
    0%, 100% { filter: drop-shadow(0 0 0px transparent); }
    50% { filter: drop-shadow(0 0 6px var(--pulse-color)); }
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--branco);
    font-size: 0.7rem;
    font-weight: 800;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-github:hover {
    background: var(--vermelho-tech);
    border-color: var(--vermelho-tech);
    box-shadow: 0 0 15px var(--vermelho-glow);
    transform: translateY(-2px);
}

/* --- Seção de Contato --- */
.contatos {
    padding: var(--section-padding) 1.5rem;
    position: relative;
}

.contato-titulo {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

/* Estilo do formulário flutuante */
.contato-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.formulario-contato {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.95));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    position: relative;
    border-top: 2px solid var(--vermelho-tech);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--vermelho-tech);
    border-radius: 50%;
    animation: blink-caret 1s infinite;
}

.status-text, .form-id {
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.campo-form {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: var(--branco);
    border: 1px solid rgba(255, 255, 255, 0.05);
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.campo-form:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--vermelho-tech);
    box-shadow: 0 0 15px var(--vermelho-glow);
}

.grupo-form {
    margin-bottom: 1.8rem;
}

.botao-form {
    background: var(--branco);
    color: var(--maisEscuro);
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.botao-form:hover {
    background: var(--vermelho-tech);
    color: var(--branco);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--vermelho-glow);
}

.type-cursor {
    animation: blink-caret 0.75s step-end infinite;
    color: var(--primaria);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-icon-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--vermelho-tech);
    box-shadow: 0 0 15px var(--vermelho-glow);
}

.social-icon-link img {
    width: 24px !important;
    height: 24px !important;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-icon-link:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--branco));
}

.rodape {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Efeitos de Fundo (Partículas e Ondas) --- */
.ripple-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: ripple 15s infinite;
    box-shadow: 0px 0px 1px 0px var(--accent); /* Sombra mais suave */
}

.small{
  width: 200px;
  height: 200px;
  left: -100px;
  bottom: -100px;
}

.medium{
  width: 400px;
  height: 400px;
  left: -200px;
  bottom: -200px;
}

.large{
  width: 600px;
  height: 600px;
  left: -300px;
  bottom: -300px;
}

.xlarge{
  width: 800px;
  height: 800px;
  left: -400px;
  bottom: -400px;
}

.xxlarge{
  width: 1000px;
  height: 1000px;
  left: -500px;
  bottom: -500px;
}

.shade1{
  opacity: 0.2;
}

.shade2{
  opacity: 0.5;
}

.shade3{
  opacity: 0.7;
}

.shade4{
  opacity: 0.8;
}

.shade5{
  opacity: 0.9;
}

.lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 90vw;
    z-index: -1;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animação da "gota" caindo nas linhas de fundo */
.line::after {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
    margin-left: -25%;
}

.line:nth-child(1)::after {
    animation-delay: 2s;
}

.line:nth-child(3) {
    margin-left: 25%;
}

.line:nth-child(3)::after {
    animation-delay: 2.5s;
}

/* Fundo pontilhado/textura */
.particulas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 100%);
}

/* Estilos para o Card de Educação e Layout Responsivo */
.sobre-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

@media (min-width: 968px) {
    .sobre-container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
    
    .sobre-container .sobre-caixa {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
}

.educacao-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.educacao-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--vermelho-tech), var(--primaria));
    opacity: 0.7;
}

.educacao-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3); /* Borda branca sutil */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow); /* Brilho branco */
}

/* Trajetória Card (Separado para manter estilo original ou ajustar depois) */
.trajetoria-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--vermelho-tech);
}

.trajetoria-card:hover {
    border-color: var(--vermelho-tech);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 20px var(--vermelho-glow);
}

.trajetoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trajetoria-id {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--vermelho-tech);
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.trajetoria-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trajetoria-status .status-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-weight: 700;
}

.trajetoria-titulo-main {
    font-size: 1.1rem;
    padding: 2rem 1.5rem 0;
    color: var(--branco);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.educacao-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--secundaria); /* Cinza prateado */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.educacao-titulo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--secundaria), transparent); /* Gradiente de cinza */
    opacity: 0.5;
}

/* Itens da lista de educação */
.educacao-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.educacao-item:last-child {
    margin-bottom: 0;
}

.educacao-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--primaria);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--glow);
}

.educacao-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, #fff, var(--cinza-claro));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.educacao-info .instituicao {
    color: var(--secundaria);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.educacao-info p {
    font-size: 0.9rem;
    color: var(--cinza-claro);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.badge-date {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 50px;
    color: var(--secundaria);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    box-shadow: 0 0 10px var(--glow);
}

/* --- Keyframes (Definição das Animações) --- */
@keyframes flutuar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes borda-colorida {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes brilho-triangular {
    0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1)); }
    100% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 21ch }
}

@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes ripple {
  0%{
    transform: scale(0.8);
  }
  50%{
    transform: scale(1.2);
  }
  100%{
    transform: scale(0.8);
  }
}

@keyframes drop {
    0% {
        top: -50%;
    }
    100% {
        top: 110%;
    }
}

/* Estilos da Linha do Tempo (Trajetória) */
.trajetoria-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline {
    position: relative;
    padding: 1.5rem;
    margin-left: 10px;
}

/* Linha vertical da timeline */
.timeline-item {
    position: relative;
    padding-left: 35px;
    padding-bottom: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

/* Bolinha indicadora na timeline */
.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--vermelho-tech);
    box-shadow: 0 0 10px var(--vermelho-glow);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--branco);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.item-id {
    font-size: 0.65rem;
    color: var(--vermelho-tech);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: block;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--claro);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--accent);
    line-height: 1.6;
}

@media (min-width: 968px) {
    .trajetoria-card {
        grid-column: span 2;
    }
}

/* Animação de entrada suave (fade in + subida) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Seção de Certificados --- */
.certificados {
    padding: var(--section-padding) 1.5rem;
    position: relative;
}

.certificados-titulo {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    color: var(--claro);
}

/* Grid dos Cards de Plataforma (Databricks, Alura, etc) */
.platforms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1440px;
    margin: 0 auto;
}

/* Estilo visual do Card da Plataforma (Dashboard Style) */
.platform-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(20px);
    min-height: 400px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid var(--vermelho-tech);
}

.platform-card:hover {
    border-color: var(--vermelho-tech);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--vermelho-glow);
}

.platform-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-id {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--vermelho-tech);
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.platform-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--vermelho-tech);
    border-radius: 50%;
    animation: blink-caret 1s infinite;
}

.platform-status .status-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-weight: 700;
}

.platform-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-mini-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.platform-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--claro);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox: Deixa a barra fina em vez de sumir */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Scrollbar minimalista para Chrome/Safari */
.platform-body::-webkit-scrollbar { width: 3px; }
.platform-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

.platform-sub-section h4 {
    font-size: 0.75rem;
    color: var(--branco);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    border-left: 3px solid var(--vermelho-tech);
    padding-left: 10px;
    margin-left: -10px; /* Ajusta para a borda ficar alinhada */
}

/* Indicadores coloridos (Azul = Curso, Verde = Certificado) */
.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-indicator.courses, .dot-indicator.certs { background-color: var(--vermelho-tech); box-shadow: 0 0 10px var(--vermelho-glow); }


.platform-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.platform-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Informações do texto dentro do item */
.item-info {
    flex: 1;
    padding-right: 1rem;
}

.item-info h5 {
    font-size: 0.9rem;
    color: var(--claro);
    margin-bottom: 2px;
    font-weight: 600;
    /* Permite que o título ocupe até 2 linhas antes de cortar */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

.item-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-status-icon {
    color: var(--vermelho-tech);
    opacity: 1;
    filter: drop_shadow(0 0 5px var(--vermelho-glow));
}

.empty-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
    .platforms-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .platform-header {
        padding: 1rem 1.25rem;
    }
    .platform-name {
        font-size: 1.25rem;
    }
    .platform-body {
        padding: 1.25rem 1rem;
        gap: 1.5rem;
    }
    .platform-item {
        padding: 0.8rem;
    }
    .item-info h5 {
        font-size: 0.95rem;
    }
}

/* =========================
   RESPONSIVIDADE GERAL
   ========================= */

/* Ajustes para Tablets e telas médias */
@media (max-width: 992px) {
    .navegacao {
        padding: 1rem 1.5rem;
    }

    .Menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .cabecalho {
        padding-top: 6rem; /* espaço extra por causa do menu fixo */
    }

    .foto-perfil {
        width: 260px;
        height: 260px;
    }

    h1 {
        font-size: 2.8rem;
        white-space: normal;
        border-right: none;
        width: auto;
        animation: none;
        text-align: center;
        opacity: 1;
    }

    .sobre {
        padding: 4rem 1.5rem;
    }
}

/* Ajustes para Celulares (Mobile) */
@media (max-width: 768px) {
    .navegacao {
        width: 95%;
        padding: 0.8rem 1.2rem;
        top: 15px;
        border-radius: 20px;
    }

    .nav-inner {
        justify-content: space-between;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
        border: none;
    }

    .Menu {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-radius: 24px;
        border: 1px solid var(--borda-vidro);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    }

    .navegacao.menu-open .Menu {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }

    .Menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .menu-link {
        font-size: 1.3rem; /* Aumentado de 0.9rem */
        font-weight: 500;
        padding: 0.8rem 0;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .lang-toggle {
        font-size: 1.1rem; /* Aumentado de 0.75rem */
        padding: 10px 30px;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .cabecalho {
        clip-path: none;
        background: linear-gradient(180deg, var(--maisEscuro) 0%, rgba(30, 64, 175, 0.05) 100%);
        padding-bottom: 60px;
    }

    /* --- Refinamento do Card Sobre Mim para Mobile --- */
    .sobre-caixa,
    .educacao-card {
        padding: 2rem 1.5rem; /* Reduzido de 3rem para não esmagar o conteúdo */
        border-radius: 20px;
    }

    .sobre-caixa::before {
        width: 3px; /* Borda lateral levemente mais fina para telas menores */
    }

    .sobre-header {
        margin-bottom: 1.2rem;
    }

    .sobre-paragrafo {
        font-size: 1rem; /* Fonte ligeiramente menor para melhor legibilidade no celular */
        line-height: 1.7; /* Espaçamento entre linhas confortável */
    }

    .info-pessoais {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    /* Cards viram coluna única no mobile */
    .projetos {
        padding: 4rem 1rem;
    }

    .projetos-caixa {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-category h3 {
        text-align: center;
    }

    .educacao-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 25px;
    }

    /* Ajuste do Badge para Mobile */
    .sidebar-badge {
        margin: 1.5rem auto 0;
        padding: 12px 20px;
        font-size: 0.9rem;
        width: fit-content;
        display: flex;
    }

    .btn-cv {
        margin: 2rem auto 0;
    }
}

/* Telas muito pequenas (ex: celulares antigos) */
@media (max-width: 480px) {
    .Menu {
        gap: 0.5rem;
    }

    .menu-link {
        font-size: 0.8rem;
    }

    .foto-perfil {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .sobre-caixa,
    .formulario-contato,
    .platform-card {
        padding: 1.5rem 1.2rem; /* Ajuste fino para celulares muito pequenos */
        padding-left: 1.5rem; /* Espaço extra para a borda neon lateral */
    }

    .sidebar-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
        gap: 8px;
    }

    .sidebar-badge-icon {
        font-size: 1.1rem;
    }
}

/* --- Animações On Scroll (Intersection Observer) --- */

/* Estado inicial (invisível) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px); /* Deslocamento mais curto para maior fluidez */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform; /* Otimização de performance */
}

/* Estado visível (quando entra na tela) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Animação Específica para Cards de Projetos: Perspective Zoom */
.animate-project-card {
    transform: translateY(40px) scale(0.95) perspective(1000px) rotateX(-5deg);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                filter 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-project-card.is-visible {
    transform: translateY(0) scale(1) perspective(1000px) rotateX(0deg);
    filter: blur(0);
}

/* Variações de Direção para animação */
.slide-left {
    transform: translateX(-30px);
}

.slide-right {
    transform: translateX(30px);
}

/* Atrasos (delays) para criar efeito de "cascata" nos cards */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Ajustes Responsivos para Animações */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(15px); /* No mobile, movimentos menores são mais elegantes */
        transition-duration: 0.6s;   /* Resposta mais rápida no toque */
    }
}

/* Remove animação se o usuário preferir movimento reduzido (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* --- Botão de Currículo --- */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 35px;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    color: var(--branco);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards, cvPulse 2.5s infinite 1.5s;
    z-index: 10; /* Garante que o botão esteja acima de outros elementos */
}

.btn-cv:hover {
    background: var(--vermelho-tech);
    border-color: var(--vermelho-tech);
    box-shadow: 0 0 30px var(--vermelho-glow);
    transform: translateY(-3px) scale(1.05);
}

.btn-cv-icon {
    color: var(--vermelho-tech);
    transition: color 0.3s ease;
}

.btn-cv:hover .btn-cv-icon {
    color: var(--branco);
}

/* --- Sidebar Badge (Balão Lateral) --- */
.sidebar-badge {
    position: relative; /* Segue o fluxo da página */
    margin-top: 1rem;   /* Espaçamento reduzido para agrupar com o botão CV */
    display: inline-flex;
    
    /* Design Profissional: Glassmorphism com Acento */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--vermelho-tech);
    color: var(--branco);
    
    padding: 12px 24px;
    border-radius: 12px; /* Formato mais retangular para ar mais sério */
    text-decoration: none;
    align-items: center;
    gap: 15px;
    
    /* Efeitos Visuais */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
    cursor: pointer;
    
    /* Tipografia */
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: badgePulse 4s infinite ease-in-out;
}

.sidebar-badge:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(225, 29, 72, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px var(--vermelho-glow);
}

.sidebar-badge-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--vermelho-glow));
}

.sidebar-badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes badgePulse {
    0%, 100% { border-left-color: var(--vermelho-tech); }
    50% { border-left-color: var(--branco); }
}

/* Animação de pulso específica para o botão de CV */
@keyframes cvPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
