/* --- CSS VARIABLES --- */
:root {
    --bg-color: #020412;
    --panel-bg: rgba(12, 12, 12, 0.85);
    --neon-cyan: #00f3ff;
    --neon-amber: #ffb800;
    --neon-red: #ff3333;
    --text-main: #e0e0e0;
    --text-dim: #6e6e6e;
    --neon-pink: #ff00ff;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
    margin: 0; 
    padding: 0;
    background-color: var(--bg-color); 
    color: var(--text-main);
    font-family: 'Fira Code', monospace;
    overflow-x: hidden; 
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
}

/* --- VISUAL FX --- */
#tsparticles { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; }
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px; pointer-events: none; z-index: 10; opacity: 0.4;
}

/* --- HEADER & NAV --- */
.hud-header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 60px;
    background: rgba(2, 4, 18, 0.5); 
    border-bottom: 1px solid var(--neon-cyan);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 50; 
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
.system-nav { display: flex; gap: 40px; }
.nav-link {
    color: var(--text-dim); text-decoration: none; font-size: 1rem;
    font-weight: bold; text-transform: uppercase; transition: 0.3s; position: relative;
}
.nav-link:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }
.nav-link::before {
    content: '>'; position: absolute; left: -15px; opacity: 0;
    color: var(--neon-amber); transition: 0.3s;
}
.nav-link:hover::before { opacity: 1; left: -12px; }

/* --- CONTENT CONTAINERS --- */
.container { max-width: 1200px; margin: 100px auto 50px auto; padding: 0 20px; position: relative; z-index: 20; flex-grow: 1; }
.spec-section { margin-bottom: 80px; scroll-margin-top: 100px; opacity: 0; transform: translateY(20px); animation: fadeIn 0.8s forwards; }

.section-header { display: flex; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--text-dim); padding-bottom: 10px; }
.section-number { color: var(--neon-amber); font-weight: bold; margin-right: 15px; font-size: 1.5rem; }
.section-title { color: var(--neon-cyan); font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; font-family: 'Orbitron', sans-serif;}

/* --- 1.0 ABOUT TERMINAL --- */
.about-terminal { border: 1px solid var(--text-dim); padding: 30px; background: rgba(0, 0, 0, 0.4); position: relative; backdrop-filter: blur(3px); }
.about-terminal::before { content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.about-terminal::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 20px; height: 20px; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.highlight { color: var(--neon-amber); }

/* --- 2.0 PROJECTS GRID --- */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.module-card {
    background: rgba(10, 10, 10, 0.8); border: 1px solid #333; padding: 25px;
    position: relative; transition: all 0.3s ease; cursor: pointer; backdrop-filter: blur(5px);
}
.module-card:hover { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 243, 255, 0.15); transform: translateY(-5px); }

.card-top { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.8rem; color: var(--text-dim); }
.module-id { color: var(--neon-cyan); }
.card-title { font-size: 1.8rem; color: var(--text-main); margin-bottom: 10px; font-family: 'Rajdhani', sans-serif; }
.card-desc { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; height: 50px; }

/* Meters */
.complexity-meter { display: flex; gap: 5px; margin-bottom: 10px; align-items: center; }
.meter-label { font-size: 0.7rem; color: var(--neon-amber); width: 80px;}
.meter-bar { height: 4px; background: #333; flex-grow: 1; position: relative;}
.meter-fill { height: 100%; background: var(--neon-amber); width: 0%; transition: width 1s;}

.btn-execute {
    width: 100%; background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
    padding: 10px; font-family: 'Fira Code', monospace; font-weight: bold; cursor: pointer;
    text-transform: uppercase; transition: 0.3s; margin-top: 15px;
}
.btn-execute:hover { background: var(--neon-cyan); color: #000; }

/* --- FOOTER --- */
.hud-footer {
    border-top: 1px solid var(--text-dim); 
    padding: 15px 20px;
    font-size: 0.8rem; 
    color: var(--text-dim); 
    background: rgba(2, 4, 18, 0.5);
    position: relative; 
    z-index: 20; 
    align-items: center;
    text-align: center;
}

.system-time { color: var(--neon-amber); font-weight: bold; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); z-index: 200;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-window {
    width: 90%; height: 90%; background: #000; border: 1px solid var(--neon-cyan);
    display: flex; flex-direction: column; box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .modal-window { transform: scale(1); }
.modal-header {
    height: 40px; background: rgba(0, 243, 255, 0.1); border-bottom: 1px solid var(--neon-cyan);
    display: flex; justify-content: space-between; align-items: center; padding: 0 15px;
}
.close-btn { background: none; border: none; color: var(--neon-red); cursor: pointer; font-family: 'Fira Code'; }
iframe { flex-grow: 1; border: none; background: #fff; }

/* --- NEW: PROFILE LAYOUT --- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-frame {
    flex-shrink: 0; /* Prevents image from shrinking */
    width: 200px;
    position: relative;
    border: 1px solid var(--text-dim);
    padding: 5px;
    background: rgba(0, 243, 255, 0.05);
}

/* The Decoration Corners for the Image */
.profile-frame::before {
    content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px;
    border-top: 2px solid var(--neon-amber); border-left: 2px solid var(--neon-amber);
}
.profile-frame::after {
    content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px;
    border-bottom: 2px solid var(--neon-amber); border-right: 2px solid var(--neon-amber);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    /* THE CYBERPUNK EFFECT: Grayscale + High Contrast */
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.5s ease;
    mix-blend-mode: luminosity; /* Blends nicely with the dark theme */
}

/* Reveal real color on hover */
.profile-frame:hover .profile-img {
    filter: grayscale(0%) contrast(1) brightness(1);
    mix-blend-mode: normal;
}

.profile-caption {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-align: center;
    margin-top: 5px;
    letter-spacing: 1px;
}

.contact-links a {
    display: flex;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--neon-pink);
}

.contact-links a .material-icons {
    margin-right: 1rem;
    color: var(--neon-pink);
}

.footer-hide {
    color: #020412;
    font-size: 0.1rem;
}

/* Mobile Adjustment */
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack vertically on phone */
        align-items: center;
        text-align: left;
    }
    .profile-frame { width: 150px; }
    .about-terminal { text-align: left; } 
    .modules-grid { grid-template-columns: 1fr; } 
    .system-nav { gap: 20px; font-size: 0.8rem; }
    .hud-header, .hud-footer { text-align: center; }
    .system-time { display: none; }
}