@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    background-color: #050505;
    /* Fond très sombre */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

/* Arrière-plan animé et grille */
#bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
    transition: background 0.3s ease;
}

/* Motif de grille (style guns.lol) */
#bg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Carte principale (Glassmorphism) */
.container {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Profil */
.profile {
    margin-bottom: 30px;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    background-color: #111;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #8a2be2;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

.username {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.bio {
    font-size: 0.95rem;
    color: #a0a0a0;
    font-weight: 300;
    line-height: 1.5;
}

/* Liens des réseaux sociaux */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: #eaeaea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Effet de survol (Glow) à l'intérieur du bouton */
.link-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--btn-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    z-index: 0;
}

.link-btn:hover::before {
    width: 350px;
    height: 350px;
    opacity: 0.25;
}

/* Effet de transformation du bouton au survol */
.link-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--btn-color), 0.2);
}

.link-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Le texte et l'icône passent au-dessus de l'effet de glow */
.link-btn i,
.link-btn span {
    position: relative;
    z-index: 1;
}

.link-btn i {
    font-size: 1.5rem;
    color: var(--btn-color);
    transition: transform 0.3s ease;
}

.link-btn:hover i {
    transform: scale(1.2);
    color: #fff;
    text-shadow: 0 0 10px var(--btn-color);
}