/* ==========================================================================
   1. Variáveis CSS (Root)
   ========================================================================== */
:root {
    /* ===== Color Scheme ===== */
    --primary-color: #4c00ff;
    --primary-rgb: 169, 85, 255;
    --secondary-color: #7142c9;
    --accent-color: #3616aa;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --navbar-bg: rgba(17, 17, 17, 0.8);
    --navbar-height: 70px;
    
    /* Section Background Colors */
    --section-bg-1: rgba(10, 10, 10, 0);
    --section-bg-2: #0f0f0f;
    --section-bg-3: #080808;
    
    /* ===== Sizes ===== */
    --menu-item-size: 60px;
    --menu-gap: 25px;
    --card-width: 200px;
    --card-height: 250px;
    
    /* ===== Timings ===== */
    --gradient-animation-duration: 15s;
    --menu-transition-duration: 0.5s;
    --wave-animation-duration: 10s;

    /* ===== NOVAS VARIÁVEIS DE ANIMAÇÃO ELÁSTICA ===== */
    --c1: #8261fb;
    --c2: #5100ff;
    --c3: #3f25eb;
    --gradient: linear-gradient(
        60deg,
        var(--c3),
        var(--c2),
        var(--c1),
        var(--c2),
        var(--c3)
    );
    --scale-start: 0.9; /* Começa menor */
    --scale-end: 1; /* Termina no tamanho normal */

    /* linear easing generator: https://linear-easing-generator.netlify.app/ */
    /* prettier-ignore */
    --ease-elastic: linear(
        0, 0.186 2.1%, 0.778 7.2%, 1.027 9.7%, 1.133, 1.212, 1.264, 1.292 15.4%,
        1.296, 1.294, 1.285, 1.269 18.9%, 1.219 20.9%, 1.062 25.8%, 0.995 28.3%,
        0.944 31.1%, 0.93, 0.921, 0.92 35.7%, 0.926, 0.94 39.7%, 1.001 47%, 1.014,
        1.021 52.4%, 1.02 56.4%, 1 65.5%, 0.994 70.7%, 1.001 88.4%, 1
    );
    /* ================================================= */
    @media (prefers-reduced-motion) {
    :root {
        --ease-elastic: ease-out;
        --scale-start: var(--scale-end);
    }
}
}   



/* ==========================================================================
   2. Reset e Estilos Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==========================================================================
   3. Animações (Keyframes)
   ========================================================================== */

@keyframes topBubbles {
    0% { background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%; }
    50% { background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%; }
    100% { background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%; background-size: 0 0; }
}

@keyframes bottomBubbles {
    0% { background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%; }
    50% { background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%; }
    100% { background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%; background-size: 0 0; }
}

/* NOVO: Animação slideInUp reescrita com escala para elasticidade */
@keyframes slideInUp {
    from {
        opacity: 0;
        /* Adicionado escala: começa pequeno e se move para cima */
        transform: translateY(30px) scale(var(--scale-start)); 
    }
    to {
        opacity: 1;
        /* Termina no tamanho normal (scale: 1) e na posição 0 */
        transform: translateY(0) scale(var(--scale-end));
    }
}

@keyframes typewriter {
    from { width: 0; }  
    to { width: 20.5em; }
}

@keyframes blinkingCursor{
    from { border-right-color: rgba(255,255,255,.75); }
    to { border-right-color: transparent; }
}

/* ==========================================================================
   4. Layout Principal (Body, Container)
   ========================================================================== */
body {
    /* Mantido o gradiente, mas sem animação. Apenas o primeiro gradiente será visível */
    background: linear-gradient(-45deg, #000000, #12023d, #080018, #0e012e);

    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative; 
    overflow-x: hidden; 
    z-index: 1; 
}


.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 15%;
    padding-left: 2%;
    position: relative;
    z-index: 1;
}



/* ==========================================================================
   5. Barra de Navegação (Navbar)
   ========================================================================== */
   
