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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 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;
}

/* Nébuleuses subtiles */
.sky::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 800px 500px at 25% 40%, rgba(138, 43, 226, 0.02), transparent 50%),
        radial-gradient(ellipse 1000px 700px at 75% 60%, rgba(30, 144, 255, 0.015), transparent 50%),
        radial-gradient(ellipse 600px 900px at 50% 10%, rgba(147, 51, 234, 0.015), transparent 55%),
        radial-gradient(ellipse 900px 600px at 85% 20%, rgba(59, 130, 246, 0.02), transparent 50%);
    filter: blur(100px);
    opacity: 0.8;
    animation: nebula-drift 300s ease-in-out infinite;
    z-index: -1;
}

.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 */
@keyframes shooting-star-fly {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-200vw);
    }
}


/* 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: visible;
    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;
}

/* Planet Orbit Animation */
.planet-orbit {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.5s ease;
    opacity: 0;
}

.social-link:hover .planet-orbit {
    right: 20px;
    opacity: 1;
    animation: orbit 2s linear infinite;
}

@keyframes orbit {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Hover Effects */
.social-link:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}


/* 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 {
    position: relative;
}

.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);
}


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

    .name {
        font-size: 28px;
    }

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

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

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