/* style.css - Final Version: Warm Blue Ethereal & Variable Fonts */

:root {
    /* PALETA DE CORES (Warm Gray Base) */
    --bg-color: #FAF4F2;       /* O fundo cinza quente é essencial para o "azul quente" funcionar */
    --text-color: #000;     
    --accent-color: #DQD8D2;   
    --link-color: #0161EF;     
    
    /* TIPOGRAFIA */
    --font-main: 'Google Sans Flex', 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; /* Evita rolagem lateral por causa dos blobs */
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
img { display: block; max-width: 100%; }

/* === LAYOUT GERAL === */
.container {
    max-width: 1800px;
    margin: 100 auto;
    padding: 0 4rem; 
}

/* === AMBIENT BACKGROUND (Novo: Azul Quente & Suave) === */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; 
    overflow: hidden;
    background-color: var(--bg-color);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* Desfoque extremo para suavidade máxima */
    opacity: 0.5; /* Transparência média para mistura de cores */
}

/* Blob 1: Azul Pervinca (Azul com toque de violeta = Quente) */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: #bac7ff; 
    animation: float1 35s infinite alternate ease-in-out;
}

/* Blob 2: Azul Céu Pastel (Claro e arejado) */
.blob-2 {
    bottom: 0%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: #dbeafe; 
    animation: float2 40s infinite alternate-reverse ease-in-out;
}

/* Blob 3: Pêssego Pálido (Essencial para "aquecer" os azuis) */
.blob-3 {
    bottom: -20%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: #ffe4d6; 
    opacity: 0.4;
    animation: float3 32s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 80px) scale(1.1); }
    100% { transform: translate(-20px, 120px) rotate(10deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(0.95); }
    100% { transform: translate(40px, -80px) scale(1.05); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -40px) scale(1.1); }
}

/* === HEADER (Blur Progressivo Não-Linear) === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Aumentei para 180px para o degradê ter bastante espaço para "morrer" suavemente */
    height: 180px; 
    z-index: 1000;
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 4rem; 
    
    background: transparent;
    pointer-events: none;
    border-radius: 0;
}

/* Reativa cliques */
.main-header .nav-logo, 
.main-header .nav-actions {
    pointer-events: auto;
    position: relative;
    z-index: 1002;
}

/* === A MÁGICA DO FADE SUAVE === */
.main-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    /* 1. Força de Hardware */
    transform: translateZ(0);

    /* 2. Blur Médio (Mais elegante que o forte demais) */
    backdrop-filter: blur(16px) saturate(180%); 
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    /* 3. Base Branca (Essencial para ver o blur em fundos claros) */
    /* Deixei levemente mais opaco no topo */
    background: rgba(255, 255, 255, 0.6); 
    
    /* 4. MÁSCARA NÃO-LINEAR (Curva Exponencial) */
    /* Em vez de ir direto do preto pro transparente, fazemos degraus suaves */
    mask-image: linear-gradient(
        to bottom,
        rgb(0, 0, 0) 0%,        /* 100% visível no topo */
        rgba(0, 0, 0, 0.98) 20%,
        rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.6) 50%, /* Começa a sumir na metade */
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.1) 85%,
        rgba(0, 0, 0, 0) 100%   /* 100% invisível no final */
    );
    
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgb(0, 0, 0) 0%,
        rgba(0, 0, 0, 0.98) 20%,
        rgba(0, 0, 0, 0.9) 30%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.1) 85%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Mobile */
@media (max-width: 900px) {
    .main-header {
        height: 120px;
        padding: 1.5rem;
    }
}
/* Ajuste Mobile para garantir que continue no topo */
@media (max-width: 900px) {
    .main-header {
        padding: 0 1.5rem;
        height: 70px;
        /* Garante que não tenha margem no mobile também */
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }
}



.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative; z-index: 2;
}

.nav-actions { display: flex; gap: 1rem; align-items: center; position: relative; z-index: 2; }

.nav-btn {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 17px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-linkedin {
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}
.btn-linkedin:hover {
    background: rgba(255,255,255,0.4);
}

.btn-email {
    background-color: var(--text-color);
    color: #fff;
    border: 1px solid var(--text-color);
}
.btn-email:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-2px);
}

