: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; 
}

html {
    scroll-snap-type: y mandatory;
}

body { 
    background-color: var(--bg-black); 
    font-family: 'Montserrat', sans-serif; 
    color: white; 
    overflow-x: hidden; 
}

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.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.main-header { 
    width: 45%; 
}

.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;
}

.section-label {
    position: absolute;
    top: 120px;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 14px;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(157, 0, 255, 0.9), 0 0 10px rgba(157, 0, 255, 0.6);
    z-index: 5;
    text-align: center;
}

.sub-label {
    position: absolute;
    top: 170px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
    width: 100%;
}

.hero-section, .projects-section {
    height: 100vh;
    width: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    position: relative;
    scroll-snap-align: start;
}

.main-card { 
    width: 580px; 
    padding: 70px 60px; 
    margin-top: 50px;
}

.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: 60px;
    text-align: center;
    animation: floatAnim 8s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 25px rgba(157, 0, 255, 0.3), 0 30px 60px rgba(0,0,0,0.6);
    transform: translateY(-5px);
}

@keyframes floatAnim { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

.pixel-scroll {
    position: absolute;
    bottom: 30px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer;
    z-index: 100;
}

.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: 12px; 
}

.pixel-arrow { 
    font-family: 'Press Start 2P', cursive; 
    font-size: 14px; 
    line-height: 10px; 
    color: var(--neon-purple); 
    text-align: center; 
    animation: arrowBounce 1.5s infinite; 
}

@keyframes arrowBounce { 
    0%, 100% { transform: translateY(0); opacity: 0.4; } 
    50% { transform: translateY(12px); opacity: 1; } 
}

.projects-grid { 
    display: flex; 
    gap: 40px; 
    margin-top: 120px; 
    flex-wrap: wrap; 
    justify-content: center; 
}

.project-card { 
    width: 380px; 
    padding: 60px 40px; 
}

.project-name { 
    font-size: 26px; 
    font-weight: 900; 
    margin-bottom: 15px; 
    letter-spacing: 2px;
}

.project-desc { 
    font-size: 12px; 
    font-weight: 200; 
    color: var(--text-dim); 
    line-height: 1.6; 
    text-transform: uppercase; 
}

.avatar-container { 
    width: 160px; 
    height: 160px; 
    margin: 0 auto 35px; 
    border-radius: 50%; 
    border: 2px solid var(--neon-purple); 
    box-shadow: 0 0 25px rgba(157, 0, 255, 0.3); 
    overflow: hidden; 
}

.avatar-container.small { 
    width: 110px; 
    height: 110px; 
}

.avatar-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.nickname { font-weight: 900; font-size: 38px; letter-spacing: 4px; margin-bottom: 20px; }
.tags-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.tag, .location-box { 
    background: rgba(157, 0, 255, 0.08); 
    border: 1px solid rgba(157, 0, 255, 0.2); 
    padding: 8px 18px; 
    border-radius: 12px; 
    font-size: 11px; 
    color: #d48aff; 
}
.quote { font-size: 14px; color: var(--text-dim); margin-bottom: 30px; font-style: italic; }

.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 1.2s ease; 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

#mouse-beam { 
    position: fixed; 
    width: 280px; 
    height: 280px; 
    background: radial-gradient(circle, rgba(157, 0, 255, 0.15) 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: 15px; }
    .main-header { width: 90%; }
    .logo { font-size: 14px; letter-spacing: 5px; }
    .section-label { font-size: 20px; top: 120px; letter-spacing: 6px; width: 100%; }
    .sub-label { font-size: 10px; top: 160px; padding: 0 20px; line-height: 1.4; }
    .main-card { width: 92%; padding: 40px 20px; margin-top: 100px; border-radius: 40px; }
    .nickname { font-size: 26px; }
    .avatar-container { width: 110px; height: 110px; margin-bottom: 20px; }
    .projects-grid { gap: 20px; padding: 0 15px; margin-top: 140px; }
    .project-card { width: 100%; padding: 35px 20px; border-radius: 40px; }
    .project-name { font-size: 22px; }
    #mouse-beam { display: none; }
}