:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --bg-dark: #0f172a;
    --glass-bg: rgba(17, 25, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.125);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


#music-player {
    width: fit-content;
    width: -moz-fit-content;
    max-width: 100%;
}


.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10; 
}


.glass-card {
    position: relative;
    width: 100%;
    
    max-width: 720px; 
    padding: 40px;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    animation: float-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes float-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    flex-shrink: 0; 
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.8);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--glass-bg);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.profile-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
    margin-bottom: 6px;
    line-height: 1.1;
}

.username {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.content-text {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 40px;
}


.emoji-inline {
    
    width: 1.8em;
    height: 1.8em;
    vertical-align: -0.45em; 
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 2px;
}
.emoji-inline:hover { 
    transform: scale(2.5); 
    z-index: 20; 
    position: relative; 
}


.links-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    white-space: nowrap; 
}

.link-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}


.link-card svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}


.discord:hover { color: #5865F2; border-color: #5865F2; box-shadow: 0 0 25px rgba(88, 101, 242, 0.4); }
.telegram:hover { color: #24A1DE; border-color: #24A1DE; box-shadow: 0 0 25px rgba(36, 161, 222, 0.4); }
.github:hover { color: #c9d1d9; border-color: #c9d1d9; box-shadow: 0 0 25px rgba(201, 209, 217, 0.4); }


@media (max-width: 768px) {
    .glass-card { 
        padding: 20px; 
        max-width: 95%;
        margin: 0 auto;
    }
    .profile-header { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    
    
    .links-grid { 
        display: flex; 
        overflow-x: auto; 
        white-space: nowrap; 
        gap: 10px; 
        padding-bottom: 5px; 
    }
    
    
    .links-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    
    .link-card {
        flex-shrink: 0; 
        width: 50px; 
        height: 50px; 
        padding: 10px;
        border-radius: 50%; 
        transition: all 0.3s ease;
        justify-content: center; 
    }

    
    .link-card span {
        display: none !important; 
    }
    
    
    .link-card svg {
        margin: 0 !important; 
    }
}