/* About Page Styles */

.about-section {
  padding: var(--spacing-xxl) 0;
}

.about-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.about-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.about-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.about-header p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--dark-gray);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xxl);
  align-items: center;
}

.about-intro-image {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-intro-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

.about-intro-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary-dark);
}

.about-intro-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.about-intro-content .signature {
  margin-top: var(--spacing-lg);
  width: 150px;
  height: auto;
}

.about-values {
  background-color: var(--off-white);
  padding: var(--spacing-xxl) 0;
  margin-bottom: var(--spacing-xxl);
}

.values-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.values-header h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.value-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: var(--white);
  font-size: 2rem;
}

.value-item h4 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
}

.value-item p {
  color: var(--dark-gray);
}

.about-team {
  margin-bottom: var(--spacing-xxl);
}

.team-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.team-header h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

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

.team-member-image {
  position: relative;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.team-member-image img {
  width: 100%;
  height: 300px;
  display: block;
  transition: transform var(--transition-medium);

}

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

.team-member-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.team-member:hover .team-member-overlay {
  opacity: 1;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.team-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.team-member h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.team-member p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.about-history {
  margin-bottom: var(--spacing-xxl);
}

.history-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.history-header h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  position: relative;
  width: calc(50% - 30px);
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -40px;
}

.timeline-year {
  position: absolute;
  top: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-year {
  left: -90px;
}

.timeline-item:nth-child(even) .timeline-year {
  right: -90px;
}

.timeline-content h4 {
  margin-bottom: var(--spacing-sm);
}

.timeline-content p {
  color: var(--dark-gray);
}

.about-stats {
  background-color: var(--secondary-dark);
  padding: var(--spacing-xxl) 0;
  color: var(--white);
  margin-bottom: var(--spacing-xxl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: var(--spacing-sm);
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--light-gray);
}

.about-testimonials {
  margin-bottom: var(--spacing-xxl);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.testimonials-header h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
  }

  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    left: -60px;
    top: -30px;
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    width: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
  .team-member-image img{
    height: 200px;
  }
}
