:root {
    --bg-base: #0a0a0c;
    --bg-card: #121318;
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --mage-glow: #4ade80;
    --mage-glow-dim: rgba(74, 222, 128, 0.2);
    --mage-glow-hover: rgba(74, 222, 128, 0.15);
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* Navigation & Top Bar */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--mage-glow-dim);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--mage-glow);
    text-shadow: 0 0 8px var(--mage-glow-dim);
}

.lang-switcher {
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid #333;
}

.lang-switcher a {
    color: var(--mage-glow);
    font-weight: bold;
}

/* Magical Link Hover Effect */
a.magic-link {
    color: var(--mage-glow);
    text-decoration: none;
    padding: 0 2px;
    border-bottom: 2px solid rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
    border-radius: 2px;
}

a.magic-link:hover {
    background-color: var(--mage-glow-hover);
    border-bottom: 2px solid rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
    text-shadow: 0 0 8px var(--mage-glow);
    color: #fff; /* Brighten text slightly on hover */
}

/* Main Content Container */
main {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.avatar-container {
    flex-shrink: 0;
}

.avatar {
    width: 280px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--mage-glow-dim);
    box-shadow: 0 0 20px var(--mage-glow-dim), inset 0 0 20px var(--mage-glow-dim);
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.1));
}

.bio h1 {
    font-family: var(--font-mono);
    color: var(--mage-glow);
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.bio p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Hierarchical Lists & Highlights */
.highlights {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #222;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.category-section {
    margin-bottom: 2.5rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section h2 {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.category-section h2 a {
    color: var(--text-main); 
}

ul.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.tech-list > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

ul.tech-list > li strong {
    color: var(--text-main);
}

ul.tech-list > li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--mage-glow);
    font-family: var(--font-mono);
    font-weight: bold;
}

ul.tech-list ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

ul.tech-list li li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.discrete-link {
    text-decoration: none;
    color: inherit;
}

.discrete-link:hover {
    text-decoration: underline;
}