:root {
    --bg: #050505;
    --nav-bg: rgba(10, 10, 10, 0.88);
    --accent: hsl(60, 26%, 93%);
    --accent2: hsl(135, 100%, 50%); 
    --offline: #f70606;
    --online: #0fd320;
    --text-main: #43d843;
    --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 & Footer Bars --- */
.top-nav, .bottom-footer {
    position: fixed; 
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 100;
}

.top-nav {
    top: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 4rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-footer {
    bottom: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    padding: 1rem 4rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.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; 
}

/* --- Audio Switch --- */
.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 Section --- */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    pointer-events: none;
    padding: 100px 4rem 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    pointer-events: auto;
}

.avatar-holder {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    overflow: hidden;
    justify-self: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.system-status { 
    font-family: var(--font-mono); 
    color: var(--accent2); 
    font-size: 0.8rem; 
    margin-bottom: 0.5rem; 
}

.main-title { 
    font-size: 3.5rem; 
    font-weight: 900; 
    margin-bottom: 0.3rem; 
}

.typing-title { 
    font-size: 1.8rem; 
    font-weight: 400; 
    color: var(--text-dim); 
    margin-bottom: 1.5rem; 
}

#typewriter { 
    border-right: 2px solid var(--accent); 
    color: var(--text-main); 
    font-weight: 600; 
    padding-right: 5px; 
}

.tagline { 
    color: var(--text-dim); 
    max-width: 450px; 
    line-height: 1.6; 
    font-size: 0.95rem; 
    margin-bottom: 2rem; 
}

/* --- Social Icons & Copy Menu --- */
.identity-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.identity-icons a, .copy-btn {
    text-decoration: none;
    color: var(--bg);
    background-color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.identity-icons a:hover, .copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,255,65,0.2);
}

.copy-container { 
    position: relative; 
    display: inline-block; 
}

.copy-menu {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid var(--accent);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 110;
}

.copy-menu.show-menu {
    opacity: 1;
    visibility: visible;
    bottom: 60px;
}

/* --- Footer Elements --- */
.footer-nav { 
    margin-bottom: 0.8rem; 
    display: flex; 
    gap: 1.5rem; 
}

.footer-nav a { 
    color: var(--text-dim); 
    text-decoration: none; 
    font-size: 0.7rem; 
    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; 
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .top-nav { padding: 1rem 1.5rem; }
    .hero { padding: 90px 1.5rem; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text-block { align-items: center; }
    .avatar-holder { width: 220px; height: 220px; border-width: 4px; }
    .main-title { font-size: 2.5rem; }
    .typing-title { font-size: 1.4rem; }
    .identity-icons { justify-content: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}



/* --- Terminal Specific Layout --- */
.terminal-body {
    overflow-y: auto; /* Allow scrolling for terminal logs */
}

.terminal-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 2rem 100px;
    z-index: 10;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 60vh;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-dots { display: flex; gap: 6px; margin-right: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.header-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.terminal-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-main);
    overflow-y: auto;
    flex: 1;
}

.line { margin-bottom: 8px; line-height: 1.4; }
.response { color: var(--text-dim); margin-bottom: 15px; padding-left: 10px; }

.prompt { color: var(--accent); margin-right: 10px; }

.input-line {
    padding: 15px 20px;
    display: flex;
    background: rgba(0,0,0,0.3);
}

#terminal-input {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    flex: 1;
    outline: none;
}

.cmd-link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.cmd-link:hover {
    color: #ffffff;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-glitch {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent2);
    letter-spacing: 3px;
    line-height: 1;
}

.system-id {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

/* --- MODAL LOGIC --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.terminal-window {
    width: 100%;
    max-width: 850px;
    height: 60vh;
    background: #0a0a0a;
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ensure the footer links look cleaner */
.footer-nav a {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent);
    opacity: 0.6;
}

.footer-nav a:hover {
    opacity: 1;
    text-shadow: 0 0 5px var(--accent);
}