/* work-experience.css - Styles for work experience cards */

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin: 2rem 0 1.5rem 0;
  font-weight: 700;
}

.work-experience-title {
  margin-top: 2rem;
}

.section-subtitle {
  font-size: 1.8rem;
  color: #555;
  margin: 3rem 0 1.5rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #ba68c8;
  display: inline-block;
  font-weight: 600;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3.5rem 2.5rem;
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 3rem 3rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

.work-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.work-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 768px) {
  .work-card-content {
    padding: 1.5rem;
  }
}

.company-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  height: 80px;
  padding: 0.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.company-logo img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%) contrast(1.1);
  transition: all 0.3s ease;
}

.work-card:hover .company-logo img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.work-info {
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0 1rem;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5rem;
}

.work-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #9f7aea, #667eea);
  border-radius: 3px;
}

.work-role {
  font-size: 1.15rem;
  color: #4a5568;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.work-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #000000;
}

@media (max-width: 768px) {
  .work-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.work-location,
.work-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #000000;
  font-weight: 500;
}

.work-location i,
.work-duration i {
  font-size: 0.9em;
  color: #9f7aea;
  min-width: 16px;
}

.work-location:before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 6px;
  font-size: 0.9em;
  color: #9f7aea;
}

.work-duration:before {
  content: '\f017';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 6px;
  font-size: 0.9em;
  color: #9f7aea;
}

.work-desc {
  font-size: 1rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.work-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-details h4 {
  font-size: 1.2rem;
  color: #000000;
  margin: 0 0 1.25rem 0;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.work-details h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #9f7aea, #667eea);
  border-radius: 3px;
}

.responsibilities {
  margin: 0 0 1.75rem 0.5rem;
  padding-left: 1.2rem;
}

.responsibilities li {
  margin-bottom: 0.8rem;
  position: relative;
  line-height: 1.7;
  color: #000000;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  text-align: left;
}

.responsibilities li:before {
  content: '•';
  color: #9f7aea;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5rem;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  vertical-align: middle;
}

.skills-section {
  margin: 1.5rem 0 0.5rem;
  flex-grow: 1;
}

.skills-section h4 {
  margin-bottom: 1rem !important;
  font-size: 1.15rem;
  color: #2d3748;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.skills-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #9f7aea, #667eea);
  border-radius: 2px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.skill-tag {
  background: #f8f9fa;
  color: #050505;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
}

.skill-tag:hover {
  background: #edf2f7;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border-color: #cbd5e0;
  color: #2d3748;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #2d3748;
}

.work-links { 
  margin-top: auto;
  padding-top: 1rem;
}

/* Hemicircle effect for skills */
@keyframes hemicircle {
  0% { transform: scaleX(0.5) scaleY(0.1); opacity: 0; }
  100% { transform: scaleX(1) scaleY(1); opacity: 1; }
}

.skill-tag {
  animation: hemicircle 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  transform-origin: bottom center;
}

/* Add staggered animation for multiple skills */
.skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-tag:nth-child(5) { animation-delay: 0.25s; }
.work-link-btn {
  background: #ba68c8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-right: 0.5em;
  transition: background 0.2s;
}
.work-link-btn:hover, .work-link-btn:focus { background: #8e24aa; }
