/* dtrade84.github.io — cybersecurity portfolio theme */

:root {
  --bg: #0a0e14;
  --bg-2: #0f151f;
  --card: #111927;
  --border: #1e2a3d;
  --text: #c9d4e3;
  --muted: #7d8ca3;
  --accent: #00e676;
  --accent-dim: #00b35c;
  --amber: #ffb454;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

.prompt { color: var(--accent); font-family: var(--mono); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-family: var(--mono); color: var(--text); text-decoration: none; font-weight: 700; }
.nav-links { display: flex; gap: 1.2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-family: var(--mono); }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 1.1rem; }

/* ---- hero ---- */
.hero { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem 3rem; text-align: center; }

.terminal {
  text-align: left;
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.08);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.terminal-title { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.terminal-body { padding: 1.2rem 1.4rem; font-family: var(--mono); font-size: 0.95rem; }
.terminal-body p { margin-bottom: 0.55rem; }
.typed, .typed-2 { color: var(--accent); }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

.hero h1 { font-size: 2.6rem; letter-spacing: -0.5px; color: #fff; }
.tagline { font-family: var(--mono); color: var(--accent); margin: 0.6rem 0 0.3rem; font-size: 1.05rem; }
.location { color: var(--muted); font-size: 0.95rem; }
.hero-cta { margin-top: 1.8rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.7rem 1.6rem;
  background: var(--accent); color: #04120a;
  font-family: var(--mono); font-weight: 700; text-decoration: none;
  border-radius: 6px; border: 1px solid var(--accent);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(0, 230, 118, 0.1); }

/* ---- sections ---- */
main { max-width: 860px; margin: 0 auto; padding: 0 1.5rem 3rem; }
section { margin-bottom: 3.5rem; }
section h2 { font-family: var(--mono); font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
section p { margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.fineprint { color: var(--muted); font-size: 0.85rem; }
a { color: var(--accent); }
strong { color: #fff; }

/* ---- cards & grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.4rem; margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent-dim); }
.card h3 { font-family: var(--mono); font-size: 1.05rem; color: #fff; margin-bottom: 0.8rem; }
.card p:last-child { margin-bottom: 0; }
a.card.link-card { text-decoration: none; color: var(--text); display: block; }
.card-tag {
  display: inline-block; margin-top: 0.8rem; padding: 0.15rem 0.7rem;
  border: 1px solid var(--accent-dim); border-radius: 20px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent);
}
.card.placeholder { border-style: dashed; }
.card.placeholder:hover { border-color: var(--border); }

/* ---- about stats ---- */
.stats { display: flex; gap: 1.2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 140px; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem;
}
.stat-num { display: block; font-family: var(--mono); font-size: 2rem; color: var(--accent); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---- certs ---- */
.cert-list { list-style: none; }
.cert-list li { margin-bottom: 0.9rem; }
.badge {
  display: inline-block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem;
  text-align: center; border-radius: 50%; font-size: 0.85rem; margin-right: 0.6rem;
  font-family: var(--mono);
}
.badge.done { background: rgba(0, 230, 118, 0.15); color: var(--accent); border: 1px solid var(--accent-dim); }
.badge.wip { background: rgba(255, 180, 84, 0.12); color: var(--amber); border: 1px solid var(--amber); }
.progress { height: 6px; background: var(--bg); border-radius: 3px; margin-top: 0.5rem; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 3px; }

/* ---- methodology ---- */
.killchain { list-style: none; counter-reset: phase; margin-bottom: 1.5rem; }
.killchain li {
  counter-increment: phase; position: relative;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 0.7rem;
}
.killchain li::before {
  content: "0" counter(phase);
  position: absolute; left: 1rem; top: 0.9rem;
  font-family: var(--mono); color: var(--accent); font-weight: 700;
}
.killchain strong { color: var(--accent); }
.tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.tool {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 0.35rem 0.8rem; border-radius: 6px; color: var(--text);
}
.tool em { font-style: normal; color: var(--muted); font-size: 0.75rem; margin-left: 0.3rem; }

/* ---- lab list / contact ---- */
.lab-list { list-style: none; }
.lab-list li { margin-bottom: 0.7rem; padding-left: 1.2rem; position: relative; }
.lab-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.contact-card ul { list-style: none; }
.contact-card li { margin-bottom: 0.6rem; font-family: var(--mono); }

/* ---- footer ---- */
footer { text-align: center; padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--border); font-family: var(--mono); }
footer p { margin-bottom: 0.5rem; }

/* ---- cheat sheet page ---- */
.cheatsheet h1 { font-size: 1.8rem; }
.cheatsheet h2 { font-size: 1.2rem; margin-top: 2rem; }
.cheatsheet pre {
  background: #05080d; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.1rem; overflow-x: auto; font-size: 0.85rem; margin: 0.8rem 0 1.5rem;
  font-family: var(--mono); color: var(--text); white-space: pre-wrap;
}
.cheatsheet code { font-family: var(--mono); }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-family: var(--mono); }

/* ---- responsive ---- */
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2);
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); gap: 0.9rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav { position: sticky; }
}
