/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --accent-primary: #ff4d9e;
    --accent-secondary: #c2185b;
    --accent-gradient: linear-gradient(135deg, #ff4d9e 0%, #c2185b 100%);
    --border-color: rgba(255, 77, 158, 0.1);
    --glow-color: rgba(255, 77, 158, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: #ff4d9e;
    background: rgba(255, 77, 158, 0.1);
}

.cursor-trail {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.08s ease, opacity 0.08s ease;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 158, 0.12) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: bgFloat1 20s ease-in-out infinite;
}

.bg-gradient-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 24, 91, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: bgFloat2 25s ease-in-out infinite;
}

.bg-gradient-3 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 158, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: bgFloat3 18s ease-in-out infinite;
}

@keyframes bgFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.1); }
    66% { transform: translate(-50px, 80px) scale(0.95); }
}

@keyframes bgFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -50px) scale(1.05); }
    66% { transform: translate(60px, -80px) scale(0.9); }
}

@keyframes bgFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

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

/* ===== PROFILE WRAPPER ===== */
.profile-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.profile-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
}

.avatar-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.3;
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 3px solid var(--bg-primary);
}

.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    z-index: 3;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.username {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.typewriter {
    position: relative;
}

.typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.verified-badge {
    color: var(--accent-primary);
    font-size: 1rem;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 77, 158, 0.08);
    border: 1px solid rgba(255, 77, 158, 0.15);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tag i {
    font-size: 0.6rem;
    color: var(--accent-primary);
}

/* ===== VIEW COUNTER ===== */
.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.view-counter i {
    font-size: 0.65rem;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.social-link:hover {
    transform: translateX(4px);
    border-color: transparent;
}

.social-link:hover::before {
    opacity: 1;
}

/* Platform Colors */
.social-link.discord::before { background: linear-gradient(135deg, rgba(255, 77, 158, 0.12), rgba(255, 77, 158, 0.03)); }
.social-link.discord:hover { border-color: rgba(255, 77, 158, 0.3); box-shadow: 0 0 20px rgba(255, 77, 158, 0.15); }
.social-link.discord .link-icon { color: #ff4d9e; }

.social-link.twitter::before { background: linear-gradient(135deg, rgba(29, 161, 242, 0.12), rgba(29, 161, 242, 0.03)); }
.social-link.twitter:hover { border-color: rgba(29, 161, 242, 0.3); box-shadow: 0 0 20px rgba(29, 161, 242, 0.1); }
.social-link.twitter .link-icon { color: #1DA1F2; }

.social-link.instagram::before { background: linear-gradient(135deg, rgba(228, 64, 95, 0.12), rgba(228, 64, 95, 0.03)); }
.social-link.instagram:hover { border-color: rgba(228, 64, 95, 0.3); box-shadow: 0 0 20px rgba(228, 64, 95, 0.1); }
.social-link.instagram .link-icon { color: #E4405F; }

.social-link.github::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); }
.social-link.github:hover { border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); }
.social-link.github .link-icon { color: #fff; }

.social-link.spotify::before { background: linear-gradient(135deg, rgba(30, 215, 96, 0.12), rgba(30, 215, 96, 0.03)); }
.social-link.spotify:hover { border-color: rgba(30, 215, 96, 0.3); box-shadow: 0 0 20px rgba(30, 215, 96, 0.1); }
.social-link.spotify .link-icon { color: #1ED760; }

.social-link.youtube::before { background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(255, 0, 0, 0.03)); }
.social-link.youtube:hover { border-color: rgba(255, 0, 0, 0.3); box-shadow: 0 0 20px rgba(255, 0, 0, 0.1); }
.social-link.youtube .link-icon { color: #FF0000; }

.social-link.tiktok::before { background: linear-gradient(135deg, rgba(255, 0, 80, 0.12), rgba(0, 242, 234, 0.03)); }
.social-link.tiktok:hover { border-color: rgba(255, 0, 80, 0.3); box-shadow: 0 0 20px rgba(255, 0, 80, 0.1); }
.social-link.tiktok .link-icon { color: #ff0050; }

.social-link.telegram::before { background: linear-gradient(135deg, rgba(0, 136, 204, 0.12), rgba(0, 136, 204, 0.03)); }
.social-link.telegram:hover { border-color: rgba(0, 136, 204, 0.3); box-shadow: 0 0 20px rgba(0, 136, 204, 0.1); }
.social-link.telegram .link-icon { color: #0088cc; }

.link-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.link-detail {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.link-arrow {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-4px);
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.music-player:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.08);
}

.player-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-player:hover .player-background {
    opacity: 1;
}

.player-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.player-album-art {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.album-vinyl {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: conic-gradient(from 0deg, rgba(0,0,0,0.1) 0deg, transparent 60deg, rgba(0,0,0,0.1) 120deg, transparent 180deg, rgba(0,0,0,0.1) 240deg, transparent 300deg, rgba(0,0,0,0.1) 360deg);
    animation: vinylSpin 4s linear infinite paused;
}

.music-player.playing .album-vinyl {
    animation-play-state: running;
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.album-icon {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: white;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-song-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.player-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.6rem;
    color: var(--text-tertiary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.player-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.player-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.play-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    color: white !important;
    font-size: 0.85rem;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    background: var(--accent-gradient) !important;
}

/* Equalizer */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 3px;
    padding: 0 18px;
    padding-bottom: 8px;
    transition: height 0.3s ease;
}

.music-player.playing .equalizer {
    height: 16px;
}

.eq-bar {
    width: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    height: 100%;
    opacity: 0.4;
    transition: var(--transition);
}

.music-player.playing .eq-bar {
    opacity: 1;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.15s; }
.eq-bar:nth-child(3) { animation-delay: 0.3s; }
.eq-bar:nth-child(4) { animation-delay: 0.45s; }
.eq-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes eqBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* ===== QUICK SOCIALS ===== */
.quick-socials {
    display: flex;
    gap: 10px;
}

.quick-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.quick-icon:hover {
    color: var(--accent-primary);
    border-color: rgba(255, 77, 158, 0.3);
    background: rgba(255, 77, 158, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 158, 0.15);
}

/* ===== PROFILE FOOTER ===== */
.profile-footer {
    padding-top: 8px;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.powered-by:hover {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.08);
}

.powered-by i {
    font-size: 0.65rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .profile-container {
        gap: 20px;
    }

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

    .avatar-wrapper {
        width: 90px;
        height: 90px;
    }

    .username {
        font-size: 1.4rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(255, 77, 158, 0.3);
    color: white;
}

/* ===== LINK STAGGER ANIMATION ===== */
.social-link {
    opacity: 0;
    transform: translateY(10px);
    animation: linkAppear 0.4s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.15s; }
.social-link:nth-child(3) { animation-delay: 0.2s; }
.social-link:nth-child(4) { animation-delay: 0.25s; }
.social-link:nth-child(5) { animation-delay: 0.3s; }
.social-link:nth-child(6) { animation-delay: 0.35s; }
.social-link:nth-child(7) { animation-delay: 0.4s; }
.social-link:nth-child(8) { animation-delay: 0.45s; }

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

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-trail {
        display: none;
    }

    body, a, button {
        cursor: auto;
    }
}
