@import url('./frontend.css');

/* start founders page  */
.founders {
  padding-bottom: 37px;
}

.founders .heading {
  margin: 32px 0;
}

.founders .video-container {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 800px;
}

.founders .poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Optional overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  cursor: pointer;

}

.founders .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders h4 {
  position: relative;
  font-weight: 500;
  font-size: 32px;
  line-height: 51.2px;
  color: var(--yellow-color);
  display: inline-block;
  margin-bottom: 8px;
}

.founders h5 {
  position: relative;
  font-weight: 400;
  font-size: 24px;
  line-height: 38.4px;
  color: var(--white-color);
  margin-top: 8px;
}

.founders h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 5px;
  background-color: var(--yellow-color);
}

.founders .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font-size: 28px;
  color: var(--white-color);
  border: none;
  background: var(--blue-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #FFFFFF80;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    /* transform: scale(1)  translate(-50% , -50%); */
    opacity: 1;
    scale: 1;
  }

  25% {
    /* transform: scale(1.1)  translate(-50% , -50%) ; */
    opacity: 0.7;
    scale: 1.1;
  }

  50% {
    /* transform: scale(1.2) translate(-50% , -50%); */
    opacity: 0.8;
    scale: 1.2;
  }

  75% {
    /* transform: scale(1.3) translate(-50% , -50%); */
    opacity: 0.9;
    scale: 1.3;
  }

  100% {
    /* transform: scale(1) translate(-50% , -50%); */
    opacity: 1;
    scale: 1;
  }
}

.founders .icon {
  background-color: var(--blue-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* animation: pulse 2s infinite ease-in-out; */
}

.founders .about-founder {
  position: absolute;
  height: auto;
  left: 0;
  bottom: 0;
  width: 100%;
  backdrop-filter: blur(8px);
  background: #292D3266;
  padding: 45px 43px;
}

.founders video {
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: block;
}

.founders .founder {
  margin-top: 50px;
  display: flex;
  align-items: center;
}

.founders .founder-img {
  width: 38%;
   height: 100%;
  border-radius: 8px;
}

.founders .founder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders .founder-content {
  width: 62%;
  background-color: #292D3266;
  backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 47px 52px;
}

.founders p {
  font-weight: 400;
  font-size: 24px;
  line-height: 38.4px;
  color: var(--white-color);
  margin-top: 16px;
}

.founders .founder:nth-child(even) {
  flex-direction: row-reverse;
}

.founders .founder:nth-child(even) .founder-content {
  background-color: #91ABCB;
  backdrop-filter: blur(8px);
}

.founders .mob {
  display: none;
}

@media(max-width:1200px) {
  .founders .video-container {
    height: 387px;
  }

  .founders .heading {
    margin: 32px 0;
    text-align: center;
  }

  .founders .heading h2 {
    font-size: 28px;
    line-height: 38.4px;

    text-align: center;
  }

  .founders h4 {
    font-weight: 700;
    font-size: 16px;
    line-height: 25.6px;
  }

  .founders h5 {
    font-weight: 500;
    font-size: 12px;
    line-height: 19.2px;
  }

  .founders .play-btn {
    font-size: 14px;
    width: 44px;
    height: 44px;
  }

  .founders .icon {
    width: 28px;
    height: 28px;
  }

  .founders .about-founder {
    padding: 16px 22px;
  }

  .founders .founder {
    margin-top: 52px;
    flex-direction: column;
  }

  .founders .founder-img {
    width: 100%;
    min-height: 387px;
    position: relative;
  }

  .founders .founder-content {
    width: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 24px 23px;
  }

  .founders p {
    font-weight: 500;
    font-size: 12px;
    line-height: 19.2px;
    margin-top: 16px;
  }

  .founders .founder:nth-child(even) {
    flex-direction: column;
  }

  .founders .founder:nth-child(even) .founder-img {
    order: 1;
  }

  .founders .founder:nth-child(even) .founder-content {
    order: 2;
  }

  .founders .mob {
    display: block;  }
  .founders .desktop,
  .founders .founder-name {
    display: none;
  }

  .founders .poster img {
    object-fit: cover;
  }

  .founders .heading h2 {
    font-size: 16px;
    line-height: 20.4px;
    text-align: center;
  }

}

@media(min-width:992px) {

  .founders .desktop,
  .founders .founder-name {
    display: block;
  }

  /* Hide horizontal overflow to prevent scroll */
  body {
    overflow-x: hidden;
  }

  /* Force full width using safer method */
  .founders .other-founders {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
  }

  /* Desktop: Make founder sections with equal heights */
  .founders .founder-img {
    width: 30%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
  }

  .founders .founder-content {
    width: 70%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .founders .founder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Remove gap between image and content */
  .founders .founder {
    gap: 0;
    margin: 50px 0 0 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
  }

}