:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --secondary: #2c2f33;
    --accent: #00a8fc;
    --text: #ffffff;
    --text-secondary: #b9bbbe;
    --success: #57F287;
    --warning: #FEE75C;
    --danger: #ED4245;
    --background: #1a1b1e;
    --card-bg: rgba(32, 34, 37, 0.7);
    --tooltip-bg: rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gradient-sphere {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.gradient-sphere.secondary {
    right: -150px;
    bottom: -150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -15px); }
}

.container {
    width: 100%;
    max-width: 360px;
    margin: 10px;
    perspective: 1000px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.visitor-count, .experience-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.visitor-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.experience-badge {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    font-weight: 600;
}

.visitor-count:hover, .experience-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visitor-count svg, .experience-badge svg {
    width: 14px;
    height: 14px;
}

.profile-content {
    text-align: center;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    filter: blur(10px);
    pointer-events: none;
}

.status-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background-color: var(--success);
    border: 2px solid var(--card-bg);
    border-radius: 50%;
    z-index: 1;
}

.status-indicator .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0.5; }
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.location svg {
    width: 14px;
    height: 14px;
}

.skills {
    margin-bottom: 1.5rem;
}

.skill {
    text-align: left;
    margin-bottom: 0.8rem;
}

.skill-name {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: skillProgress 1s ease-out forwards;
}

@keyframes skillProgress {
    to { transform: scaleX(1); }
}

.achievements {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.achievement:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.achievement svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.achievement span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.tooltip {
    position: absolute;
    background: var(--tooltip-bg);
    color: var(--text);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-player {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.8rem;
    margin-top: 1.5rem;
}

.music-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.album-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-right: 0.8rem;
}

.track-info {
    flex-grow: 1;
}

.track-name {
    font-weight: bold;
    color: var(--text);
    font-size: 0.8rem;
}

.artist-name {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    justify-content: space-between;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.made-by {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.heart {
    color: var(--danger);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.creator {
    font-weight: 600;
    color: var(--primary);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 360px) {
    .container {
        margin: 5px;
    }

    .card {
        padding: 1rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .avatar-container {
        width: 70px;
        height: 70px;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .achievements {
        flex-wrap: wrap;
    }

    .achievement {
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.4rem;
    }

    .achievement svg {
        width: 18px;
        height: 18px;
    }

    .music-player {
        padding: 0.6rem;
    }

    .album-cover {
        width: 35px;
        height: 35px;
    }

    .track-name {
        font-size: 0.75rem;
    }

    .artist-name {
        font-size: 0.65rem;
    }

    .control-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 280px) {
    .container {
        margin: 2px;
    }

    .card {
        padding: 0.8rem;
    }

    .name {
        font-size: 1.2rem;
    }

    .title-badge {
        font-size: 0.7rem;
    }

    .bio {
        font-size: 0.8rem;
    }

    .skill-name {
        font-size: 0.7rem;
    }

    .achievement span {
        font-size: 0.65rem;
    }
}