/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Unbounded:wght@600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --first-color: hsl(265, 75%, 48%);
  --second-color: hsl(18, 88%, 58%);
  --title-color: hsl(220, 20%, 8%);
  --text-color: hsl(220, 8%, 35%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(220, 4%, 99%);
  --container-color: hsl(0, 0%, 100%);

  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
}

/*=============== GLOBAL ===============*/
body {
  background-color: var(--body-color);
  font-family: var(--body-font);
  margin: 0;
}

.team-container {
  max-width: 1100px;
  margin: 6rem auto 4rem;
  padding: 4rem 1.5rem;
}

/*=============== MAIN TITLES ===============*/
.team-main-title {
  font-family: var(--second-font);
  font-size: 2.2rem;
  color: var(--title-color);
  margin-bottom: .5rem;
  text-align: center;
}

.team-main-subtitle {
  font-size: .95rem;
  color: var(--text-color);
  margin-bottom: 2.5rem;
  max-width: 620px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/*=============== SECTION HEADINGS ===============*/
.team-section {
  margin-bottom: 3rem;
}

.team-section-title {
  font-family: var(--second-font);
  font-size: 1.4rem;
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  justify-content: center;
  text-align: center;
}

.team-section-title i {
  color: var(--first-color);
  font-size: 1.4rem;
}

.team-subgroup-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 1.5rem 0 .7rem;
  text-align: center;
}

/*=============== GRID ===============*/
.team-grid {
  display: grid;
  gap: 1.4rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}

/* Small tweak for very wide screens (optional) */
/* You can remove this if you don't want it */
@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 248px);
    justify-content: center;
  }
}

/*=============== TEAM CARD ===============*/
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);   /* semi-transparent */
  backdrop-filter: blur(6px);              /* glass effect */
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  cursor: pointer;
  width: 248px;
  height: 300px;
  margin: 0 auto;
}

/* Image fills card */
.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}

/* Base overlay: name at bottom */
.team-overlay-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem 1rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.0)
  );
  color: var(--white-color);
  pointer-events: none;
  transition: opacity .3s ease;
}

.team-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

/* Hover overlay: name + batch centered */
.team-overlay-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(76, 0, 153, 0.88),
    rgba(255, 111, 60, 0.88)
  );
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  text-align: center;
  padding: 1rem;
  transition: opacity .3s ease;
}

.team-batch {
  margin-top: .25rem;
  font-size: .88rem;
  opacity: .95;
}

/* Hover effects */
.team-card:hover .team-img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.team-card:hover .team-overlay-base {
  opacity: 0;
}

.team-card:hover .team-overlay-hover {
  opacity: 1;
}

/*=============== RESPONSIVE TWEAKS ===============*/
@media (max-width: 768px) {
  .team-container {
    margin-top: 5rem;
  }

  .team-main-title {
    font-size: 1.9rem;
  }

  .team-main-subtitle {
    font-size: .9rem;
  }
}

/* Slightly smaller cards on very small phones (optional) */
@media (max-width: 480px) {
  .team-card {
    width: 230px;
    height: 280px;
  }
}
