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

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --custom-font: '';
}

body {
    font-family: var(--custom-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: none;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background video,
.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Mist Overlay */
.mist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    animation: mistMove 20s ease-in-out infinite;
    opacity: 0.3;
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.mist-overlay.pulsing {
    animation: mistMove 20s ease-in-out infinite, mistPulse 0.5s ease-in-out infinite;
}

@keyframes mistMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

@keyframes mistPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.02);
    }
}

/* Floating Stars Animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Shooting Stars */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    animation: shootOrb 3s linear;
    filter: blur(2px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    animation: pulseCore 0.5s ease-in-out infinite;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 100%);
    transform: translateX(-150px) translateY(50%);
    filter: blur(3px);
}

@keyframes shootOrb {
    0% {
        transform: translate(0, 0) rotate(var(--shoot-angle, 45deg));
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(100vw, 100vh) rotate(var(--shoot-angle, 45deg));
        opacity: 0;
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

/* Bottom Fog Effect */
.bottom-fog {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    background: 
        linear-gradient(to top, 
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%
        );
}

.bottom-fog::before,
.bottom-fog::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 20%,
            transparent 60%
        );
    filter: blur(40px);
    animation: fogMove 15s ease-in-out infinite;
}

.bottom-fog::before {
    left: -50%;
    animation: fogMove 15s ease-in-out infinite;
}

.bottom-fog::after {
    left: -50%;
    animation: fogMove 20s ease-in-out infinite reverse;
    opacity: 0.7;
}

@keyframes fogMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(25%);
    }
    100% {
        transform: translateX(0);
    }
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float linear infinite;
}

.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

/* Custom cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    display: none;
}

body:hover .cursor {
    display: block;
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.avatar-container {
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin: 0 auto;
    display: block;
}

.title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.number {
    font-size: 5rem;
    font-weight: 300;
    margin: 2rem 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
}

.username {
    font-size: 2rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.username.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor,
        0 0 35px currentColor,
        0 0 40px currentColor;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor,
            0 0 35px currentColor,
            0 0 40px currentColor;
    }
    to {
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor,
            0 0 18px currentColor,
            0 0 25px currentColor;
    }
}

.bio {
    font-size: 1rem;
    margin: 1rem 0 2rem;
    opacity: 0.7;
    font-weight: 300;
}

.music-player {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    display: block !important;
}

.music-player[style*="display: none"] {
    display: none !important;
}

.music-player iframe {
    width: 100%;
    height: 352px;
    border: none;
    border-radius: 12px;
    display: block;
}

/* Toggle Content Button */
.toggle-content-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-content-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.toggle-content-btn:active {
    transform: scale(0.95);
}

.container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

/* Music Control Button */
.music-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.music-control:hover {
    background: rgba(60, 60, 60, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.music-icon-svg {
    width: 24px;
    height: 24px;
    fill: #9b59b6;
    stroke: #9b59b6;
    transition: all 0.3s ease;
}

.music-control .music-icon-svg {
    fill: #9b59b6;
    stroke: #9b59b6;
    opacity: 1;
}

.music-icon {
    display: none;
}

/* Music Info Display */
.music-info {
    margin: 1.5rem 0;
    width: 100%;
}

.music-info-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.music-icon-small {
    font-size: 1.5rem;
    opacity: 0.8;
}

.music-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.music-title {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.music-artist {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Links Container */
.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    padding: 0 0.5rem;
}

.floating-link {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.floating-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
}

.floating-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-link:hover::before {
    opacity: 1;
}

.floating-link-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    font-size: 1.8rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.floating-link-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin: 0;
    padding: 0;
}

.floating-link-icon img.soundcloud-logo,
.floating-link[data-type="soundcloud"] .floating-link-icon img {
    filter: none !important;
    opacity: 1;
}

.floating-link-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.floating-link-icon object {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.floating-link[data-type="soundcloud"] .floating-link-icon object,
.floating-link[data-type="soundcloud"] .floating-link-icon svg {
    filter: none;
}



/* Link type specific colors */
.floating-link[data-type="discord"]:hover {
    background: rgba(88, 101, 242, 0.4);
    border-color: #5865F2;
}

.floating-link[data-type="twitter"]:hover {
    background: rgba(29, 161, 242, 0.4);
    border-color: #1DA1F2;
}

.floating-link[data-type="telegram"]:hover {
    background: rgba(37, 150, 190, 0.4);
    border-color: #2596BE;
}

.floating-link[data-type="github"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

.floating-link[data-type="spotify"]:hover {
    background: rgba(30, 215, 96, 0.4);
    border-color: #1DB954;
}

.floating-link[data-type="soundcloud"]:hover {
    background: rgba(255, 85, 0, 0.4);
    border-color: #FF5500;
}

.floating-link[data-type="xbox"]:hover {
    background: rgba(16, 124, 16, 0.4);
    border-color: #107C10;
}

.floating-link[data-type="custom"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-color);
}


@media (max-width: 600px) {
    body {
        padding: 1rem;
        cursor: default;
    }
    
    .cursor {
        display: none !important;
    }
    
    .title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .number {
        font-size: 4rem;
        margin: 1.5rem 0;
    }
    
    .username {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .bio {
        font-size: 0.9rem;
        margin: 0.5rem 0 1.5rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .music-player {
        margin: 1.5rem 0 !important;
        width: 100% !important;
    }
    
    .music-player iframe {
        height: 300px !important;
        width: 100% !important;
    }
    
    .music-control {
        bottom: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        touch-action: manipulation;
    }
    
    .music-info {
        margin: 1rem 0 !important;
        width: 100% !important;
    }
    
    .music-info-content {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .music-title {
        font-size: 0.85rem;
    }
    
    .music-artist {
        font-size: 0.75rem;
    }
    
    .links-container {
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
        padding: 0 0.5rem;
    }
    
    .floating-link {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.5rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .floating-link:hover,
    .floating-link:active {
        transform: translateY(-3px) scale(1.05);
    }
    
    .floating-link-icon img,
    .floating-link-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .floating-link-icon object {
        width: 24px !important;
        height: 24px !important;
    }
    
    .theme-options {
        min-width: 260px;
        padding: 1rem;
        bottom: 60px;
    }
}

/* Tablet support */
@media (min-width: 601px) and (max-width: 900px) {
    .container {
        padding: 2.5rem 1.5rem;
    }
    
    .floating-link {
        width: 55px;
        height: 55px;
    }
}
