/* ============================================================
   kopiko61.eu — portfolio stylesheet
   Dark terminal-inspired theme, no external dependencies
   ============================================================ */

:root {
  --bg: #0b0f14;
  --bg-alt: #0f151d;
  --panel: #121a24;
  --border: #1f2b3a;
  --text: #d7e1ec;
  --muted: #8696a8;
  --accent: #34e0a1;
  --accent-dim: #1f8f68;
  --danger: #ff6b6b;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.accent { color: var(--accent); }
.prompt { color: var(--accent); font-family: var(--mono); }
.hash { color: var(--accent-dim); margin-right: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600;
  color: var(--text); text-decoration: none; letter-spacing: 0.02em;
}
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #06241a !important;
  font-weight: 600; text-decoration: none;
  padding: 12px 26px; border-radius: 6px; border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 0.95rem;
  cursor: pointer; transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(52, 224, 161, 0.25); }
.btn-ghost { background: transparent; color: var(--accent) !important; }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.kicker {
  font-family: var(--mono); color: var(--accent);
  letter-spacing: 0.18em; font-size: 0.85rem; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px;
}
.tagline {
  font-size: 1.25rem; color: var(--muted); max-width: 640px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------- terminal window ---------- */
.terminal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 640px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.terminal-bar {
  display: flex; gap: 8px; padding: 12px 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.terminal-bar span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border);
}
.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body {
  padding: 20px 22px;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
}
.terminal-body code { font-family: inherit; }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- stats strip ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding: 28px 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--mono); font-size: 1.5rem;
  color: var(--accent); letter-spacing: -0.01em;
}
.stat span { font-size: 0.82rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 {
  font-family: var(--mono); font-size: 1.6rem;
  margin-bottom: 36px; letter-spacing: -0.01em;
}
.section p + p { margin-top: 16px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-4px); }
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--muted); }

.tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.tags li {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); background: rgba(52, 224, 161, 0.08);
  border: 1px solid rgba(52, 224, 161, 0.25);
  padding: 3px 9px; border-radius: 99px;
}

.service h3 {
  font-family: var(--mono); color: var(--accent);
  font-size: 1rem; margin-bottom: 10px;
}
.service p { color: var(--muted); font-size: 0.95rem; }

/* ---------- experience timeline ---------- */
.timeline { border-left: 2px solid var(--border); padding-left: 28px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-when {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 4px;
}
.tl-what h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-what p { color: var(--muted); font-size: 0.95rem; }

/* ---------- certifications ---------- */
.cert-list { list-style: none; }
.cert-list li {
  padding: 14px 0 14px 30px; position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.97rem;
}
.cert-list li::before {
  content: "✓"; position: absolute; left: 4px;
  color: var(--accent); font-family: var(--mono);
}
.cert-list strong { color: var(--text); }
.cert-note {
  margin-top: 18px; font-size: 0.88rem; color: var(--muted);
  font-style: italic;
}

/* ---------- contact ---------- */
.contact-email {
  font-family: var(--mono); font-size: 1.15rem; margin: 18px 0 36px;
}
.contact-email a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.contact-email a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer p { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
}
