/* ============================================================
   AURORA THEME  —  orhundalabasmaz.com
   ============================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:          #080c14;
  --bg-alt:      #0c111d;
  --surface:     #111827;
  --surface-2:   #1a2235;
  --border:      rgba(99, 102, 241, 0.18);
  --border-hi:   rgba(6, 182, 212, 0.35);

  --indigo:      #6366f1;
  --indigo-l:    #818cf8;
  --indigo-d:    #4f46e5;
  --cyan:        #06b6d4;
  --cyan-l:      #22d3ee;
  --pink:        #ec4899;
  --emerald:     #10b981;

  --text:        #f1f5f9;
  --text-2:      #cbd5e1;
  --text-3:      #94a3b8;
  --text-4:      #64748b;

  --glow-i:      rgba(99, 102, 241, 0.35);
  --glow-c:      rgba(6, 182, 212, 0.25);

  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --r-xs:  4px;
  --r-sm:  8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t:    0.25s;
  --t-md: 0.38s;
  --t-lg: 0.6s;

  --nav-h: 64px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--cyan-l); }
button { cursor: pointer; font-family: var(--font); }

/* ── AMBIENT BACKGROUND ─────────────────────────────────────── */
.bg-effects {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.1;
  animation: blobDrift 22s ease-in-out infinite alternate;
}
.bg-blob-1 {
  width: 700px; height: 700px; top: -200px; left: -150px;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
}
.bg-blob-2 {
  width: 550px; height: 550px; bottom: -200px; right: -100px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation-delay: -11s; opacity: 0.07;
}
.bg-blob-3 {
  width: 400px; height: 400px; top: 50%; right: 25%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation-delay: -5s; opacity: 0.05;
}
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.06); }
  66%  { transform: translate(-25px, 20px) scale(0.94); }
  100% { transform: translate(15px, -15px) scale(1.03); }
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ── GLASSMORPHISM CARD ─────────────────────────────────────── */
.glass {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.glass-hover {
  transition:
    border-color var(--t) var(--ease),
    box-shadow   var(--t) var(--ease),
    transform    var(--t) var(--ease),
    background   var(--t) var(--ease);
}
.glass-hover:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 1px var(--border-hi), 0 0 40px var(--glow-i), 0 24px 64px rgba(0,0,0,0.35);
  transform: translateY(-4px);
  background: rgba(17, 24, 39, 0.85);
}

/* ── GRADIENT TEXT ──────────────────────────────────────────── */
.grad {
  background: linear-gradient(135deg, var(--indigo-l) 0%, var(--cyan) 55%, var(--cyan-l) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px;
  transition: all var(--t) var(--ease);
  cursor: pointer; border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%);
  color: #fff; box-shadow: 0 0 24px var(--glow-i);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 0 48px var(--glow-i), 0 10px 30px rgba(0,0,0,0.3);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text); border-color: var(--border-hi);
  background: rgba(6, 182, 212, 0.07); transform: translateY(-2px);
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--indigo-l);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 22px; height: 1px; background: var(--indigo-l);
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px;
}
.section-sub { color: var(--text-3); font-size: 17px; max-width: 540px; }

/* ── SKILL TAGS ─────────────────────────────────────────────── */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-tag {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 100px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(17, 24, 39, 0.8); border: 1px solid var(--border);
  transition: all var(--t) var(--ease); cursor: default; user-select: none;
}
.skill-tag:hover {
  color: var(--cyan); border-color: var(--border-hi);
  background: rgba(6, 182, 212, 0.06);
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(6,182,212,0.12);
}
.skill-tag.hi {
  color: var(--indigo-l); border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.07);
}
.skill-tag.hi:hover {
  color: var(--text); border-color: var(--indigo-l);
  background: rgba(99,102,241,0.12); box-shadow: 0 4px 14px var(--glow-i);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity var(--t-lg) var(--ease-out), transform var(--t-lg) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.26s; }
.reveal-d4 { transition-delay: 0.34s; }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999; height: var(--nav-h);
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  height: 100%; display: flex;
  align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center;
}
.nav-brand .np { color: var(--indigo-l); }
.nav-brand .na { color: var(--text-4); }
.nav-brand .nh { color: var(--cyan); }
.nav-brand .ns { color: var(--text-3); }
.nav-cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--indigo-l); margin-left: 3px;
  border-radius: 1px; animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; font-size: 14px; font-weight: 500;
  color: var(--text-3); border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(99,102,241,0.09); }
