/* About Page Styles - Restored & Fixed */

/* Header Text Fix */
.page-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-subtitle {
  color: #f1f5f9 !important;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Header Background */
.about-header {
  background:
    linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px;
  text-align: center;
}

/* Mission Section */
.mission-section {
  padding: 100px 0;
  background-color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.mission-card {
  padding: 50px 30px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
  text-align: center;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  color: var(--color-accent);
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
}

.mission-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary-blue);
  font-weight: 700;
}

.mission-card p {
  color: #64748b;
  line-height: 1.7;
}

/* Timeline */
.story-section {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
  border-top: 1px solid #f1f5f9;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #e2e8f0;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  width: 4px;
  background-color: var(--color-accent);
  top: 0;
  left: 50%;
  margin-left: -2px;
  height: 0;
  border-radius: 2px;
  z-index: 1;
  transition: height 0.1s linear;
}

.timeline-item {
  padding: 0 60px 60px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  opacity: 1; /* Visible by default */
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* Optional: keep the visible class for animation effect */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--white);
  border: 4px solid #cbd5e1;
  top: 0;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
  right: auto;
}

.timeline-item.active::after {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.2);
}

.timeline-content {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  border: 1px solid #f1f5f9;
  border-top: 4px solid #cbd5e1;
  transition: transform 0.3s ease;
}

.timeline-item.visible .timeline-content {
  border-top-color: var(--color-accent);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-content .year {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Team Section */
.team-section {
  padding: 100px 0;
  background-color: #f8fafc;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.team-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-img {
  height: 320px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 24px;
  flex-grow: 1;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: var(--primary-blue);
  font-weight: 700;
}

.team-info .role {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-info p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .mission-grid,
  .team-grid,
  .team-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mission-grid,
  .team-grid,
  .team-grid-3 {
    grid-template-columns: 1fr;
  }
  .timeline::before,
  .timeline-progress {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    text-align: left !important;
  }
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 18px;
    right: auto;
  }
}
