/* Experience Section */
.experience {
  padding: 80px 0;
  background: var(--bg-black-100);
}

.section-title h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-black-900);
  font-weight: 700;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.experience-card {
  background: var(--bg-black-100);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 3px solid var(--skin-color);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--bg-black-50);
}

.company-logo {
  width: 50px;
  height: 50px;
  background: var(--skin-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 20px;
}

.company-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-black-900);
}

.company-name {
  font-size: 0.9rem;
  color: var(--skin-color);
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.duration {
  font-size: 0.85rem;
  color: var(--text-black-700);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.responsibilities {
  list-style: none;
  margin-bottom: 15px; /* Reduced from 20px */
  flex: 1;
}

.responsibilities li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: var(--text-black-700);
  line-height: 1.6;
}

.responsibilities i {
  color: var(--skin-color);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 12px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* Reduced from 8px */
  margin-top: auto;
  padding: 10px; /* Removed padding (was 10px 0) */
  width: 100%;
  max-height: 70px; /* Added max-height to limit vertical space */
  /* overflow-y: auto; Allow scrolling if too many tech pills */
  border-top: 1px solid var(--bg-black-50);
}

.tech-pill {
  background: var(--bg-black-50);
  color: var(--text-black-900);
  padding: 3px 10px; /* Reduced padding */
  border-radius: 15px;
  font-size: 0.7rem; /* Reduced font size */
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-bottom: 5px; /* Reduced from 8px */
  line-height: 1.2; /* Added to reduce overall height */
}

.tech-pill:hover {
  background: var(--skin-color);
  color: white;
}

/* Mobile View */
@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .section-title h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .experience-card {
    min-height: auto;
  }

  .card-header {
    padding: 15px;
  }

  .company-logo {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .card-body {
    padding: 15px;
  }

  .tech-stack {
    gap: 5px;
    max-height: 60px; /* Smaller max-height on mobile */
  }

  .tech-pill {
    padding: 2px 8px; /* Even smaller padding on mobile */
  }
}

@media (max-width: 480px) {
  .experience {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .responsibilities li {
    font-size: 0.9rem;
  }

  .tech-pill {
    padding: 2px 8px;
    font-size: 0.65rem;
  }
}
