/* ═══════════════════════════════════════════════════════════
   EXP SECTION — broopt.html design (Semantic translation)
   ═══════════════════════════════════════════════════════════ */

.broopt-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 10;
}

.broopt-header {
  margin-bottom: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 1rem;
}
@media (min-width: 768px) {
  .broopt-header {
    flex-direction: row;
    align-items: flex-end;
    padding-left: 2.5rem;
  }
}

.broopt-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #818cf8;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.broopt-title {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: white;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
  margin: 0;
}
@media (min-width: 768px) {
  .broopt-title {
    font-size: 4.5rem;
  }
}

.broopt-title-gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, #d4d4d8, #52525b);
}

.broopt-header-right {
  text-align: left;
}
@media (min-width: 768px) {
  .broopt-header-right {
    text-align: right;
  }
}

.broopt-meta-divider {
  width: 4rem;
  height: 1px;
  background-color: #52525b;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .broopt-meta-divider {
    margin-left: auto;
  }
}

.broopt-meta-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 2;
  margin: 0;
}

.broopt-timeline-wrapper {
  position: relative;
  width: 100%;
}

.broopt-timeline-line-bg {
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: 3rem;
  width: 1px;
  background-color: rgba(39, 39, 42, 0.6);
  z-index: 0;
}
.broopt-timeline-line-glow {
  position: absolute;
  left: 1rem;
  top: 2rem;
  height: 60%;
  width: 2px;
  background: linear-gradient(to bottom, #6366f1, rgba(99, 102, 241, 0.5), transparent);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  transform: translateX(-0.5px);
  z-index: 10;
}
@media (min-width: 768px) {
  .broopt-timeline-line-bg,
  .broopt-timeline-line-glow {
    left: 2.5rem;
  }
}

.broopt-entries {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
}

.broopt-entry {
  position: relative;
  padding-left: 3rem;
}
@media (min-width: 768px) {
  .broopt-entry {
    padding-left: 7rem;
  }
}

.broopt-entry-past {
  opacity: 0.7;
  transition: opacity 0.7s;
}
.broopt-entry-past:hover {
  opacity: 1;
}

.broopt-dot {
  position: absolute;
  left: 1rem;
  top: 3.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #050508;
  border: 1px solid #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
  transform: translateX(-50%);
  transition: transform 0.3s;
}
.broopt-entry:hover .broopt-dot {
  transform: translateX(-50%) scale(1.25);
}
.broopt-dot-inner {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.broopt-dot-past {
  position: absolute;
  left: 1rem;
  top: 3.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #050508;
  border: 1px solid #3f3f46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transform: translateX(-50%);
  transition: transform 0.3s, border-color 0.3s;
}
.broopt-entry:hover .broopt-dot-past {
  border-color: #71717a;
}
.broopt-dot-inner-past {
  width: 0.375rem;
  height: 0.375rem;
  background-color: #52525b;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.broopt-entry:hover .broopt-dot-inner-past {
  background-color: #a1a1aa;
}
@media (min-width: 768px) {
  .broopt-dot,
  .broopt-dot-past {
    left: 2.5rem;
  }
}

.broopt-card {
  background: rgba(10, 10, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s ease, transform 0.4s ease;
  padding: 2rem;
}
@media (min-width: 768px) {
  .broopt-card {
    padding: 3rem;
  }
}
.broopt-card-past {
  border-style: dashed;
}

.broopt-card-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) {
  .broopt-card-content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }
}

.broopt-col-5 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .broopt-col-5 {
    grid-column: span 5 / span 5;
  }
}

.broopt-col-7 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  .broopt-col-7 {
    grid-column: span 7 / span 7;
  }
}

.broopt-pill-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.broopt-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #d1fae5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.broopt-company {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  color: white;
  margin: 0;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04));
  line-height: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.broopt-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #a5b4fc;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 2rem;
}

.broopt-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1px;
  border-radius: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
