:root {
    --bg-black: #020004;
    --neon-purple: #9d00ff;
    --glass-fill: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-dim: rgba(255, 255, 255, 0.4);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--bg-black); 
    font-family: 'Montserrat', sans-serif; 
    color: white; 
    overflow-x: hidden; 
    width: 100%;
    scroll-behavior: smooth;
}

body::before {
    content: ''; 
    position: fixed; 
    top: -50%; left: -50%; 
    width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(157, 0, 255, 0.08) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(157, 0, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px; 
    z-index: -2; 
    animation: bgMove 30s linear infinite;
}

@keyframes bgMove { 
    from { transform: translate(0, 0); } 
    to { transform: translate(60px, 60px); } 
}

.header-fixed { 
    position: fixed; 
    top: 30px; 
    left: 0; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    z-index: 2000; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.main-header { width: 45%; max-width: 600px; }

.glass-header {
    padding: 14px 30px;
    background: var(--glass-fill);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo { 
    color: #ffffff; 
    font-size: 18px; 
    font-weight: 900; 
    letter-spacing: 10px; 
    text-shadow: 0 0 10px rgba(157, 0, 255, 0.4); 
    text-transform: uppercase;
}

.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    position: relative;
    padding: 120px 0 100px 0;
}

.hero-label {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(8px, 2vw, 16px);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(157, 0, 255, 0.8);
    margin-bottom: 60px;
    text-align: center;
    z-index: 5;
}

.main-cards-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 10;
    padding: 40px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-cards-wrapper::-webkit-scrollbar { display: none; }

.main-card { 
    width: 380px; 
    padding: 50px 30px; 
    position: relative;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.floating-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-align: center;
    animation: floatAnim 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatAnim { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-30px); } 
}

.pixel-scroll {
    position: absolute;
    bottom: 30px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer;
    z-index: 20;
}

.pixel-text { 
    font-family: 'Press Start 2P', cursive; 
    font-size: 9px; 
    color: var(--neon-purple); 
    text-shadow: 0 0 10px var(--neon-purple); 
    margin-bottom: 15px; 
    text-transform: lowercase;
}

.pixel-arrow { 
    font-family: 'Press Start 2P', cursive; 
    font-size: 16px; 
    color: var(--neon-purple); 
    animation: arrowBounce 1.5s infinite; 
}

@keyframes arrowBounce { 
    0%, 100% { transform: translateY(0); opacity: 0.5; } 
    50% { transform: translateY(10px); opacity: 1; } 
}

.avatar-container { 
    width: 140px; height: 140px; 
    margin: 0 auto 30px; 
    border-radius: 50%; 
    border: 2px solid var(--neon-purple); 
    overflow: hidden; 
}

.avatar-container.small { width: 110px; height: 110px; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.nickname { font-weight: 900; font-size: 32px; letter-spacing: 2px; margin-bottom: 15px; }
.tags-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.tag, .location-box { 
    background: rgba(157, 0, 255, 0.1); 
    border: 1px solid rgba(157, 0, 255, 0.3); 
    padding: 6px 14px; 
    border-radius: 12px; 
    font-size: 10px; 
    color: #d48aff; 
}
.quote { font-size: 14px; color: var(--text-dim); }

.projects-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-label { font-size: 28px; font-weight: 900; letter-spacing: 14px; margin-bottom: 15px; text-shadow: 0 0 20px var(--neon-purple); }
.sub-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 5px; }

.pixel-message { 
    font-family: 'Press Start 2P', cursive; 
    font-size: 10px; 
    color: var(--neon-purple); 
    line-height: 1.8; 
    margin-top: 40px; 
    margin-bottom: 60px; 
    text-align: center; 
}

.projects-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; width: 100%; padding: 40px 0; }
.project-card { width: 380px; padding: 50px 35px; scroll-snap-align: center; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

#mouse-beam { 
    position: fixed; 
    width: 300px; 
    height: 300px; 
    background: radial-gradient(circle, rgba(157, 0, 255, 0.1) 0%, transparent 70%); 
    border-radius: 50%; 
    pointer-events: none; 
    z-index: -1; 
    transform: translate(-50%, -50%); 
}

#snow-canvas { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 0; }

@media (max-width: 768px) {
    .header-fixed { top: 20px; }
    .main-header { width: 90%; }
    .hero-section { justify-content: center; padding-top: 100px; }
    .hero-label { margin-bottom: 30px; }
    .main-cards-wrapper {
        justify-content: flex-start;
        padding: 50px 20px; 
        gap: 20px;
    }
    .main-card { min-width: 85vw; }
    .nickname { font-size: 26px; }
    .avatar-container { width: 120px; height: 120px; }
    .project-card { width: 100%; }
    #mouse-beam { display: none; }
}