/* =========================================
   VARIÁVEIS GLOBAIS E RESET
   ========================================= */
:root {
    --bg-dark: #1c3f7f;      /* Fundo escuro azulado baseado no logo */
    --text-light: #ffffff;
    --text-muted: #dbe4f0;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-glow: rgba(255, 255, 255, 0.08);
    --btn-hover: rgba(255, 255, 255, 0.15);
    --accent-red: #ff0000;   /* YouTube icon */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* =========================================
   CANVAS E ANIMAÇÃO (FUNDO)
   ========================================= */
/* Este contêiner força a página a ter rolagem (scroll) para rodar a animação. 
   400vh significa 4 telas inteiras de altura. */
#scroll-container {
    height: 400vh; 
    width: 100%;
}

/* O Canvas fica travado no fundo em tela cheia */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1; /* Fica atrás de tudo */
}

/* Um degradê para escurecer o fundo embaixo dos botões e ajudar na leitura */
.canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(28, 63, 127, 0.4) 0%, 
        rgba(18, 40, 80, 0.8) 100%
    );
    z-index: 2;
    pointer-events: none; /* Deixa o clique passar reto */
}

/* =========================================
   CAMADA DE INTERFACE (A FRENTE DE TUDO)
   ========================================= */
.ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    
    /* Permite rolar a UI se a tela for muito pequena */
    overflow-y: auto;
    pointer-events: none; /* Mascara invisível */
}

/* Mas libera os cliques dentro dos contêineres: */
.profile-header, 
.links-container, 
.footer {
    pointer-events: auto;
    width: 100%;
    max-width: 500px;
}

/* =========================================
   CABEÇALHO (LOGO, NOME, REDES)
   ========================================= */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.avatar-container {
    margin-bottom: 15px;
}

/* Imagem da Logo Premium */
.profile-avatar {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #ffffff; /* Fundo branco pra não cortar logo se tiver transparência ruim */
}

.profile-name {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.profile-bio {
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Redes Sociais no Topo */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.social-icons a:hover {
    opacity: 1;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

/* =========================================
   BOTÕES (GLASSMORPHISM)
   ========================================= */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-light);
    
    /* Efeito Vidro Premium */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari */
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 0 10px var(--glass-glow);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-button:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), inset 0 0 15px var(--glass-glow);
    border-color: rgba(255,255,255, 0.25);
}

.link-title {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 500;
}

.link-left, .link-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

/* Ícone de vídeo do YouTube (Vermelho) */
.video-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.default-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255, 0.1);
}

/* =========================================
   INDICADOR DE SCROLL & RODAPÉ
   ========================================= */
.scroll-indicator {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite ease-in-out;
    opacity: 0.6;
}
.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
}
.footer p {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Animações de Entrada */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