.navbar {
    position: fixed;
    top: 1%;
    left: 1%;
    width: 98%;
    height: var(--navbar-height); 
    background: #0000003f !important; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;  
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.002);
    border-radius: 10px;
    border: #ffffff17 solid 1px;
    padding: 0 2rem;
    z-index: 9999;
    transition: all 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar:hover {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.005);
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar div[id],
.navbar .nav-item {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.navbar div[id]::after,
.navbar .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar div[id]:hover::after,
.navbar .nav-item:hover::after {
    width: 100%;
}

.navbar div[id]:hover,
.navbar .nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar #github {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.navbar #github:hover {
    transform: scale(1.05) translateY(-3px);
}

.nomeTitle {
    text-decoration: none; /* remove underline */
    color: inherit;        /* herda a cor do contêiner ou navbar */
    cursor: pointer;       /* indica que é clicável */
}

/* ==========================================================================
   6. Barra de Rolagem (Scrollbar)
   ========================================================================== */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: #080018;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(150, 0, 255, 0.6), rgba(93, 0, 255, 0.4));
}

/* ==========================================================================
   7. Estilos do Cabeçalho (Header e Títulos)
   ========================================================================== */
.header {
    text-align: center;
    margin-bottom: 6rem;
    margin-right: 500px;
    transition: all 0.8s ease;
}

.Name-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    cursor: default;
    text-decoration: none !important;
    letter-spacing: 1px;
    font-weight: 600;
    color: #9c67ff;
    transition: all 0.8s ease;
    display: block;
    text-align: center;
    background: linear-gradient(120deg, #4c00ff, #7142c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: all 0.8s ease-in-out;
}

.Name-title:hover {
    background: linear-gradient(120deg, #6121f7, #8b5de1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.desc {
    display: block;
    margin-top: 1rem;
    margin-bottom: 2rem;
    margin-left: auto;
    font-size: 0.1rem;
    color: #fffdfd; /* Usando o valor específico de .desc */
    transition: all 0.8s ease;
    text-align: center;
}

/* Estilos do Cabeçalho (Header e Títulos) */
.header {
    text-align: left; /* Alinha o texto à esquerda */
    margin-bottom: 5rem;
    /* REMOVIDO: margin-right: 500px; - Isso empurrava o header para a esquerda no layout original */
    transition: all 0.8s ease;
    
    /* NOVO: Define uma largura máxima para o conteúdo da esquerda, exemplo: 40% da viewport */
    max-width: 40vw; 
    /* NOVO: Garante que o conteúdo comece na esquerda */
    margin-left: 0;
    padding-left: 2rem; /* Adiciona algum padding para não colar na borda */
}

/* Os elementos dentro do header precisam ter seu alinhamento ajustado */
.Name-title {
    /* ... outras propriedades mantidas ... */
    background-clip: text;
    display: block;
    text-align: left; /* Alterado: garante alinhamento à esquerda */
}

.nav-link {
    display: flex;
    justify-content: flex-start; /* Alinha os links à esquerda do header */
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-decoration: none;
}


.desc {
    display: block;
    margin-top: 1rem;
    margin-bottom: 2rem;
    /* REMOVIDO: margin-left: auto; - Isso ajudava a centralizar no layout anterior */
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.8s ease;
    text-align: left; /* Alterado: alinha a descrição à esquerda */
}


.header-buttons {
    display: flex;
    /* MANTIDO: justify-content: center; */
    /* ALTERADO: Para alinhar os botões à esquerda do seu bloco. */
    justify-content: flex-start; 
    gap: 1rem;
    transition: all 0.8s ease;
    margin-top: 2rem;
}

.header-buttons {
    display: flex;
    justify-content: flex-start; /* Alinha os botões à esquerda do bloco */
    gap: 2rem;
    transition: all 0.8s ease;
    margin-top: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 1rem;
}

.section-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem; /* Uso da regra mais específica para seção */
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}



/* ==========================================================================
   8. Estilos do Menu Principal
   ========================================================================== */
