/* About Hero */
.about-hero {
  background: linear-gradient(rgba(29, 32, 36, 0.8), rgba(29, 32, 36, 0.8)),
    url("../../images/hero-bg5.jpg") center/cover no-repeat;
  height: 100vh;
  min-height: 500px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  margin-top: 80px;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero .lead {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* About Intro */
.about-intro {
  padding: 80px 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.about-intro-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Core Values */
.core-values {
  background-color: var(--light-color);
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 32px;
}

.value-card h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.values-list {
  list-style: none;
  text-align: left;
  margin-top: 20px;
}

.values-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.values-list i {
  margin-right: 10px;
  color: var(--accent-color);
}

/* Our History */
.our-history {
  padding: 80px 0;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  overflow: hidden; /* Clearfix for floated items */
}

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

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  float: left;
  clear: right;
  padding-right: 50px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  float: right;
  clear: left;
  padding-left: 50px;
  text-align: left;
}

.timeline-year {
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}

.timeline-content::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  top: 30px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -12px;
}

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

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Our Team */

.our-team {
  background-color: var(--light-color);
  padding: 80px 0;
}

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

.team-card {
  background-color: transparent;
  perspective: 1000px;
  height: 400px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.team-card.active .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.member-icon {
  width: 100px;
  height: 100px;
  background-color: rgba(57, 125, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--accent-color);
  font-size: 40px;
}

.team-card h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.member-title {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.member-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.flip-hint {
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-top: auto;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .team-card {
    height: 350px;
  }
}

/* About CTA */
.about-cta {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

  .about-intro-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    float: none;
    clear: none;
    padding-right: 0;
    padding-left: 80px;
    text-align: left;
  }

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

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-hero .lead {
    font-size: 1.2rem;
  }

  .about-intro-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    max-width: 250px;
    margin: 0 auto;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .about-hero {
    height: 50vh;
    min-height: 400px;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white) !important;
  color: var(--white) !important;
}
