/* About Page Styles */
.about-page {
  overflow-x: hidden;
}

/* Common Section Styles */
.section {
  padding: 60px 0;
  position: relative;
}

.section-title-wrapper {
  margin-bottom: 30px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-description {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-header {
  margin-bottom: 60px;
}

/* Introduction Section */
.intro-section {
  padding: 120px 0;
  background-color: var(--white);
}

.intro-content {
  padding-right: 30px;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.feature-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.intro-image-wrapper {
  position: relative;
}

.intro-image {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.intro-image:hover img {
  transform: scale(1.05);
}

.intro-image-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -20px;
  right: -20px;
  border-radius: 10px;
  background-color: rgba(26, 151, 181, 0.1);
  z-index: 1;
}

/* Values Section */
.values-section {
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a97b5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.value-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.value-card.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.3s ease;
}

.value-card:hover::before {
  height: 100%;
}

.value-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 151, 181, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 30px;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.value-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.value-card:hover h3 {
  color: var(--primary-color);
}

.value-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Approach Section */
.approach-section {
  padding: 120px 0;
  background-color: var(--white);
}

.approach-image-wrapper {
  position: relative;
  margin-top: 0px;
}

.approach-image {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  margin-top: 0px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.approach-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.approach-image:hover img {
  transform: scale(1.05);
}

.approach-image-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: -25px;
  border-radius: 10px;
  background-color: rgba(26, 151, 181, 0.1);
  z-index: 1;
}

.approach-content {
  padding-left: 30px;
}

.approach-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.approach-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
}

.approach-step:hover {
  transform: translateX(10px);
}

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 151, 181, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.approach-step:hover .step-number {
  background-color: var(--primary-color);
  color: var(--white);
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.approach-step:hover .step-content h3 {
  color: var(--primary-color);
}

.step-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Team Section */
.team-section {
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a97b5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Team Card Styles */
.team-card {
  position: relative;
  height: auto; /* Change from fixed height to auto */
  min-height: 450px; /* Add minimum height instead */
  perspective: 1500px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0s);
}

.member-info{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: var(--white);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
  display: flex; /* Add this */
  flex-direction: column; /* Add this */
}

.member-info.hovered .team-card-inner {
  box-shadow: 0 25px 50px rgba(26, 151, 181, 0.2);
  transform: translateY(-15px);
}

.team-card-front {
  position: relative; /* Change from absolute to relative */
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.member-image {
  position: relative;
  max-width: 250px;
  display: flex;
  z-index: 1000;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border-radius: 20px 20px 0 0; /* Add rounded corners to top */
}

.member-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top; /* Focus on the top part of the image */
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card.hovered .member-image img {
  transform: scale(1.00);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-card.hovered .member-overlay {
  opacity: 1;
}

.member-info {
  padding: 25px;
  padding-top: 120px;
  margin-top: -100px;
  background-color: var(--white);
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.member-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card.hovered .member-info::before {
  height: 100%;
}

.member-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.team-card.hovered .member-name {
  color: var(--primary-color);
}

.member-position {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}

.member-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 151, 181, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px) rotate(360deg);
}

.btn-see-more {
  margin-top: auto;
  padding: 12px 20px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-see-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  z-index: -1;
}

.btn-see-more:hover {
    color: var(--white);
    background: var(--primary-color);
}

.btn-see-more:hover::before {
  left: 0;
}

/* Team Modal Styles */
.team-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-height: 90vh;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.modal-content.animate-in {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--dark-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  max-height: 90vh;
  overflow: hidden;
}

.modal-left {
  width: 40%;
  position: relative;
}

.modal-image {
  height: 100%;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-social {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modal-social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.modal-right {
  width: 60%;
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.modal-position {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.modal-divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin-bottom: 25px;
  border-radius: 2px;
}

.modal-bio {
  margin-bottom: 30px;
}

.modal-bio ul{
  padding-left: 25px;
}

.modal-bio p, ul li {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

.modal-skills h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.modal-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(26, 151, 181, 0.1);
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}
.skill-tag-2 {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 30px;
  margin-bottom: 20px !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag-2:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}
.modal-contact {
  margin-top: 20px;
}

.modal-contact .btn {
  padding: 12px 30px;
  font-size: 16px;
}

/* Responsive Modal Styles */
@media (max-width: 992px) {
  .modal-body {
    flex-direction: column;
  }

  .modal-left,
  .modal-right {
    width: 100%;
  }

  .modal-image {
    height: 300px;
  }

  .modal-right {
    padding: 30px;
  }

  .modal-name {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .modal-image {
    height: 250px;
  }

  .modal-right {
    padding: 25px;
  }

  .modal-name {
    font-size: 24px;
  }

  .modal-position {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .modal-image {
    height: 200px;
  }

  .modal-right {
    padding: 20px;
  }

  .modal-social-link {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Animation Classes */
.fade-in,
.slide-in-left,
.slide-in-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  transform: translateY(30px);
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-right {
  transform: translateX(50px);
}

.fade-in.active,
.slide-in-left.active,
.slide-in-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .section-title {
    font-size: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }

  .intro-content,
  .approach-content {
    padding: 0 0 40px 0;
  }

  .intro-text,
  .approach-text {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .value-card {
    padding: 30px 20px;
  }

  .value-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .value-card h3 {
    font-size: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .approach-step {
    gap: 15px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

