:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0c0;
    --accent: #8a5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(138, 92, 246, 0.3);
    --border: rgba(138, 92, 246, 0.15);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --glass: rgba(30, 30, 50, 0.5);
    --hover: rgba(138, 92, 246, 0.1);
    --card-gradient: linear-gradient(145deg, #151520, #0f0f1a);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.profile-header {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--accent), var(--accent-light)) border-box;
    transition: transform 0.5s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 16px;
    color: var(--accent-light);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 auto;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, #1a1a2a, #151520);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.link-item:hover::before {
    left: 100%;
}

.link-item i {
    font-size: 22px;
    width: 26px;
    text-align: center;
    color: var(--accent);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-item:hover i {
    transform: scale(1.2);
    color: var(--accent-light);
}

.link-item span {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.music-section {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.music-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-header i {
    font-size: 20px;
    color: var(--accent);
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.music-player-compact {
    width: 100%;
}

.music-album {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.music-details {
    flex: 1;
}

.song-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.lyrics-preview {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
    background: rgba(138, 92, 246, 0.08);
    padding: 10px 14px;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.music-controls-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-pause {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 92, 246, 0.4);
}

.play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 92, 246, 0.6);
}

.progress-container {
    flex: 1;
    height: 5px;
    background: rgba(138, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 75px;
    text-align: center;
    font-feature-settings: "tnum";
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer i {
    color: #ef4444;
    margin: 0 5px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.copyright {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

.welcome-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-panel.visible {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    background: var(--card-gradient);
    border-radius: 28px;
    padding: 45px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--border);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.welcome-icon {
    font-size: 52px;
    color: var(--accent);
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-content h2 {
    margin-bottom: 18px;
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 700;
}

.welcome-content p {
    margin-bottom: 35px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

.welcome-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(138, 92, 246, 0.4);
}

.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 92, 246, 0.6);
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-item {
        padding: 22px 25px;
    }
    
    .profile-pic-container {
        width: 140px;
        height: 140px;
    }
    
    .profile-name {
        font-size: 36px;
    }
    
    .album-art {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .profile-header {
        padding: 25px 20px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-pic-container {
        width: 100px;
        height: 100px;
    }
    
    .link-item {
        padding: 18px 22px;
    }
    
    .music-section {
        padding: 20px;
    }
    
    .welcome-content {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .profile-bio {
        font-size: 14px;
    }
    
    .link-item {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .link-item i {
        font-size: 20px;
    }
    
    .album-art {
        width: 70px;
        height: 70px;
    }
}