/* ===== GANTT TIMELINE ===== */
.gantt-section {
  position: relative;
  z-index: 5;
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px;
}


.gantt-section .section-kicker {
  text-align: center;
  display: block;
  margin-bottom: 20px;
  color: #1a1a2e;
  font-weight: 600;
}

#ganttTimeline {
  position: relative;
  width: 100%;
}

/* year labels + grid */
.gantt-years {
  position: relative;
  height: 56px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.gantt-year-label {
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  color: rgba(0, 0, 0, 0.80);
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: none;
}


/* rows */
.gantt-row {
  position: relative;
  height: 38px;
  margin-bottom: 6px;
}

/* bar */
.gantt-bar {
  position: absolute;
  top: 4px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  transition: filter 0.25s, transform 0.25s;
  overflow: hidden;
}

.gantt-bar:hover {
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.25);
  z-index: 10;
}

.gantt-bar.ongoing {
  border-right: none;
  overflow: hidden;
}

.gantt-bar.ongoing::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.45) 0px,
      rgba(255, 255, 255, 0.45) 3px,
      transparent 3px,
      transparent 6px);
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
  pointer-events: none;
}

/* label inside bar */
.gantt-bar-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* tooltip */
.gantt-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  background: rgba(12, 14, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 200px;
  color: #fff;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.gantt-tip .gantt-dates {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.gantt-bar:hover .gantt-tip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* type badge */
.gantt-type {
  position: absolute;
  right: calc(100% + 0px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* legend */
.gantt-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.gantt-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 0, 0, 0.65);
  font-weight: 600;
}

.gantt-legend-dot {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-block;
}

/* ===== TECH STACK TABLE ===== */
.ts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 8px;
}

.ts-cat-cell {
  vertical-align: middle;
  padding: 8px 14px 8px 0;
  white-space: nowrap;
}

.ts-tag-cell {
  vertical-align: middle;
  padding: 8px 0;
}

/* category badge (Backend, Frontend, etc.) */
.ts-category {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.ts-category--backend {
  background: #e73e80;
}

.ts-category--frontend {
  background: #1cb8e0;
}

.ts-category--data {
  background: #06c89a;
}

.ts-category--cloud {
  background: #f66848;
}

.ts-category--erp {
  background: #6d23f5;
}

.ts-category--other {
  background: #1a1a2e;
}

/* tech tag (individual skill pills) */
.ts-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: #1a1a2e;
  margin: 3px 6px 3px 0;
}

.ts-tag--backend {
  background: rgba(231, 62, 128, 0.08);
  border: 1px solid rgba(231, 62, 128, 0.18);
}

.ts-tag--frontend {
  background: rgba(28, 184, 224, 0.08);
  border: 1px solid rgba(28, 184, 224, 0.22);
}

.ts-tag--data {
  background: rgba(6, 200, 154, 0.08);
  border: 1px solid rgba(6, 200, 154, 0.22);
}

.ts-tag--cloud {
  background: rgba(246, 104, 72, 0.08);
  border: 1px solid rgba(246, 104, 72, 0.20);
}

.ts-tag--erp {
  background: rgba(109, 35, 245, 0.08);
  border: 1px solid rgba(109, 35, 245, 0.18);
}

.ts-tag--other {
  background: rgba(26, 26, 46, 0.06);
  border: 1px solid rgba(26, 26, 46, 0.14);
}

/* ===== CONTACT TABLE ===== */
.contact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-top: 8px;
}

.contact-icon-cell {
  vertical-align: middle;
  padding: 8px 14px 8px 0;
  white-space: nowrap;
  width: 1%;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.contact-icon--phone {
  background: rgba(28, 184, 224, 0.10);
  color: #1cb8e0;
}

.contact-icon--email {
  background: rgba(231, 62, 128, 0.10);
  color: #e73e80;
}

.contact-icon--linkedin {
  /* background: rgba(10, 102, 194, 0.10); */
  color: #0A66C2;
}

.contact-icon--cv {
  background: rgba(6, 200, 154, 0.10);
  color: #06c89a;
}

.contact-value-cell {
  vertical-align: middle;
  padding: 8px 0;
  font-weight: 500;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

/* ===== GANTT CHART AREA ===== */
.gantt-chart-area {
  position: relative;
  overflow: hidden;
}

.gantt-grid-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* ===== GANTT YEAR-RANGE CONTROLS ===== */
.gantt-controls {
  margin-bottom: 16px;
}

.gantt-range-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gantt-range-label {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gantt-range-input {
  padding: 8px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-weight: 600;
  color: #1a1a2e;
  text-align: center;
  font-size: 1.2rem;
  background-color: #f6fcff;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.gantt-range-input::-webkit-inner-spin-button,
.gantt-range-input::-webkit-outer-spin-button {
  opacity: 1;
}

.gantt-range-input:focus {
  border-color: #e73e80;
}

.gantt-range-sep {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.3);
}