@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&display=swap');

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

:root {
    --telegram: #0088cc;
    --snapchat: #fffc00;
    --tiktok: #000000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.8);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

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

/* Profile Card - Glassmorphism */
.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    animation: cardEntrance 0.8s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Avatar with Glow */
.avatar-glow {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar-glow::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, #00d4ff, #7b2cbf, #ff006e);    border-radius: 50%;
    animation: rotateGlow 3s linear infinite;
    z-index: -1;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #1a1a2e;
    object-fit: cover;
    animation: avatarFloat 3s ease-in-out infinite;
}

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

.username {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.8)); }
}

.bio {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Social Links */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-link span {
    flex: 1;
    text-align: right;
}

/* Platform Specific Colors */
.social-link.telegram { border-color: var(--telegram); }
.social-link.telegram:hover {
    background: var(--telegram);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.5);
    transform: translateX(-5px) scale(1.02);
}

.social-link.snapchat { border-color: var(--snapchat); color: #000; }
.social-link.snapchat:hover {
    background: var(--snapchat);
    box-shadow: 0 10px 30px rgba(255, 252, 0, 0.5);
    transform: translateX(-5px) scale(1.02);
}

.social-link.tiktok { border-color: #fff; }
.social-link.tiktok:hover {
    background: var(--tiktok);    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    transform: translateX(-5px) scale(1.02);
}

.social-link:hover i {
    transform: scale(1.3) rotate(10deg);
}

/* Click Effect */
.link-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.social-link:active .link-effect {
    transform: scale(3);
    opacity: 0;
}

/* Footer */
.footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        padding: 30px 20px;
    }
    .username {
        font-size: 1.5rem;
    }
    .social-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}