:root {
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --border-color: #30363d;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; line-height: 1.6; }

/* Clean subtle grid background */
.cyber-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; z-index: -1;
}

/* Header */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(13, 17, 23, 0.9); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.status-indicator { font-family: var(--font-mono); font-size: 0.75rem; color: #3fb950; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dot { width: 8px; height: 8px; background: #3fb950; border-radius: 50%; }

.btn-outline {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: 0.2s ease-in-out; display: flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--text-muted); background: rgba(255, 255, 255, 0.05); }

/* Main Container & Hero */
.container { max-width: 1000px; margin: 0 auto; padding: 6rem 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 5rem; }

.hero-badge { 
    font-size: 0.85rem; color: var(--accent); font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.1);
    padding: 6px 16px; border-radius: 20px; margin-bottom: 1.5rem;
}

.hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; color: #ffffff; }
.hero h2 { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--accent); margin-bottom: 1.5rem; font-weight: 500; }

.bio { font-size: 1.15rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 2.5rem auto; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-primary { 
    background: var(--accent); color: #ffffff; padding: 0.8rem 2rem; border-radius: 6px;
    font-weight: 600; text-decoration: none; transition: 0.2s ease-in-out;
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--accent); cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.social-group { display: flex; gap: 10px; }
.btn-icon {
    width: 46px; height: 46px; border: 1px solid var(--border-color); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; color: var(--text-main);
    text-decoration: none; transition: 0.2s ease-in-out; background: var(--bg-panel); cursor: pointer;
}
.btn-icon:hover { border-color: var(--text-muted); background: rgba(255, 255, 255, 0.05); }

/* Directives & Arsenal */
.directives-section { width: 100%; max-width: 800px; margin-bottom: 5rem; text-align: left; }
.directive-card { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 2rem; border-radius: 8px; }
.directive-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: #ffffff; margin-bottom: 0.8rem; }
.directive-card p { color: var(--text-muted); font-size: 1rem; }

.arsenal-section { width: 100%; margin-bottom: 4rem; }
.section-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 2rem; width: 100%; text-align: left; border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; color: #ffffff; }
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.arsenal-item { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 8px; display: flex; align-items: center; gap: 15px; font-weight: 500; color: var(--text-main); transition: 0.2s ease-in-out; }
.arsenal-item i { color: var(--accent); font-size: 1.4rem; }
.arsenal-item:hover { border-color: var(--text-muted); background: rgba(255, 255, 255, 0.02); }

/* --- PROJECT PAGE SPECIFIC --- */
.project-page .container { padding-top: 4rem; align-items: flex-start; text-align: left; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; width: 100%; }

.project-card { 
    background: var(--bg-panel); border: 1px solid var(--border-color);
    padding: 2rem; border-radius: 8px; transition: 0.2s ease-in-out; display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--text-muted); transform: translateY(-3px); }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.card-icon { font-size: 1.5rem; color: var(--accent); }
.card-status { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--text-muted); background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 20px; }
.status-live { color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); background: rgba(63, 185, 80, 0.1); }

.project-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.8rem; color: #ffffff; }
.project-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; flex-grow: 1; }

.card-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.card-tech-stack span { font-size: 0.8rem; color: var(--text-main); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 20px; }

.card-links { display: flex; gap: 10px; margin-top: auto; }
.btn-card { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0.6rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 6px; transition: 0.2s ease-in-out; border: 1px solid var(--border-color); color: var(--text-main); cursor: pointer; background: transparent; }
.btn-card:hover:not(.disabled) { border-color: var(--text-muted); background: rgba(255, 255, 255, 0.05); }
.btn-card-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-card-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-card.disabled { opacity: 0.5; cursor: not-allowed; border-style: dashed; }

/* Modal CSS */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(13, 17, 23, 0.8); backdrop-filter: blur(5px);
    z-index: 9999; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--bg-panel); border: 1px solid var(--border-color);
    width: 90%; max-width: 650px; border-radius: 8px; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; background: var(--bg-panel); z-index: 10;
}
.modal-header h3 { font-family: var(--font-display); color: #ffffff; font-size: 1.2rem; }
.modal-header button:hover i { color: #ffffff; }
.modal-body { padding: 2rem; }
.download-section {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color);
    padding: 1.5rem; border-radius: 6px; text-align: center; margin-bottom: 2rem;
}
.download-section p { margin-bottom: 1.5rem; color: var(--text-main); font-size: 0.95rem; }
.setup-steps h4 { font-family: var(--font-display); color: #ffffff; font-size: 1.2rem; margin-bottom: 1rem; }
.setup-steps > p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; font-size: 0.95rem;}
.setup-steps ol { padding-left: 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.setup-steps li { margin-bottom: 1.5rem; line-height: 1.6; }
.setup-steps li strong { color: #ffffff; display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.05rem; }
.setup-steps ul { padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.setup-steps ul li { margin-bottom: 0.5rem; }
.setup-steps code { background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85em; color: var(--text-main); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 2rem 5%; width: 100%; background: var(--bg-panel); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-bottom p { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 768px) { .container { padding: 4rem 1rem; } .hero h1 { font-size: 2.2rem; } .projects-grid { grid-template-columns: 1fr; } .modal-body { padding: 1.5rem; } }