/* ═══════════════════════════════════════════
   PORTFOLIO — style.css
   Dark terminal-meets-whimsy aesthetic
   ═══════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────── */
:root {
  --bg:        #0c0c0f;
  --bg-2:      #111116;
  --bg-3:      #16161c;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #e8e4dc;
  --text-muted:#7a7680;
  --text-dim:  #4a4650;
  --accent:    #c8f055;   /* electric chartreuse */
  --accent-2:  #f0a055;   /* warm amber */
  --accent-3:  #a08cff;   /* soft violet */
  --font-mono: 'DM Mono', monospace;
  --font-serif:'Fraunces', serif;
  --font-sans: 'Geist', sans-serif;
  --sidebar-w: 260px;
  --radius:    12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

/* ── NOISE OVERLAY ───────────────────────── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ── CUSTOM CURSOR ───────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200,240,85,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out;
}
body:has(a:hover) .cursor { width: 16px; height: 16px; }
body:has(button:hover) .cursor { background: var(--accent-2); }

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
/* If using a real photo:
.avatar-placeholder img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
*/
.avatar-initials {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bg);
  font-weight: 500;
}
.status-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,240,85,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(200,240,85,0); }
}
.sidebar-name { min-width: 0; }
.name-text {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Nav */
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 1.5rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-mono);
}
.nav-link:hover, .nav-link.active {
  background: var(--bg-3);
  color: var(--text);
}
.nav-link.active .nav-icon { color: var(--accent); }
.nav-icon { font-size: 0.8rem; width: 1rem; text-align: center; }

/* Social links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.social-link:hover { color: var(--text); background: var(--bg-3); }

/* Achievements */
.achievements-wrap { margin-top: auto; padding-top: 1rem; }
.achievements-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: none;
  transition: var(--transition);
}
.achievements-toggle:hover { border-color: var(--accent); color: var(--accent); }
.trophy-icon { color: var(--accent-2); font-size: 0.85rem; }
.ach-label { flex: 1; text-align: left; }
.ach-count {
  font-size: 0.72rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 99px;
}
.achievements-panel {
  display: none;
  margin-top: 0.75rem;
}
.achievements-panel.open { display: block; }
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ach-item {
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  gap: 2px;
  transition: var(--transition);
  opacity: 0.3;
  filter: grayscale(1);
}
.ach-item.unlocked {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(200,240,85,0.15);
}
.ach-item .ach-emoji { font-size: 1.3rem; }
.ach-item .ach-name { font-family: var(--font-mono); font-size: 0.48rem; color: var(--text-muted); text-align: center; line-height: 1.2; padding: 0 2px; }

/* ── MOBILE HEADER ───────────────────────── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 200;
}
.mobile-name { font-family: var(--font-mono); font-size: 0.9rem; }
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MAIN CONTENT ────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ── SECTIONS ────────────────────────────── */
.section {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.visible { opacity: 1; transform: translateY(0); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
.title-accent { color: var(--accent-2); }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ── HERO ────────────────────────────────── */
.hero-section { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(200,240,85,0.08);
  border: 1px solid rgba(200,240,85,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.hero-title { margin-bottom: 1.25rem; }
.title-small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.title-name {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}
.title-role {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-bio { color: var(--text-muted); max-width: 480px; margin-bottom: 2rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }

/* Terminal card */
.terminal-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }
.term-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: auto;
  margin-right: auto;
}
.terminal-body { padding: 1.25rem 1.5rem; font-family: var(--font-mono); font-size: 0.82rem; }
.term-line { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.75rem; }
.term-line:first-child { margin-top: 0; }
.prompt { color: var(--accent); flex-shrink: 0; }
.cmd { color: var(--text); }
.term-output {
  color: var(--text-muted);
  padding-left: 1.2rem;
  white-space: pre-wrap;
  margin-top: 0.2rem;
}
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── PROJECTS ────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.4rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: none;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--border-2); color: var(--text); }
.filter-btn.active {
  background: rgba(200,240,85,0.1);
  border-color: rgba(200,240,85,0.4);
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.project-card.hidden { display: none; }

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
/*
  To use a real project image:
  <img src="assets/images/project-name.jpg" alt="Project Name" class="project-img" />
  .project-img { width:100%; height:100%; object-fit:cover; }
*/
.placeholder-icon { font-size: 2rem; color: var(--text-dim); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,12,15,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(200,240,85,0.4);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.project-link-btn:hover { background: rgba(200,240,85,0.1); }

.project-body { padding: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.6rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-3);
  background: rgba(160,140,255,0.1);
  border: 1px solid rgba(160,140,255,0.2);
  padding: 2px 8px;
  border-radius: 99px;
}
.project-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.project-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.project-links { display: flex; gap: 0.75rem; }
.plink {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.plink:hover { color: var(--accent); }

/* ── SKILLS ──────────────────────────────── */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.skill-bar { margin-bottom: 1rem; }
.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.skill-pct { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.75rem; }
.skill-track {
  height: 4px;
  background: var(--bg-3);
  border-radius: 99px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ── EXPERIENCE / TIMELINE ───────────────── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0; bottom: 0;
  width: 1px;
  /*background: var(--border);*/
}
.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;  /* wider date column */
  gap: 0 2rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-content {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(200,240,85,0.4);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 4px;
  text-align: right;
  padding-right: 0.5rem;   /* breathing room before the line */
  word-break: break-word;  /* prevents overflow on narrow screens */
}
.timeline-role { font-size: 1rem; font-weight: 500; margin-bottom: 0.2rem; }
.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}
.timeline-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── BLOG ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-3);
  background: rgba(160,140,255,0.1);
  border: 1px solid rgba(160,140,255,0.2);
  padding: 2px 8px;
  border-radius: 99px;
}
.blog-read { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }
.blog-title { font-size: 0.97rem; font-weight: 500; margin-bottom: 0.4rem; line-height: 1.35; }
.blog-excerpt { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }

/* ── CONTACT ─────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-intro { color: var(--text-muted); margin-bottom: 1.25rem; max-width: 400px; }
.contact-email {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.contact-email:hover { color: var(--accent-2); }
.contact-socials { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-social-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1px;
  transition: var(--transition);
}
.contact-social-link:hover { color: var(--text); border-color: var(--text); }
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.contact-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.contact-card-location,
.contact-card-tz { font-size: 0.9rem; }

/* ── FOOTER ──────────────────────────────── */
.footer {
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.footer-accent { color: var(--accent-2); }

/* ── ACHIEVEMENT TOAST ───────────────────── */
.ach-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,240,85,0.1);
  transform: translateY(calc(100% + 3rem));  /* ← push fully below viewport */
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9000;
  max-width: 280px;
  pointer-events: none;  /* ← can't accidentally interact with it */
}
.ach-toast.show {
  transform: translateY(0);
  pointer-events: auto;
}
.toast-icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.toast-title { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.toast-name { font-size: 0.85rem; font-weight: 500; margin-top: 1px; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; padding-top: 56px; }
  .section { padding: 3rem 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;  /* wider date column */
    gap: 0 2rem;
    padding-bottom: 2.5rem;
    position: relative;
  }
  .timeline-content {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    position: relative;
  }
  .timeline-content::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px rgba(200,240,85,0.4);
  }
  .timeline-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 4px;
    text-align: right;
    padding-right: 0.5rem;   /* breathing room before the line */
    word-break: break-word;  /* prevents overflow on narrow screens */
  }
  .contact-layout { grid-template-columns: 1fr; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 0.4rem; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 2.5rem 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
}