.nav-link.active { color: var(--indigo-l); background: rgba(99,102,241,0.12); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-3); border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--nav-h) 24px 72px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

/* Avatar */
.hero-avatar-wrap {
  width: 132px; height: 132px; margin: 0 auto 36px;
  position: relative; animation: float 7s ease-in-out infinite;
}
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--indigo), var(--cyan), var(--pink), var(--indigo));
  animation: spin 6s linear infinite;
  filter: blur(1px); opacity: 0.85;
}
.hero-avatar-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: center top;
  z-index: 1; border: 3px solid var(--bg);
}

/* Hero text */
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--indigo-l);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.15s forwards;
}
.hero-name {
  font-size: clamp(44px, 9vw, 82px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 16px;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.3s forwards;
}
.hero-role {
  font-size: clamp(16px, 2.5vw, 21px); color: var(--text-3);
  font-weight: 400; margin-bottom: 24px; min-height: 1.5em;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.48s forwards;
}
.typing-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--cyan); vertical-align: middle; margin-left: 2px;
  animation: blink 1s step-end infinite; border-radius: 1px;
}
.hero-desc {
  font-size: 17px; color: var(--text-3); max-width: 540px;
  margin: 0 auto 36px; line-height: 1.75;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.64s forwards;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 44px;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.80s forwards;
}
.hero-socials {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeInUp var(--t-lg) var(--ease-out) 0.96s forwards;
}
.social-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); color: var(--text-3); font-size: 16px;
  transition: all var(--t) var(--ease); text-decoration: none;
}
.social-btn:hover {
  color: var(--text); border-color: var(--border-hi);
  background: rgba(6,182,212,0.08);
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(6,182,212,0.15);
}

/* ════════════════════════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card { padding: 28px 20px; text-align: center; }
.stat-value {
  font-size: 38px; font-weight: 900; letter-spacing: -0.04em;
  line-height: 1; display: block; margin-bottom: 6px;
}
.stat-label {
  font-size: 12px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   POST CARDS (HOMEPAGE)
   ════════════════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
a.post-card {
  padding: 28px; display: flex; flex-direction: column; height: 100%;
  color: var(--text); text-decoration: none;
}
.post-card-date {
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
  letter-spacing: 0.07em; margin-bottom: 10px; text-transform: uppercase;
}
.post-card-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  line-height: 1.35; margin-bottom: 10px;
  transition: color var(--t) var(--ease);
}
a.post-card:hover .post-card-title { color: var(--indigo-l); }
.post-card-summary {
  font-size: 14px; color: var(--text-3); line-height: 1.65;
  flex: 1; margin-bottom: 20px;
}
.post-card-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--indigo-l);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
a.post-card:hover .post-card-cta { gap: 9px; color: var(--cyan); }

/* ════════════════════════════════════════════════════════════
   POSTS LIST PAGE
   ════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 120px 0 56px;
}
.posts-feed { display: grid; gap: 16px; padding-bottom: 96px; }

a.feed-card {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px; padding: 24px 28px;
  color: var(--text); text-decoration: none;
}
.feed-date {
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
  letter-spacing: 0.07em; margin-bottom: 6px; text-transform: uppercase;
}
.feed-title {
  font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
  transition: color var(--t) var(--ease);
}
a.feed-card:hover .feed-title { color: var(--indigo-l); }
.feed-summary { font-size: 14px; color: var(--text-3); line-height: 1.55; }
.feed-arrow {
  font-size: 20px; color: var(--text-4);
  transition: all var(--t) var(--ease); flex-shrink: 0;
}
a.feed-card:hover .feed-arrow { color: var(--indigo-l); transform: translateX(5px); }

.pagination {
  display: flex; justify-content: center; gap: 12px; padding: 8px 0 80px;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE / SINGLE PAGE
   ════════════════════════════════════════════════════════════ */