/* === TIPOGRAFIA HERO === */
.hero-text {
    font-size: clamp(3.5rem, 11vw, 120px); 
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    margin-left: -0.04em;
    color: var(--text-color);
}

.sub-hero {
    font-size: 1.5rem;
    max-width: 1500px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #000;
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    border-top: 2px solid var(--text-color);
    padding-top: 1rem;
    margin-bottom: 0;
    margin-top: 8rem;
    display: inline-block;
    letter-spacing: 0.05em;
}

/* === LISTA DE PROJETOS (GRID VISUAL) === */
.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Colunas iguais */
    gap: 40px; /* Espaço entre os cards */
    margin-bottom: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column; /* Empilha: Imagem em cima, Texto embaixo */
    text-decoration: none;
    color: var(--text-color);
    min-height: auto; /* Remove altura forçada antiga */
    gap: 1rem; /* Espaço entre a imagem e o título */
    position: relative;
}

/* Container da Imagem (Cinza) */
.project-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    
    /* MUDANÇA: Usamos a cor do fundo do site para a "tintura" funcionar */
    background-color: #FAF4F2; 
    
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* ESTADO PADRÃO (INATIVO) */
    opacity: 0.6; /* Deixa o fundo (#FAF4F2) vazar, criando o tint */
    filter: grayscale(100%); /* Remove a cor para ficar discreto */
    
    /* Transição suave para cor e opacidade */
    transition: all 0.6s ease;
    mix-blend-mode: multiply; /* Opcional: faz a imagem "fundir" melhor com o bege */
}

/* ESTADO HOVER (ATIVO) */
.project-card:hover .project-bg {
    transform: scale(1.05); /* Zoom */
    opacity: 1;             /* Volta a ser sólida */
    filter: grayscale(0%);  /* Volta a ter cor */
    mix-blend-mode: normal; /* Remove a fusão */
}

/* Typography do Card */
/* === CONTEÚDO DE TEXTO DO PROJETO === */
.project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0 0; /* Um pouco de espaço do topo */
    gap: 0.2rem;
    
    /* 1. O ESTADO "FANTASMA" (Opacidade Baixa) */
    opacity: 0.4; 
    
    /* 2. A TRANSIÇÃO (Suave) */
    /* Isso garante que ele acenda devagar, não num susto */
    transition: opacity 0.4s ease; 
}

/* === QUANDO PASSA O MOUSE NO CARD INTEIRO === */
.project-card:hover .project-content {
    /* O texto acende totalmente */
    opacity: 1; 
}

.project-card h2 {
    font-size: 1.8rem; /* Tamanho do título */
    font-weight: 800; /* Extra bold */
    margin: 0;
    line-height: 1.2;
    color: #000;
    letter-spacing: -0.03em;
}

.project-year-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin-top: 0;
}

/* Hover Effects */
.project-card:hover .project-img-wrapper {
    transform: translateY(-5px); /* Sobe levemente */
    opacity: 1;
}
.project-card:hover .project-bg {
    transform: scale(1.05); /* Zoom suave */
    opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr; /* 1 coluna no celular */
        gap: 3rem;
    }
    .project-img-wrapper {
        aspect-ratio: 4/3; /* Um pouco mais quadrado no celular */
    }
}

/* === PÁGINA INTERNA === */
.project-header { margin-bottom: 4rem; margin-top: 3rem; }
/* === LAYOUT DA PÁGINA DE PROJETO (REPARO TOTAL) === */

/* 1. O Container Principal (O Grid) */
.project-layout {
    display: grid;
    /* Define explicitamente: Coluna da Esquerda (300px) | Coluna da Direita (O resto) */
    grid-template-columns: 300px 1fr; 
    gap: 4rem; /* Espaço entre a barra e o texto */
    
    /* Importante: Alinha os itens no topo. 
       Sem isso, a sidebar estica até o fim e o sticky não funciona. */
    align-items: start; 
    
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 4rem;
    position: relative; /* Garante contexto de posicionamento */
}

