:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    overflow: hidden;
}

.enter-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 0.2em;
    animation: blink 2s infinite ease-in-out;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    z-index: 2;
    transition: opacity 0.2s ease;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.enter-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent) 0%, rgba(139, 92, 246, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: rippleExpand 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 1;
}

@keyframes rippleExpand {
    to {
        transform: translate(-50%, -50%) scale(150); /* Covers screen */
    }
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7); /* Darken slightly to match the aesthetic */
}

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

.content-wrapper {
    transition: opacity 1.5s ease-in-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(20px);
    animation: floatUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

.avatar-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #23a559;
    border-radius: 50%;
    border: 3px solid #121216;
    box-shadow: 0 0 10px rgba(35, 165, 89, 0.5);
}

.profile-info {
    text-align: center;
    width: 100%;
}

.display-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
    min-height: 2.8rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-main);
    margin-left: 2px;
    animation: cursorBlink 1s step-start infinite;
}

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


.badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0.5rem auto 1.5rem;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
}

.badge-icon {
    font-size: 1.1rem;
    color: var(--accent);
}

.username {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.bio {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.social-icon {
    color: var(--text-main);
    font-size: 1.5rem;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    color: var(--accent);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px var(--accent-glow);
}

.social-icon.discord-icon:hover {
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px rgba(88, 101, 242, 0.6);
}

.social-icon.steam-icon:hover {
    color: #66c0f4;
    border-color: rgba(102, 192, 244, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px rgba(102, 192, 244, 0.6);
}

.social-icon.roblox-icon:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px rgba(255, 255, 255, 0.6);
}

.view-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-counter.pop-up-anim {
    transform: scale(1.3);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.music-player {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    width: 90%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.music-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    animation: slowSpin 10s linear infinite;
    animation-play-state: paused;
}
.music-icon.playing {
    animation-play-state: running;
}
@keyframes slowSpin { 100% { transform: rotate(360deg); } }

.music-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.music-track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.music-title {
    color: var(--text-main);
    font-weight: 600;
}

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

#play-pause-btn {
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

#play-pause-btn:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

#seek-slider, #global-volume-slider, #particle-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#seek-slider::-webkit-slider-thumb, #global-volume-slider::-webkit-slider-thumb, #particle-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#seek-slider::-webkit-slider-thumb:hover, #global-volume-slider::-webkit-slider-thumb:hover, #particle-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent);
}

.glass-volume-ctl {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    transition: transform 0.3s ease;
    width: 180px;
}

.glass-volume-ctl:hover {
    transform: scale(1.05);
}

.glass-volume-ctl i {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: color 0.3s ease;
    width: 20px;
    text-align: center;
}

.glass-volume-ctl i:hover {
    color: var(--accent);
}

.volume-slider-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.glass-particles-ctl.card-style {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    width: 250px;
}

.particles-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.particles-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

.particles-header span:nth-child(2) {
    font-weight: 600;
}

#particle-count-display {
    margin-left: auto;
    color: var(--text-muted);
}

.particle-slider-container {
    width: 100%;
    display: flex;
    align-items: center;
}