.article-hero {
  padding: 120px 0 48px; text-align: center;
}
.article-date {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  color: var(--indigo-l); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.article-title {
  font-size: clamp(26px, 5vw, 50px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  max-width: 820px; margin: 0 auto;
}
.article-body {
  max-width: 760px; margin: 0 auto;
  padding: 8px 24px 96px;
}

/* Prose */
.article-body h2 {
  font-size: 24px; font-weight: 700; margin: 52px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.article-body h3 {
  font-size: 17px; font-weight: 700; margin: 36px 0 10px;
  color: var(--indigo-l);
  padding-left: 14px; border-left: 2px solid var(--indigo);
}
.article-body h4 {
  font-size: 14px; font-weight: 600; margin: 20px 0 6px;
  color: var(--text-2); font-family: var(--mono); letter-spacing: 0.04em;
}
.article-body p {
  color: var(--text-2); font-size: 16px; line-height: 1.82;
  margin-bottom: 20px;
}
.article-body ul { margin-bottom: 20px; }
.article-body ul li {
  color: var(--text-2); font-size: 15px; line-height: 1.7;
  padding: 3px 0 3px 22px; position: relative;
}
.article-body ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--indigo-l); font-size: 11px; top: 7px;
}
.article-body ol { counter-reset: ol; margin-bottom: 20px; }
.article-body ol li {
  color: var(--text-2); font-size: 15px; line-height: 1.7;
  padding: 3px 0 3px 28px; position: relative;
  counter-increment: ol;
}
.article-body ol li::before {
  content: counter(ol) '.';
  position: absolute; left: 0; color: var(--indigo-l);
  font-family: var(--mono); font-size: 12px; font-weight: 600; top: 5px;
}
.article-body a {
  color: var(--cyan); border-bottom: 1px solid rgba(6,182,212,0.3);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.article-body a:hover { color: var(--cyan-l); border-color: var(--cyan); }
.article-body code {
  font-family: var(--mono); font-size: 13px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.22);
  border-radius: var(--r-xs); padding: 2px 6px; color: var(--indigo-l);
}
.article-body pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px 24px;
  overflow-x: auto; margin-bottom: 24px;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
}
.article-body pre code {
  background: none; border: none; padding: 0; color: var(--text-2);
}
.article-body blockquote {
  border-left: 3px solid var(--indigo);
  padding: 14px 20px; background: rgba(99,102,241,0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 28px 0;
}
.article-body blockquote p { color: var(--text-3); font-style: italic; margin: 0; }
.article-body hr {
  border: none; border-top: 1px solid var(--border); margin: 44px 0;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-2); }
.article-body img {
  border-radius: var(--r-md); border: 1px solid var(--border);
  margin: 28px auto; max-height: 520px;
  width: auto; object-fit: cover;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px;
  font-size: 14px;
}
.article-body th {
  padding: 10px 16px; text-align: left; font-weight: 600;
  color: var(--text-2); border-bottom: 2px solid var(--border);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-body td {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-3); font-size: 14px;
}
.article-body tr:hover td { background: rgba(99,102,241,0.03); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0; text-align: center;
}
.footer-inner {
  font-family: var(--mono); font-size: 12px; color: var(--text-4);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.footer-inner a { color: var(--text-3); }
.footer-inner a:hover { color: var(--indigo-l); }
.footer-sep { color: var(--text-4); }

/* ════════════════════════════════════════════════════════════
   404
   ════════════════════════════════════════════════════════════ */
.not-found {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: var(--nav-h) 24px 24px;
}
.nf-code {
  font-size: 120px; font-weight: 900; letter-spacing: -0.05em;
  line-height: 1; margin-bottom: 12px;
}
.nf-title {
  font-size: 22px; font-weight: 700; color: var(--text-2); margin-bottom: 10px;
}
.nf-text { color: var(--text-3); font-size: 16px; margin-bottom: 36px; }

/* ════════════════════════════════════════════════════════════
   SINGLE-PAGE SECTIONS
   ════════════════════════════════════════════════════════════ */
.sp-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.sp-section-last { padding-bottom: 120px; }

/* External link in nav */
.nav-ext { color: var(--text-4) !important; }
.nav-ext:hover { color: var(--text) !important; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}
.about-text p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--mono);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.about-chip i { color: var(--indigo-l); font-size: 12px; }

