/* ===========================
   BALLA ARUN KUMAR — Portfolio
   Dark Editorial Aesthetic
   =========================== */

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #1a1a24;
  --surface: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);

  --text: #e8e8f0;
  --text-muted: #8888a4;
  --text-faint: #44445a;

  --accent: #4fffb0;
  --accent-dim: rgba(79,255,176,0.15);
  --accent-glow: rgba(79,255,176,0.3);

  --red: #ff4f6a;
  --blue: #4fa3ff;

  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w: 1160px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ===== CONTAINER ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 40px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(10,10,15,0.97); }
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  transition: opacity var(--transition);
}
.nav-links .nav-cta:hover { opacity: 0.85; color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.full-width { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,255,176,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,255,176,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,255,176,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(79,255,176,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  line-height: 1.0;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-name {
  display: block;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-role {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 12px;
}
.hero-desc {
  max-width: 540px;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-desc em { font-style: normal; color: var(--text); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp 0.6s ease 0.3s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.6s ease 0.4s both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 16px;
}
.about-education { margin-top: 40px; }
.about-education h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.edu-item {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-width: 50px;
}
.about-card {
  position: sticky;
  top: 100px;
}
.card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.card-inner:hover { border-color: var(--border-hover); }
.card-photo-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--bg-3), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-initials {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.6;
}
.card-info { padding: 24px; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ===== SKILLS ===== */
.skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}
.skill-category:hover { border-color: var(--border-hover); }
.skill-category h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.tag.accent {
  border-color: rgba(79,255,176,0.3);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.project-card.featured {
  border-color: rgba(79,255,176,0.25);
  background: linear-gradient(135deg, var(--surface), rgba(79,255,176,0.03));
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.project-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.project-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-highlights li {
  font-size: 13px;
  color: var(--text-faint);
  padding-left: 16px;
  position: relative;
}
.project-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}
.project-footer { margin-top: auto; }
.role-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== EXPERIENCE ===== */
.experience { background: var(--bg); }
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: var(--border-hover); }
.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-meta .company {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.timeline-meta .period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-content p { font-size: 15px; color: var(--text-muted); }

/* ===== BLOG PREVIEW ===== */
.blog-preview { background: var(--bg-2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.blog-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.blog-card-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.blog-cta { text-align: center; }
.blog-loading {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
  padding: 40px;
  grid-column: 1 / -1;
}

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-item:hover { color: var(--text); }
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.social-links { display: flex; gap: 12px; }
.social-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(79,255,176,0.03);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--red); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

/* ===== BLOG PAGE ===== */
.blog-main { padding: 120px 0 80px; min-height: 80vh; }
.blog-header { margin-bottom: 48px; }
.blog-subtitle { font-size: 18px; color: var(--text-muted); max-width: 560px; }
.blog-search-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}
.blog-search-bar input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  max-width: 500px;
  transition: border-color var(--transition);
}
.blog-search-bar input:focus { border-color: var(--accent); }
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.blog-list-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.blog-list-item .item-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-list-item h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-list-item p { font-size: 14px; color: var(--text-muted); }
.item-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}
.item-date { display: block; margin-bottom: 6px; }
.item-read { color: var(--accent); }

/* ===== BLOG POST PAGE ===== */
.post-main { padding: 120px 0 80px; min-height: 80vh; }
.post-container { max-width: 760px; }
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

/* Post Article Styles */
.post-article { }
.post-article .post-meta-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.post-article .post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.post-article h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.post-article .post-info {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

/* Markdown content styles */
.post-body { line-height: 1.8; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}
.post-body h2 { font-size: 28px; }
.post-body h3 { font-size: 22px; }
.post-body h4 { font-size: 18px; color: var(--text-muted); }
.post-body p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }
.post-body a { color: var(--accent); border-bottom: 1px solid rgba(79,255,176,0.3); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; color: var(--text-muted); }
.post-body li { margin-bottom: 8px; font-size: 16px; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--accent-dim);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-body th, .post-body td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-body th { background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.post-body td { color: var(--text-muted); }

/* Share */
.post-share {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.post-share h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.share-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Post Nav */
.post-nav {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  font-size: 14px;
}
.post-nav a:hover { border-color: var(--border-hover); }
.post-nav .nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.post-nav .nav-title { color: var(--text); font-weight: 500; }
.post-nav a:last-child { text-align: right; }
.post-loading {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-faint);
  padding: 60px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 20px; }
  .hero-scroll { display: none; }

  .skills-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .blog-list-item { grid-template-columns: 1fr; }
  .item-meta { text-align: left; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }

  .section { padding: 72px 0; }
  .timeline { padding-left: 24px; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .contact-grid { gap: 32px; }
}