.menu {
    position: relative;
    width: 100%;
    margin: var(--menu-position-y, 0) 0;
    transform: translateX(var(--menu-position-x, 0));
}

.menu ul {
    display: flex;
    position: relative;
    gap: var(--menu-gap);
    justify-content: center;
}

.menu ul li {
    position: relative;
    list-style: none;
    width: var(--menu-item-size);
    height: var(--menu-item-size);
    background: var(--menu-item-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: var(--menu-item-size);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--menu-transition-duration);
}

ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
}

ul li::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
  opacity: 0;
}

.menu ul li:hover {
    width: var(--hover-width, 180px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
}

.menu ul li:hover::before {
    opacity: 1;
}

.menu ul li:hover::after {
    opacity: 0.5;
}

.menu ul li ion-icon {
    color: var(--menu-icon-color);
    font-size: 1.75em;
    transition: var(--menu-transition-duration);
    transition-delay: 0.25s;
}

ul li:hover ion-icon {
  transform: scale(0);
  color: #fff;
  transition-delay: 0s;
}

ul li span {
  position: absolute;
}

ul li .title {
  color: #fff;
  font-size: 1.1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
}

ul li:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}

/* ==========================================================================
   9. Estilos das Seções de Conteúdo e Grid | Profile Info + Cards
   ========================================================================== */
.content-section {
    width: 100%;
    min-height: 100vh;
    margin-top: var(--section-margin, 50vh);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.full-section {
    /* CORRIGIDO: Usa 100% do PAI (que é 100% da viewport, se o pai for o body) */
    width: 100%; 
    min-height: 100vh;
    
    /* CORREÇÃO CRÍTICA: 
       Isso força a seção a expandir para a largura total da viewport, 
       ignorando a largura do contêiner pai. 
       -50vw move o elemento para a borda esquerda da viewport.
       +50% o move de volta em 50% da largura do elemento pai.
       Isso garante que a seção ocupe a largura total, *sem* estourar o eixo X.
    */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4rem 0;
}

#sobre-section,
#portfolio-section {
    scroll-margin-top: -100px;
}

/* Section backgrounds with angled divisions */
/* Seção Sobre */
#sobre-section {
    padding: 8rem 0;
    padding-bottom: 12rem;
    position: relative;
    z-index: 1;
}

.about-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-decoration: none;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.about-txt {
    max-width: 850px;         /* Largura confortável, mas um pouco mais flexível */
    margin: 0 auto;           /* Centraliza */
    font-size: 0.7rem;       /* Tamanho ideal para leitura */
    line-height: 1.75;        /* Respiro melhor entre linhas */
    font-weight: 300;
    text-align: justify;      /* Mantém leitura organizada */
    color: #c2c2c2;          /* Cor do texto */
    text-decoration: none;
}

/* Negrito com destaque elegante */
.about-txt b {
    font-weight: 625;
    color: inherit; /* Mantém a cor do texto ao redor */
}

/* Espaçamento entre blocos usando <br> */
.about-txt br {
    line-height: 2.2;
}

/* Lista do About */
.about-txt-list {
    margin: 1.7rem 0;
    padding-left: 1.2rem;
}

.about-txt-list li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Ícones opcionais (caso você queira colocar futuramente) */
.about-txt-list li::marker {
    color: var(--primary-color);
}

.about-a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative; /* CRÍTICO: Para o tooltip absoluto funcionar */
    display: inline-block;
}

.about-a:hover {
    color: var(--secondary-color)
}

.about-a:hover > .default-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px; /* Movimento de deslize sutil */
}

#portfolio-section {
    background-color: transparent;
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    padding: 8rem 0;
    position: relative;
    z-index: 2;
    margin-top: -1rem;
}



.section-content {
    background: rgba(0, 0, 0, 0.139);
    backdrop-filter: blur(10px);
    border: #ffffff17 solid 1px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Layout */
    width: 100%;
    max-width: 2300px;
    padding: 2rem;
    margin: 5rem auto;

    /* Estética */
    border-radius: 1rem;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 240px);
    grid-gap: 32px;
    position: relative;
    z-index: 1;
    justify-content: center;
    margin: 2rem auto;
}