@media (max-width: 600px) {
  .broopt-metric-grid {
    grid-template-columns: 1fr;
  }
}
.broopt-metric-cell {
  background-color: rgba(5, 5, 8, 0.9);
  padding: 1.25rem;
  transition: background-color 0.3s;
}
.broopt-entry:hover .broopt-metric-cell {
  background-color: rgba(10, 10, 15, 0.9);
}
.broopt-metric-cell.col-span-2 {
  grid-column: span 2 / span 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
@media (max-width: 600px) {
  .broopt-metric-cell.col-span-2 {
    grid-column: span 1 / span 1;
  }
}

.broopt-metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  margin-bottom: 0.75rem;
}
.broopt-metric-val {
  font-size: 1.875rem;
  font-weight: 300;
  color: white;
  margin: 0;
  transition: all 0.3s;
  line-height: 2.25rem;
}
.broopt-metric-val.emerald {
  color: #34d399;
}
.broopt-metric-val span {
  color: #6366f1;
}

.broopt-desc-lead {
  font-size: 1.5rem;
  font-weight: 300;
  color: #f4f4f5;
  line-height: 1.375;
  margin: 0;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
}
.broopt-desc-lead i {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 500;
  font-style: italic;
}

.broopt-desc-body {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.625;
  font-weight: 300;
  margin: 0;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.broopt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.broopt-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 0.5px solid currentColor;
  border-radius: 4px;
  color: #a1a1aa;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  cursor: default;
}
.broopt-tag:hover {
  opacity: 1;
  color: #e4e4e7;
}

/* Metric baseline context label */
.broopt-metric-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #52525b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.3;
}

/* Past Card Styles */
.broopt-past-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) {
  .broopt-past-flex {
    flex-direction: row;
    align-items: center;
  }
}

.broopt-past-left {
  width: 100%;
}
@media (min-width: 1024px) {
  .broopt-past-left {
    width: 60%;
  }
}

.broopt-archived-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.broopt-archived-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #71717a;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}
.broopt-archived-line {
  height: 1px;
  width: 2rem;
  background-color: #3f3f46;
}
.broopt-archived-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #a1a1aa;
  margin: 0;
}

.broopt-company-past {
  font-family: var(--font-sans);
  font-size: 1.875rem;
  color: #e4e4e7;
  margin: 0;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
  font-weight: 300;
  letter-spacing: -0.02em;
}
.broopt-role-past {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #a1a1aa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 1.5rem;
}
.broopt-desc-past {
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.625;
  font-weight: 300;
  font-style: italic;
  margin: 0;
  max-width: 28rem;
}

.broopt-past-right {
  width: 100%;
  display: flex;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .broopt-past-right {
    width: 40%;
    border-left: 1px solid rgba(63, 63, 70, 0.5);
    padding-left: 2rem;
  }
}

/* Orbs */
.broopt-orb-1, .broopt-orb-2, .broopt-orb-3, .broopt-orb-4 {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  animation: orb-float 12s ease-in-out infinite;
  border-radius: 50%;
}
.broopt-orb-1 {
  background-color: rgba(79, 70, 229, 0.8);
  width: 24rem;
  height: 24rem;
  top: -5rem;
  left: -5rem;
}
.broopt-orb-2 {
  background-color: rgba(8, 145, 178, 0.6);
  width: 20rem;
  height: 20rem;
  bottom: 0;
  right: 0;
  animation-delay: -3s;
}
.broopt-orb-3 {
  background-color: rgba(88, 28, 135, 0.4);
  width: 20rem;
  height: 20rem;
  top: 0;
  right: 2.5rem;
  animation-delay: -2s;
}
.broopt-orb-4 {
  background-color: rgba(51, 65, 85, 0.3);
  width: 18rem;
  height: 18rem;
  bottom: 0;
  left: 0;
  animation-delay: -5s;
}

/* ── Marquee Background ── */
.marquee-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: -1;
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.marquee-text {
  font-family: var(--font-sans);
  font-size: 20vw;
  line-height: 1;
  -webkit-text-stroke: 1px #fff;
  color: transparent;
  animation: marquee 40s linear infinite;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}
@keyframes marquee { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

/* Spotlight */
.exp-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.exp-glass-card:hover::before {
  opacity: 1;
}

/* Glitch */
.exp-glitch-hover:hover {
  text-shadow: 2px 0 0 rgba(99, 102, 241, 0.8), -2px 0 0 rgba(14, 165, 233, 0.8);
  animation: exp-glitch-anim 0.2s linear infinite;
}
@keyframes exp-glitch-anim {
  0%, 100% { transform: translate(0) }
  20% { transform: translate(-2px, 1px) }
  60% { transform: translate(2px, -1px) }
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}


/* ─────────────────────────────────────────────────────────
   ACTIVE ROLE BADGE — green chip with live dot
   ───────────────────────────────────────────────────────── */

.active-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  vertical-align: middle;
  margin-left: 2px;
  flex-shrink: 0;
}