/* Credential cards */
.cred-stack { display: flex; flex-direction: column; gap: 10px; }
.cred-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(17,24,39,0.65);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t) var(--ease);
}
.cred-card:hover {
  border-color: var(--border-hi);
  background: rgba(6,182,212,0.05);
  transform: translateX(5px);
}
.cred-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(99,102,241,0.12);
  color: var(--indigo-l); font-size: 15px;
}
.cred-label { font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.cred-sub   { font-size: 11px; color: var(--text-4); font-family: var(--mono); margin-top: 2px; }

/* ── EXPERIENCE ──────────────────────────────────────────── */
.exp-timeline {
  display: flex; flex-direction: column;
  gap: 20px; margin-top: 44px;
}
.exp-card { padding: 28px 32px; }

.exp-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 6px;
  flex-wrap: wrap; gap: 8px;
}
.exp-period {
  font-family: var(--mono); font-size: 12px;
  color: var(--indigo-l); letter-spacing: 0.1em;
}
.exp-badge {
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 3px 10px; border-radius: 100px;
}
.exp-company {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px;
}
.exp-company-prev { font-size: 14px; font-weight: 400; color: var(--text-4); margin-left: 8px; }

.exp-roles {
  display: flex; flex-wrap: wrap; gap: 7px;
  align-items: center; margin-bottom: 16px;
}
.exp-role-chip {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 11px; border-radius: 100px;
}
.exp-desc {
  font-size: 15px; color: var(--text-3);
  line-height: 1.75; margin-bottom: 18px;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-tag {
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 3px 9px; border-radius: 100px;
  transition: all var(--t) var(--ease);
}
.exp-card:hover .exp-tag {
  border-color: rgba(99,102,241,0.2);
  color: var(--text-3);
}

/* ── TECH STACK (grouped) ────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.stack-group {
  padding: 22px 24px;
  background: rgba(17,24,39,0.6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t) var(--ease);
}
.stack-group:hover { border-color: var(--border-hi); }

.stack-group-label {
  font-family: var(--mono); font-size: 11px; color: var(--indigo-l);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-tag {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 4px 11px; border-radius: 100px;
  transition: all var(--t) var(--ease);
}
.stack-tag.hi { color: var(--indigo-l); border-color: rgba(99,102,241,0.25); background: rgba(99,102,241,0.07); }
.stack-group:hover .stack-tag { border-color: rgba(99,102,241,0.2); color: var(--text); }

/* ── WRITING ─────────────────────────────────────────────── */
.writing-banner {
  margin-top: 44px;
}
.writing-banner-inner {
  padding: 48px 56px;
  background: rgba(17,24,39,0.5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.writing-banner-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.writing-stat { flex-shrink: 0; text-align: center; }
.writing-stat-num  { display: block; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.writing-stat-label { display: block; font-size: 13px; color: var(--text-3); font-family: var(--mono); margin-top: 4px; }

.writing-divider {
  width: 1px; height: 80px; background: var(--border); flex-shrink: 0;
}
.writing-topics {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.writing-topic {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.writing-topic i { color: var(--indigo-l); font-size: 13px; width: 16px; }
.writing-cta { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 997;
  opacity: 0;
  transition: opacity var(--t-md) var(--ease);
}
.nav-backdrop.open { display: block; opacity: 1; }

/* Scroll-to-top button */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 990;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: rgba(17,24,39,0.85);
  border: 1px solid var(--border);
  color: var(--indigo-l); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: all var(--t) var(--ease);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover {
  background: rgba(99,102,241,0.2);
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-i);
}

@media (max-width: 768px) {
  /* Side drawer */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(260px, 78vw);
    background: #0a0e1c;
    border-left: 1px solid var(--border);
    flex-direction: column; align-items: stretch; justify-content: center;
    padding: 80px 20px 40px;
    gap: 4px; z-index: 998;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-md) var(--ease), visibility var(--t-md) var(--ease);
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-link {
    font-size: 15px; padding: 12px 16px;
    border-radius: var(--r-md); color: var(--text-2);
    border-bottom: none;
  }
  .nav-link.nav-ext { color: var(--text-2) !important; }
  .nav-toggle { display: flex; }

  a.feed-card { grid-template-columns: 1fr; }
  .feed-arrow { display: none; }

  .hero-avatar-wrap { width: 108px; height: 108px; }
  .hero-name { letter-spacing: -0.025em; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 22px 16px; }
  .stat-value { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── Single-page responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .stack-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stack-grid  { grid-template-columns: 1fr; }
  .exp-card    { padding: 22px 20px; }
  .writing-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 28px;
  }
  .writing-divider { width: 100%; height: 1px; }
  .writing-cta { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .sp-section { padding: 64px 0; }
  .exp-company { font-size: 18px; }
  .exp-company-prev { display: block; margin-left: 0; margin-top: 4px; }
}
