/* ******************************************************************************** */
/* About Omech  */
/* ******************************************************************************** */

.div-about-omech {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0rem;
  /* width: 98%; */
  /* background-color: #ffff; */
  background-color: #ffe8d6;
}

.about-omech-flex {
  display: flex;
  justify-content: center;
  align-items: center;

  padding-right: 2.4rem;
  gap: 4rem;
}

.omech-grp-img {
  height: 100%;
}

.info-omech-grp{
  padding: 2.4rem;
  
}

.info-title {
  font-family: marope, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: var(--dark-text-color);
  padding: 1rem 0rem;
  /* margn-left: 0.2rem; */
}

.info-omech {
  font-family: poppins;
  font-size: 1.6rem;
  /* font-weight: 500; */
  line-height: 1.6;
  color: var(--dark-text-color);
}

/* ******************************************************************************** */
/* About Furnomech */
/* ******************************************************************************** */

.div-about-furnomech {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10.2rem 0;
  gap: 10%;
}

.info-furnomech-grp {
  width: 50%;
}

.info-title-text {
  color: var(--dark-text-color);
  font-size: 5rem;
  margin-bottom: 1.4rem;
}

.info-furnomech {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  color: #957f72;
}

.furnomech-stats {
  width: 50%;
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  row-gap: 2.4rem;
  font-family: poppins, sans-serif;
}

.stat {
}

.stat-num {
  font-family: Manrope, sans-serif;
  font-size: 5rem;
  color: var(--dark-text-color);
}

.stat-desc {
  font-size: 1.6rem;
  color: #957f72;
  margin-top: 0.5rem;
}

/* ******************************************************************************** */
/* Our Team */
/* ******************************************************************************** */

.div-our-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
  width: 100%;
  padding: 1rem;
  justify-items: center;
}

.card {
  text-align: center;
  width: 100%;
  max-width: 30rem;
}

.member-img-wrapper {
  overflow: hidden;
  margin-bottom: 2rem;
  width: 100%;
  height: 35rem;
}

.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
  display: block;
}

.member-img:hover {
  scale: 1.1;
}

.member-info {
  padding: 1rem;
}

.member-name {
  font-size: 2.8rem;
  color: var(--dark-text-color);
  margin: 0.2rem 0;
  line-height: 1.2;
}

.member-post {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  color: var(--sub-text-color);
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .div-our-team {
    grid-template-columns: 1fr;
    gap: 6rem;
    padding: 0rem;
  }

  .member-img-wrapper {
    height: 40rem;
  }

  .member-info {
    padding: 2rem 1rem;
  }

  .member-name {
    font-size: 3.2rem;
  }

  .member-post {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }
}

/* Overlay card */

.overlay-bg-blur {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #957f7256;
  background: linear-gradient(
    to bottom,
    var(--blur-bg-color),
    var(--blur-bg-color)
  );
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(12px);
  z-index: 1;
  display: none;
}

.overlay-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-54%, -53%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4.8rem;
  width: 80vw;
  margin: 4.8rem;
  padding: 3.2rem;
  background-color: var(--light-text-color);
  display: none;
  background-color: var(--btn-bg-color);
  border: 2px solid var(--sub-text-color);
}

.close-icon {
  font-size: 3.6rem;
  color: #000;
  transform: translateY(-2rem);
  cursor: pointer;
}

.overlay-member-img {
  width: 28rem;
  /* height: 30rem; */
}

.main-info {
  margin: 1.4rem;
}

.card-member-name {
  font-size: 4rem;
  font-weight: 300;
  color: var(--dark-text-color);
  line-height: 1.2;
}

.card-member-designation {
  font-family: poppins, sans-serif;
  color: var(--sub-text-color);
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  margin-top: 1rem;
}

.card-member-info,
.card-member-list {
  font-family: poppins, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--sub-text-color);
  margin-top: 1.5rem;
}

