/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    background: #000;
    color: #fff;
}

/* ===== VIDEO BACKGROUND ===== */
.video-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2) saturate(1.3);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%),
        linear-gradient(180deg, rgba(255,0,85,0.1) 0%, transparent 50%, rgba(119,0,255,0.1) 100%);
    pointer-events: none;
}

/* ===== CANVASES ===== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#visualizer-canvas {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    position: relative;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    animation: card-entrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,0,85,0.3), rgba(119,0,255,0.3), rgba(0,204,255,0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(20px);
}

.profile-card:hover .card-glow {
    opacity: 0.5;
}

/* ===== PROFILE IMAGE ===== */
.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 30px rgba(255, 0, 85, 0.3),
        0 0 60px rgba(255, 0, 85, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 0, 85, 0.5),
        0 0 80px rgba(255, 0, 85, 0.2);
}

.profile-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ff0055;
    border-right-color: #ff00cc;
    animation: spin 4s linear infinite;
    z-index: 1;
}

.profile-ring-2 {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: #7700ff;
    border-left-color: #00ccff;
    animation: spin-reverse 6s linear infinite;
    z-index: 0;
}

.online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #00ff88;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.8);
    box-shadow: 0 0 10px #00ff88;
    z-index: 3;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== GLITCH NAME ===== */
.glitch-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 8px;
    position: relative;
    background: linear-gradient(90deg, #ff0055, #ff00cc, #7700ff, #00ccff, #ff0055);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite, glitch-skew 4s infinite linear alternate-reverse;
    filter: drop-shadow(0 0 10px rgba(255,0,85,0.5)) drop-shadow(0 0 20px rgba(255,0,85,0.3));
}

.glitch-name::before,
.glitch-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-name::before {
    left: 2px;
    text-shadow: -2px 0 #ff0055;
    clip-path: inset(0 0 85% 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-name::after {
    left: -2px;
    text-shadow: 2px 0 #00ccff;
    clip-path: inset(85% 0 0 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* ===== USERNAME BADGE ===== */
.username-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.username-badge .at {
    color: #ff0055;
    font-weight: 700;
}

/* ===== TIKTOK BADGE ===== */
.tiktok-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.tiktok-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,0,85,0.4);
    transition: transform 0.3s ease;
}

.stat-value.beat-pulse {
    animation: beat-scale 0.15s ease;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.1);
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.music-player:hover {
    border-color: rgba(255,0,85,0.3);
    box-shadow: 0 0 20px rgba(255,0,85,0.1);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.music-icon .bar {
    width: 3px;
    background: linear-gradient(to top, #ff0055, #ff00cc);
    border-radius: 2px;
    animation: music-bar 1s ease-in-out infinite;
}

.music-icon .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-icon .bar:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.music-icon .bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.music-icon .bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }

.music-icon.playing .bar {
    animation-duration: 0.4s;
}

.music-text {
    text-align: left;
}

.music-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.music-artist {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff0055, #ff00cc);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 15px rgba(255,0,85,0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255,0,85,0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.2);
}

.tiktok-btn:hover {
    background: linear-gradient(135deg, #ff0055, #00ccff);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.4);
}

.insta-btn:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
}

.youtube-btn:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px #00ff88; }
    50% { box-shadow: 0 0 20px #00ff88, 0 0 30px #00ff88; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, 0); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(30% 0 20% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(15% 0 80% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(55% 0 10% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(40% 0 30% 0); transform: translate(-1px, 0); }
}

@keyframes music-bar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

@keyframes beat-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .profile-card {
        padding: 30px 20px;
        width: 95%;
    }

    .glitch-name {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .stats-row {
        gap: 15px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    #visualizer-canvas {
        height: 120px;
    }
}

/* ===== SCROLLBAR HIDE ===== */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
