@media (max-width: 768px) {
  #experience {
    position: relative;
    padding: 2rem 1rem;
    overflow: hidden;
      margin: 0;           /* remove any section margin */
    color: #fff;
    text-align: center;
    background: linear-gradient(
      135deg,
      #0d0d0f,
      #1a1a2e,
      #2c2c54,
      #433d8b,
      #6a0572,
      #b983ff,
      #ffd700
    );
    background-size: 400% 400%;
    animation: gradientBG 5s ease infinite;
  }

  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .timeline-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffd700, #b983ff, #6a0572);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
  }

  /* Timeline vertical line */
  .timeline {
    position: relative;
    margin-left: 40px;
    border-left: 4px solid rgba(255, 215, 0, 0.8);
    padding-left: 20px;
    text-align: left;
  }

  .timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.2rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 25px rgba(185, 131, 255, 0.3);
    animation: fadeInUp 0.8s ease forwards;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .timeline-item::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -34px;
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 12px #ffd700, 0 0 25px #b983ff;
    animation: pulseDot 2s infinite;
  }

  @keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
  }

  .timeline-content {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .timeline-content img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 10px rgba(255, 215, 0, 0.3);
  }

  /* Text wrapper */
  .timeline-text {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Header row: title + duration */
  .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  }

  .timeline-header p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #f2f2f2;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  }
}
.read-more-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(185, 131, 255, 0.3);
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}
