/*==================================================
  RESUME — OPTIMIZED & ALIGNED WITH GLOBAL STYLES
==================================================*/

/*--------------------------------------------------
  Base adjustments (resume-only)
--------------------------------------------------*/
.text-wrapper { 
  color: var(--text-light); 
}

ul { 
  color: var(--primary); 
}

/*--------------------------------------------------
  Header / Control Panel
--------------------------------------------------*/
.panel-header,
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.app-header h2 {
  font-size: 2rem;
  text-align: center;
}

/*--------------------------------------------------
  Buttons (merged + normalized)
--------------------------------------------------*/
.btn-resume,
#export-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.btn-resume:hover,
#export-pdf:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* Remove underline for links inside buttons */
a.no-underline {
  text-decoration: none;
  color: inherit;
}

button a {
  display: inline-flex;
  align-items: center;
}

/*--------------------------------------------------
  Resume Timeline
--------------------------------------------------*/
.resume-timeline {
  position: relative;
  width: 100%;
  padding: 40px 0;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.timeline-item {
  position: relative;
  margin-left: 100px;
  padding: 20px 0;
  width: calc(100% - 120px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: -44px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 10px rgba(53, 99, 214, 0.4);
}

.timeline-content {
  background: var(--card);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/*--------------------------------------------------
  Timeline Text
--------------------------------------------------*/
.timeline-item .role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/*==================================================
  TAG NORMALIZATION FIX
  (Timeline / Projects / Education)
==================================================*/
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

/* Normalize all spans inside .tags */
.tags span {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  background: var(--bg-dns);
  color: var(--text-light);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.tags span:hover {
  background: var(--primary);
  color: var(--white);
}

/*--------------------------------------------------
  Responsive Timeline
--------------------------------------------------*/
@media (max-width: 992px) {
  .resume-timeline::before { left: 36px; }

  .timeline-item {
    margin-left: 70px;
    width: calc(100% - 90px);
  }
}

@media (max-width: 768px) {
  .resume-timeline::before { left: 26px; }

  .timeline-item {
    margin-left: 60px;
    width: calc(100% - 75px);
  }

  .timeline-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .resume-timeline::before { left: 16px; }

  .timeline-item {
    margin-left: 46px;
    width: calc(100% - 58px);
  }

  .tags span {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}
