body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow-y: scroll;
    overflow-x: hidden;
  }

/* FIRST SECTION */
.intro-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 4rem;
  gap: 6rem;
    h1 {
      font-size: 60px;
      font-weight: 100;
      text-align: left;
      color: var(--blue);
      line-height: 1;
    }
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
  width: 544px;
}

.vm-sec {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  height: 540px;
  width: 540px;
  outline: 10px solid white;
  border-radius: 50%;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.119), 0 1.5px 6px rgba(0, 0, 0, 0.152);
}

.vision, .mission {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 300px;
  h2 {
    font-size: 30px;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 2rem;
  }
  p {
    text-align: center;
  }
}

.vm-sec .vision,
.vm-sec .mission {
  position: absolute;
  opacity: 0;
  transform: scale(0.96);
  animation-duration: 14s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.vm-sec .vision {
  animation-name: visionCycle;
}

.vm-sec .mission {
  animation-name: missionCycle;
}

@keyframes visionCycle {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  42% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes missionCycle {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  50% {
    opacity: 0;
    transform: scale(0.96);
  }
  58% {
    opacity: 1;
    transform: scale(1);
  }
  92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* SECOND SECTION */
.sticky-title2 {
  font-size: 80px;
  font-family: var(--playfair);
  color: var(--blue);
  position: relative;
  text-align: center;
  line-height: 1.2;
  z-index: 1;
  pointer-events: none;
}

.team-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  min-height: 200vh;
  padding: 5rem 1rem;
  padding-bottom: 400vh;

  h2 {
    font-size: 20px;
    color: var(--blue);
    font-weight: bold;
    margin-bottom: 2rem;
  }
}

.team-wrapper {
  padding: 1rem;
  position: relative;
  height: 460px;
  overflow: hidden;
  z-index: 2;
}

/* Each card is positioned like a stack */
.team-card {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 58rem;
  height: auto;
  border-radius: 14px;
  padding: 2rem;
  background-color: white;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.12);
  cursor: default;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.team-card img {
  width: 259px;
  height: 306px;
  border-radius: 22px;
  object-fit: cover;
}

.team-desc {
  padding: 0 0 0 2rem;

  h2 {
    font-size: 20px;
    margin-bottom: 1rem;
    color: var(--orange);
  }

  p {
    font-size: 16px;
    font-weight: lighter;
    line-height: 1.3;
    text-align: left;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
}

.badges img {
    height: 4rem;
    width: auto;
    margin-right: 1rem;
}

.linkedin {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: flex-end;
}

.linkedin a {
  font-weight: lighter;
  color: black;
  text-decoration: underline;
}

.linkedin a:hover {
  font-weight: bold;
  color: var(--orange);

}

@keyframes team-section-fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1250px) {
  .intro-section {
    gap: 2rem;
  }
  .vm-sec {
    height: 400px;
    width: 400px;
    aspect-ratio: 1/1;
  }
}

@media (max-width: 1150px) {
  .team-section {
    position: relative;
    padding: 5rem 1rem;
  }
  .team-wrapper {
    overflow: unset;
    height: auto;
  }
  .team-card:last-child {
    display: none;
  }
}

@media (max-width: 1090px) {
  .intro-section {
    padding: 8rem 2rem 4rem;
    margin: 0;
    h1 {
      font-size: 40px;
    }
  }

  .intro-text {
    justify-content: start;
    height: 350px;
    gap: 1rem;
  }

  .team-section {
    justify-content: start;
    height: auto;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    background-color: transparent;
    margin-top: 0;
  }

  .team-card.active {
    transform: none;
    height: auto;
    box-shadow: none;
    background-color: transparent;
  } 

  .team-desc {
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    height: auto;
    background-color: white;
    border-radius: 1rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 776px) {

  .sticky-title2 {
    font-size: 60px;
    line-height: 1.2;
  }

  .carousel-track {
    gap: 1rem;
  }

  .intro-section {
    flex-direction: column;
    padding: 4rem 1rem 2rem;
    p {
      font-size: 16px;
    }
  }

  .circle-wrap:hover .circle-title {
    font-weight: bold;
  }

  .description-box {
    margin: 1rem 0;
  }

  .intro-text {
    height: auto;
    width: auto;
  }
}

@media (max-width: 546px) {
  .vm-sec {
    height: auto;
    width: 90vw;
}

.vision, .mission {
  padding: 2rem;
  h2 {
    margin-bottom: 1rem;
  }
}

.carousel-track {
  gap: 1rem;
}

  .badges {
    flex-wrap: wrap;

    img {
      margin-right: 0;
    }
  }

  .linkedin {
    margin: 1.5rem 0 0;
  }
}