:root {
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --accent-color: #a0a0a0;
    --background-dark: #000000;
    --text-color: #ffffff;
    --glass-bg: rgba(68, 68, 68, 0.36);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background: var(--background-dark);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    perspective: 1000px;
    cursor: default;
}

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

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
}

.hidden {
    display: none !important;
}

#profile-block {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 820px;
    max-width: 90vw;
    min-height: 332px;
    background: linear-gradient(to top right, rgba(68, 68, 68, 0.36), rgba(78, 78, 78, 0.36), rgba(118, 128, 120, 0.36));
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.5s ease-out;
}

#profile-block.profile-appear {
    opacity: 1;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-container {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.orbit::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    animation: orbit 4s linear infinite;
    z-index: -1;
}

.fast-orbit::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    animation: fast-orbit 0.5s linear infinite;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#profile-name {
    font-family: 'Orbitron', 'Courier New', sans-serif;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    margin-bottom: 5px;
}

#profile-bio {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
}

.badge-box {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 25;
}

.badge-group {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.badge-container {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.badge {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 100;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.badge-container:hover .tooltip,
.visitor-counter:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.bio-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 15px 0;
}

.profile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    gap: 12px;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.social-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    position: relative;
    cursor: help;
}

.visitor-icon {
    width: 16px;
    height: 16px;
}

.top-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
}

#start-text {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    color: #fff;
}

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

@keyframes fast-orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    #profile-block {
        width: 90vw;
        height: auto;
        min-height: auto;
        padding: 20px;
        transform: translate(-50%, -50%);
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-container {
        width: 120px;
        height: 120px;
        margin-bottom: 10px;
    }

    #profile-name {
        font-size: 24px;
    }

    .badge-box {
        position: static;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
    }

    .profile-footer {
        flex-direction: column;
        gap: 15px;
    }

    .visitor-counter {
        order: -1;
    }

    .top-controls {
        bottom: 20px;
        padding: 8px 15px;
    }

    .slider {
        width: 80px;
    }
}
