/* === ABOUT PAGE TIMELINE & STATS === */

/* Timeline container */
.about-nexus-container {
  position: relative;
  padding: 80px 0;
}

/* Core wrapper */
.nexus-core-wrapper {
  position: relative;
  margin-top: 60px;
}

/* Vertical laser spine */
.nexus-spine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;        /* beam thickness controlled here */
  height: 100%;      /* stretch full container */
  pointer-events: none;
  z-index: 0;
}

.nexus-main-path {
  stroke: url(#nexus-path-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  stroke-dashoffset: 0;
  animation: laserFlow 2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(162, 235, 204, 0.9));
}

@keyframes laserFlow {
  to {
    stroke-dashoffset: -18; /* flow effect */
  }
}

/* Stops (timeline cards) */
.nexus-content-stops {
  position: relative;
  z-index: 1; /* keeps above the laser */
}

.nexus-stop {
  width: 100%;
  margin: 60px 0;
  display: flex;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nexus-stop.visible {
  opacity: 1;
  transform: translateY(0);
}

.nexus-stop.left {
  justify-content: flex-start;
}

.nexus-stop.right {
  justify-content: flex-end;
}

.nexus-panel {
  background: var(--glass-bg, rgba(255,255,255,0.7));
  border: 1px solid rgba(162,235,204,0.4);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.nexus-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border-color: var(--accent-base);
}

/* Meta text */
.nexus-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted, #718096);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nexus-core-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;  /* 🔥 broader beam */
  height: 100%;
  
  /* Glowing laser look */
  background: linear-gradient(
    to bottom,
    rgba(162, 235, 204, 0.05) 0%,
    rgba(162, 235, 204, 0.9) 50%,
    rgba(162, 235, 204, 0.05) 100%
  );
  
  background-size: 100% 60px;
  animation: laserFlow 2s linear infinite;
  
  /* Glow aura */
  box-shadow: 
    0 0 12px rgba(162,235,204,0.9),
    0 0 24px rgba(162,235,204,0.6),
    0 0 36px rgba(162,235,204,0.4);
  
  z-index: 0;
  pointer-events: none;
}

@keyframes laserFlow {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 2px solid rgba(162,235,204,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.05);
  border-color: var(--accent-base);
}

.team-member h4 {
  margin: 6px 0 4px;
  font-size: 1rem;
}

.team-member p {
  font-size: 0.85rem;
  color: var(--muted, #718096);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--glass-bg, rgba(255,255,255,0.7));
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(162,235,204,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-color: var(--accent-base);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-base);
}

.stat-label {
  font-size: 0.95rem;
  margin-top: 6px;
  color: var(--muted, #718096);
}

/* --- Responsive Tweaks --- */
@media (max-width: 1200px) {
  .nexus-panel { max-width: 460px; }
}

@media (max-width: 992px) {
  .nexus-panel { max-width: 420px; }
  .nexus-stop { margin: 50px 0; }
}

@media (max-width: 768px) {
  .nexus-stop { 
    justify-content: center !important; 
    margin: 40px 0; 
  }
  .nexus-panel { max-width: 100%; }
  .nexus-spine { 
    left: 50%;
    transform: translateX(-50%);
    width: auto;
  }
}

@media (max-width: 576px) {
  .about-nexus-container { padding: 60px 0; }
  .nexus-stop { margin: 30px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-number { font-size: 1.6rem; }
}

/* Desktop – keep beam in middle of left/right split */
.nexus-spine {
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile – center under cards */
@media (max-width: 768px) {
  .nexus-spine {
    left: 50%;             /* lock to center */
    transform: translateX(-50%);
  }

  .nexus-stop {
    justify-content: center !important;  /* panels stacked in center */
  }
}

/* Section Title Alignment */
.section-title {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  max-width: 800px; /* keeps it nicely readable */
  margin: 0 auto 40px; /* centers block inside wrap */
  font-size: 1.1rem;
  line-height: 1.6;
}