/* ==========================================================================
   PROFILE CARD (SIDEBAR)
   ========================================================================== */

/* Posicionamento do container do card na tela */
.profile-sidebar {
    position: absolute; /* Fixa na tela */
    right: 5%;      /* Distância da borda direita */
    top: 28%;       /* Centraliza verticalmente */
    z-index: 100;   /* Garante que fique acima das seções */
    display: block;
}

/* O Cartão Quadrado */
.profile-card {
    width: 450px;   /* Tamanho do quadrado */
    height: 450px;
    position: relative;
    border-radius: 15px; /* Bordas levemente arredondadas */
    overflow: hidden;    /* Garante que nada saia do quadrado */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

/* Efeito de hover no card inteiro (opcional: leve zoom) */
.profile-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

/* Estilo da Imagem */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o quadrado sem distorcer */
    display: block;
    transition: filter 0.3s ease;
}

/* O Overlay (Camada escura com ícones) */
.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.85); /* Fundo escuro semi-transparente */
    backdrop-filter: blur(6px); /* Efeito de vidro embaçado */
    display: flex;
    justify-content: center; /* Centraliza ícones horizontalmente */
    align-items: center;     /* Centraliza ícones verticalmente */
    gap: 1.5rem;             /* Espaço entre os ícones */
    opacity: 0;              /* Invisível por padrão */
    transition: opacity 0.4s ease-in-out;
}

/* A Mágica: Mostra o overlay quando passa o mouse no card */
.profile-card:hover .social-overlay {
    opacity: 1;
}

/* Estilo dos Ícones */
.social-icon {
    color: #ffffff;
    font-size: 1.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex; /* Remove comportamentos estranhos de links */
}

/* Hover específico nos ícones */
.social-icon:hover {
    color: var(--primary-color); /* Cor de destaque (ajuste para sua paleta) */
    transform: translateY(-5px); /* Ícone sobe levemente */
}

/* Configuração base para o texto que aparece no hover */
.social-icon::after {
    content: attr(data-label); /* Pega o texto do HTML automaticamente */
    position: absolute;
    bottom: -40px; /* Posiciona abaixo do ícone */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Começa um pouco mais baixo */
    
    /* Estilo do Texto */
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem; /* Letra pequena e elegante */
    font-family: 'Poppins', sans-serif;
    white-space: nowrap; /* Impede que o texto quebre linha */
    pointer-events: none; /* O mouse ignora o texto */
    
    /* Animação */
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

/* Estilo específico para o botão de copiar */
.copy-email-btn {
    cursor: pointer;
    position: relative; /* Necessário para posicionar o tooltip */
}

/* O balãozinho (Tooltip) */
.copy-tooltip {
    position: absolute;
    bottom: -35px; /* Aparece embaixo do ícone */
    left: 50%;
    transform: translateX(-50%);
    background-color: #00d2ff; /* Mesma cor do hover */
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;           /* Invisível por padrão */
    visibility: hidden;   /* Invisível por padrão */
    transition: all 0.3s ease;
    pointer-events: none; /* Não interfere no clique */
}

/* Setinha do balão (Opcional - detalhe estético) */
.copy-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent #00d2ff transparent;
}

/* Classe que o JS vai adicionar para mostrar o balão */
.copy-email-btn.active .copy-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px; /* Pequeno movimento para baixo na animação */
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1100px) {
    /* Esconde o card lateral em telas menores ou tablets 
       para não cobrir o texto */
    .profile-sidebar {
        display: none; 
        /* Alternativa: Mover para o topo ou rodapé se preferir não esconder */
    }
}

/* ==========================================================================
   10. Estilos de Cards
   ========================================================================== */
.card {
    width: var(--card-width);
    height: var(--card-height);
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 1rem;
}

