/* About Page Specific Styles */

/* Active navigation state */
.nav-items a.active {
  color: var(--green);
}

.nav-items a.active::after {
  width: 100%;
  background-color: var(--green);
}

/* Hero section */
.about-hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--light-grey);
  background-color: var(--dark-grey);
}

.about-hero .video-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-color: var(--dark-grey);
}

.about-hero .video-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.about-hero #video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.9;
}

.about-hero .content {
  position: relative;
  z-index: 2;
}

.about-hero .scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: float 2s ease-in-out infinite;
}

/* About intro section */
.about-intro {
  padding: 100px 0;
  background-color: var(--light-grey);
  color: var(--dark-grey);
}

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

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(59, 118, 96, 0.1);
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.stat-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-family: 'Clash Display', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--green);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Mission & Values section */
.mission-values {
  padding: 100px 0;
  background-color: var(--dark-grey);
  color: var(--light-grey);
}

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

.value-item {
  padding: 30px;
  background: rgba(59, 118, 96, 0.2);
  border-left: 4px solid var(--green);
  transition: box-shadow 0.3s ease;
}

.value-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--green);
}

/* Leadership section */
.leadership {
  padding: 100px 0;
  background-color: var(--light-grey);
  color: var(--dark-grey);
  position: relative;
  overflow: hidden;
}

.leadership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(59, 118, 96, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.leadership .section-content {
  position: relative;
  z-index: 1;
}

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

.team-member {
  position: relative;
  background-color: white;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  opacity: 1; /* Changed to 1 since team members are commented out */
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brown), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-member:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-member:hover::before {
  transform: scaleX(1);
}

.team-photo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.6s ease;
  border: 4px solid transparent;
  box-sizing: border-box;
  background-image: linear-gradient(white, white), 
                    linear-gradient(to right, var(--green), var(--brown));
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.team-member:hover .team-photo {
  /* transform: scale(1.08); */
}

.team-photo-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark-grey);
  position: relative;
  display: inline-block;
}

.position {
  font-size: 1rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.position::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--brown);
  opacity: 0.7;
}

.bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(40, 41, 43, 0.8);
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member:hover .social-icons {
  opacity: 1;
  transform: translateY(0);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  background-color: var(--light-grey);
  color: var(--dark-grey);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--green);
  color: white;
}

.icon-linkedin::before { content: "in"; }
.icon-twitter::before { content: "tw"; }
.icon-email::before { content: "@"; }

/* Timeline section */
.timeline {
  padding: 100px 0;
  background-color: var(--dark-grey);
  color: var(--light-grey);
}

.timeline-container {
  position: relative;
  margin-top: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 0; /* Start with 0 height for animation */
  width: 4px;
  background-color: var(--green);
  transform: translateX(-50%);
}

/* Add a class that will be toggled by JavaScript for animation */
.timeline-container.animate::before {
  height: 100%;
  transition: height 1.5s ease-in-out;
}

.timeline-item {
  --pulse-scale: 1;
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  display: flex;
}

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

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

/* Add connector dots */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--green);
  border-radius: 50%;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) scale(var(--pulse-scale));
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(59, 118, 96, 0.2);
  opacity: 1; /* Changed to 1 since timeline is commented out */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-year {
  position: absolute;
  top: 0;
  left: 50%;
  background-color: var(--green);
  color: var(--dark-grey);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(59, 118, 96, 0.3);
  z-index: 2;
  opacity: 1; /* Changed to 1 since timeline is commented out */
}

.timeline-content {
  width: 45%;
  background: rgba(59, 118, 96, 0.1);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 45px;
  opacity: 1; /* Changed to 1 since timeline is commented out */
}

.timeline-content:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Remove the previous connector styling */
.timeline-item:nth-child(odd) .timeline-content::before,
.timeline-item:nth-child(even) .timeline-content::before {
  display: none;
}

/* Animation class for dots */
.timeline-item.animate::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--green);
}

.timeline-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Page transition animation */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--green);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.active {
  transform: translateY(0);
}

.page-transition.fade-out {
  transform: translateY(-100%);
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .timeline-container {
    padding-left: 30px;
  }
  
  .timeline-container::before {
    left: 0;
    transform: none;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
  }
  
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
  
  .timeline-year {
    left: 0;
    transform: none;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -65px;
    right: auto;
  }
  
  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .about-hero {
    height: 70vh;
  }
  
  .values-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-container {
    padding-left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .timeline-year {
    font-size: 0.9rem;
    padding: 8px 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    width: 20px;
    height: 20px;
    left: -50px;
  }
} 