/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --border: #e5e7eb;
  --text: #1f2328;
  --muted: #57606a;
  --accent: #3b82d4;
  --max: 820px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ===== Nav ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

/* ===== Page wrapper ===== */
.page { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}

.btn:hover { opacity: 0.85; text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }

/* ===== Section ===== */
section { padding: 56px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ===== Expertise Pills ===== */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* ===== Post cards ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}

.post-card:hover { border-color: var(--accent); }

.post-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.post-card p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.post-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ===== LinkedIn Feed Placeholder ===== */
.feed-placeholder {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
}

.feed-placeholder .feed-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feed-placeholder h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feed-placeholder p {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 18px;
}

.feed-code {
  background: #f0f2f5;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-family: monospace;
  color: var(--muted);
  text-align: left;
  overflow-x: auto;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== LinkedIn CTA strip ===== */
.linkedin-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.linkedin-strip .li-text { flex: 1; min-width: 200px; }
.linkedin-strip .li-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.linkedin-strip .li-text span { font-size: 13px; color: var(--muted); }

/* ===== Contact form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-detail a {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

form { display: flex; flex-direction: column; gap: 16px; }

label { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 5px; }

input, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
  outline: none;
}

input:focus, textarea:focus { border-color: var(--accent); }

textarea { min-height: 140px; resize: vertical; }

/* ===== Footer ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
