:root {
    --primary: #000000;
    --secondary: #0a0a0a;
    --accent: #ffffff;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --online: #00ff00;
    --busy: #ff0000;
    --away: #ffff00;
    --offline: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
}

.profiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    align-content: center;
}

.profile-card {
    background: var(--secondary);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 200px;
    box-sizing: border-box;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--text);
    background: #111111;
}

.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.profile-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.profile-card h2 {
    margin: 0.3rem 0;
    color: var(--text);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.mood {
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    min-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.status.online {
    color: var(--online);
}

.status.busy {
    color: var(--busy);
}

.status.away {
    color: var(--away);
}

.status.offline {
    color: var(--offline);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background: var(--secondary);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 1.5rem;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text);
}

.modal-body {
    text-align: center;
}

.modal-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 1.5rem;
}

.contacts {
    margin-top: 1.5rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    width: 30px;
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .profiles-container {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .profile-card {
        padding: 1rem 0.75rem;
        width: calc(50% - 0.75rem);
    }
    
    .profile-card img {
        width: 60px;
        height: 60px;
    }
    
    .profile-card h2 {
        font-size: 1rem;
    }
    
    .mood, .status {
        font-size: 0.75rem;
    }
}

.mood-happy {
    --accent: #6c63ff;
}

.mood-busy {
    --accent: #ff6b6b;
}

.mood-chill {
    --accent: #63d2ff;
}

.mood-creative {
    --accent: #ff9f1c;
}

.profile-card:hover {
    transform: translateY(-3px);
}
