/* ESTILO GLOBAL E VARIÁVEIS 
   Focado em precisão técnica e estética de áudio digital
*/

:root {
    --cor-fundo: #f4f4f4;
    --cor-primaria: #ffa145;
    --cor-texto: #4b4b4b;
    --cor-botao: #ffffff;
    
    --img-fundo: url(''); 

    /* Configuração de Sombra Sólida (Estética Flat/Neumorphic) */
    --sh-distancia-x: 2px;
    --sh-distancia-y: 4px;
    --sh-desfoque: 0px; 
    --sh-cor: rgba(0, 0, 0, 0.15); 
    
    --sombra-geral: var(--sh-distancia-x) var(--sh-distancia-y) var(--sh-desfoque) var(--sh-cor);

    /* Variáveis do Fundo Dinâmico */
    --dot-color: rgba(255, 255, 255, 0.06); 
    --dot-size: 8px;                 
    --dot-space: 40px;               
    --bg-speed: 15s;                 
    --bg-direction-x: 80px;          
    --bg-direction-y: 80px;          
    --grad-top: #c2c2c4;
    --grad-mid: #e6e6e7;
    --grad-bottom: #7d7d7d;
}

/* TELA DE BOAS-VINDAS */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cor-primaria);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content h1 {
    color: white;
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 800;
    font-style: italic; /* Adicione esta linha aqui */
    margin: 0;
    animation: fadeInSplash 1s ease forwards;
}

@keyframes fadeInSplash {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

html {
    background-color: var(--grad-bottom); 
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

/* CORREÇÃO DEFINITIVA PARA MOBILE (CHROME ANDROID)
   Cria uma camada de fundo fixa que ignora o redimensionamento da barra de endereços.
*/
body {
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    color: var(--cor-texto);
    min-height: 100vh;
    min-height: 100dvh;
    background: none !important; 
    overscroll-behavior-y: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Margem de segurança para o scroll elástico */
    
    background-color: var(--cor-fundo);
    background-image: 
        radial-gradient(var(--dot-color) var(--dot-size), transparent 0),
        radial-gradient(var(--dot-color) var(--dot-size), transparent 0),
        linear-gradient(180deg, var(--grad-top) 0%, var(--grad-mid) 50%, var(--grad-bottom) 100%);

    background-blend-mode: hard-light, hard-light, normal;
    background-size: var(--dot-space) var(--dot-space), var(--dot-space) var(--dot-space), 100% 100%;
    background-attachment: fixed;
    
    animation: moveBackground var(--bg-speed) linear infinite;
    z-index: -1; 
    transform: translateZ(0); /* Aceleração de hardware */
    will-change: transform;
    pointer-events: none;
}

/* ESTRUTURA DO CONTEÚDO */

.container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 2;
}

.profile-pic {
    width: 50vw; 
    height: auto;
    max-width: 315px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(var(--sombra-geral));
    -webkit-user-drag: none;
    pointer-events: none;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

h2 {
    font-size: 1rem; 
    font-weight: 500; 
    opacity: 0.8; 
    margin-bottom: 20px;
    width: 40vw; 
    max-width: 315px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    word-wrap: break-word;
}

/* ÁREA DE LINKS */

.links-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item {
    background-color: var(--cor-botao);
    color: var(--cor-texto);
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-geral);
    border: 2px solid #ddd;
    
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* IMAGEM DE FUNDO DO BOTÃO
   Posicionamento cirúrgico no centro da metade direita
*/

.link-item::before {
    content: "";
    position: absolute;
    /* Centralização vertical absoluta em relação ao botão */
    top: 50%; 
    left: 82.5%; 
    
    /* TRAVA DE DIMENSÃO:
       Mantemos um tamanho fixo (ex: 45px). Assim, se o botão crescer 
       verticalmente, o ícone não "estica" junto. */
    width: 30%; 
    height: 45px; 
    
    /* PIVÔ ESTÁTICO: Impede o "pulo" ou snap ao final da animação */
    translate: -50% -50%; 
    scale: 0.8;
    
    background-color: var(--cor-primaria);
    
    /* Máscara para aplicar a cor ao PNG transparente */
    -webkit-mask-image: var(--btn-img);
    mask-image: var(--btn-img);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    opacity: 0;
    
    /* Transição suave de escala e opacidade apenas */
    transition: opacity 0.3s ease, scale 0.3s ease;
    
    z-index: -1;
    pointer-events: none;
    will-change: opacity, scale;
}

.link-item:hover {
    transform: translate(-2px, -2px); 
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
    box-shadow: 4px 6px 0px var(--sh-cor);
}

.link-item:hover::before {
    opacity: 0.35;
    scale: 1; /* O translate: -50% -50% permanece imutável */
}

.sub-link {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* ANIMAÇÕES */

@keyframes moveBackground {
    from {
        background-position: 
            0 0, 
            calc(var(--dot-space) / 2) calc(var(--dot-space) / 2), 
            0 0;
    }
    to {
        background-position: 
            var(--bg-direction-x) var(--bg-direction-y), 
            calc(var(--bg-direction-x) + (var(--dot-space) / 2)) calc(var(--bg-direction-y) + (var(--dot-space) / 2)), 
            0 0;
    }
}


/* Container da Grade */
.social-grid {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 12px;             /* Gap levemente reduzido para alinhar melhor */
    width: 100%;
    max-width: 450px;      /* Mesma largura do container de links */
    margin: 20px auto;
}

/* O Botão Social - Agora com altura de linha */
.social-btn {
    position: relative;
    /* Divide o espaço em 3 mantendo a proporção */
    flex: 0 1 calc(33.333% - 12px); 
    height: 60px;          /* Altura fixa para simular uma linha de botão */
    
    background-color: var(--cor-botao);
    border-radius: 8px;    
    border: 2px solid #ddd; 
    box-shadow: var(--sombra-geral);
    
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.social-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    /* Tamanho do ícone ajustado para a nova altura */
    width: 32px;  
    height: 32px;
    
    background-image: var(--btn-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    translate: -50% -50%;
    scale: 0.9;
    opacity: 1; 
    
    transition: scale 0.3s ease;
    will-change: scale;
}

/* Hover mantendo a consistência global */
.social-btn:hover {
    transform: translate(-2px, -2px);
    border-color: var(--cor-primaria);
    box-shadow: 4px 6px 0px var(--sh-cor);
}

.social-btn:hover::before {
    scale: 1.1;
}