:root{
  --bg: #0D1117;
  --panel: #161B22;
  --line: #1E2631;
  --text: #C9D1D9;
  --muted: #8B949E;
  --accent: #58A6FF;
  --accent-2: #3FB950;
  --error: #FF7B72;
  --shadow: 0 0 12px rgba(88,166,255,.25), inset 0 0 0 1px rgba(88,166,255,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:'Fira Code','JetBrains Mono',monospace;font-size:16px;line-height:1.7}
a{color:var(--accent);text-decoration:none;border-bottom:1px dotted rgba(88,166,255,.45);transition:color .2s ease, filter .2s ease}
a:hover{color:var(--accent);filter:drop-shadow(0 0 6px rgba(63,185,80,.35))}
.container{max-width:1100px;margin:0 auto;padding:1.25rem 1rem}

.site-header{position:sticky;top:0;background:linear-gradient(180deg,rgba(13,17,23,.95),rgba(16,27,34,.85));backdrop-filter:blur(6px);border-bottom:1px solid var(--line);z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between}
.brand{color:var(--text);font-weight:700;letter-spacing:.5px;border:none}
.site-header nav a{margin-left:1rem;color:var(--muted);text-transform:lowercase}
.site-header nav a:hover{color:var(--text)}

.content{padding-top:1rem;padding-bottom:3rem}

/* Terminal hero */
.hero{background:linear-gradient(180deg,#0D1117 0%,#101820 100%);border:1px solid var(--line);box-shadow:var(--shadow);padding:1rem 1rem 0.5rem;border-radius:10px;margin-bottom:1.5rem}
.hero .window-chrome{display:flex;gap:.5rem;margin-bottom:.5rem}
.hero .dot{width:10px;height:10px;border-radius:50%;box-shadow:0 0 4px rgba(88,166,255,.35)}
.hero .dot:nth-child(1){background:var(--accent)}
.hero .dot:nth-child(2){background:var(--accent-2)}
.hero .dot:nth-child(3){background:var(--muted)}
.hero pre{white-space:pre-wrap; margin:0; font-size:1rem; color:var(--text)}
.cursor{display:inline-block;width:10px;background:var(--accent);margin-left:4px;animation:blink 1s step-start infinite}
@keyframes blink{50%{opacity:0}}
.cli{display:flex;align-items:center;margin-top:0.75rem;padding:0.5rem;border-top:1px dashed var(--line)}
.prompt{color:var(--accent);margin-right:.5rem}
.cli input{flex:1;background:transparent;border:none;outline:none;color:var(--text);font:inherit}

/* Panels */
.panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;margin-bottom:1.25rem}
.panel header{border-bottom:1px solid var(--line);padding:.75rem 1rem;color:var(--muted);text-transform:lowercase}
.panel .body{padding:1rem}

.list{list-style:none;margin:0;padding:0}
.list li{padding:.35rem 0;border-bottom:1px dashed rgba(88,166,255,.12)}
.list li:last-child{border-bottom:none}

.meta{color:var(--muted);font-size:.9rem}
.lead{font-size:1.05rem;color:var(--text)}
.btn{display:inline-block;margin-top:.5rem;margin-right:.5rem;padding:.45rem .8rem;border:1px solid var(--line);border-radius:8px;color:var(--text);background:rgba(88,166,255,.08);transition:background .2s ease, filter .2s ease}
.btn:hover{background:rgba(88,166,255,.16);filter:drop-shadow(0 0 6px rgba(63,185,80,.35))}

pre, code{background:#0E1621;border:1px solid var(--line);border-radius:6px;padding:.2rem .35rem}
pre{padding:1rem; overflow:auto}

/* Grid helpers */
.grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:820px){ .grid-2{grid-template-columns:1fr 1fr} .grid-3{grid-template-columns:repeat(3,1fr)} }

.site-footer{border-top:1px solid var(--line);padding:2rem 0;background:linear-gradient(180deg,rgba(11,12,16,.85),rgba(11,12,16,.98))}
.footer-columns{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.links a{margin-left:1rem}

/* Post/Project styles */
.post-header h1{margin-bottom:.25rem}
.post-body{margin-top:1rem}

/* Badges */
.badge{display:inline-block;border:1px solid var(--line);padding:.2rem .5rem;border-radius:6px;margin:.15rem 0.25rem;background:rgba(63,185,80,.08);color:var(--text)}

/* --- mobile/responsive fixes for preformatted blocks --- */
.panel .body pre {
  white-space: pre-wrap;      /* allow wrapping */
  word-break: break-word;     /* break long words */
  overflow-wrap: anywhere;    /* break very long URLs */
}

/* if a link appears inside a pre, let it break aggressively */
.panel .body pre a {
  word-break: break-all;
}

/* small-screen sizing tweaks */
@media (max-width: 560px) {
  .panel .body pre { font-size: 0.95rem; }
  .container { padding-left: 0.8rem; padding-right: 0.8rem; }
}

/* Alternative targeted rule if you prefer only affecting the two panels:
#certs pre, #contact pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
*/