/* 2. A Barra Lateral (Sidebar) */
.project-sidebar {
    /* Só funciona se o pai (.project-layout) tiver align-items: start */
    position: sticky; 
    top: 120px; /* Distância do topo ao rolar */
    
    /* Configuração de Scroll Interno (caso a tela seja pequena) */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 15px; /* Espaço para a barra de rolagem não colar */
    
    /* Estilo da barra (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    
    /* Garante que ela tenha um fundo se passar por cima de algo (segurança) */
    background: transparent; 
    z-index: 10;
}

/* Estilo da barra (Chrome/Safari) */
.project-sidebar::-webkit-scrollbar { width: 4px; }
.project-sidebar::-webkit-scrollbar-track { background: transparent; }
.project-sidebar::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 10px; }

/* 3. A Área de Conteúdo (Texto) */
.content-area {
    min-width: 0; /* Impede que imagens grandes quebrem o grid */
    position: relative;
    z-index: 1;
}

/* === VERSÃO MOBILE (Desfaz o Grid) === */
@media (max-width: 900px) {
    .project-layout {
        display: flex;
        flex-direction: column; /* Um embaixo do outro */
        gap: 3rem;
    }

    .project-sidebar {
        position: relative; /* Remove o sticky no celular */
        top: 0;
        max-height: none; /* Remove limite de altura */
        width: 100%;
        padding-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 2rem;
    }
}

.info-block { margin-bottom: 2.5rem; }
.info-block h4 { 
    font-family: var(--font-main); 
    font-weight: 700;
    font-size: 0.75rem; 
    text-transform: uppercase; 
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 4px;
    display: inline-block;
    letter-spacing: -0.01em;
}

/* === CORREÇÃO DEFINITIVA: SCROLL DO ÍNDICE === */

/* === ÍNDICE (TOC) - LIMPO === */
/* Removemos altura máxima e scroll, pois agora a Sidebar inteira cuida disso */
#toc-list {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none !important; /* Remove limite */
    overflow: visible !important; /* Remove scroll interno */
}

/* Mantemos apenas a estilização bonita dos links */
#toc-list li a {
    color: var(--link-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
    opacity: 0.9;
}

#toc-list li a:hover {
    opacity: 1;
    transform: translateX(5px);
    filter: brightness(0.8);
}

/* Conteúdo */
.content-text p { 
    font-size: 1.25rem; 
    line-height: 1.7; 
    color: #000; 
    margin-bottom: 2rem; 
    font-weight: 400; 
    max-width: 65ch; 
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.1;
}

