@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


body {
  font-family: "poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bodyblock1 {
  margin: 0;
}

.second_section,
.contributors {
  padding: 30px 50px;
}

.first_section .heading {
  font-size: 50px;
  font-weight: 700;
  margin: 10px 0 20px 0;
  font-family: "Roboto condensed";
  border-bottom: 2px solid white;
  width: fit-content;
  padding: 10px 0;
}

.first_section hr {
  width: 660px;
  margin: 10px 0;
}

.first_section a {
  color: white;
}

.typing-container {
  font-size: 2rem;
  font-weight: 500;
  color: white;
  display: inline-block;
  position: relative;
  user-select: none;
  /* Prevent text selection */
  caret-color: transparent;
  /* Hide default I-beam cursor */
  margin-bottom: 10px;
}

#text {
  display: inline;
  white-space: nowrap;
  color: #face52;
}

.cursor {
  display: inline-block;
  background-color: gray;
  width: 2px;
  height: 100%;
  position: absolute;
  right: 0;
  color: grey;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.boxheading {
  font-size: 22px;
  margin: 20px 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.1));
  border-radius: 5px;
  padding: 8px 18px;
  color: #face52;
  width: fit-content;
  font-weight: 700;
  height: fit-content;
  font-family: "Montserrat", sans-serif;
}

/* style for teams section begins */