.active-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50%  { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ─────────────────────────────────────────────────────────
   HAIRLINE DIVIDER — 0.5 px between header and description
   ───────────────────────────────────────────────────────── */
.card-hairline {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
  border: none;
}

/* ─────────────────────────────────────────────────────────
   KPI BLOCK — tiled surface background
   ───────────────────────────────────────────────────────── */
.kpi-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.65rem 1rem;
}

/* ─────────────────────────────────────────────────────────
   COLOR LOGIC — amber only on current role, neutral on past
   ───────────────────────────────────────────────────────── */

/* Past roles: neutral white KPI values */
.chart-metrics-card .kpi-val {
  color: rgba(255, 255, 255, 0.65);
}

/* Current role: amber gradient KPI values (overrides above) */
.chart-node.current .chart-metrics-card .kpi-val {
  background: linear-gradient(135deg, #fff 30%, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback off */
}

/* ─────────────────────────────────────────────────────────
   CARD SLIDE-IN ANIMATION — left/right from their side
   ───────────────────────────────────────────────────────── */
.chart-item-left .chart-metrics-card {
  --slide-from: -24px;
}

.chart-item-right .chart-metrics-card {
  --slide-from: 24px;
}

.chart-metrics-card {
  opacity: 0;
  transform: translateX(var(--slide-from, 0));
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

.chart-node.active .chart-metrics-card {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────────────────
   EDUCATION — "In progress" badge + badge row layout
   ───────────────────────────────────────────────────────── */
.edu-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Move the existing edu-badge bottom margin to the row */
.edu-badge-row .edu-badge {
  margin-bottom: 0;
}

.edu-in-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: none;
}

.edu-in-progress-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────
   HORIZONTAL TIMELINE LINE DRAW — scroll-based scaleX
   ───────────────────────────────────────────────────────── */
.timeline-progress {
  transform-origin: left center;
  transform: translateY(-50%) scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.horizontal-timeline.line-drawn .timeline-progress {
  transform: translateY(-50%) scaleX(1);
}

/* Mobile: vertical draw direction */
@media (max-width: 950px) {
  .timeline-progress {
    transform-origin: top center;
    transform: translateY(0) scaleY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .horizontal-timeline.line-drawn .timeline-progress {
    transform: translateY(0) scaleY(1);
  }
}

/* --- LINE CHART TIMELINE --- */

.line-chart-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1rem 8rem;
}

/* The undulating line chart background */
.chart-path {
  position: absolute;
  top: 60px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  /* Thick structural line */
  background: rgba(255, 255, 255, 0.05);
  /* Base subtle line */
  z-index: 1;
}

/* Add a glowing neon line effect directly over the path */
.chart-path::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0%,
    rgba(232, 160, 69, 0.5) 40%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

/* Optional: Adding a sharp, bright inner core to the line */
.chart-path::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0%,
    rgba(232, 160, 69, 0.4) 30%,
    transparent 80%
  );
  z-index: 0;
}

/* Each data point on the chart */
.chart-node {
  position: relative;
  margin-bottom: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-node:last-child {
  margin-bottom: 0;
}

.chart-node:hover {
  transform: scale(1.02);
}

/* The actual data coordinate dot */
.chart-coordinate {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-bg-primary);
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-coordinate:hover {
  background-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent);
}

.chart-node.current .chart-coordinate {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  animation: data-pulse 2s infinite;
}

@keyframes data-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Full Duration Labels */
.chart-duration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  z-index: 5;
  white-space: nowrap;
}

/* Position exactly opposite to the card */
.chart-item-left .chart-duration {
  left: 50%;
  margin-left: 40px;
  /* Offset from center node */
  text-align: left;
}

.chart-item-right .chart-duration {
  right: 50%;
  margin-right: 40px;
  /* Offset from center node */
  text-align: right;
}

.chart-node.current .chart-duration {
  color: #10b981;
  font-weight: 700;
}

/* Lines connecting node to card */
.connector-line {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), transparent);
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.connector-line.left {
  right: 50%;
  transform: translateY(-50%) scaleX(-1);
}

.connector-line.right {
  left: 50%;
  transform: translateY(-50%);
}

