:root {
    --bg-dark: #05050a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Vibrant Palette */
    --accent-primary: #ff3366; /* Neon Coral/Pink */
    --accent-secondary: #00c3ff; /* Vivid Azure */
    
    --glass-bg: rgba(15, 15, 25, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0; padding: 0; box-sizing: border-box; cursor: none !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.mono-text { font-family: 'Space Mono', monospace; }

/* --- Atmospheric Orbs --- */
.ambient-orbs {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2; overflow: hidden; pointer-events: none;
}

.orb {
    position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.35;
    animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-primary {
    width: 45vw; height: 45vw; background: var(--accent-primary);
    top: -10%; left: -10%;
}

.orb-secondary {
    width: 55vw; height: 55vw; background: var(--accent-secondary);
    bottom: -15%; right: -10%; animation-delay: -12s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, -10vh) scale(1.1); }
}

/* --- Canvas Background --- */
#quantum-field {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}

/* --- Custom Cursor (Hardware Accelerated) --- */
#cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px; background: #fff;
    border-radius: 50%; 
    pointer-events: none; z-index: 9999;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-secondary);
    transition: width 0.2s, height 0.2s;
    will-change: transform;
}

#cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(0, 195, 255, 0.4); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: width 0.15s ease-out, height 0.15s ease-out, border 0.15s ease-out, background-color 0.2s;
    will-change: transform;
}

/* --- Layout --- */
.container {
    max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem;
    position: relative; z-index: 1;
}

/* --- Optimized Glassmorphism --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    position: relative; overflow: hidden; transition: border-color 0.3s ease;
    
    /* Hardware isolation to prevent lag during canvas animations */
    transform: translate3d(0, 0, 0); 
    will-change: transform, backdrop-filter;
}

/* Holographic Scanner Effect with fallback coordinates (-1000px) */
.interactive-element::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
    will-change: opacity;
}

.interactive-element::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px); background-size: 16px 16px;
    mask-image: radial-gradient(200px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(200px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 0%, transparent 100%);
    z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
    will-change: mask-image, -webkit-mask-image;
}

.interactive-element:hover::before, .interactive-element:hover::after { opacity: 1; }
.interactive-element > * { position: relative; z-index: 1; }

header { text-align: center; margin-bottom: 4rem; padding: 4rem 2rem; }

.profile-wrapper {
    width: 130px; height: 130px; margin: 0 auto 1.5rem; position: relative;
}

#profile-img {
    width: 100%; height: 100%; border-radius: 12px; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2); filter: grayscale(10%) contrast(110%);
}

h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 0.5rem; }
#bio { color: var(--accent-secondary); font-size: 1rem; margin-bottom: 2.5rem; text-transform: uppercase; letter-spacing: 2px; }
.social-links { display: flex; gap: 1.5rem; justify-content: center; }

.btn {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.8rem;
    background: transparent; color: var(--text-primary); text-decoration: none;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600; font-size: 0.9rem; position: relative; overflow: hidden; transition: all 0.3s;
}

.btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s;
}

.btn:hover::after { left: 100%; }
.btn:hover { 
    border-color: var(--accent-secondary); 
    color: var(--accent-secondary); 
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.2); 
}

.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 1rem;
}
h2 { font-size: 2rem; letter-spacing: -1px; }
.subtitle { color: var(--text-secondary); font-size: 0.85rem; }

.repos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.repo-card { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; animation: fadeIn 0.5s forwards; }

@keyframes fadeIn { to { opacity: 1; } }

.repo-card:hover { border-color: var(--accent-primary); }
.repo-name { font-size: 1.3rem; color: var(--text-primary); text-decoration: none; font-weight: 700; display: block; margin-bottom: 1rem; transition: color 0.3s; }
.repo-card:hover .repo-name { color: var(--accent-primary); }
.repo-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.repo-meta { font-size: 0.8rem; color: var(--text-secondary); display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,0.1); }

.loading-pulse { height: 200px; background: linear-gradient(90deg, rgba(10,15,25,0.6) 25%, rgba(20,30,50,0.6) 50%, rgba(10,15,25,0.6) 75%); background-size: 400% 100%; animation: skeletonLoading 1.5s infinite; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
@keyframes skeletonLoading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
footer { text-align: center; margin-top: 5rem; padding-top: 2rem; color: var(--text-secondary); font-size: 0.85rem; }