/* =============================================================
   EXPERIENCE PAGE — Vicente Hernaiz Portfolio
   Scroll-driven timeline. Same design language as Skills page.
   ============================================================= */

.exp-page {
  padding:   48px 64px 120px;
  max-width: 1100px;
  width:     100%;
  margin:    0 auto;
}


/* =============================================================
   HERO  (mirrors .skills-hero)
   ============================================================= */

.exp-hero {
  margin-bottom: 72px;
}

.exp-hero__logo {
  margin-bottom: 12px;
  line-height: 1;
}

.exp-hero__logo-text {
  display:        inline-block;
  font-family:    var(--font-headings);
  font-size:      clamp(56px, 10vw, 120px);
  font-weight:    800;
  letter-spacing: 0.06em;
  line-height:    1;
  color:          #ffffff;
  text-shadow:
    2px 2px 0 #160822,
    4px 4px 0 #1e0b30,
    6px 6px 0 #2a0f40,
    8px 8px 0 rgba(143, 0, 216, 0.35),
    0 0 80px rgba(143, 0, 216, 0.08);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  user-select: none;
}

.exp-hero__sub {
  margin-bottom: 24px;
}

.exp-hero__intro {
  font-family:   var(--font-text);
  font-size:     var(--fs-16);
  font-weight:   400;
  line-height:   28px;
  color:         var(--gray-900);
  max-width:     600px;
  margin-bottom: 0;
}

.exp-hero__intro strong {
  color:       var(--white);
  font-weight: 600;
}


/* =============================================================
   TIMELINE WRAPPER
   ============================================================= */

.exp-timeline {
  position:    relative;
  padding-left: 48px;
}