.card-front {
    background: rgba(255, 255, 255, 0);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: rgba(255, 255, 255, 0.04) 0 0 10px 0px;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cards-section {
  width: 100%;
  margin: var(--cards-position-y, 1rem) 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  transform: translateX(var(--cards-position-x, 0));
}

.cards-section .card {
  flex: 0 1 250px;
}

/* Modern Cards */
.modern-card {
    background-color: var(--section-bg-1);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.05),
                0px 8px 15px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 56px 16px 16px 16px;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.25s;
}

.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.015);
}

.modern-card .icon {
    z-index: 2;
    position: relative;
    display: table;
    padding: 8px;
}

.modern-card .icon::after {
    content: '';
    position: absolute;
    inset: 4.5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    transition: background-color 0.25s, border-color 0.25s;
}

.modern-card .icon svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 24px;
    height: 24px;
    transform: translateZ(0);
    color: var(--text-primary);
    transition: color 0.25s;
}

.modern-card h4 {
    z-index: 2;
    position: relative;
    margin: 12px 0 4px 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 2;
    color: var(--text-primary);
}

.modern-card p {
    z-index: 2;
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modern-card .shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s;
}

.modern-card .shine:before {
    content: '';
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 55%;
    filter: blur(35px);
    opacity: 0.1;
    transform: translateX(-50%);
    background-image: conic-gradient(from 205deg at 50% 50%,
        rgba(var(--primary-rgb), 0) 0deg,
        var(--primary-color) 25deg,
        rgba(var(--primary-rgb), 0.18) 295deg,
        rgba(var(--primary-rgb), 0) 360deg);
}

.modern-card .background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}

.modern-card .background .tiles {
    opacity: 0;
    transition: opacity 0.25s;
}

.modern-card .background .tile {
    position: absolute;
    background-color: rgba(var(--primary-rgb), 0.05);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.modern-card:hover {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.04),
                0px 15px 25px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.modern-card:hover .icon::after {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.modern-card:hover .icon svg {
    color: var(--primary-color);
}

.modern-card:hover .shine {
    opacity: 1;
    transition-duration: 0.5s;
    transition-delay: 0s;
}

.modern-card:hover .background .tiles {
    opacity: 1;
    transition-delay: 0.25s;
}


/* ==========================================================================
   11. Estilos de Botões e Componentes de UI
   ========================================================================== */
/* Botão Base */
.btn {
    font-family: "Poppins", sans-serif;
    display: inline-block;
    font-size: 1em;
    padding: 1em 2em;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s, border ease-in 0.25s;
}

/* Botão Bubbly */
.btn.bubbly {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ffffff5e;
}
.btn.bubbly:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}
.btn.bubbly:focus { outline: 0; }

.btn.bubbly:before,
.btn.bubbly:after {
    position: absolute;
    content: '';
    display: block;
    width: 140%;
    height: 100%;
    left: -20%;
    z-index: -1000;
    transition: all ease-in-out 0.5s;
    background-repeat: no-repeat;
    display: none; /* Inicia escondido */
}


.btn.bubbly:active {
    transform: scale(0.9);
    background-color: var(--primary-color);
}

/* Ativação das bolhas */
.btn.bubbly.animate:before {
    display: block;
    animation: topBubbles ease-in-out 0.75s forwards;
}
.btn.bubbly.animate:after {
    display: block;
    animation: bottomBubbles ease-in-out 0.75s forwards;
}

/* Botão Projeto */
.btn.proj {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 2px 10px rgba(170, 85, 255, 0.239);
    transition: box-shadow 0.75s ease, transform 0.2s ease, background 0.5s ease;
}
.btn.proj:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 25px rgba(170, 85, 255, 0.307);
    background: var(--secondary-color);
}

/* Submit Button with Check */
.noselect {
    width: 150px;
    height: 50px;
    background: none;
    border: 4px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 100ms;
    position: relative;
}