.chart-node:hover .connector-line {
  opacity: 1;
}

.chart-node.current .connector-line {
  background: linear-gradient(to right, var(--color-success), transparent);
  opacity: 0.8;
}

/* Data Tooltip Card (Subtle White Glassmorphism Theme) */
.chart-metrics-card {
  width: calc(50% - 60px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(32px) saturate(120%);
  -webkit-backdrop-filter: blur(32px) saturate(120%);
  transition: all 0.4s ease;
  z-index: 5;
  position: relative;
  color: #fff;
}

/* Plasma Light using inset box-shadow */
.chart-item-left .chart-metrics-card {
  margin-right: auto;
  box-shadow:
    inset -2px 0 0 var(--color-accent),
    5px 0 20px -5px var(--color-accent-muted),
    0 10px 40px rgba(0, 0, 0, 0.4);
}

.chart-item-right .chart-metrics-card {
  margin-left: auto;
  box-shadow:
    inset 2px 0 0 var(--color-accent),
    -5px 0 20px -5px var(--color-accent-muted),
    0 10px 40px rgba(0, 0, 0, 0.4);
}

.chart-node.current .chart-item-left .chart-metrics-card {
  box-shadow:
    inset -2px 0 0 #fff,
    5px 0 30px rgba(6, 182, 212, 0.4),
    0 15px 40px rgba(139, 92, 246, 0.2);
}

.chart-node.current .chart-item-right .chart-metrics-card {
  box-shadow:
    inset 2px 0 0 #fff,
    -5px 0 30px rgba(6, 182, 212, 0.4),
    0 15px 40px rgba(139, 92, 246, 0.2);
}

/* Circling Plasma Border Hover Animation */
@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes plasma-spin {
  0% {
    --border-angle: 0deg;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    --border-angle: 360deg;
    opacity: 0;
  }
}

.chart-metrics-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 50%,
    rgba(6, 182, 212, 0.2) 70%,
    var(--accent-cyan) 90%,
    #fff 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.chart-node.current .chart-metrics-card::after {
  background: conic-gradient(
    from var(--border-angle),
    transparent 50%,
    rgba(139, 92, 246, 0.2) 70%,
    var(--accent-purple) 90%,
    #fff 100%
  );
}

/* Hover effects */
.chart-node:hover .chart-metrics-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
  /* dim normal border */
}

.chart-item-left.chart-node:hover .chart-metrics-card,
.chart-item-right.chart-node:hover .chart-metrics-card {
  /* Replace static inset line with outer ambient glow */
  box-shadow:
    0 10px 30px rgba(6, 182, 212, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.6);
}

