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

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #151520;
  --surface-hover: #1a1a2e;
  --border: #1e1e30;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.15);
  --accent-2: #a78bfa;
  --green: #4ade80;
  --red: #f87171;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ========== NAVBAR ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.accent { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; align-items: center; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  margin-left: 0.5rem;
}

.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.nav-right-mobile { display: none; align-items: center; gap: 12px; }

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active { display: flex; }

.mobile-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-link:hover { color: var(--accent); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero-title .line { display: block; }

.hero-subtitle {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  min-height: 1.7em;
}

.cursor-blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Code Window */
.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.c-keyword { color: #c678dd; }
.c-var { color: #e06c75; }
.c-prop { color: #e5c07b; }
.c-string { color: #98c379; }

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 2rem;
}

.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}

.section-number {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
}

.stat-suffix {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.aws-badge {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: var(--transition);
  margin-top: 2px;
}

.aws-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.aws-badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--mono);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(129, 140, 248, 0.25);
  border-color: var(--accent);
}

.aws-badge { cursor: pointer; }

/* ========== AWS MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 8px;
}

.modal-close:hover { color: var(--text); }

.modal-icon { font-size: 3rem; margin-bottom: 1rem; }

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.modal-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 40px;
}

.modal-code:hover {
  border-color: var(--accent);
}

.modal-code code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  user-select: all;
}

.modal-copy-feedback {
  font-size: 1rem;
  transition: var(--transition);
}

.modal-btn {
  width: 100%;
  justify-content: center;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image { position: relative; overflow: hidden; }

.project-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.trading-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.automation-bg {
  background: linear-gradient(135deg, #0f172a 0%, #14532d 100%);
}

.media-bg {
  background: linear-gradient(135deg, #0f172a 0%, #3b0764 100%);
}

.wedding-bg {
  background: linear-gradient(135deg, #0f172a 0%, #4a1942 100%);
}

.wedding-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compiler-bg {
  background: linear-gradient(135deg, #0f172a 0%, #7c2d12 100%);
}

/* Mini chart animation */
.mini-chart { position: relative; width: 80%; }

.chart-svg { width: 100%; height: auto; }

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
}

.project-card:hover .chart-line {
  animation: drawLine 1.5s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-label {
  position: absolute;
  top: 0;
  right: 10px;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.5s 1s;
}

.project-card:hover .chart-label { opacity: 1; }

/* Flow diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.project-card:hover .flow-arrow {
  opacity: 1;
  transform: translateX(0);
}

.project-card:hover .flow-arrow:nth-child(2) { transition-delay: 0.1s; }
.project-card:hover .flow-arrow:nth-child(4) { transition-delay: 0.2s; }
.project-card:hover .flow-arrow:nth-child(6) { transition-delay: 0.3s; }

/* Server icon */
.server-icon { text-align: center; }

.server-box {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.server-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: var(--transition);
}

.project-card:hover .server-led { background: var(--green); animation: pulse 1s infinite; }
.project-card:hover .server-led:nth-child(2) { animation-delay: 0.3s; }
.project-card:hover .server-led:nth-child(3) { animation-delay: 0.6s; }

.server-label {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  transition: var(--transition);
}

.project-card:hover .server-label { color: var(--accent); }

/* Compiler visual */
.compiler-code {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.project-card:hover .compiler-code { color: var(--accent); }

.project-content { padding: 24px; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 4px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-links { display: flex; gap: 12px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover { color: var(--accent); }

/* ========== STACK ========== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stack-cat-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: default;
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}

.stack-icon { font-size: 1.2rem; }

/* ========== INTERESTS ========== */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.interest-item:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.interest-icon { font-size: 1.4rem; }

/* ========== CONTACT ========== */
.contact-content { text-align: center; }

.contact-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  min-width: 320px;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon { font-size: 1.2rem; }

/* ========== FOOTER ========== */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right-mobile { display: flex; }
  .nav-toggle { display: flex; }
  
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8rem;
    gap: 2rem;
  }
  
  .hero-visual { order: -1; }
  
  .hero-title { font-size: 2.8rem; }
  
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .projects-grid { grid-template-columns: 1fr; }
  
  .stack-grid { grid-template-columns: 1fr; }
  
  .contact-link { min-width: auto; width: 100%; }
  
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; letter-spacing: -1px; }
  .section { padding: 4rem 1.5rem; }
  .code-body { font-size: 0.75rem; }
}

/* ============= TIMELINE / EXPERIENCE ============= */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-group {
  margin-bottom: 1rem;
}

.timeline-company {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0.8rem;
  padding-left: 20px;
}

.timeline-company-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-company-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-dim);
  z-index: 1;
}

.timeline-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.timeline-dot.small {
  width: 8px;
  height: 8px;
  left: -24px;
  top: 8px;
}

.timeline-content {
  padding-left: 20px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
  white-space: nowrap;
}

.timeline-company-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(var(--accent-rgb, 0, 255, 136), 0.15);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.4rem;
}

.timeline-desc-sm {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.tag-sm {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
}

.timeline-earlier {
  margin-top: 0.5rem;
}

.timeline-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.3s;
}

.timeline-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.timeline-hidden.show {
  max-height: 300px;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 25px;
  }
  .timeline-header {
    flex-direction: column;
    gap: 2px;
  }
  .timeline-company {
    flex-direction: column;
    gap: 2px;
  }
}
