/* About Page Styling */

/* Variables are now imported from variables.css */

.about-page {
  margin-bottom: 3rem;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.about-intro {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-color);
}

.about-intro-content {
  color: var(--text-muted-color);
  font-size: 1rem;
  line-height: 1.6;
}

.about-intro-content p {
  margin-bottom: 1rem;
}

.about-section {
  margin-bottom: 6rem;
  background-color: var(--bg-alt-color);
  border-radius: 5px;
  padding: 2.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.about-section:first-of-type {
  margin-top: 0;
}

.about-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), rgba(0, 255, 0, 0));
}

.about-section h2 {
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

.about-section p {
  color: var(--text-muted-color);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.about-card {
  background-color: var(--bg-color);
  border-radius: 5px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid var(--color-primary);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
}

.about-card:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(0, 255, 0, 0.1));
}

.about-card-title {
  color: var(--color-title);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.about-card-content {
  color: var(--text-muted-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.value-card {
  background-color: var(--bg-color);
  border-radius: 5px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--color-primary);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

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

.value-card:before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), rgba(0, 255, 0, 0.1));
}

.value-card-title {
  color: var(--color-title);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.value-card-content {
  color: var(--text-muted-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

.team-section {
  margin-top: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

/* Hide any unwanted elements */
.team-grid::before,
.team-grid::after,
.team-member::before,
.team-member::after,
.team-grid > *:not(.team-member),
.team-member > *:not(.team-member-image):not(.team-member-info) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

.team-member {
  background-color: var(--bg-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--color-primary);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  isolation: isolate;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.team-member-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-alt-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.team-member-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 2;
}

.team-member-name {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.team-member-role {
  color: var(--text-muted-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.team-member-bio {
  color: var(--text-muted-color);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.team-member-expertise {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.team-member-expertise h4 {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.expertise-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.expertise-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted-color);
  font-size: 0.9rem;
}

.expertise-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.team-member-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--color-primary);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.social-icon {
  width: 18px;
  height: 18px;
}

.approach-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.approach-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted-color);
  list-style-type: none;
}

.approach-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.cta-section {
  background-color: var(--bg-alt-color);
  padding: 3rem;
  border-radius: 5px;
  margin-top: 5rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), rgba(0, 255, 0, 0.1), var(--color-primary));
}

.cta-section h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.cta-section p {
  color: var(--text-muted-color);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #292424;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 0.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.cta-button:hover {
  background-color: var(--color-secondary);
  transform: scale(1.05);
}

/* Fix for unwanted text and elements */
.team-grid > *:not(.team-member),
.team-member > *:not(.team-member-image):not(.team-member-info) {
  display: none !important;
}

/* Ensure proper text color */
.team-member-info *:not(h3):not(h4):not(a):not(svg) {
  color: var(--text-muted-color) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .about-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 1.5rem;
  }
}
