/* stevemakuch.com, shared styles */
:root {
  --bg: #0b0e14;
  --bg-soft: #11151f;
  --card: #161b28;
  --card-hover: #1c2333;
  --border: #242c3f;
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --accent: #4f8cff;
  --accent-2: #38d9a9;
  --radius: 14px;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero .eyebrow {
  color: var(--accent-2); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  margin: 14px 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a7af0; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 64px; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.stat .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .num em { font-style: normal; color: var(--accent-2); }
.stat .label { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Sections */
section.block { padding: 56px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 1.8rem; letter-spacing: -0.02em; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 620px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: all 0.15s ease; display: flex; flex-direction: column;
}
.card:hover { background: var(--card-hover); border-color: #33405c; transform: translateY(-2px); }
.card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2);
  background: rgba(56, 217, 169, 0.1); padding: 4px 10px; border-radius: 20px;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.card .card-link { margin-top: 16px; font-weight: 600; font-size: 0.9rem; }

/* Case studies (Past Work) */
.case {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; margin-bottom: 28px;
}
.case-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.case h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.case .role { color: var(--muted); font-size: 0.88rem; }
.case .company { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.case p { color: var(--muted); margin-bottom: 14px; }
.case ul { list-style: none; margin: 0 0 18px; }
.case ul li { color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.case ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }
.case .metrics { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.case .metric {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-size: 0.88rem;
}
.case .metric b { display: block; font-size: 1.15rem; color: var(--accent-2); }
.case .visit { font-weight: 600; font-size: 0.92rem; }
.disclaimer { color: var(--muted); font-size: 0.8rem; margin-top: 24px; opacity: 0.75; }

/* Bio */
.bio-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; padding: 72px 0; }
.bio-photo {
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card), var(--card-hover));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9rem; text-align: center; padding: 20px;
  position: sticky; top: 90px;
}
.bio-photo img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }
.bio-content h1 { font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 20px; }
.bio-content p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.bio-content p strong { color: var(--text); }

/* Timeline (About) */
.timeline { border-left: 2px solid var(--border); margin: 32px 0 32px 8px; padding-left: 28px; }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: ""; position: absolute; left: -35px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.tl-item .when { color: var(--accent-2); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.tl-item h4 { font-size: 1.05rem; margin: 2px 0; }
.tl-item .where { color: var(--muted); font-size: 0.9rem; }

/* Skill pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 0.85rem; color: var(--muted);
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 56px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.88rem; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* Chatbot */
#chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  font-size: 1.5rem; box-shadow: 0 8px 24px rgba(79, 140, 255, 0.4);
  transition: transform 0.15s ease;
}
#chat-fab:hover { transform: scale(1.08); }
#chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 100;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#chat-panel.open { display: flex; }
.chat-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; background: var(--card);
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.chat-head b { font-size: 0.95rem; }
.chat-head small { color: var(--muted); display: block; font-size: 0.75rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.msg.bot { background: var(--card); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.chat-suggest button {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  border-radius: 16px; padding: 6px 12px; font-size: 0.78rem; cursor: pointer;
}
.chat-suggest button:hover { color: var(--text); border-color: var(--accent); }
.chat-input { display: flex; border-top: 1px solid var(--border); background: var(--card); }
.chat-input input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); padding: 14px 16px; font-size: 0.9rem;
}
.chat-input button {
  background: none; border: none; color: var(--accent);
  font-weight: 700; padding: 0 18px; cursor: pointer; font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .bio-wrap { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 280px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 48px; }
}