.teams {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.team-card-container {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: 20% auto;
  min-height: 300px;
  border-radius: 15px;
  box-sizing: border-box;
}

.team-card-header {
  width: fit-content;
  margin-right: 0 !important;
  max-height: 80px;
  display: flex;
  /* background-image: linear-gradient(17.6deg, rgb(109, 76, 29) 15.3%, rgb(58, 30, 7) 91.3%); */
  justify-content: start;
  align-items: center;
  border-radius: 12px;
  margin-left: 20px;
  box-sizing: border-box;
}



.team-card-box {
  width: 100%;
  padding: 20px 10px;
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  align-items: flex-start;
  box-sizing: border-box;
}

.team-card-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.team-card-box::-webkit-scrollbar-thumb {
  height: 4px;
  background-color: rgba(53, 45, 45, 0.879);
  border-radius: 3px;
}

.team-card-box::-webkit-scrollbar-track {
  background-color: rgb(97, 94, 94);
}

.team-card {
  flex: 0 0 300px;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  margin: 0 10px;
}

.team-card:hover:not(.flipped) {
  transform: translateY(-10px) scale(1.05);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 15px;
  box-sizing: border-box;
}

.team-card-front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* Push button down */
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-card-back {
  background-image: linear-gradient(17.6deg, rgb(31, 20, 7) 15.3%, rgb(93, 74, 41) 91.3%);
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: 20px;
  cursor: auto;
}

.team-card-back::-webkit-scrollbar {
  width: 6px;
}

.team-card-back::-webkit-scrollbar-thumb {
  background-color: rgba(214, 136, 27, 0.5);
  border-radius: 3px;
}

.team-card-back h3 {
  color: rgb(255, 174, 0);
  margin-bottom: 10px;
}

.team-card-back p {
  color: white;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.team-card-back ul {
  color: white;
  margin-left: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

.team-card-back li {
  margin-bottom: 5px;
}

.team-card-image {
  width: 115%;
  /* Slightly zoom out */
  height: 120%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}



.team-card-button {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
  margin: 10px 0;
  padding: 7px 18px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  color:#face52;
  border: none;
  cursor: pointer;
  font-weight: 300;
}

.team-card-name {
  display: none;
}

.team-card-button:hover {
  color: rgba(255, 68, 0, 0.734);
  border: 2px solid rgba(255, 68, 0, 0.734);
  cursor: pointer;
  transform: scale(1.05);
}

.team-card-button:active {
  color: rgb(67, 67, 229);
  border: 2px solid rgb(67, 67, 229);
  transform: scale(1.1);
}

.flipped {
  transform: rotateY(180deg) translateY(-10px) scale(1.05);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {

  .first_section,
  .second_section,
  .contributors {
    padding: 20px;
  }

  .first_section .heading {
    font-size: 2rem;
  }

  .team-card-container {
    grid-template-rows: auto 1fr;
    row-gap: 16px;
    min-height: auto;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .team-card-header {
    border-radius: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 10px;
  }

  .team-card-header-name {
    font-size: 1.8rem;
    padding: 5px 0;
  }

  .team-card-box {
    padding: 20px 10px;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .team-card {
    flex: 0 0 280px;
    height: 425px;
    margin: 0 5px;
  }

  .flipped {
    transform: rotateY(180deg) translateY(-10px) scale(1.05);
  }
}

@media (max-width: 480px) {
  .first_section .heading {
    font-size: 1.8rem;
  }

  .team-card-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .team-card-header {
    border-radius: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .team-card-header-name {
    font-size: 1.5rem;
  }

  .team-card {
    flex: 0 0 80%;
    height: 400px;
  }

  .team-card-box {
    padding: 20px 5px;
  }
}

/* Style for team section ends */

.dropdown {
  margin: 5px auto;
}

.dropdown-header {
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
}

.dropdown-content {
  display: none;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content li {
  list-style: none;
  margin: 0;
  padding: 3px 0;
  font-size: 14px;
}

.dropdown-content h4 {
  margin: 20px 0 5px 0;
}

.dropdown-header:hover {
  background-color: #face52;
  color: black;
}

.profile_list {
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
}

.profile_photo {
  height: 230px;
  width: 200px;
  object-fit: cover;
}

.profile_box {
  margin: 20px 40px 20px 0;
  width: fit-content;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile_contents {
  background-color: grey;
  width: 100%;
  margin: 0;
  color: black;
  padding: 0;
  display: block;
}

.profile_name {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 5px 3px 5px;
  font-family: "Roboto Condensed", sans-serif;
}

.profile_category {
  font-size: 11px;
  margin: 0px 5px 5px 5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.simple-profile .profile_category {
  color: #face52;
  font-size: 1.1rem;
}

.simple-profile .profile_name {
  color: white;
  font-size: 1rem;
  font-weight: 400;
}

.simple-profile {
  margin: 30px 0;
}

.teams {
  width: 91%;
  margin: auto;
}

.contributors {
  width: 73%;
  margin: auto;
}

@media (max-width: 1000px) {

  .first_section,
  .second_section {
    padding: 20px 20px;
  }

  .second_section .heading {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 8px 18px;
    color: white;
    font-size: 16px;
    width: fit-content;
    margin-bottom: 20px;
    font-weight: 200;
    height: fit-content;
    font-family: "Montserrat", sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.6);
  }

  .profile_box {
    margin: 10px 20px 10px 0;
    width: fit-content;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile_photo {
    height: 160px;
    width: 150px;
    object-fit: cover;
  }

  .profile_name {
    font-size: 15px;
    font-weight: 700;
    margin: 5px 5px 3px 5px;
    font-family: "Roboto Condensed", sans-serif;
  }

  .profile_category {
    font-size: 9px;
    margin: 0px 5px 5px 5px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
  }

  .teams {
    margin: auto;
  }

  .contributors {
    margin: auto 0;
    padding: 20px;
  }
}

.social_media_icons i {
  font-size: 30px;
  margin: 0 20px 0 0;
}

@media (min-width: 700px) {
  .second_section {
    display: grid;
    grid-template-columns: 1fr 2.5fr 2.5fr;
    justify-items: center;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .second_section {
    display: grid;
    grid-template-rows: repeat(3, auto);
    justify-items: center;
    align-items: center;
  }

  .contributors {
    margin: 40px auto;
    margin-left: 20px;
  }

}

/* auto flip card function */

.auto-flipped {
  transform: translateY(-20px) scale(1.02);
  transition: transform 0.3s ease;
  z-index: 5;
}

.team-card-back {
  overflow-y: auto;
  padding: 25px;
  /* Increased padding */
  backface-visibility: hidden;
}

.team-card button {
  font-family: 'poppins', sans-serif;
}

.team-card-container {
  overflow: visible;
  /* Ensure nothing gets clipped */
}

.team-card {
  scroll-margin-top: 100px;
  /* adjust based on your header height */
}

/* New layout for leaders and core team */
.leaders-core {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  width: 100%;
  align-items: start;
}

.leaders-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.leaders-row .profile_box {
  margin: 0;
}

/* Contributors redesigned as cards */
.contributors {
  margin: 40px auto;
  margin-left: 0;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.contributor-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.contributor-name {
  color: #face52;
  font-weight: 600;
  margin-bottom: 6px;
}

.contributor-role {
  color: #ffffff;
  opacity: 0.9;
}

/* Core team visual + list */
.core-team-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px 0;
}

.core-team-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.core-team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.core-team-list .role {
  color: #face52;
  font-weight: 600;
}

.core-team-list .name {
  color: #ffffff;
}

@media (max-width: 700px) {
  .leaders-core {
    display: block;
  }

  .leaders-row {
    gap: 16px;
  }
}

.second_section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.leaders-core {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.leaders-row {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 40px;
}

.leader-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.profile_photo {
  width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.profile_name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.profile_category {
  font-size: 1rem;
  color: #555;
}

.core-team-section {
  text-align: center;
}

.core-team-image-container img {
  width: 270px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.core-team-members {
  display: inline-block;
  text-align: left;
}

.member-item {
  font-size: 1rem;
  margin: 5px 0;
}

.role {
  font-weight: 300;
}

.name {
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7)
}

-card {
  scroll-margin-top: 100px;
  /* adjust based on your header height */
}

/* Leaders Section */
.leaders-core {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.leader-item {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.leader-item img.profile_photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #e6e6e6;
}

.leader-item .profile_name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: "Roboto Condensed", sans-serif;
  color: white;
}

.leader-item .profile_category {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* 🔥 Highlight HOD card */
.leader-item.hod {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.leader-item.hod .profile_name {
  font-size: 1.2rem;
}

.leader-item.hod img.profile_photo {
  border: 3px solid #face52;
}




.developers_grid {
  max-width: 1200px;
  /* optional, max width of the container */
  margin: 0 auto;
  /* center the grid */
}

/* Developer card style */
.developer_box {

  width: fit-content;
  margin: 10px 0;
  border-radius: 6px;
  padding: 10px 15px;
  text-align: center;
  font-weight: bold;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}


/* Hover effect */
.developer_card:hover {
  transform: scale(1.05);
  background: rgba(255, 215, 0, 0.1);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .developers_grid {
    grid-template-columns: 1fr;
    /* stack vertically */
    max-width: 100%;
  }
}

.team-card-header {
  text-align: start;
  align-self: flex-start;
}

.team-card-header-name {
  font-size: 50px;
  font-weight: 700;
  margin-left: 10px;
  font-family: "Roboto condensed";
  border-bottom: 2px solid white;
  padding: 10px 0;
  text-align: start;
}



@media (max-width: 450px) {
  body {
    font-family: "poppins", sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

  .bodyblock1 {
    margin-right: 0;
  }


  
}