/* ============================================
   experience.css — Experience & Certifications
   ============================================ */

/* ---- EXPERIENCE ---- */
.experience-section {
  background: var(--bg2);
}

.experience-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

/* Sticky heading on left */
.experience-heading {
  position: sticky;
  top: 100px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 52px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg2);
  transition: transform 0.2s ease;
}

.timeline-item:hover::before {
  transform: scale(1.4);
}

.timeline-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 7px;
  display: block;
}

.timeline-role {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--fg);
}

.timeline-company {
  font-size: 14px;
  color: var(--fg2);
  margin-bottom: 12px;
  font-weight: 400;
}

.timeline-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.75;
  font-weight: 300;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* ---- CERTIFICATIONS ---- */
.cert-section {
  background: var(--bg);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(10);
}

[data-theme="dark"] .cert-icon img {
  filter: brightness(0.1);
}

.cert-icon-emoji {
  font-size: 20px;
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

.cert-issuer {
  font-size: 12px;
  color: var(--fg2);
  margin-top: 4px;
  font-weight: 400;
}

.cert-year {
  font-size: 11px;
  color: var(--accent);
  margin-top: 5px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .experience-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-heading {
    position: static;
  }
}
