/* ============================================================
   CYBERPUNK / HACKER THEME — green on black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Fira+Code:wght@400;600&display=swap');

:root {
  --c-bg:        #0a0a0a;
  --c-bg-alt:    #0d1117;
  --c-panel:     #0f1a12;
  --c-border:    #1a3a1f;
  --c-green:     #00ff41;
  --c-green-dim: #00cc33;
  --c-green-lo:  #009922;
  --c-cyan:      #00e5ff;
  --c-amber:     #ffb300;
  --c-text:      #b0ffb8;
  --c-text-dim:  #5a8a5e;
  --c-link:      #00ff41;
  --c-link-hov:  #00e5ff;
  --font-mono:   'Fira Code', 'Share Tech Mono', 'Courier New', monospace;
  --scanline:    rgba(0,255,65,0.03);
}

/* ---------- GLOBAL RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- CRT SCANLINES OVERLAY ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline) 0px,
    var(--scanline) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ---------- LAYOUT ---------- */
.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  border-bottom: 1px solid var(--c-border);
  padding: 1.5rem 0 1rem;
  margin-bottom: 2rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-green);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0,255,65,0.5), 0 0 20px rgba(0,255,65,0.2);
  letter-spacing: 0.15em;
  position: relative;
}
.site-title::before {
  content: '> ';
  color: var(--c-green-dim);
}
.site-title::after {
  content: '_';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.lang-switch {
  font-size: 0.85rem;
}
.lang-switch a {
  color: var(--c-amber);
  text-decoration: none;
  border: 1px solid var(--c-amber);
  padding: 0.15em 0.5em;
  border-radius: 2px;
  transition: all 0.2s;
}
.lang-switch a:hover {
  background: var(--c-amber);
  color: var(--c-bg);
}

nav.main-nav {
  margin-top: 0.75rem;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.2rem;
}
nav.main-nav a {
  color: var(--c-green-dim);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.2em 0;
  position: relative;
  transition: color 0.2s, text-shadow 0.2s;
}
nav.main-nav a::before {
  content: '[';
  color: var(--c-text-dim);
  margin-right: 2px;
}
nav.main-nav a::after {
  content: ']';
  color: var(--c-text-dim);
  margin-left: 2px;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--c-green);
  text-shadow: 0 0 6px rgba(0,255,65,0.4);
}

/* ---------- CONTENT ---------- */
.content {
  padding-bottom: 3rem;
}

h1, h2, h3, h4 {
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  text-shadow: 0 0 8px rgba(0,255,65,0.3);
}
h2::before {
  content: '## ';
  color: var(--c-green-lo);
}

h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.5rem;
  color: var(--c-cyan);
  text-shadow: 0 0 6px rgba(0,229,255,0.2);
}
h3::before {
  content: '### ';
  color: var(--c-text-dim);
}

p {
  margin: 0.6rem 0;
}

a {
  color: var(--c-link);
  text-decoration: none;
  border-bottom: 1px dashed var(--c-green-lo);
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
a:hover {
  color: var(--c-link-hov);
  border-color: var(--c-link-hov);
  text-shadow: 0 0 6px rgba(0,229,255,0.3);
}

hr {
  border: none;
  border-top: 1px dashed var(--c-border);
  margin: 2rem 0;
}

code, pre {
  font-family: var(--font-mono);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 3px;
}
code {
  padding: 0.15em 0.35em;
  font-size: 0.9em;
  color: var(--c-green);
}
pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

/* ---------- BLOG POST CARDS ---------- */
.post-entry {
  border: 1px solid var(--c-border);
  background: var(--c-panel);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 3px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.post-entry:hover {
  border-color: var(--c-green-dim);
  box-shadow: 0 0 15px rgba(0,255,65,0.07), inset 0 0 15px rgba(0,255,65,0.03);
}
.post-entry h3 {
  margin-top: 0;
}
.post-date {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}
.post-date::before {
  content: '📅 ';
}

/* ---------- RESUME SECTION ---------- */
.resume-section {
  border-left: 2px solid var(--c-green-lo);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}
.resume-section h3 {
  margin-top: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--c-text-dim);
  line-height: 1.8;
}
.site-footer a {
  color: var(--c-green-dim);
  border-bottom-color: transparent;
}
.site-footer a:hover {
  color: var(--c-green);
}

.gpg-badge {
  display: inline-block;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  padding: 0.2em 0.6em;
  border-radius: 2px;
  font-size: 0.85em;
  color: var(--c-green-dim);
}

/* ---------- GLITCH EFFECT ON TITLE ---------- */
@keyframes glitch {
  0%   { text-shadow: 2px 0 var(--c-cyan), -2px 0 #ff0040; }
  20%  { text-shadow: -2px 0 var(--c-cyan), 2px 0 #ff0040; }
  40%  { text-shadow: 2px 0 var(--c-cyan), -2px 0 #ff0040; }
  60%  { text-shadow: 0 0 var(--c-cyan), 0 0 #ff0040; }
  80%  { text-shadow: -1px 0 var(--c-cyan), 1px 0 #ff0040; }
  100% { text-shadow: 0 0 10px rgba(0,255,65,0.5), 0 0 20px rgba(0,255,65,0.2); }
}
.site-title:hover {
  animation: glitch 0.3s ease-in-out;
}

/* ---------- TYPING PROMPT DECORATION ---------- */
.prompt {
  color: var(--c-green-dim);
}
.prompt::before {
  content: 'artu@sdf:~$ ';
  color: var(--c-text-dim);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .site-wrapper { padding: 0.5rem 1rem; }
  .site-title { font-size: 1.3rem; }
  nav.main-nav a { font-size: 0.82rem; }
  h2 { font-size: 1.15rem; }
}
