/* FOUNDERS - Responsive Version */
.hero-wrapperR {
  width: 100vw;
  /* height: 100vh;
  max-height: 100vh; */
  display: flex;
  flex-direction: row;
  cursor: pointer;
  gap: 0;
  /* background-color: red; */
  transition: all 0.1s ease;
  overflow: hidden; /* Prevent any overflow */
}

.media-panel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-holder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 100%;
}



#mob-founder-2{
  margin-top: -20px;
}

.photo-holder-moblie{
  width: 100%;
  height: 100%;
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 100%;
}

.invisible_hover {
  width: 53%;
  height: 90%;
  position: absolute;
  /* top: 0; */
  left: 0;
  bottom: 0;
  background-color: rgba(255, 0, 0, 0);
  opacity: 1;
  z-index: 10;
  /* transition: opacity 0.3s ease; */
}

.display-img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover; /* Changed from contain to cover for better responsiveness */
  object-position: center;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  transform: scale(1);
}

.hover-img {
  opacity: 0;
  position: absolute;
  /* top: 0;
  left: 0; */
  width: 100%;
  /* height: 100%; */
  object-fit: cover; /* Added object-fit for consistency */
  object-position: center;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  transform: scale(1);
}

/* Fixed hover effect - target the hover-img inside the hovered media-panel */
.invisible_hover:hover ~ .hover-img {
  opacity: 1;
}

.invisible_hover:hover .display-img {
  /* opacity: 0; */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-wrapperR {
    height: 50vh; /* Adjust height for mobile if needed */
    min-height: 300px; /* Ensure minimum height on very small screens */
  }
}

@media (max-width: 480px) {
  .hero-wrapperR {
    height: 40vh;
    min-height: 250px;
  }

  
.photo-holder-moblie{
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 100%;
}
}

/* For very wide screens */
/* @media (min-aspect-ratio: 16/9) {
  .display-img,
  .hover-img {
    object-fit: contain;
  }
} */

/* For portrait orientation */
@media (orientation: portrait) {
  .hero-wrapperR {
    height: 60vh; /* Adjust for portrait screens */
  }
}

/* .display-img.hidden {
  opacity: 0;
  transform: scale(1);
} */

.content-panel {
  width: 50%;
  /* height: 100%; */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: white;
  text-align: center;
}

.main-heading {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  opacity: 0.9;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.sub-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 500px;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.media-panel:hover ~ .content-panel .main-heading {
  transform: translateY(0);
  opacity: 1;
}

.media-panel:hover ~ .content-panel .sub-text {
  transform: translateY(0);
  opacity: 1;
}

.media-panel:hover {
  transform: scale(1);
}

.media-panel:hover ~ .content-panel {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-wrapperR {
    flex-direction: column;
    height: auto;
    min-height: 0vh;
  }

  .media-panel,
  .content-panel {
    width: 100%;
    height: 50vh;
    min-height: 400px;
  }

  .main-heading {
    font-size: 2.5rem;
  }

  .sub-text {
    font-size: 1rem;
  }

  .content-panel {
    padding: 2rem;
  }
}

@media (max-width: 480px) {

  .hero-wrapperR {
    margin-top: -15%;
  }

  .media-panel {
    width: 100%;
    height: auto;
    min-height: 0px;
  }

}
/* PEOPLE */

.team-section {
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  background-color: black;
  padding-block: 64px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.cards-container {
  width: 80%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.team-card {
  background: rgb(80, 80, 80);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  gap: 0;
  width: 23%;
  height: max-content;
  flex-direction: column;
  cursor: pointer;
  box-shadow: -2px -1px 5px 2px #ee7d2100;
}

.team-card:hover {
  transform: scale(1.04);
  box-shadow: 0px 0 10px 2px #ee7d21d5;

  & .card-content h3 {
    transition: all 0.3s ease;
    color: #ee7e21;
    transform: translateY(-5px);
  }

  & .card-content p {
    transition: all 0.4s ease;
    color: #000000;
    transform: translateY(-10px);
  }
}

.card-image-holder {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: black;
  aspect-ratio: 4/4.25;
}

.card-image-holder img {
  width: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.6s ease;
}

.card-image-holder .primary-img {
  opacity: 1;
  z-index: 2;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
}

.card-image-holder .hover-img {
  opacity: 0;
  z-index: 1;
  transform: scale(1);
}

.team-card:hover .card-image-holder .primary-img {
  opacity: 0;
  transform: scale(1);
}

.team-card:hover .card-image-holder .hover-img {
  opacity: 1;
  transform: scale(1);
}

.card-content {
  height: 25%;
  padding: 20px;
  /* display: flex; */
  display: none;
  gap: 10%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #bcbcbc 100%);
}

.person-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #000000;
  text-align: center;
  line-height: 1.3;
  text-wrap: nowrap;
  font-family: bebas;
  transition: all 0.3s ease;
}

.person-role {
  font-size: 0.7rem;
  color: #525252;
  text-align: center;
  padding: 0;
  text-wrap: nowrap;
  font-family: ITCNormal;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cards-container {
    width: 90%;
    gap: 25px;
  }
  
  .team-card {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .cards-container {
    width: 95%;
    gap: 20px;
  }
  
  .team-card {
    width: 45%;
  }
  
  .person-name {
    font-size: 1.4rem;
  }
  
  .person-role {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .cards-container {
    width: 95%;
    gap: 15px;
  }
  
  .team-card {
    width: 47%;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .person-name {
    font-size: 1.2rem;
  }
  
  .person-role {
    font-size: 0.6rem;
  }
}

@media (max-width: 360px) {
  .cards-container {
    gap: 10px;
  }
  
  .team-card {
    width: 48%;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .person-name {
    font-size: 1.1rem;
  }
  
  .person-role {
    font-size: 0.55rem;
  }
}