:root {
    /* The Palette */
    --bg-deep: #05000a;       /* Almost black */
    --bg-panel: rgba(20, 0, 35, 0.4); 
    --primary: #9d4edd;       /* Neon Purple */
    --primary-dim: #5a189a;   /* Darker Purple */
    --text-main: #eaddff;     /* White with purple tint */
    --text-muted: #9f86c0;    /* Grey-Purple */
    
    /* Spacing & Borders */
    --border-light: 1px solid rgba(157, 78, 221, 0.2);
    --glass: blur(10px);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#circuit-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* Vignette for focus */
.vignette {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-deep) 120%);
    pointer-events: none;
    z-index: -1;
}

/* Typography Overrides */
h1, h2, h3, h4, .mono-tag, .btn-link, .stat-value, .item-name {
    font-family: 'Space Mono', monospace;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 8rem;
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
}

.status-indicator {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

.glitch-name {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.role-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

.accent { color: var(--primary); }

.bio {
    max-width: 500px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.links { display: flex; gap: 2rem; }
.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.2s;
}
.btn-link:hover { text-shadow: 0 0 8px var(--primary); letter-spacing: 1px; }

/* Grid & Cards */
.section-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 10px;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-panel);
    border: var(--border-light);
    padding: 2rem;
    transition: 0.3s ease;
    position: relative;
    backdrop-filter: var(--glass);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 30px rgba(157, 78, 221, 0.15);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mono-tag {
    font-size: 0.75rem;
    color: var(--primary);
}

.card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.75rem;
    background: rgba(157, 78, 221, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

/* Contact */
.contact-box {
    text-align: center;
    padding: 4rem 0;
    border: 1px solid var(--primary-dim);
    background: linear-gradient(180deg, rgba(5,0,10,0) 0%, rgba(90, 24, 154, 0.1) 100%);
}

.email-display {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: #fff;
    margin: 1rem 0;
    text-decoration: none;
}
.email-display:hover { color: var(--primary); }

.socials a {
    color: var(--text-muted);
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- GAMING / INVENTORY STYLES --- */

.sub-nav {
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    background: rgba(20, 0, 35, 0.3);
    backdrop-filter: blur(5px);
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.text-gold { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.inv-slot {
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.inv-slot:hover {
    transform: scale(1.02);
}

.inv-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255,255,255,0.05); /* Fallback placeholder */
    z-index: 1;
    transition: 0.3s;
}

.inv-slot:hover .inv-image {
    transform: scale(1.1);
}

.inv-info {
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1rem;
    width: 100%;
}

.item-name {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
}

.item-type {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

/* Rarity Glows */
.rarity-legendary { border-bottom: 3px solid #ffd700; }
.rarity-legendary:hover { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

.rarity-mythical { border-bottom: 3px solid #9d4edd; }
.rarity-mythical:hover { box-shadow: 0 0 20px rgba(157, 78, 221, 0.4); }

.rarity-rare { border-bottom: 3px solid #4ea8de; }
.rarity-rare:hover { box-shadow: 0 0 20px rgba(78, 168, 222, 0.4); }

.rarity-common { border-bottom: 3px solid #6c757d; }

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(157, 78, 221, 0.7); }
    70% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(157, 78, 221, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(157, 78, 221, 0); }
}

@media (max-width: 768px) {
    .glitch-name { font-size: 2.5rem; }
    .email-display { font-size: 1.2rem; }
}