/* ======== Variáveis de Luxo (Preto e Ouro) ========== */
:root {
    --bg-dark: #0a0a0b;
    --card-bg: #141415;
    
    --gold-primary: #D4AF37;   /* Ouro clássico */
    --gold-light: #F3E5AB;     /* Ouro claro / creme */
    --gold-dark: #AA7E2D;      /* Ouro envelhecido */
    
    --text-white: #E8E8E8;
    --text-muted: #8A8A8A;
    
    --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Jost', sans-serif;
}

/* ======== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    /* Um brilho muito sutil atrás simulando uma luz pontual centralizada */
    background-image: radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    color: var(--text-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    -webkit-font-smoothing: antialiased;
}

/* ======== Fundo Dinâmico (Gold Dust) ====== */
#goldOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Fica atrás do container mas acima do BG base */
    pointer-events: none;
    opacity: 0.8;
}

/* ======== Containers ====== */
.container {
    width: 100%;
    max-width: 480px;
}

/* Animação de entrada suave e luxuosa */
.fade-in {
    animation: luxuryReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes luxuryReveal {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    /* Sombra dourada hiper sutil espalhada */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 1;
}

/* Borda dourada em degradê usando pseudo-elemento */
.profile-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: var(--gold-gradient);
    z-index: -1;
    opacity: 0.3; /* Muito delicado */
    transition: opacity 0.5s ease;
}

.profile-card:hover::before {
    opacity: 0.6; /* Aumenta o brilho da borda ao passar o mouse perto (se não for mobile) */
}

/* ======== Tópico e Perfil ====== */
.profile-section {
    text-align: center;
}

.profile-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    /* Anel de ouro sutil ao redor da foto */
    border: 3px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), var(--gold-gradient);
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding: 3px;
}

.name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    /* Texto em gradiente dourado */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.divider {
    height: 1px;
    width: 60px;
    background: var(--gold-gradient);
    margin: 0 auto 2.5rem;
    opacity: 0.5;
}

/* ======== Links Section ====== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.link-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Efeito interno no botão flutuando ouro (só em desktops) */
@media (hover: hover) and (pointer: fine) {
    .link-item::before {
        content: "";
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: var(--gold-gradient);
        z-index: -1;
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .link-item:hover {
        color: var(--bg-dark); /* Texto fica preto para constrastar no ouro */
        border-color: transparent;
        font-weight: 500;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
    }

    .link-item:hover::before {
        transform: translateX(0);
    }
}

/* Feedback tátil para o toque real em telas de celular */
.link-item:active {
    background: var(--gold-gradient);
    color: var(--bg-dark); /* Fica escuro pro ouro brilhar sob o dedo */
    font-weight: 500;
    transform: scale(0.98);
}

.link-title {
    z-index: 2;
}

/* ======== Social Section ====== */
.social-section {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}

.social-icon {
    color: var(--gold-primary);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .social-icon:hover {
        color: var(--gold-light);
        transform: translateY(-4px) scale(1.1);
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    }
}

.social-icon:active {
    transform: scale(0.9);
    color: var(--gold-dark);
}

/* ======== Responsividade 100% Otimizada para Mobile ====== */
@media (max-width: 600px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .profile-card {
        padding: 2.5rem 1.5rem;
        /* Em celulares apertados, as bordas esticam quase aos limites */
    }
    
    .profile-img {
        width: 90px;
        height: 90px;
        margin-bottom: 1.2rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .role {
        font-size: 0.75rem;
    }

    .link-item {
        padding: 14px 16px;
        font-size: 0.9rem; /* Levemente menor para não explodir em telas estreitas */
    }

    .social-section {
        gap: 1.5rem;
    }
}

@media (max-width: 350px) {
    /* Celulares extra pequenos (como antigos ou muito finos) */
    .profile-card {
        padding: 2rem 1rem;
    }
    .name {
        font-size: 1.5rem;
    }
    .social-icon {
        font-size: 1.4rem;
    }
}