.content-image { margin: 3rem 0; width: 100%; max-width: 850px; }
.content-image img { border-radius: 32px; width: 100%; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

.caption { 
    font-family: var(--font-main); 
    font-weight: 500;
    font-size: 0.85rem; 
    color: #666; 
    margin-top: 1rem; 
    padding-left: 1rem;
}

.content-html-wrapper, .content-html { 
    margin: 3rem 0; 
    border-radius: 32px;
    overflow: hidden;
    width: 100%;
    max-width: 850px; 
    border: 1px solid rgba(0,0,0,0.05);
}

video { border-radius: 32px; width: 100%; max-width: 850px; display: block; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Extras */
.extras-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2px; 
    /* Borda translúcida para combinar com o fundo */
    background: rgba(0,0,0,0.05); 
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 32px;
    overflow: hidden;
}
.extra-card { 
    background: rgba(255,255,255,0.6); /* Leve transparência */
    padding: 2.5rem; 
    aspect-ratio: 1/1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: background 0.3s;
    backdrop-filter: blur(10px); /* Vidro nos extras também */
}
.extra-card:hover { background: #fff; } 
.extra-card h3 { font-size: 1.8rem; font-weight: 800; }

/* === ANIMAÇÃO VARIABLE FONT (Ajustada para Google Sans) === */
.variable-letter {
    display: inline-block;
    cursor: default;
    
    /* Google Sans Flex vai até 1000! Vamos usar 900 para o título ficar bem bold */
    font-weight: 900;
    font-variation-settings: 'wght' 900;
    
    color: var(--text-color); 
    
    /* Transição elástica */
    transition: font-variation-settings 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.variable-letter.animating {
    color: var(--text-color);
}

/* Mobile */
@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    
    .main-header {
        top: 1rem; left: 1rem; right: 1rem;
        padding: 0 1.5rem;
        height: 70px;
    }
    .nav-btn { font-size: 0.8rem; padding: 10px 16px; }
    .btn-linkedin { display: none; } 
    
    .project-card { min-height: auto; gap: 2rem; padding: 2rem 0; }
    .project-img-wrapper { height: 300px; } 
    .hero-text { font-size: 3.5rem; margin-top: 4rem; }
}

/* === PROGRESS BAR & BACK TO TOP === */

/* 1. Barra de Progresso de Leitura */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Altura sutil */
    background: transparent;
    z-index: 2000; /* Acima do Header */
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: var(--link-color); /* Azul #037AFF */
    width: 0%; /* O JS vai mudar isso */
    transition: width 0.1s ease-out;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(3, 122, 255, 0.5); /* Glow sutil */
}

/* === BOTÃO VOLTAR AO TOPO (Canto Inferior Direito) === */
.back-to-top {
    /* 1. Posicionamento Fixo */
    position: fixed; 
    
    /* 2. Coordenadas: Canto Inferior Direito */
    bottom: 30px; 
    right: 30px;  
    
    /* Tamanho e Estilo */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    /* Efeito de Vidro */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    /* Centralizar a setinha */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Comportamento (Invisível até rolar) */
    opacity: 0;
    pointer-events: none; /* Não clica quando invisível */
    transform: translateY(20px); /* Começa um pouco descido */
    transition: all 0.4s ease;
    
    z-index: 900; /* Fica acima do conteúdo, mas abaixo do header (1000) */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none; /* Garante que não tenha sublinhado */
}

/* Quando a classe 'visible' é adicionada pelo Javascript */
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0); /* Sobe para a posição final */
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-5px); /* Flutua um pouco ao passar o mouse */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Ajuste para Celular (Um pouco mais próximo da borda) */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* === BOTÃO VOLTAR (Estilo Unificado) === */
.btn-back {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 12px 28px;
    border-radius: 50px;
    
    /* Visual parecido com os outros botões */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-back:hover {
    background: #fff;
}

/* === CLASSE MAGNÉTICA (Aplica o comportamento físico) === */
.magnetic-btn {
    display: inline-flex; /* Importante para o transform funcionar bem */
    align-items: center;
    justify-content: center;
    
    /* Esta transição define a velocidade do "Snap Back" (volta pro lugar) */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform; /* Otimização de performance */
}

/* No celular desligamos o magnético para não bugar o touch */
@media (max-width: 900px) {
    .magnetic-btn { transform: none !important; }
}

/* === EXTRAS / PLAYGROUND (Final: Sem fundos, foco total na imagem) === */

/* 1. O Grid */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem 2rem;
    margin-top: 3rem;
}

/* 2. O Card (Container invisível) */
.extra-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    
    /* ZERA TUDO explicitamente */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    /* Apenas animação de movimento */
    transition: transform 0.3s ease;
}

/* Hover: Apenas levanta o elemento, SEM mudar cor de fundo */
.extra-card:hover {
    transform: translateY(-8px);
    background: transparent !important; /* Garante que não fique branco */
    box-shadow: none !important;
}

/* 3. A Imagem (Onde está o estilo real) */
.extra-img-box {
    height: 220px;
    width: 100%;
    
    /* Arredondamento forte */
    border-radius: 28px;
    overflow: hidden;
    
    /* Sombra na imagem para dar destaque do fundo */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    
    margin-bottom: 1.2rem;
    
    /* Correção para Safari/Chrome */
    transform: translateZ(0); 
}

.extra-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Começa P&B e um pouco escuro */
    filter: grayscale(100%) brightness(0.95);
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

/* Hover na Imagem: Ganha cor e zoom */
.extra-card:hover .extra-img-box img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.06);
}

/* 4. Conteúdo de Texto */
.extra-content {
    padding: 0 0.5rem; /* Leve recuo para alinhar visualmente com a curva da imagem */
    display: flex;
    flex-direction: column;
}

.extra-header {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.extra-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

/* 5. Tags (Estilo Hashtag discreto) */
.extra-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.extra-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #aaa; /* Cinza bem claro */
    background: transparent;
    border: none;
    padding: 0;
}

.extra-tag::before {
    content: '#';
    opacity: 0.4;
    margin-right: 1px;
}

