:root {
    --bg: #050505;
    --nav-bg: rgba(10, 10, 10, 0.88);
    --accent: #00ff41; 
    --text-main: #ffffff;
    --text-dim: #777777;
    --font-mono: 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }

/* --- Navigation --- */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.logo { font-weight: 900; font-size: 1.2rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* --- Audio Toggle Switch --- */
.audio-container { display: flex; align-items: center; margin-left: 0.5rem; }

.switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1a1a1a; transition: .4s; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: flex-start; padding: 0 4px;
}

.music-icon {
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: .4s;
    z-index: 2;
}

.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px;
    left: 2px; bottom: 2px; background-color: #333; transition: .4s; border-radius: 50%;
}

input:checked + .slider { border-color: var(--accent); background-color: rgba(0, 255, 65, 0.05); }
input:checked + .slider:before { transform: translateX(20px); background-color: var(--accent); }
input:checked + .slider .music-icon { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* --- Hero & Description --- */
.hero { flex: 1; display: flex; align-items: center; padding: 0 4rem; position: relative; z-index: 10; pointer-events: none; }
.hero-content { pointer-events: auto; }
.system-status { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; margin-bottom: 0.5rem; }
.typing-title { font-size: clamp(1rem, 2svw, 2rem); font-weight: 400; margin-bottom: 1rem; }
#typewriter { border-right: 2px solid var(--accent); padding-right: 5px; }
.description { color: var(--text-dim); max-width: 500px; line-height: 1.6; font-size: 0.85rem; }

/* --- Footer --- */
.bottom-footer {
    position: fixed; bottom: 0; width: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 1.2rem 4rem;
    background: var(--nav-bg); backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05); z-index: 100;
}
.footer-nav { margin-bottom: 0.8rem; display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.5rem; letter-spacing: 1px; transition: 0.3s; }
.footer-nav a:hover { color: var(--text-main); }
.footer-left { font-size: 0.65rem; color: #444; letter-spacing: 1px; }

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .top-nav { padding: 1rem 1.5rem; }
    .desktop-only { display: none; } /* Hide 'About'/'Work' on mobile for space */
    .hero { padding: 0 1.5rem; }
    .bottom-footer { padding: 1.5rem; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}