/* Faint track (always visible) */
.exp-tl-track {
  position: absolute;
  left:     20px;
  top:      14px;
  bottom:   48px;
  width:    2px;
  background: rgba(170, 172, 241, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

/* Filled portion — height driven by JS on scroll */
.exp-tl-fill {
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     0;
  background: linear-gradient(to bottom,
    var(--purple-500) 0%,
    rgba(143, 0, 216, 0.4) 100%
  );
  border-radius: 2px;
  transition: height 0.1s linear;
}


/* =============================================================
   TIMELINE ENTRY
   ============================================================= */

.exp-entry {
  position:   relative;
  padding-bottom: 56px;

  /* Enter animation */
  opacity:   0;
  transform: translateX(24px);
  transition: opacity 0.55s ease,
              transform 0.55s ease;
  transition-delay: calc(var(--idx, 0) * 55ms);
}

.exp-entry:last-child {
  padding-bottom: 0;
}

.exp-entry--visible {
  opacity:   1;
  transform: translateX(0);
}

/* ── Dot on the line ─────────────────────────────────────── */
.exp-entry__dot {
  position:  absolute;
  left:     -34px; /* 48px padding − 34 = 14px from container → dot center ≈ 21px ≈ track at 20px */
  top:       7px;
  width:     14px;
  height:    14px;
  border-radius: 50%;
  background:    var(--bg-hero);
  border:    2px solid rgba(170, 172, 241, 0.2);
  z-index:   2;
  transition: border-color 0.4s ease,
              background   0.4s ease,
              box-shadow   0.4s ease;
}

.exp-entry--visible .exp-entry__dot {
  border-color: var(--purple-500);
  background:   var(--purple-500);
  box-shadow:   0 0 14px rgba(143, 0, 216, 0.6),
                0 0  4px rgba(143, 0, 216, 0.9);
}

/* ── Content block ───────────────────────────────────────── */
.exp-entry__meta {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-wrap:   wrap;
  margin-bottom: 8px;
}

.exp-entry__period {
  font-family:    var(--font-mono);
  font-size:      var(--fs-13);
  font-weight:    500;
  letter-spacing: 0.04em;
  color:          var(--gray-900);
}

/* Category badges */
.exp-entry__badge {
  display:        inline-flex;
  align-items:    center;
  height:         20px;
  padding:        0 8px;
  border-radius:  4px;
  font-family:    var(--font-mono);
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exp-entry__badge--work {
  background: rgba(143, 0, 216, 0.18);
  border:     1px solid rgba(143, 0, 216, 0.4);
  color:      var(--purple-900);
}

.exp-entry__badge--education {
  background: rgba(135, 141, 234, 0.15);
  border:     1px solid rgba(135, 141, 234, 0.35);
  color:      var(--blue-800);
}

.exp-entry__badge--sport {
  background: rgba(0, 180, 120, 0.12);
  border:     1px solid rgba(0, 180, 120, 0.3);
  color:      #5dd8a8;
}

.exp-entry__badge--mentorship {
  background: rgba(232, 198, 253, 0.1);
  border:     1px solid rgba(232, 198, 253, 0.25);
  color:      var(--purple-900);
}

.exp-entry__badge--milestone {
  background: rgba(255, 200, 80, 0.1);
  border:     1px solid rgba(255, 200, 80, 0.25);
  color:      #ffc850;
}

/* Title */
.exp-entry__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-20);
  font-weight:    600;
  line-height:    28px;
  color:          var(--white);
  margin-bottom:  4px;
  letter-spacing: var(--ls-heading);
}

/* Organisation / company */
.exp-entry__org {
  font-family:  var(--font-mono);
  font-size:    var(--fs-13);
  font-weight:  var(--mono-fw-lte20);
  color:        var(--purple-900);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Description */
.exp-entry__desc {
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  font-weight: var(--fw-body);
  line-height: 26px;
  color:       var(--gray-900);
  max-width:   680px;
}

/* Tag list (skills used) */
.exp-entry__tags {
  display:   flex;
  flex-wrap: wrap;
  gap:       6px;
  margin-top: 14px;
}

.exp-entry__tag {
  display:        inline-flex;
  align-items:    center;
  height:         28px;
  padding:        0 10px;
  background:     var(--purple-card);
  border:         1px solid var(--purple-card-border);
  border-radius:  6px;
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    var(--mono-fw-lte20);
  color:          var(--purple-900);
  white-space:    nowrap;
}


/* =============================================================
   SECTION DIVIDER
   ============================================================= */

.exp-section-label {
  margin-bottom: 32px;
  padding-left:  48px;
}


/* =============================================================
   CTA SECTION
   ============================================================= */

.exp-cta {
  margin-top:    96px;
  padding:       56px 48px;
  background:    rgba(143, 0, 216, 0.07);
  border:        1px solid var(--purple-border);
  border-radius: 20px;
  display:       flex;
  flex-direction: column;
  align-items:   flex-start;
  gap:           28px;
  position:      relative;
  overflow:      hidden;
}

/* Subtle glow behind */
.exp-cta::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(143,0,216,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.exp-cta__eyebrow {
  /* layout only — typography from .section-label */
}

.exp-cta__heading {
  font-family:    var(--font-headings);
  font-size:      clamp(28px, 4vw, 44px);
  font-weight:    700;
  line-height:    1.15;
  color:          var(--white);
  letter-spacing: -0.5px;
  max-width:      560px;
  position:       relative;
}

.exp-cta__body {
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  line-height: 26px;
  color:       var(--gray-900);
  max-width:   520px;
  position:    relative;
}

.exp-cta__actions {
  display:  flex;
  gap:      12px;
  flex-wrap: wrap;
  position: relative;
}

.exp-cta__btn-primary {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  height:         48px;
  padding:        0 24px;
  background:     var(--purple-500);
  border:         none;
  border-radius:  10px;
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    600;
  color:          var(--white);
  cursor:         pointer;
  text-decoration: none;
  transition:     background 0.2s, transform 0.15s;
}

.exp-cta__btn-primary:hover {
  background:  #7200b0;
  transform:   translateY(-1px);
}

.exp-cta__btn-secondary {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  height:         48px;
  padding:        0 24px;
  background:     transparent;
  border:         1px solid var(--purple-card-border);
  border-radius:  10px;
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    500;
  color:          var(--purple-900);
  cursor:         pointer;
  text-decoration: none;
  transition:     border-color 0.2s, color 0.2s, transform 0.15s;
}

.exp-cta__btn-secondary:hover {
  border-color: var(--purple-border);
  color:        var(--white);
  transform:    translateY(-1px);
}


/* =============================================================
   KNOW MORE SECTION
   ============================================================= */

.exp-know-more {
  margin-top: 72px;
}

.exp-know-more__label {
  margin-bottom: 24px;
}

.exp-know-more__narrative {
  font-family:   var(--font-text);
  font-size:     var(--fs-16);
  line-height:   26px;
  color:         var(--gray-900);
  max-width:     600px;
  margin-bottom: 32px;
}

.exp-know-more__narrative strong {
  color:       var(--white);
  font-weight: 600;
}

.exp-know-more__cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
}

.exp-know-card {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  padding:        28px 24px;
  background:     var(--purple-card);
  border:         1px solid var(--purple-card-border);
  border-radius:  14px;
  text-decoration: none;
  transition:     background 0.2s, border-color 0.2s, transform 0.2s;
  cursor:         pointer;
}

.exp-know-card:hover {
  background:   rgba(143, 0, 216, 0.1);
  border-color: var(--purple-border);
  transform:    translateY(-3px);
}

.exp-know-card__top {
  display:         flex;
  align-items:     center;
  justify-content: flex-end;
}

.exp-know-card__icon {
  font-size:   32px;
  line-height: 1.5;
}

.exp-know-card__arrow {
  font-family: var(--font-mono);
  font-size:   24px;
  color:       var(--white);
  opacity:     0.5;
  transition:  opacity 0.2s, transform 0.2s;
}

.exp-know-card:hover .exp-know-card__arrow {
  opacity:   1;
  transform: translate(3px, -3px);
}

.exp-know-card__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-20);
  font-weight:    600;
  color:          var(--white);
  letter-spacing: var(--ls-heading);
}

.exp-know-card__desc {
  font-family: var(--font-text);
  font-size:   14px;
  line-height: 22px;
  color:       var(--white);
  flex:        1;
}

.exp-know-card__tag {
  font-family:    var(--font-mono);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--purple-900);
  opacity:        0.6;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1200px) {
  .exp-page { padding: 40px 48px 96px; }
}

@media (max-width: 900px) {
  .exp-page    { padding: 36px 32px 80px; }
  .exp-entry__desc { max-width: 100%; }
  .exp-know-more__cards { grid-template-columns: 1fr; }
  .exp-cta { padding: 40px 28px; }
}

@media (max-width: 640px) {
  .exp-page    { padding: 28px 20px 64px; }
  .exp-timeline { padding-left: 36px; }
  .exp-tl-track  { left: 14px; }
  .exp-entry__dot { left: -26px; }
  .exp-entry__title { font-size: var(--fs-16); line-height: 24px; }
  .exp-hero__intro  { font-size: 15px; line-height: 26px; }
}