/* === RODAPÉ DO PROJETO (Nota do Autor) === */

.project-author-footer {
    margin-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Linha divisória sutil */
.footer-divider {
    width: 60px;
    height: 4px;
    background-color: var(--text-color); /* Usando a cor do texto para contraste */
    margin-bottom: 1rem;
    border-radius: 2px;
    opacity: 0.1; /* Bem suave */
}

.thank-you-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Animação do Coração pulsando */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.heart-beat {
    display: inline-block;
    color: #037aff; /* Vermelho suave */
    animation: heartbeat 2s infinite ease-in-out;
    margin-left: 5px;
}

.thank-you-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 100ch; /* Largura de leitura confortável */
    margin: 0 auto;
}

/* O Botão de Convite */
.btn-next-projects {
    margin-top: 1rem;
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--text-color); /* Fundo escuro */
    color: #fff; /* Texto claro */
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Sombra suave colorida (dá um toque moderno) */
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.3);
}

.btn-next-projects:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.4);
    background-color: #000;
}

 
/* Responsivo (Celular) */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-nav {
        flex-wrap: wrap; /* Links podem quebrar linha se faltar espaço */
        gap: 1rem 1.5rem;
    }
}

/* === BOTÃO DE EMAIL (Resetado / Estático) === */
.btn-email {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    
    background: #000;
    color: #fff;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    
    /* Sem animações de scale/pulo */
    transition: background 0.3s ease;
}

/* Hover apenas muda levemente a cor, sem movimento */
.btn-email:hover {
    background: #fff; 
}

/* === NOTIFICAÇÃO TOAST (Pequena e Fixa) === */
/* === TOAST CONTAINER (Ajuste de Segurança) === */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647; /* Valor máximo possível do Z-Index */
    
    /* Garante que o container em si não bloqueie cliques na página */
    pointer-events: none;
    
    /* Flexbox para empilhar toasts se houver mais de um */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha à direita */
    gap: 10px;
}

/* O resto do .toast-pill continua igual... */
.toast-pill {
    /* Layout Compacto */
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço menor entre ícone e texto */
    padding: 8px 16px; /* Mais fininha e curta */
    
    /* Visual de Vidro */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    
    /* Texto Pequeno e Elegante */
    font-family: var(--font-main);
    font-size: 0.8rem; /* Letra menor */
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    
    /* ANIMAÇÃO DE ENTRADA (Slide Up) */
    transform: translateY(20px) scale(0.95); /* Começa um pouco abaixo */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ESTADO VISÍVEL */
.toast-pill.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Ícone de Sucesso */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px; /* Ícone menor */
    height: 18px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem; /* Check menor */
}
/* --- APAGUE TODO O CSS ABAIXO REFERENTE AO DROPDOWN ANTIGO --- */
/* (Apague .email-dropdown-wrapper, .email-menu, .email-option, etc) */

/* === FAIXA SCROLL INFINITO (Marquee) - Versão Estável === */
.marquee-wrapper {
    background-color: #FFCE00; /* Amarelo da imagem */
    color: #000;
    
    /* Força a largura total da tela */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    
    padding: 1.2rem 0; /* Um pouco mais de respiro */
    overflow: hidden;
    display: flex;
    align-items: center;
    
    margin-top: 4rem; 
    margin-bottom: 5rem;
}

.marquee-track {
    display: flex;
    /* Mudei para 60s (bem lento e suave). Se quiser mais lento, aumente para 80s */
    animation: scrollText 60s linear infinite; 
    width: max-content; /* Garante que a largura se adapte ao conteúdo */
    will-change: transform;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.02em;
    padding-left: 3rem; /* Aumentei o espaço para ficar mais elegante */
}

.diamond {
    font-style: normal;
    font-size: 1.2rem;
    margin-left: 3rem; /* Espaço igual ao do texto */
    opacity: 0.6;
}

/* A LÓGICA DO LOOP PERFEITO */
@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Movemos apenas 50% porque temos 2 blocos idênticos. 
           Quando o primeiro acaba, o segundo está exatamente no lugar do início. */
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }
    .diamond {
        margin-left: 1.5rem;
    }
}

