@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700&family=Unbounded:wght@400;600&display=swap");

:root {
  --first-color: hsl(220, 100%, 62%);
  --first-color-bright: hsl(220, 100%, 70%);
  --title-color: hsl(220, 8%, 12%);
  --text-color: hsl(220, 8%, 56%);
  --body-color: hsl(220, 24%, 94%);
  --container-color: hsl(220, 48%, 96%);
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --h3-font-size: 1rem;
  --normal-font-size: .95rem;
}

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

body {
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/*=============== HEADER SECTION ===============*/
.team-header {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
  animation: fadeIn 1s ease-out;
}

.team-subtitle {
  font-size: 1rem;
  color: var(--text-color);
}

.team-title {
  font-family: var(--second-font);
  font-size: 2.3rem;
  margin: 0.5rem 0 1rem;
  color: var(--title-color);
}

.eyegen {
  color: var(--first-color-bright);
  text-shadow: 0 0 8px hsla(220, 100%, 70%, 0.8), 0 0 16px hsla(220, 100%, 60%, 0.5);
  font-weight: 700;
  animation: glow 2.5s ease-in-out infinite alternate;
  transition: text-shadow 0.3s ease;
}

.eyegen:hover {
  text-shadow: 0 0 18px hsla(220, 100%, 80%, 1), 0 0 30px hsla(220, 100%, 60%, 0.9);
}

.team-description {
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-color);
}

@keyframes glow {
  from { text-shadow: 0 0 8px hsla(220, 100%, 70%, 0.8), 0 0 16px hsla(220, 100%, 60%, 0.5); }
  to   { text-shadow: 0 0 14px hsla(220, 100%, 70%, 1), 0 0 24px hsla(220, 100%, 60%, 0.9); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/*=============== CAROUSEL ===============*/
.carousel {
  position: relative;
  max-width: 1120px;
  height: auto;
  display: grid;
  align-content: center;
  row-gap: 2.5rem;
  margin-inline: auto;
  overflow: hidden;
  padding-block: 5rem;
}

/* Fade nas laterais */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--body-color) 0%, hsla(220, 24%, 94%, 0) 100%);
}

.carousel::after {
  right: 0;
  background: linear-gradient(90deg, hsla(220, 24%, 94%, 0) 0%, var(--body-color) 100%);
}

.carousel__card {
  width: 380px;
  background-color: var(--container-color);
  box-shadow: 0 12px 24px hsla(220, 100%, 20%, .1);
  padding: 2rem 1.5rem 3rem;
  border-radius: 3rem;
  text-align: center;
  margin-inline: 1rem;
  transition: transform .3s;
  position: relative;
  z-index: 1;
}

.carousel__card:hover {
  transform: translateY(-6px);
}

.carousel__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px hsla(220, 100%, 20%, .3);
  margin: 0 auto 1rem;
}

.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.carousel__card:hover .carousel__img {
  transform: scale(1.15);
}

.carousel__name {
  font: 600 var(--h3-font-size) var(--second-font);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.carousel__socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .2s, color .2s;
}

.carousel__icon:hover {
  transform: scale(1.2);
  color: hsl(220, 100%, 45%);
}

.carousel__content {
  width: max-content;
  display: flex;
  animation: scroll 18s linear infinite;
}

.carousel__reverse {
  flex-direction: row-reverse;
  animation-direction: reverse;
  animation-delay: -1s;
}

.carousel__content:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Espaço extra após o carrossel */
.footer-space {
  height: 200px;
}

/* Responsivo */
@media screen and (max-width: 900px) {
  .team-title { font-size: 2rem; }
  .carousel__card { width: 320px; }
}

@media screen and (max-width: 600px) {
  .team-header { margin-top: 2rem; }
  .team-title { font-size: 1.8rem; }
  .team-description { font-size: .9rem; padding: 0 1rem; }
  .carousel { padding-block: 3rem; }
  .carousel__card { width: 270px; padding: 1.5rem; }
  .carousel__image { width: 80px; height: 80px; }
  .carousel::before, .carousel::after { width: 25%; }
}
