* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #4b006e, #7b1fa2, #b388ff);
}

/* BACKGROUND */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

#bg-video,
#bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: none;
}

/* MÁSCARA ROXA */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 0, 110, 0.6), rgba(123, 31, 162, 0.6), rgba(179, 136, 255, 0.6));
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* CONTEÚDO CENTRAL ESTILO LINKTREE */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#card {
    background: rgba(75, 0, 110, 0.9);
    /* roxo sólido semitransparente */
    padding: 25px 20px;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#card header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    margin-bottom: 15px;
}

#card h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
}

#card p {
    font-size: 16px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 20px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

nav a {
    position: relative;
    /* permite posicionar o ícone */
    display: flex;
    align-items: center;
    justify-content: center;
    /* texto centralizado */
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #4b006e;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

nav a i,
nav a img {
    position: absolute;
    /* ícone fora do fluxo normal */
    left: 15px;
    /* distância da borda esquerda */
}

nav a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: #eee;
    color: #4b006e;
}

nav a img {
    width: 24px;
    height: 24px;
}

footer {
    margin-top: 20px;
    font-size: 12px;
    color: #fff;
    opacity: 0.8;
}

@media (max-width: 480px) {
    #card header img {
        width: 80px;
        height: 80px;
    }

    #card h1 {
        font-size: 24px;
    }

    #card p {
        font-size: 14px;
    }

    nav a {
        padding: 12px;
        font-size: 14px;
    }
}

/* REMOVER O BACKGROUND DO BODY */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    /* degradê final como fallback só se vídeo e imagem falharem */
    background: none;
}

/* BACKGROUND VIDEO E IMAGEM */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -3;
    /* atrás da máscara e do card */
    background: linear-gradient(135deg, #4b006e, #7b1fa2, #b388ff);
    /* fallback se nada carregar */
}

#bg-video,
#bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: none;
    /* só aparece se existir */
}