/* === ESTILO DO NOME (Acima do H1) === */
.hero-name {
    font-size: clamp(1.5rem, 1vw, 2.5rem); /* Tamanho responsivo: grande mas menor que o título */
    font-weight: 700; /* Extra Bold, igual ao da imagem */
    color: var(--text-color);
    
    /* Espaçamento */
    margin-bottom: 1rem; /* Margem negativa para "puxar" o PRODUCT DESIGNER para perto */
    margin-left: -0.04em; /* Alinhamento ótico para ficar reto com o título */
    
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Ajuste fino no H1 existente para garantir que não tenha margem no topo atrapalhando */
.hero-text {
    margin-top: 0; 
}

/* Ajuste para celular */
@media (max-width: 900px) {
    .hero-name {
        margin-bottom: 1rem; /* Menos margem negativa no mobile */
    }
}

/* Apenas para a tela de detalhes do projeto */
body.project-page, 
body.project-page .ambient-bg {
    background-color: #FAF4F2 !important;
}

/* === CURSOR: Pílula Única Unificada === */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    
    /* Posição deslocada do mouse */
    transform: translate(20px, 20px) scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, left, top;
}

/* Quando ativo */
.custom-cursor.active {
    transform: translate(20px, 20px) scale(1);
}

/* A Pílula Única (Container Geral) */
.cursor-pill {
    /* Layout: Olhos na esquerda, texto na direita */
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Visual de Vidro (Glassmorphism) */
    background: #FFCE00; /* Branco translúcido */
    backdrop-filter: blur(12px); /* Blur no fundo */
    -webkit-backdrop-filter: blur(12px);
    
    /* Borda e Sombra */
    border-radius: 50px; /* Redondo completo */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    
    /* Padding: Menor na esquerda (perto dos olhos), maior na direita (texto) */
    padding: 6px 18px 6px 6px;
}

/* Container dos Olhos */
.eyes-container {
    display: flex;
    gap: 4px;
}

/* O Globo Ocular */
.eye {
    width: 32px; 
    height: 32px;
    background: #fff; 
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    animation: blinkAnim 4s infinite forwards;
    box-shadow: inset 0 1px 2spx rgba(0,0,0,0.1); /* Profundidade interna */
}



/* Wrapper para movimento magnético */
.pupil-wrapper {
    width: 100%; 
    height: 100%;
    position: absolute; 
    top: 0; 
    left: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    
    /* MUDANÇA AQUI: */
    /* Deixei super rápido (0.05s). */
    /* Se quiser INSTANTÂNEO (sem nenhum delay), mude para 'none' */
    transition: transform 0.05s linear;
}

/* A Pupila */
.pupil {
    width: 16px; /* Levemente menor para caber melhor */
    height: 16px;
    background: #000;
    border-radius: 50%;
    position: relative; /* Para o brilho funcionar */
}

/* O Brilho (Glint) */
.pupil::after {
    content: '';
    position: absolute;
    top: 3px; right: 3px;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
}

/* O Texto */
.cursor-text {
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    white-space: nowrap;
    letter-spacing: -0.02em;
    /* Removemos background/padding próprios, pois agora é tudo uma coisa só */
}

/* Animação de Piscar */
@keyframes blinkAnim {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* Garante ponteiro clicável */
.project-card { cursor: pointer; }

/* Adicione isso ao seu CSS */

/* === ESTILOS ESPECÍFICOS DO PLAYGROUND === */

/* Reutilizamos .project-list, mas adicionamos .playground-grid 
   para mudar de 2 colunas para 3 colunas (grid mais denso).
*/
.playground-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Ajuste fino na tipografia do playground para ficar proporcional ao card menor */
.playground-card h2 {
    font-size: 1.5rem; /* Um pouco menor que o título principal (1.8rem) */
}

/* Responsividade para o grid do playground */
@media (max-width: 1100px) {
    .playground-grid {
        grid-template-columns: 1fr 1fr; /* Volta para 2 colunas em telas médias */
    }
}

@media (max-width: 768px) {
    .playground-grid {
        grid-template-columns: 1fr; /* 1 coluna no mobile */
    }
}

/* === ESTILOS DA PÁGINA SOBRE (Adicione ao final do style.css) === */

/* Layout do Topo (Texto + Foto) */
.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Texto ocupa mais espaço que a foto */
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
    margin-bottom: 8rem;
}

