/* ------------------------------------------------------------------
   patrikperkovic.com — green phosphor overrides for hugo-theme-terminal
   ------------------------------------------------------------------ */

:root {
  --background: #0b0f0b;
  --foreground: #cfe8cf;
  --accent: #3ee66b;
  --accent-dim: #1f7a3a;
  --muted: #7fa082;
  --panel: #101710;
  --line-height: 1.6em;
}

body {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(62, 230, 107, 0.07), transparent 65%);
  background-attachment: fixed;
}

/* faint scanlines — off for anyone who'd rather not */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

::selection { background: var(--accent); color: var(--background); }

/* ---------------- header ---------------- */
.header__logo .logo {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  padding: 5px 12px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(62, 230, 107, 0.4);
}
.header__logo .logo::after {
  content: "\2588";
  margin-left: 0.4ch;
  animation: blink 1.1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .header__logo .logo::after { animation: none; }
}
.header__inner { margin-bottom: 6px; }
/* the theme's tape-fill after the logo — dial it back to a dim scanline */
.header__logo::after {
  background: repeating-linear-gradient(
    90deg,
    var(--accent-dim), var(--accent-dim) 2px,
    transparent 0, transparent 10px
  );
  opacity: 0.55;
  align-self: stretch;
  margin: 0 10px;
}
.navigation-menu__inner li a { color: var(--muted); }
.navigation-menu__inner li a:hover { color: var(--accent); }

/* ---------------- section headings ---------------- */
.sect {
  margin: 60px 0 22px;
  color: var(--accent);
  font-weight: 700;
  scroll-margin-top: 20px;
}
section { scroll-margin-top: 24px; }

.term__prompt {
  color: var(--accent-dim);
  margin-right: 0.5ch;
  user-select: none;
}

/* ---------------- terminal card ---------------- */
.term {
  margin: 10px 0 0;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(62, 230, 107, 0.06), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #16211750;
  border-bottom: 1px solid var(--accent-dim);
}
.term__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex: none;
}
.term__dot:nth-child(1) { background: #e06c6c; }
.term__dot:nth-child(2) { background: #e0c46c; }
.term__dot:nth-child(3) { background: var(--accent); }
.term__title {
  margin-left: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.term__body { padding: 18px 20px 22px; }
.term__line { margin: 18px 0 8px; }
.term__body > .term__line:first-child { margin-top: 0; }
.term__out p { margin: 12px 0; }
.term__out p:first-child { margin-top: 8px; }

.term__cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .term__cursor { animation: none; }
}

/* whoami key/value block */
.whoami {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 18px;
  margin: 6px 0 4px;
  padding-left: 2ch;
}
.whoami dt { color: var(--muted); }
.whoami dt::after { content: ":"; }
.whoami dd { margin: 0; color: var(--foreground); }
.whoami dd:nth-of-type(1) { color: var(--accent); font-weight: 700; }
.whoami__role { font-weight: 700; }
.whoami__co { font-weight: 400; color: var(--foreground); }

/* ---------------- skills ---------------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px 34px;
}
.skills__name {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 3px 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--foreground);
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  background: rgba(62, 230, 107, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}
.tag:hover { background: rgba(62, 230, 107, 0.16); color: var(--accent); }
.tags--sm .tag { font-size: 0.75rem; }

/* ---------------- certs ---------------- */
.certs { list-style: none; margin: 0; padding: 0; }
.certs__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(62, 230, 107, 0.18);
}
.certs__item:last-child { border-bottom: 0; }
.certs__tick { color: var(--accent); flex: none; }
.certs__name { flex: 1 1 auto; }
.certs__year { color: var(--muted); font-size: 0.85rem; flex: none; }
.certs__where { color: var(--muted); white-space: nowrap; }

/* ---------------- experience timeline ---------------- */
.subsect {
  margin: 44px 0 16px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--accent-dim);
}
.org { position: relative; padding: 0 0 34px 24px; }
.org:last-child { padding-bottom: 0; }
.org::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 8px;
  width: 9px; height: 9px;
  background: var(--background);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.org__name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(62, 230, 107, 0.25);
}
.org__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted);
}
.org__loc::before { content: ":: "; color: var(--accent-dim); }

.roles { list-style: none; margin: 16px 0 0; padding: 0; }
.job { position: relative; padding: 0 0 0 18px; margin-bottom: 20px; }
.job:last-child { margin-bottom: 0; }
.job::before {
  content: "\2514\2500";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dim);
}
.job__role {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--foreground);
}
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}
.job__loc::before { content: ":: "; color: var(--accent-dim); }
.job__bullets { margin: 9px 0 0; padding-left: 1.2em; }
.job__bullets li { margin: 5px 0; font-size: 0.92rem; }
.job__bullets li::marker { color: var(--accent-dim); }

.before-it {
  margin: 30px 0 0;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 2px solid var(--accent-dim);
  background: rgba(62, 230, 107, 0.035);
}

/* ---------------- off-duty cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  padding: 18px 20px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  background: var(--panel);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card__name { margin: 0 0 10px; font-size: 1rem; color: var(--accent); }
.card__blurb { margin: 0 0 12px; font-size: 0.9rem; color: var(--foreground); }
.card__link { margin: 0 0 14px; font-size: 0.85rem; }
.card__link a { display: inline-block; }
.card__link a { text-decoration: none; border-bottom: 1px dashed var(--accent-dim); }
.card__link a:hover { border-bottom-style: solid; }

/* ---------------- contact ---------------- */
.contact__intro { margin-top: 0; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 8px 0;
  align-items: baseline;
}
.contact__key { color: var(--muted); }
.contact__key::after { content: ":"; }
.contact__note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

/* ---------------- footer ---------------- */
.footer { border-top: 1px dashed rgba(62, 230, 107, 0.2); }
.footer__inner .copyright { color: var(--muted); }

/* ---------------- small screens ---------------- */
@media (max-width: 640px) {
  .whoami { grid-template-columns: 1fr; gap: 0 0; padding-left: 0; }
  .whoami dt { margin-top: 10px; }
  .contact li { grid-template-columns: 1fr; gap: 2px; }
  .term__body { padding: 16px 14px 20px; }
  .sect { margin: 48px 0 20px; }
}
