* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    --secondary-gradient: linear-gradient(135deg, #888888 0%, #444444 100%);
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(255, 255, 255, 0.1);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-accent: #ffffff;
}

body {
    font-family: 'Press Start 2P', 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: var(--dark-gradient);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.welcome-content {
    text-align: center;
    animation: welcomeGlow 2s ease-in-out infinite alternate;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Press Start 2P', monospace;
    animation: blink 1.5s infinite;
}

@keyframes welcomeGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animated Background */
.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -3;
    object-fit: cover;
    filter: blur(2px) brightness(0.4);
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    filter: blur(2px) brightness(0.4);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.welcome-content {
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

.welcome-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 300;
}

.enter-btn {
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.enter-btn:active {
    transform: translateY(0);
}

.enter-btn i {
    transition: transform 0.3s ease;
}

.enter-btn:hover i {
    transform: translateX(5px);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Main Card with Glassmorphism */
.card {
    background: transparent;
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 600px;
    width: 100%;
    opacity: 0;
    animation: cardSlideUp 1.2s ease forwards;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Username Section */
.username-wrapper {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

#particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.username {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 3px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: usernameGlow 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
}

.username:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
}

@keyframes usernameGlow {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Status with Typing Effect */
.status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 40px;
    font-weight: 400;
    animation: statusFadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 1s;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    font-family: 'Press Start 2P', monospace;
    --cursor: '|';
}

.status::after {
    content: var(--cursor);
    animation: blink 1s infinite;
    color: var(--text-accent);
    font-weight: 400;
}

@keyframes statusFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Global Particles Canvas */
#globalParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Loading Animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Social Links with Hover Effects */
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    animation: socialSlideIn 1s ease forwards;
    opacity: 0;
    animation-delay: 1.5s;
    position: relative;
    z-index: 1;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.social-btn:nth-child(1):hover {
    box-shadow: 0 15px 35px rgba(114, 137, 218, 0.4);
}

.social-btn:nth-child(2):hover {
    box-shadow: 0 15px 35px rgba(36, 41, 46, 0.4);
}

.social-btn:nth-child(3):hover {
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4);
}

@keyframes socialSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    width: 90%;
    max-width: 300px;
    animation: playerSlideIn 1s ease forwards;
    opacity: 0;
    animation-delay: 2s;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.track-info {
    text-align: center;
    margin-bottom: 5px;
}

.track-title {
    font-size: 0.6rem;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-family: 'Press Start 2P', monospace;
}

.track-artist {
    font-size: 0.5rem;
    color: var(--text-secondary);
    font-family: 'Press Start 2P', monospace;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 60%;
}

.volume-control i {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.control-btn:hover {
    color: var(--text-accent);
    transform: scale(1.1);
}

@keyframes playerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Views Counter with Animation */
.views-counter {
    text-align: center;
    font-size: 0.6rem;
    color: var(--text-secondary);
    animation: counterFadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 1.8s;
    position: relative;
    z-index: 1;
    padding: 15px 25px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    margin: 0 auto;
    width: 100%;
}

.views-counter:hover {
    transform: scale(1.05);
}

.views-counter i {
    color: var(--text-accent);
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes counterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 40px 30px;
        margin: 20px;
    }

    .username {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .status {
        font-size: 1rem;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .social-links {
        gap: 20px;
    }

    .orb {
        filter: blur(30px);
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .card {
        padding: 30px 25px;
        border-radius: 25px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 15px;
    }

    .views-counter {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}