/* Professional Experience — styled as a vinyl record sleeve "tracklist" */

.experience-section {
  position: relative;
  background: linear-gradient(135deg, #161616 0%, #0c0c0c 100%);
  padding: 6rem 0;
  overflow: hidden;
}

/* Faint diagonal hi-fi texture, echoing the contact section */
.experience-section::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: repeating-linear-gradient(
    45deg,
    rgba(217, 165, 102, 0.05),
    rgba(217, 165, 102, 0.05) 10px,
    rgba(201, 52, 52, 0.05) 10px,
    rgba(201, 52, 52, 0.05) 20px
  );
  pointer-events: none;
  z-index: 0;
}

.experience-section .container {
  position: relative;
  z-index: 1;
}

.experience-section .section-title {
  display: block;
  text-align: center;
  margin-bottom: 3.5rem;
}

.experience-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ---- The sleeve / liner card ---- */
.exp-timeline {
  position: relative;
  counter-reset: track;
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--retro-cream);
  border: 9px solid var(--wood-medium);
  border-radius: 3px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25),
    10px 12px 0 rgba(0, 0, 0, 0.35);
  transform: rotate(-0.6deg);
  transition: transform 0.35s ease;
}

.exp-timeline:hover {
  transform: rotate(0);
}

/* ---- Each track ---- */
.exp-card {
  counter-increment: track;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.4rem;
  border-bottom: 2px dashed rgba(140, 86, 55, 0.3);
  transition: background 0.25s ease;
}

.exp-card:last-child {
  border-bottom: none;
  padding-bottom: 0.4rem;
}

.exp-card:hover {
  background: rgba(217, 165, 102, 0.12);
}

/* Track number — A1, A2, A3 */
.exp-card::before {
  content: "A" counter(track);
  position: absolute;
  left: 0;
  top: 1.45rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tertiary);
  letter-spacing: -1px;
}

/* Header: company + meta */
.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.exp-company-info {
  flex: 1;
}

.exp-company-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.15rem 0;
  letter-spacing: 0.02em;
}

.exp-role-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--wood-dark);
  margin: 0;
  line-height: 1.4;
}

/* Period reads like a track duration */
.exp-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
  text-align: right;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tertiary);
  white-space: nowrap;
  padding: 0.1rem 0.5rem;
  border: 1.5px solid rgba(140, 86, 55, 0.4);
  border-radius: 2px;
}

.exp-location {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--wood-dark);
  opacity: 0.8;
  white-space: nowrap;
}

/* Liner-note bullets */
.exp-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.exp-list li {
  font-size: 0.85rem;
  color: #2a2218;
  line-height: 1.55;
  padding: 0.18rem 0 0.18rem 1.3rem;
  position: relative;
}

.exp-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 0.22rem;
}

/* ---- Featured / current job: the "now playing" REC track ---- */
.exp-featured {
  background: rgba(201, 52, 52, 0.06);
}

.exp-featured .exp-company-name {
  color: var(--accent-dark);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .experience-section {
    padding: 4rem 0;
  }

  .exp-timeline {
    padding: 2.2rem 1.3rem 1.5rem;
    border-width: 7px;
    transform: rotate(0);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25),
      6px 7px 0 rgba(0, 0, 0, 0.35);
  }

  .exp-timeline::before {
    left: 1.3rem;
    right: 1.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .exp-card {
    padding-left: 2.6rem;
  }

  .exp-card::before {
    font-size: 1.05rem;
  }

  .exp-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .exp-card-meta {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.6rem;
  }
}

@media (max-width: 480px) {
  .exp-card-meta {
    flex-wrap: wrap;
  }
}