@media only screen and (max-width: 769px) {
    /* Overlay Card Mobile Styles */
  .overlay-card {
    flex-direction: column;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 6rem 2rem 2rem 2rem;
    top: 0;
    left: 0;
    transform: none;
    overflow-y: auto;
    background-color: var(--light-text-color);
}

   .close-icon {
    position: absolute;
    top: 8rem;
    left: 6rem;
    font-size: 3rem;
    z-index: 3;
    transform: none;
    color: var(--dark-text-color);
}

    .div-overlay-member-img {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0rem;
    }

    .overlay-member-img {
        width: 20rem;
        height: 20rem;
        object-fit: cover;
        border-radius: 8px;
    }

    .div-overlay-member-info {
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}


    .page-title {
        margin-left: 1.7rem;
        font-size: 2.4rem;
    }

    .info-title {
        font-size: 1.4rem;
        margin-left: 0.6rem;
    }

    .info-title-text {
        font-size: 3.5rem;
    }

    .div-about-furnomech {
        flex-direction: column;
        align-items: center;
        margin: 5rem 0;
    }

    .info-furnomech-grp {
        width: 100%; 
        text-align: center;
    }

    .info-omech {
        font-size: 1.4rem;
        line-height: 1.5;
         
    }

    .info-furnomech {
        font-size: 1.4rem;
        line-height: 1.5;
    }
  
    .furnomech-stats {
        width: 100%;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .stat-num {
        font-size: 3.6rem;
    }

    .stat-desc {
        font-size: 1.4rem;
    }

    .member-name {
        font-size: 2.4rem;
    }

    .member-post {
        font-size: 1.4rem;
    }

    .card-member-name {
        font-size: 3.2rem;
    }

    .card-member-designation {
        font-size: 1.6rem;
    }

    .card-member-info,
    .card-member-list {
        font-size: 1.4rem;
    }

    .page-content {
        padding: 3.2rem 0rem;
        width: 100%;
        margin-left: 0;
    }

    /* Additional mobile overlay card styles */
    .card-member-name {
        margin-top: 1rem;
        font-size: 2.8rem;
    }

    .card-member-designation {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }

    .card-member-info {
        margin-top: 1rem;
        line-height: 1.5;
    }
}

.team-section {
  text-align: left;
  padding: 5rem 1rem;
  background: #f9f1eb;
  color: #3a2f2f;
}

.team-section h2 {
  font-size: 5rem;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 3rem;
  color: #4c4037;
}

.team-section h2 em {
  font-style: italic;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: auto;
}

.card {
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 230px;
  height: 320px;
  /* border-radius: 50%; */
  object-fit: cover;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.card h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 2rem;
  font-weight: 500;
  color: #2e2b29;
}

.card p {
  font-size: 1.4rem;
  color: #7a6f6f;
  font-family: "Poppins", sans-serif;;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  z-index: -1;
}

.modal-content {
  background: #e8d9cd;
  padding: 3rem;
  border-radius: 12px;
  max-width: 1000px;
  width: 90%;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal-content img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-text h3 {
  margin: 0;
  font-size: 2.2rem;
}

.modal-text p.role {
  font-style: italic;
  margin-bottom: 1.2rem;
  color: #6b5b5b;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
}

.modal-text p.desc {
  line-height: 1.7;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  cursor: pointer;
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  .team-section h2 {
    font-size: 4rem;
  }
  .card img {
    width: 180px;
    height: 180px;
  }
  .card h3 {
    font-size: 1.8rem;
    font-family: "Poppins", sans-serif;
  }
  .card p {
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
  }
  .modal-content {
    max-width: 800px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .team-section {
    text-align: left; /* center on tablets */
    padding: 5rem 1rem;
  }
  .team-section h2 {
    font-size: 3.5rem;
  }
  .team-cards {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .card img {
    width: 160px;
    height: 160px;
  }
  .modal-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .modal-content img {
    margin: auto;
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 3rem 0rem;
    text-align: center;
  }

  .team-section h2 {
    font-size: 3.5rem;
    text-align: left; /* center headline */
    margin-bottom: 2rem;
    
  }

  .team-cards {
    grid-template-columns: 1fr; /* one card per row */
    gap: 2.5rem;
  }

  .card {
    background: transparent; /* remove white bg */
    box-shadow: none;
    padding: 1rem 0;
  }

  .card img {
    width: 190px;
    height: 250px;
    margin-bottom: 1rem;
  }

  .card h3 {
    font-size: 2rem; /* bigger text */
    margin-bottom: 0.3rem;
  }

  .card p {
    font-size: 1.5rem; /* bigger role text */
  }

  /* Modal adjustments */
  .modal-content {
    width: 85%;
    padding: 1.5rem;
  }

  .modal-content img {
    width: 160px;
    height: 160px;
  }

  .modal-text h3 {
    font-size: 2rem;
  }

  .modal-text p.role,
  .modal-text p.desc {
    font-size: 1.4rem;
  }
}


