:root {
    --primary-red: #ff0000;
    --dark-red: #440000;
    --bg-black: #050505;
    --terminal-green: #00ff00;
}

html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: 'Courier New', monospace; background-color: var(--bg-black); color: #eee; overflow-x: hidden; }

#matrix { position: fixed; top: 0; left: 0; z-index: -1; opacity: 0.2; }

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; background: rgba(0,0,0,0.9); position: fixed; width: 100%; box-sizing: border-box; z-index: 1000; border-bottom: 1px solid var(--dark-red); }
.nav-logo { height: 25px; margin-right: 10px; mix-blend-mode: screen; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li a { color: white; text-decoration: none; margin-left: 25px; font-size: 0.9em; transition: 0.3s; }
nav ul li a:hover { color: var(--primary-red); }

/* Hero */
#hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.main-logo { width: 130px; margin: 0 auto 20px auto; mix-blend-mode: screen; filter: drop-shadow(0 0 15px var(--primary-red)); }
h1 { font-size: 3.5rem; letter-spacing: 8px; margin: 0; }
.typewriter { color: var(--primary-red); font-size: 1.2rem; }

/* General Sections */
section { padding: 100px 15%; max-width: 1200px; margin: 0 auto; }
h2 { color: var(--primary-red); border-left: 4px solid var(--primary-red); padding-left: 15px; margin-bottom: 40px; }

/* Blog & CV */
.cv-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; background: rgba(15,15,15,0.8); padding: 30px; border: 1px solid #222; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card { background: #111; border: 1px solid #222; border-radius: 4px; overflow: hidden; transition: 0.3s; }
.blog-image { height: 160px; background-size: cover; background-position: center; border-bottom: 1px solid var(--dark-red); }
.blog-content { padding: 20px; }
.read-more { color: var(--primary-red); text-decoration: none; font-weight: bold; cursor: pointer; }

/* Real Terminal Look */
.terminal { background: #000; border: 1px solid var(--dark-red); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.terminal-header { background: #1a1a1a; padding: 10px; display: flex; align-items: center; position: relative; }
.dot { height: 10px; width: 10px; border-radius: 50%; margin-right: 6px; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.title { position: absolute; width: 100%; text-align: center; font-size: 11px; color: #666; left: 0; pointer-events: none; }
.terminal-body { padding: 20px; height: 320px; overflow-y: auto; background: rgba(0,0,0,0.95); }
.input-line { display: flex; align-items: center; margin-top: 10px; }
.prompt { color: var(--primary-red); margin-right: 10px; font-weight: bold; }
#terminal-input { background: transparent; border: none; color: var(--terminal-green); outline: none; width: 100%; font-family: inherit; font-size: 16px; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); }
.modal-content { background: #050505; margin: 5% auto; padding: 40px; border: 1px solid var(--dark-red); width: 80%; max-width: 800px; position: relative; max-height: 85vh; overflow-y: auto; }
.close-modal { position: absolute; right: 20px; top: 20px; color: var(--primary-red); cursor: pointer; font-weight: bold; }