:root {
  --bg: #1b1d22;
  --bg-soft: #23272f;
  --panel: #262b33;
  --card: #2a3039;
  --text: #eceff4;
  --muted: #b6c0ce;
  --line: #3f4a59;
  --accent: #9bcaf6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 450px at 85% -10%, rgba(155, 202, 246, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 68%);
}

h1, h2, h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

a { color: var(--accent); text-decoration: none; }

.container { width: min(1080px, 92vw); margin: 0 auto; }
.hero { padding: 20px 0 50px; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand { color: var(--text); font-weight: 700; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); }

.hero-content { padding-top: 58px; }
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #222;
}

main { padding-bottom: 34px; }

.panel {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(38, 43, 51, 0.95), rgba(35, 39, 47, 0.95));
}

.cert-grid,
.project-list,
.social-list,
.article-grid {
  display: grid;
  gap: 14px;
}

.cert-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.project-list { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.social-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(42, 48, 57, 0.82);
}

.cert-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: #232730;
}

.chip {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.meta-row {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0 12px;
}

.read-more {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.social-card { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 202, 246, 0.28);
  color: #eaf3ff;
  flex: 0 0 36px;
}

.social-icon i { font-size: 20px; line-height: 1; }

.article-layout {
  width: min(860px, 92vw);
  margin: 0 auto;
  padding: 42px 0 56px;
}

.article-header {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.article-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.article-byline { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.article-content h2 { margin-top: 24px; }
.article-content p, .article-content li { font-size: 1.04rem; }

.article-content img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 0;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo { width: min(260px, 80vw); }
  .project-list { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  nav { flex-direction: column; align-items: flex-start; }
  .hero-content { padding-top: 40px; }
  .panel { padding: 14px; }
  .cert-card img { height: auto; object-fit: contain; }
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .read-more {
  margin-top: auto;
}
