:root {
  --theme-color: rgba(180, 4, 149, 1);
  --bg-color: rgba(248, 248, 246, 1);
  --text-dark: #1a1a24;
  --text-muted: #5a5a66;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding: 24px 40px;
  overflow: visible;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--theme-color);
}

/* Sticky Top Bar (home button stays pinned) */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-color);
  padding: 14px 0;
  margin-bottom: 12px;
}

/* Main Container */
.experience-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Page Title */
.page-title {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--theme-color);
  margin-bottom: 8px;
  text-align: left;
}

/* Experience Card */
.exp-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 24px;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--theme-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Icon Column */
.exp-icon-col {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  justify-content: center;
}

.exp-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
}

.exp-card:hover .exp-icon {
  filter: grayscale(0%) opacity(1) drop-shadow(0 2px 4px rgba(180, 4, 149, 0.4));
}

/* Content Column */
.exp-content-col {
  flex-grow: 1;
}

/* Header: Tags & Timeline */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.exp-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.role-pill {
  background-color: var(--theme-color);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.focus-pill {
  background-color: white;
  color: var(--text-dark);
  border: 1px solid #d0d0d0;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.exp-timeline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Institution Name */
.exp-institution {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* Bullets */
.exp-bullets {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exp-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--theme-color);
  font-weight: bold;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

/* ===========================
   Scroll Animations
   =========================== */
.hidden-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .exp-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  
  .exp-icon-col {
    align-items: flex-start;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