.about-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    max-width: 55ch;
}

/* A Foto de Perfil */
.about-photo-wrapper {
    position: relative;
    border-radius: 32px;
    max-width: 340px; /* Limita a largura da imagem */
    margin: 0 auto;   /* Centraliza a imagem na coluna dela */
    overflow: hidden;
    aspect-ratio: 3/4; /* Formato retrato elegante */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(2deg); /* Leve inclinação charmosa */
    transition: transform 0.5s ease;
}

.about-photo-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Seções de Currículo (Experiência, Cursos) */
.resume-section {
    margin-bottom: 1rem;
    padding-top: 2rem;
}

.resume-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 3rem;
    display: block;
}

/* Lista de Itens */
.resume-list {
    display: flex;
    flex-direction: column;
}

.resume-item {
    display: grid;
    grid-template-columns: 200px 1fr; /* Data na esquerda, Conteúdo na direita */
    gap: 2rem;
    padding: 2rem 0;
    transition: background 0.3s ease;
}



.resume-date {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 4px; /* Alinha visualmente com o título */
}

.resume-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resume-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #666;
}

.resume-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    max-width: 60ch;
}

/* Responsivo para Sobre */
@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr; /* Empilha no celular */
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .about-photo-wrapper {
        order: -1; /* Joga a foto para cima do texto no celular */
        max-width: 300px;
        transform: rotate(0deg);
        margin: 0 auto;
    }

    .resume-item {
        grid-template-columns: 1fr; /* Data em cima do cargo */
        gap: 0.5rem;
    }
    
    .resume-date {
        margin-bottom: 0.5rem;
    }
}



/* === MODO REDUZIR MOVIMENTO === */

/* 1. Mata todas as transições e animações do CSS */
body.motion-reduced *,
body.motion-reduced *::before,
body.motion-reduced *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
}

/* 2. Remove as Bolhas do Fundo (São pesadas) */
body.motion-reduced .ambient-bg {
    display: none !important;
}

/* 3. Pausa o letreiro (Marquee) */
body.motion-reduced .marquee-track {
    animation-play-state: paused !important;
}

/* 4. Remove o Cursor Personalizado e volta o normal */
body.motion-reduced #custom-cursor {
    display: none !important;
}
body.motion-reduced, 
body.motion-reduced a, 
body.motion-reduced button {
    cursor: auto !important; /* Volta a setinha padrão */
}

/* 5. Estilo do Botão Ativo (Para saber que está ligado) */
body.motion-reduced #btn-motion-toggle {
    background-color: var(--text-color);
    color: #fff;
}

/* === BOTÃO DE ÍCONE (Motion Toggle) === */
.btn-icon-only {
    width: 45px;       /* Largura fixa */
    height: 45px;      /* Altura fixa */
    padding: 0;        /* Sem padding interno */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Perfeitamente redondo */
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1); /* Borda sutil */
    color: var(--text-color);
    transition: all 0.3s ease;
}

.btn-icon-only:hover {
    background: #fff;
    border-color: #000;
    transform: scale(1.05);
}

/* Tamanho do SVG */
.btn-icon-only svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* Pega a cor do texto/botão */
    display: block;
}

/* Quando o modo Reduzido está ativo (Botão fica "presionado") */
body.motion-reduced .btn-icon-only {
    background-color: var(--text-color); /* Fundo preto */
    color: #fff; /* Ícone branco */
    border-color: transparent;
}

/* === SEÇÃO DE FERRAMENTAS (Versão Imagem Oficial) === */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.tool-icon {
    width: 48px;  /* Levemente maior para acomodar melhor a logo */
    height: 48px;
    border-radius: 12px;
    
    /* Fundo branco e sombra suave para destacar o ícone colorido */
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Espaço interno para o ícone "respirar" */
    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: help;
    position: relative;
}

/* Garante que a imagem caiba perfeitamente sem distorcer */
.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a proporção original */
    display: block;
}

.tool-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 10;
    border-color: rgba(0,0,0,0.2);
}

/* Tooltip (Nome da ferramenta) - Mantido igual */
.tool-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tool-icon:hover::after {
    opacity: 1;
}