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

body,
html {
  min-height: 100vh;
  width: 100%;
  background: #000;
  color: white;
  overflow-x: hidden;
}

nav {
  z-index: 100;
  position: fixed;
  width: 100%;
  height: 16vh;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  padding: 3rem 4rem;
  color: white;
}

nav h1 {
  font-size: 1.7rem;
  font-weight: 900;
}

nav h2 {
  font-size: 0.8rem;
  font-weight: 400;
}

nav .routes {
  display: flex;
  align-items: center;
  gap: 3rem;
}

nav .routes a {
  font-size: 1.7rem;
  font-weight: 900;
  color: white;
  text-decoration: none;

  transition: all 0.3s ease-in-out;
}

nav .routes a:hover {
  color: gold;
  transform: scale(1.05);
}

.hero {
  background: url("media/teambg.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero h1 {
  font-size: 6rem;
  font-weight: 900;
  color: white;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 20px 0;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.herocontent {
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 15vh;
  margin-inline: auto;
}

.teamlogo {
  height: 12rem;
  margin-top: 0;
  transition: transform 0.4s ease, filter 0.3s ease;
}


.teamabout {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* for Safari */
  color: white;
  border-radius: 20px;
  padding: 30px 60px 30px 30px;

  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  font-size: 1.4rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
  max-width: 900px;
}


.teammembers {
  background: url("media/teambg.jpg") no-repeat center center/cover;
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.member-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  /* or 'Montserrat', 'Urbanist', etc. */
  color: #ffffff;
  text-align: center;

  /* Modern Glow Style */
  text-shadow: 0 0 20px rgba(0, 198, 255, 0.3);

  background: linear-gradient(to right, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  letter-spacing: 2px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 5px rgba(0, 198, 255, 0.5));
}


.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.centered-grid {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  /* Tighter gap for centered alignment */
}

.member-card {
  width: 280px;
  /* Fixed width to prevent widening */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.member-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 198, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.2);
}

.member-img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 10px;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.member-post {
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  opacity: 0.85;
}

.member-socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 1.5rem;
  justify-content: center;
}

.member-socials a {
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.member-socials a:hover {
  color: gold;
  transform: scale(1.2);
}


/* Footer styles removed to use global-nav.css */

/* === EXTRA (From Original Footer1/Footer2 Layout - Not used now, but preserved) === */


footer>h3 {
  text-align: center;
  font-size: 28px;
}

footer li {
  list-style: none;
}

.footer1 {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
  font-size: 25px;
}

.footer2 {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: space-between;
}

.chat,
.email {
  display: flex;
  align-items: center;
  font-size: 20px;
}

/* === Routes & Chat (if ever used again) === */
.footRoutes {
  display: flex;
  gap: 20px;
}

.footRoutes h1 {
  font-size: 1rem;
  cursor: pointer;
}

.footchat {
  display: flex;
  gap: 20px;
}

.footchat i {
  margin-right: 8px;
}

.group-photo-section {
  background: url(media/teambg.jpg) no-repeat center center/cover;

  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-photo-img {
  width: 100%;
  height: 90vh;
  display: block;
  object-fit: cover;
}

.group-photo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-family: "Poppins", sans-serif;
}

@media (max-width: 992px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

/* Target board members only */
.board-members .member-card {
  background: rgba(30, 30, 47, 0.3);
  /* semi-transparent */
  backdrop-filter: blur(10px);
  /* glass blur */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */

  border: 2px solid rgba(0, 198, 255, 0.3);
  /* softened neon border */
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1rem;

  box-shadow: 0 12px 20px rgba(0, 198, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.board-members .member-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 198, 255, 0.5);
  border-color: #00c6ff;
}


/* Bigger profile pictures */
.board-members .member-img {
  width: 16rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #fff;
}

/* Larger text styling */
.board-members .member-name {
  font-size: 2rem;
  font-weight: bold;
  color: #00c6ff;
  margin-top: 1rem;
}

.board-members .member-post {
  font-size: 1.25rem;
  color: #ccc;
  margin-top: 0.25rem;
}

.board-members .board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

@media (max-width: 992px) {
  .board-members .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .board-members .board-grid {
    grid-template-columns: 1fr;
  }
}

.member-department {
  font-size: 0.9rem;
  font-style: italic;
  color: #cccccc;
  margin-top: 0.3rem;
}

.mentor-card {
  background: linear-gradient(to bottom right, #1f1f2e, #2c2c3d);
  border: 3px solid gold;
  border-radius: 25px;
  padding: 3rem;
  /* Increased padding */
  margin: 1.5rem;
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);

  /* Expanded layout */
  width: 80%;
  max-width: 800px;
  display: flex !important;
  flex-direction: column !important;
  /* Stack vertically for centering */
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  /* Center align text */
}

.mentor-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 30px rgba(255, 215, 0, 0.5);
}

/* Optional: Gold outline for images */
.mentor-card .member-img {
  border: 3px solid gold;
  border-radius: 50%;
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Optional: Stylish fonts for mentor name/post */
.mentor-card .member-name {
  font-size: 2.5rem;
  /* Slightly larger for the big card */
  font-weight: 800;
  color: #ffd700;
  font-family: 'Poppins', serif;
}

.mentor-card .member-post {
  font-size: 1.5rem;
  color: #ccc;
  font-style: italic;
  /* Restored font-style */
}

/* Responsive Mentor Card */
@media (max-width: 768px) {
  .mentor-card {
    flex-direction: column !important;
    text-align: center;
    width: 90%;
    padding: 2rem;
    gap: 1.5rem;
  }
}


.member-grid1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers the items horizontally */
  gap: 2rem;
  width: 100%;
}

.bouncing-heading {
  display: inline-block;
  font-size: 4rem;
  font-weight: 900;
  color: #00c6ff;
  font-family: 'Poppins', sans-serif;
  position: relative;
  animation: bounceIn 3s cubic-bezier(0.280, 0.840, 0.420, 1);
  text-shadow: 2px 2px 5px rgba(0, 198, 255, 0.6);
}

@keyframes bounceIn {
  0% {
    transform: translateX(-100vw) translateY(0);
  }

  10% {
    transform: translateX(-70vw) translateY(-120px);
  }

  20% {
    transform: translateX(-50vw) translateY(0px);
  }

  30% {
    transform: translateX(-30vw) translateY(-100px);
  }

  40% {
    transform: translateX(-20vw) translateY(0px);
  }

  50% {
    transform: translateX(-10vw) translateY(-70px);
  }

  60% {
    transform: translateX(-5vw) translateY(0px);
  }

  70% {
    transform: translateX(0vw) translateY(-40px);
  }

  80% {
    transform: translateX(0vw) translateY(0px);
  }

  90% {
    transform: translateX(0vw) translateY(-15px);
  }

  100% {
    transform: translateX(0vw) translateY(0);
  }
}