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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fond plus profond et sombre */
    background: radial-gradient(circle at bottom, #0f1724 0%, #05070a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Sky container */
.sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Nébuleuses subtiles mais plus riches */
/* Nébuleuses subtiles mais plus riches */
.sky::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(76, 29, 149, 0.1), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.1), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01), transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: nebula-move 60s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes nebula-move {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes rotate-sky {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.sky::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background:
        radial-gradient(ellipse 1200px 800px at 35% 65%, rgba(99, 102, 241, 0.015), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 65% 35%, rgba(220, 200, 255, 0.01), transparent 55%);
    filter: blur(120px);
    opacity: 0.6;
    animation: nebula-drift-alt 400s ease-in-out infinite;
    z-index: -1;
}

@keyframes nebula-drift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, -3%) rotate(1deg);
    }

    66% {
        transform: translate(-3%, 2%) rotate(-1deg);
    }
}

@keyframes nebula-drift-alt {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-2%, 3%) rotate(-0.5deg);
    }
}

/* Animation pour les particules de nébuleuse */
@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    25% {
        transform: translate(10px, -15px) scale(1.1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-10px, 10px) scale(0.9);
        opacity: 0.4;
    }

    75% {
        transform: translate(15px, 5px) scale(1.05);
        opacity: 0.6;
    }
}

/* Animation des étoiles filantes dynamiques */
#shooting-stars-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Animations pour différentes directions */



/* Profile Card */
.container {
    position: relative;
    z-index: 10;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    transform: none !important;
    /* Prevent any transform changes */
}

/* Moon Icon */
.moon-icon {
    font-size: 45px;
    color: #ffd700;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

/* Typography */
.name {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin: 8px 0;
    letter-spacing: 1px;
}

.glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.username {
    color: #a8b2c3;
    font-size: 16px;
    margin: 5px 0 10px;
}

.bio {
    color: #8892a6;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Important pour l'effet de brillance */
    z-index: 1;
}

.social-link i {
    font-size: 20px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.social-link span {
    font-size: 16px;
    flex: 1;
    text-align: left;
}

/* Cosmic Shine Effect */
.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.social-link:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* Hover Effects */
.social-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
}


/* Brand Colors with proper gradients */
.twitch {
    position: relative;
}

.twitch:hover {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2), rgba(145, 70, 255, 0.1));
    border: 2px solid #9146ff;
    box-shadow: 0 5px 20px rgba(145, 70, 255, 0.4);
}

.twitter {
    position: relative;
}

.twitter:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(29, 161, 242, 0.1));
    border: 2px solid #1da1f2;
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.4);
}

.instagram {
    position: relative;
}

.instagram::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(249, 206, 52, 0.3), rgba(238, 42, 123, 0.3), rgba(98, 40, 215, 0.3));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.instagram:hover::before {
    opacity: 1;
}

.instagram:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(238, 42, 123, 0.3);
}

.youtube {
    position: relative;
}

.youtube:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.1));
    border: 2px solid #ff0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.tiktok {
    position: relative;
}

.tiktok::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(37, 244, 238, 0.3), rgba(254, 44, 85, 0.3), rgba(0, 0, 0, 0.3));
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tiktok:hover::before {
    opacity: 1;
}

.tiktok:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(254, 44, 85, 0.3);
}

.discord:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
    border: 2px solid #5865f2;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.mimisquad {
    position: relative;
}

.mimisquad:hover {
    background: linear-gradient(135deg, rgba(255, 150, 50, 0.2), rgba(255, 100, 50, 0.1));
    border: 2px solid #ff8833;
    box-shadow: 0 5px 20px rgba(255, 136, 51, 0.4);
}


/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        padding: 30px 20px;
        margin: 20px;
        width: 90%;
        max-width: 100%;
    }

    .name {
        font-size: 26px;
    }

    .username {
        font-size: 15px;
    }

    .social-link {
        padding: 12px 20px;
    }

    .social-link i {
        font-size: 20px;
        margin-right: 10px;
    }

    .social-link span {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 20px 15px;
        margin: 10px;
        width: 95%;
    }

    .moon-icon {
        font-size: 35px;
        margin-bottom: 10px;
    }

    .name {
        font-size: 24px;
        margin: 5px 0;
    }

    .username {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .social-links {
        gap: 12px;
        margin-top: 20px;
    }

    .social-link {
        padding: 10px 15px;
    }

    .social-link i {
        font-size: 18px;
        margin-right: 8px;
    }

    .social-link span {
        font-size: 14px;
    }

    /* Désactiver les animations de survol complexes sur mobile pour la performance */
    .social-link:hover {
        transform: scale(1.01);
    }

    .social-link:hover .planet-orbit {
        display: none;
        /* Masquer l'orbite sur mobile car pas de hover souris */
    }
}