.chart-item-left.chart-node.current:hover .chart-metrics-card,
.chart-item-right.chart-node.current:hover .chart-metrics-card {
  box-shadow:
    0 10px 40px rgba(139, 92, 246, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

.chart-node:hover .chart-metrics-card::after {
  animation: plasma-spin 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.chart-node.current .chart-metrics-card {
  background: rgba(255, 255, 255, 0.08);
  /* slightly stronger white glass */
  border-color: rgba(6, 182, 212, 0.3);
}

.chart-node.current:hover .chart-metrics-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
  /* let plasma spin cleanly */
}

/* --- Card Content: Reference Inspired --- */
.card-header-ref {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.company-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.8rem;
  color: #fff;
}

.company-info-ref {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.2rem;
}

.company-name-ref {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.company-name-ref a {
  color: #888;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.company-name-ref a:hover {
  color: var(--accent-cyan);
}

.company-role-ref {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ccc;
}

.company-location-ref {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
  font-weight: 500;
}

.data-desc {
  color: #d4d4d8;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Mini KPI Grid inside Card - Adjusted for Dark Theme */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-top: 0;
  border-top: none;
}

/* KPI block — layout only; visual styles defined at top of file */
.kpi-block {
  display: flex;
  flex-direction: column;
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1;
  /* color handled by role-specific rules at top of file */
}

.kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Minimal Tags - Pill Shapes */
.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.data-tags .tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .chart-node {
    margin-bottom: 6rem;
  }
}

@media (max-width: 768px) {
  .chart-path {
    left: 20px;
  }

  .chart-node {
    justify-content: flex-start;
    padding-left: 60px;
    margin-bottom: 4rem;
  }

  .chart-coordinate {
    left: 20px;
  }

  .chart-duration {
    left: 20px;
    top: -20px;
    transform: translateX(0);
    transform: translateY(-50%) translateX(25px);
    /* Move right of dot */
    font-size: 1rem;
    padding: 2px 10px;
  }

  .connector-line {
    display: none;
  }

  .chart-metrics-card {
    width: 100%;
    transform: translateX(0) !important;
  }

  .chart-item-left .chart-metrics-card,
  .chart-item-right .chart-metrics-card {
    margin: 0;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION SECTION — hi.html design (Semantic translation)
   ═══════════════════════════════════════════════════════════ */

.edu-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
@media (min-width: 768px) {
  .edu-timeline {
    padding-left: 3rem;
  }
}

.edu-entry {
  position: relative;
}
.edu-entry-past {
  opacity: 0.8;
  transition: opacity 0.3s;
}
.edu-entry-past:hover {
  opacity: 1;
}

.edu-dot {
  position: absolute;
  left: -2rem; /* -2rem from padding-left: 2rem, plus half dot width */
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #09090b;
  border-width: 2px;
  border-style: solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  transition: border-color 0.3s;
}
@media (min-width: 768px) {
  .edu-dot {
    left: -3rem;
  }
}

.edu-dot-emerald {
  border-color: #10b981;
}
.edu-dot-orange {
  border-color: #52525b;
  width: 0.75rem;
  height: 0.75rem;
}
.edu-entry-past:hover .edu-dot-orange {
  border-color: #f97316;
}

.pulse-emerald {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-g 2s infinite;
}
@keyframes pulse-g {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.edu-dot-inner {
  width: 0.375rem;
  height: 0.375rem;
  background-color: #34d399;
  border-radius: 50%;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.text-emerald { color: #34d399; }
.text-zinc { color: #71717a; }

.edu-badge-emerald {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.system-card {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .system-card {
    padding: 2rem;
  }
}
.system-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 8px 30px rgba(0, 0, 0, 0.6);
}

.edu-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: orb-float 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.edu-orb-emerald {
  background-color: rgba(16, 185, 129, 0.25);
  width: 24rem;
  height: 24rem;
  top: -5rem;
  left: -5rem;
}
.edu-orb-cyan {
  background-color: rgba(6, 182, 212, 0.2);
  width: 20rem;
  height: 20rem;
  bottom: -4rem;
  right: -4rem;
  animation-delay: -3s;
}
.edu-orb-orange {
  background-color: rgba(249, 115, 22, 0.25);
  width: 18rem;
  height: 18rem;
  top: -2rem;
  right: -2rem;
  animation-delay: -2s;
}
.edu-orb-amber {
  background-color: rgba(245, 158, 11, 0.2);
  width: 16rem;
  height: 16rem;
  bottom: -2rem;
  left: -2rem;
  animation-delay: -5s;
}

.edu-card-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .edu-card-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.edu-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.edu-card-left {
  width: 100%;
}
@media (min-width: 768px) {
  .edu-card-left {
    width: 66.666%;
  }
}

.edu-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.edu-icon-emerald, .edu-icon-orange {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.edu-icon-emerald {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.edu-icon-orange {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.edu-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.edu-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}
.text-orange { color: rgba(251, 146, 60, 0.8); }
.edu-subtitle.text-emerald { color: rgba(52, 211, 153, 0.8); }

.edu-desc {
  font-size: 0.875rem;
  color: #d4d4d8;
  line-height: 1.625;
  margin: 0;
}

.edu-card-right {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .edu-card-right {
    width: 33.333%;
    justify-content: flex-end;
  }
}

.edu-cgpa-circle {
  position: relative;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .edu-cgpa-circle {
    width: 7rem;
    height: 7rem;
  }
}
.edu-svg-ring {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  overflow: visible;
}
.progress-ring__circle {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-linecap: round;
}

.edu-cgpa-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.edu-cgpa-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .edu-cgpa-val { font-size: 1.5rem; }
}
.edu-cgpa-label {
  font-size: 8px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.edu-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.edu-tag {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: #a1a1aa;
  font-family: var(--font-mono);
}

.edu-delta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.375rem;
}
@media (min-width: 768px) {
  .edu-delta {
    margin-top: 0;
    margin-left: auto;
  }
}
.edu-delta-label {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.edu-delta-val {
  font-size: 10px;
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
}
