/* ============================================================
   EXPERIENCE SECTION — experience.css
   Horizontal/Vertical Interactive Timeline + Animated Chevrons Connector
   ============================================================ */

/* ---------- Experience Timeline Layout ---------- */
.experience-timeline {
  display: flex;
  align-items: stretch; /* Stretch to keep height equal on both cards */
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  gap: 0;
  margin-top: 4.5rem;
  position: relative;
  z-index: 1;
}

/* ---------- Experience Card ---------- */
.experience-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(6, 182, 212, 0.1);
}

.exp-role {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.exp-company {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent-2); /* Cyan */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.exp-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.exp-tools {
  font-size: 0.8rem;
  color: #f5f5f5;
  background: rgba(6, 182, 212, 0.04);
  border-left: 2px solid var(--accent-2);
  padding: 0.4rem 0.6rem;
  margin-bottom: 1.2rem;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
}

.exp-tools strong {
  color: var(--accent-2);
  font-weight: 600;
  margin-right: 0.3rem;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.exp-bullets li {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.2rem;
}

/* Bullet icon using a custom dot */
.exp-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-1); /* Purple bullet */
  font-size: 1.1rem;
  line-height: 1.2;
}

/* ---------- Connector Line ---------- */
.experience-connector {
  flex: 1; /* Spans the remaining space between the two cards */
  position: relative;
  background: rgba(255, 255, 255, 0.04); /* Dim background track line */
  min-width: 60px;
  height: 2px;
  align-self: center;
}

/* Moving arrow stream */
.arrow-stream {
  position: absolute;
  inset: 0;
  height: 10px;
  top: 50%;
  transform: translateY(-50%);
  /* Chevron repeating SVG background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 4 10 8 6 12'/%3E%3C/svg%3E");
  background-size: 16px 10px;
  background-repeat: repeat-x;
  animation: flowArrowsRight 1.2s linear infinite;
  
  /* Gradual fade-out to the left (tailing/disappearing) and bright leading to the right (cyan) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,1) 100%);
}

@keyframes flowArrowsRight {
  0% {
    background-position-x: 0px;
  }
  100% {
    background-position-x: 16px; /* Shift by one pattern width unit */
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .experience-timeline {
    max-width: 100%;
    padding: 0 2rem;
  }
  .experience-card {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .experience-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 1rem;
  }

  .experience-card {
    width: 100%;
    max-width: 640px;
  }

  /* Vertical Connector */
  .experience-connector {
    width: 2px;
    height: 50px;
    min-width: auto;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    align-self: center;
  }

  .arrow-stream {
    width: 10px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    /* Chevron pointing down repeating SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-size: 10px 16px;
    background-repeat: repeat-y;
    animation: flowArrowsDown 1.2s linear infinite;

    /* Gradual fade-out to the top (tailing/disappearing) and bright leading to the bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.7) 65%, rgba(0,0,0,1) 100%);
  }
}

@keyframes flowArrowsDown {
  0% {
    background-position-y: 0px;
  }
  100% {
    background-position-y: 16px;
  }
}