.noselect span,
.noselect svg {
    position: absolute;
    color: var(--text-primary);
    fill: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.noselect:focus {
    outline: none;
    border: 2px solid var(--secondary-color);
    width: 50px;
    border-left: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
    animation: spin 2s 500ms forwards;
}

.noselect:focus span {
    color: transparent;
}

.noselect:focus svg {
    animation: check 500ms 2300ms forwards;
}

/* ==========================================================================
   11.1 Animações de Botões
   ========================================================================== */

   /* Fundo escuro + blur */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
    z-index: 9999;
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal */
.contact-modal {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    color: white;
    transform: translateY(25px);
    opacity: 0;
    transition: .35s ease;
    position: relative;
}

.contact-overlay.active .contact-modal {
    opacity: 1;
    transform: translateY(0);
}

/* Botão fechar */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* ==========================================================================
   11.2 Modal Formulário de Contato
   ========================================================================== */

.contact-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-container h2 {
    margin-bottom: .5rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}

/* Labels */
.contact-container label {
    font-size: .9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: .2rem;
}

/* Inputs */
.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: .6rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: .95rem;
    transition: .2s ease;
}

.contact-container input:focus,
.contact-container textarea:focus {
    border-color: #763bff;
    outline: none;
    background: rgba(255,255,255,0.12);
}

/* Botão */
.contact-container button {
    width: 100%;
    padding: .9rem;
    border: none;
    border-radius: .6rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
}

.contact-container button:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 10;
}


/* ==========================================================================
   12. Tipografia e Efeitos de Texto
   ========================================================================== */
.cursor {
    display: inline-block;
    position: relative;
    width: 0;
    max-width: 20.5em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-secondary);
}



/* ==========================================================================
   13. Responsividade (Media Queries)
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar {
        width: 95%;
        left: 2.5%;
        padding: 0 1rem;
    }

    .navbar .nav-links {
        gap: 1rem;
    }

    .Name-title {
        font-size: 3rem;
    }

    .desc {
        font-size: 1.2rem;
    }

    .header-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .modern-grid {
        grid-template-columns: repeat(1, 240px);
    }

    .cards-section {
        flex-direction: column;
    }

    .section-content h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --navbar-height: 50px;
    }

    .navbar {
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
    }

    .navbar #logo .nomeTitle {
        font-size: 1rem;
    }


    .navbar .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding-top: 15%;
    }

    .Name-title {
        font-size: 2rem;
    }

    .desc {
        font-size: 1rem;
    }

    .header-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.9em;
        padding: 0.8em 1.5em;
    }

    .modern-grid {
        grid-template-columns: 1fr;
    }

    .cards-section {
        flex-direction: column;
        align-items: center;
    }

    .section-content {
        width: 95%;
        padding: 1rem;
    }

    .section-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .rounded {
        width: 90%;
    }

    /* Ajuste de cards em mobile */
    .card {
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 250px;
    }
}

/* ==========================================================================
   14. TOOLS E ANIMAÇÕES GERAIS
   ========================================================================== */

   /* Base do Tooltip (Posicionamento e Estética) */
.default-tooltip {
    /* Herda o posicionamento do pai que deve ter position: relative */
    position: absolute;
    bottom: -35px; /* Posição inicial (ajuste conforme seu design) */
    left: 50%;
    transform: translateX(-50%);
    
    /* Estética */
    background-color: #3c00ff; /* Usando sua variável para coerência */
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: #00000080 0px 4px 12px;

    /* Animação e Visibilidade */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Setinha do Tooltip */
.default-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    /* Ajuste a cor da borda para a mesma cor do background do tooltip */
    border-color: transparent transparent var(--primary-color) transparent;
}

/* REGRA DE HOVER: O tooltip aparece quando o PAI (ex: .social-icon) é hoverado */
.social-icon:hover > .default-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px; /* Movimento de deslize sutil */
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    text-align: center;
    padding: 4px;
    color: var(--text-primary);
    background: rgba(15, 15, 15, 0.24);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(25px);

    z-index: 1000;
}

.footer-p {
    margin: 0;
    font-size: 0.65rem !important;
    font-weight: 300;
}