/* Core Reset & Variables */
:root {
    --primary-color: #a855f7; /* Purple */
    --secondary-color: #06b6d4; /* Cyan */
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* Click to Enter Overlay */
#enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease-in-out;
}

.enter-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--text-main);
    animation: pulse 2s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Main Content Visibility */
.hidden {
    opacity: 0;
    pointer-events: none;
}

#main-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
    padding: 20px;
}

/* Profile Card Styling (Glassmorphism) */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15); /* Purple glow */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Profile Picture container for status dot */
.pfp-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

/* Username & Glitch Effect */
.username {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    
    /* Red Wave on Futuristic Base */
    /* Base: Neon Cyan (#06b6d4), Wave: Red (#ff0000) */
    background: linear-gradient(90deg, #06b6d4 0%, #06b6d4 40%, #ff0000 50%, #06b6d4 60%, #06b6d4 100%);
    background-size: 200% auto;
    
    color: #06b6d4; /* Fallback */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: redWave 3s linear infinite;
}

@keyframes redWave {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Username Wrapper */
.username-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Cursor Blink */
.cursor {
    display: inline-block;
    color: #ffffff;
    margin-left: 2px;
    font-weight: 400;
    font-size: 2.5rem;
    animation: blink 1s step-end infinite;
    text-shadow: none; /* No shadow */
}

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

/* Glitch Animation Keyframes omitted for brevity, adding reliable simple text shadow hover */
.username:hover {
    animation: glitch-anim 0.3s infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Badges */
.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-main);
    border-color: var(--primary-color);
}

/* Bio */
.bio-section {
    margin-bottom: 30px;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link i {
    font-size: 1.2rem;
}

/* Individual Brand Hover Colors */
.discord:hover { background: rgba(88, 101, 242, 0.2); border-color: #5865F2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.3); }
.youtube:hover { background: rgba(255, 0, 0, 0.2); border-color: #FF0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.3); }
.twitch:hover { background: rgba(145, 70, 255, 0.2); border-color: #9146FF; box-shadow: 0 0 15px rgba(145, 70, 255, 0.3); }
.tiktok:hover { background: rgba(255, 0, 80, 0.2); border-color: #ff0050; box-shadow: 0 0 15px rgba(255, 0, 80, 0.3); }
.twitter:hover { background: rgba(29, 161, 242, 0.2); border-color: #1DA1F2; }
.github:hover { background: rgba(255, 255, 255, 0.15); border-color: #ffffff; }
.paypal:hover { background: rgba(0, 48, 135, 0.2); border-color: #003087; }
.instagram:hover { background: rgba(225, 48, 108, 0.2); border-color: #E1306C; }
.snapchat:hover { background: rgba(255, 252, 0, 0.15); border-color: #FFFC00; color: #fffc00; }
.steam:hover { background: rgba(102, 192, 244, 0.2); border-color: #66c0f4; }
.roblox:hover { background: rgba(255, 255, 255, 0.2); border-color: white; }
.namemc:hover { background: rgba(0, 255, 0, 0.1); border-color: lime; }

.social-link:hover {
    transform: translateY(-3px) scale(1.02);
}


/* Floating Visual Player Bubble */
.music-bubble {
    position: fixed;
    bottom: 20px; /* Moved down as requested */
    left: 30px;
    width: 320px;
    height: 152px; /* Matches Spotify compact embed height */
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: slideIn 1s ease-out 1s backwards;
}

.music-bubble:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
}

.music-bubble iframe {
    pointer-events: auto; /* Allow interaction with Spotify player */
}

/* Volume Control UI */
.volume-control {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Left aligned again */
    right: auto;
    display: flex;
    flex-direction: row-reverse; /* Button Left (2nd child), Slider Right (1st child) */
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

/* Button Styling (Neomorphism/Futuristic) */
.icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    z-index: 2; /* Above slider container */
}

.icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    transform: scale(1.1) rotate(180deg);
}

/* Slider Container (Hidden by default, slides out to the RIGHT) */
.volume-slider-container {
    width: 0;
    height: 50px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--secondary-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-20px); /* Start slightly overlapped to the left */
}

/* Hover on container reveals slider to the RIGHT of the button */
.volume-control:hover .volume-slider-container {
    width: 150px;
    opacity: 1;
    padding: 0 20px;
    transform: translateX(0);
    margin-left: -10px; /* Pull closer to button (on its left) */
}

/* Slider Track */
.volume-slider {
    -webkit-appearance: none;
    appearance: none; /* Standard property */
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 5px;
    outline: none;
}

/* Slider Thumb */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.4);
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
}

/* Footer Removed */

/* Pulse Animation for Enter Text */
@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

/* Gravitational Implosion Effect */
.implode {
    animation: implosion-anim 2s cubic-bezier(0.7, 0, 1, 1) forwards;
    pointer-events: none; /* Prevent clicks during animation */
}

@keyframes implosion-anim {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg) blur(0px);
        opacity: 1;
    }
    40% {
        transform: scale(1.1) rotate(5deg); /* Slight expansion/stretch before collapse */
        filter: hue-rotate(90deg) blur(2px) contrast(2);
    }
    100% {
        transform: scale(0) rotate(720deg); /* Violet suction into nothingness */
        filter: hue-rotate(360deg) blur(10px) brightness(0);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .profile-card {
        padding: 25px;
    }
    .username {
        font-size: 2rem;
    }
    .links-grid {
        grid-template-columns: 1fr;
    }
}
