/* ABOUT US PAGE STYLES */

/* Hero layout */
.page-about .about-hero {
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
}

/* Sliding hero track holds two layers */
.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Base slide (default off-screen to the right) */
.about-hero .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
  z-index: 0; /* under overlay/content */
}

/* Visible slide */
.about-hero .hero-slide.is-current {
  transform: translateX(0);
}

/* Slide leaving to the left */
.about-hero .hero-slide.is-exiting {
  transform: translateX(-100%);
}

/* Dark overlay above slides */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  pointer-events: none;
  z-index: 1;
}

/* Text content above overlay and slides */
.page-about .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-about .hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white, #f1f5f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-about .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* Bubble timeline flow */
.about-timeline {
  background: var(--color-bg-secondary, #020617);
  padding: 5rem 0;
}

.timeline-flow {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

/* vertical line for mobile, horizontal feel on desktop */
.timeline-flow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(148, 163, 184, 0.4);
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  display: flex;
  align-items: center;
  margin: 2.5rem 0;
}

/* alternate left/right text blocks on desktop */
.timeline-node:nth-child(odd) .timeline-info {
  margin-right: auto;
  text-align: right;
}

.timeline-node:nth-child(even) .timeline-info {
  margin-left: auto;
  text-align: left;
}

/* bubble sits on the center line */
.timeline-bubble {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #071169, #2c3e5a);
  border: 2px solid var(--color-accent, #2434c2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
  left: 50%;
}

/* keep your current look, just sized for bubbles */
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent, #a855ff);
  text-align: center;
  padding: 0.25rem 0.5rem;
  line-height: 1.1;
}

/* content block */
.timeline-info {
  max-width: 320px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--color-bg-card);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.timeline-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-info p {
  font-size: 0.95rem;
  color: var(--color-text-secondary, #e5e7eb);
}


/* MOBILE: 1st/3rd bubbles LEFT, 2nd/4th RIGHT, text CENTERED below */
@media (max-width: 768px) {
  .timeline-flow::before {
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
  }

  /* 1st & 3rd: Bubble LEFT */
  .timeline-node:nth-child(odd) .timeline-bubble {
    margin-right: auto;
    margin-left: 0;
    left: 0;
    transform: none;
  }

  /* 2nd & 4th: Bubble RIGHT (current position) */
  .timeline-node:nth-child(even) .timeline-bubble {
    margin-left: auto;
    margin-right: 0;
    left: auto;
    transform: none;
    right: 0;
  }

  .timeline-node {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .timeline-bubble {
    width: 72px;
    height: 72px;
    order: -1; /* Bubbles above text */
    position: static; /* Remove absolute positioning */
  }

  .timeline-year {
    font-size: 1.1rem;
  }

  .timeline-info {
    max-width: 320px;
    margin: 0 !important;
    text-align: center !important;
    padding: 1rem;
  }
}





/* STATS */
.about-stats {
  padding: 4rem 0;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.06),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      var(--color-accent) 0%,
      color-mix(in srgb, var(--color-accent) 70%, #000 30%) 100%
    );
  color: white;
}


.stats-grid, .stats-clients-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* FEATURES */
.about-why {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--color-accent-soft, rgba(102, 126, 234, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-accent, #667eea);
  margin: 0 auto 1.5rem;
}

/* TEAM */
.about-team {
  padding: 5rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background-size: cover;
  background-position: center;
}

.team-role {
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* CLIENTS */
.about-stats-clients {
  padding: 5rem 0;
}

.stats-clients-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.client-logo img {
  height: 40px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-logo img:hover {
  filter: grayscale(0%);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .timeline-grid, .features-grid, .team-grid, .stats-clients-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-clients-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
