@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@700&family=Inter:wght@300;600;900&display=swap');

:root {
    --bg-black: #000000;
    --accent-red: #ff0015;
    --accent-pink: #ff006a;
    --glass: rgba(10, 10, 10, 0.6);
    --border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: crosshair; }

body {
    background-color: var(--bg-black);
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- THE VOID BACKGROUND --- */
.void-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
}

.nebula {
    position: absolute;
    width: 40vw;
    height: 40vw;
    filter: blur(150px);
    opacity: 0.12;
    border-radius: 50%;
}
.red-nebula { top: -10%; left: -10%; background: var(--accent-red); }
.pink-nebula { bottom: -10%; right: -5%; background: var(--accent-pink); }

/* --- UPDATED STAR LOOP SYSTEM (MAX DENSITY) --- */
#stars, #stars2, #stars3, #stars4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Layer 1: Smallest, fastest stars (Deep background) */
#stars {
    width: 1px; height: 1px;
    box-shadow: 
        100px 100px #fff, 250px 400px #fff, 450px 150px #fff, 600px 700px #fff, 
        800px 300px #fff, 950px 900px #fff, 1200px 100px #fff, 1400px 500px #fff, 
        100px 800px #fff, 300px 1200px #fff, 700px 1000px #fff, 1100px 1400px #fff,
        1500px 200px #fff, 1800px 600px #fff, 2000px 1000px #fff, 500px 500px #fff,
        1000px 50px #fff, 1600px 850px #fff, 200px 2000px #fff, 1900px 1900px #fff;
    animation: starLoop 180s linear infinite;
}

/* Layer 2: Medium stars (Mid-ground) */
#stars2 {
    width: 2px; height: 2px;
    box-shadow: 
        200px 300px rgba(255,255,255,0.7), 500px 100px rgba(255,255,255,0.7), 
        800px 600px rgba(255,255,255,0.7), 1100px 200px rgba(255,255,255,0.7), 
        1400px 800px rgba(255,255,255,0.7), 300px 900px rgba(255,255,255,0.7),
        1700px 400px rgba(255,255,255,0.7), 100px 1500px rgba(255,255,255,0.7),
        900px 1300px rgba(255,255,255,0.7), 1200px 1800px rgba(255,255,255,0.7);
    animation: starLoop 120s linear infinite;
}

/* Layer 3: Larger, blurry stars (Fore-ground) */
#stars3 {
    width: 3px; height: 3px;
    box-shadow: 
        150px 450px rgba(255,255,255,0.4), 650px 250px rgba(255,255,255,0.4), 
        1050px 750px rgba(255,255,255,0.4), 1550px 150px rgba(255,255,255,0.4),
        400px 1100px rgba(255,255,255,0.4), 1300px 1600px rgba(255,255,255,0.4);
    animation: starLoop 80s linear infinite;
}

/* Layer 4: Distant Static Glimmer (No movement, high density) */
#stars4 {
    width: 1px; height: 1px;
    opacity: 0.3;
    box-shadow: 
        50px 50px #fff, 150px 150px #fff, 250px 250px #fff, 350px 350px #fff,
        450px 450px #fff, 550px 550px #fff, 650px 650px #fff, 750px 750px #fff,
        850px 850px #fff, 950px 950px #fff, 1050px 1050px #fff, 1150px 1150px #fff,
        1250px 1250px #fff, 1350px 1350px #fff, 1450px 1450px #fff, 1550px 1550px #fff;
}

@keyframes starLoop {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); } /* Increased distance for smoother looping */
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 1;
    pointer-events: none;
}

/* --- PC RESPONSIVE GRID --- */
.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 40px;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    margin-bottom: 20px;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.01);
}

/* --- IDENTITY SIDEBAR --- */
.identity-card {
    text-align: left;
    position: sticky;
    top: 80px;
}

.profile-pic {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(1) brightness(0.8) contrast(1.2);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.alias {
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 8px;
    margin-bottom: 30px;
    font-weight: 900;
}

.badges { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.badge { font-size: 0.75rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.img-container {
    aspect-ratio: 4/3;
    background: #050505;
    border: 1px solid var(--border);
    overflow: hidden;
}

.img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.8s ease;
}

.img-container:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* --- STATS & BUTTONS --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat { padding: 25px; text-align: center; margin-bottom: 0; }
.stat span { font-size: 0.6rem; color: #555; text-transform: uppercase; letter-spacing: 2px; }
.stat p { font-size: 1.4rem; font-weight: 900; font-family: 'Syncopate'; margin-top: 5px; }

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.3s;
    background: rgba(255,255,255,0.02);
    text-align: center;
}

.btn:hover { background: #fff; color: #000; font-weight: 900; }

.highlight { color: var(--accent-red); text-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }

/* --- SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.skills-title { color: var(--accent-red); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.skills-list { list-style: none; font-size: 0.9rem; color: #888; line-height: 2; }
.bio-section h2, .gallery-section h2 { margin-bottom: 15px; font-family: 'Syncopate'; font-size: 1.2rem; }
.bio-section p { font-size: 0.95rem; line-height: 1.6; color: #ccc; margin-bottom: 15px; }

/* ANIMATIONS */
.animate-up { opacity: 0; transform: translateY(20px); animation: fadeIn 1s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* =========================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================= */

@media (max-width: 1000px) {
    /* Tablet shifts */
    .wrapper { 
        grid-template-columns: 1fr; /* Stacks the sidebar on top */
        padding: 40px 20px; 
        gap: 20px;
    }
    .identity-card { 
        position: relative; /* Stops it from sticking when scrolling */
        top: 0; 
    }
}

@media (max-width: 650px) {
    /* Mobile shifts */
    .wrapper { 
        padding: 20px 15px; 
    }
    .glass-panel { 
        padding: 25px 20px; /* Reduces massive padding on phones */
    }
    .stats-row { 
        grid-template-columns: 1fr; /* Stacks the stats vertically so net worth fits */
    }
    .skills-grid { 
        grid-template-columns: 1fr; /* Stacks the skills lists */
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Makes images full width on phone */
    }
    h1 { 
        font-size: 1.5rem; 
    }
    .stat p {
        font-size: 1.2rem;
    }
}