* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  --main-color: #752954;
  --light-color: #ac7f98;
  --light-color-v2: #f1eaee;
  --dark-color: #2f1022;
}

body {
  font-family: sans-serif;
  position: relative;
}

img {
  width: 100%;
}

.link:active,
.link:visited {
  color: #000;
  fill: #000;
  text-decoration: none;
}

/* //////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////// */
/* //////////////////////////////////////////////////////////// */

.team-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--main-color);
  position: relative;
}

.preview-btns {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-evenly;
  gap: 2.4rem;
}

.btn {
  background: none;
  border: none;
  background-color: var(--light-color);
  color: var(--dark-color);
  font-size: 1.8rem;
  border-radius: 11px;
  font-weight: 600;
  padding: 2.4rem 1.2rem;
  box-shadow: 0px 5px 10px 2px rgb(0 0 0 / 42%);
  transition: all 1s;
}

.btn:hover {
  transform: translateY(-10%);
  box-shadow: 0px 8px 10px 2px rgb(0 0 0 / 42%);
}

.btn:active {
  transform: scale(0.9);
}

.team {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
  transition: all 2s;
}

.team.closed {
  height: 0;
  width: 100%;
}

.team.col-1 {
  justify-self: end;
}

.team.row-1 {
  align-self: end;
}

.team.row-2 {
  align-self: start;
}

.team__desktop {
  background-color: rgb(130, 80, 134);
  /* box-shadow: -20px -20px 20px 20px rgb(130, 80, 134); */
}
.team__backend {
  background-color: rgb(28, 109, 156);
  /* box-shadow: 20px -20px 20px 20px rgb(28, 109, 156); */
}
.team__design {
  background-color: rgb(202, 193, 59);
  /* box-shadow: -20px 20px 20px 20px rgb(202, 193, 59); */
}
.team__frontend {
  background-color: rgb(141, 50, 22);
  /* box-shadow: 20px 20px 20px 20px rgb(141, 50, 22); */
}

.slider-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
  height: 100%;
}

.developer {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.developer__icon {
  background-color: #55555550;
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: inset 0px 0px 20px 3px #3b3b3b;
  margin: 0 auto 2.4rem auto;
  width: 11rem;
  height: 11rem;
}

.developer__name {
  font-size: 1.5rem;
  text-align: center;
  color: #ffffff;
  text-shadow: 3px 0px #5f5d5d;
  letter-spacing: 2px;
}

.developer__accounts {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  position: absolute;
  bottom: -20%;
}

.account-icon {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.account-icon :host .ionicon {
  stroke: #000;
}

.img-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-color: #ffa500a8;
  z-index: 2;
  backdrop-filter: blur(1px);
  box-shadow: inset -1px -2px 15px 0px #ffffff52;
}

.developer__shadow {
  border-radius: 50%;
  position: absolute;
  bottom: -50%;
  left: 50%;
  width: 49%;
  height: 64%;
  background-color: rgba(48, 48, 48, 0.534);
  z-index: 5;
  filter: blur(56px);
  transform: rotateX(85deg) translateX(-50%) translatey(201%);
}

.banner {
  width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
}

.banner .slider {
  position: absolute;
  width: 130px;
  height: 178px;
  top: 10%;
  left: 43%;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateX(-55%);
  animation: autoRun 50s linear infinite;
  background-size: cover;
}

@keyframes autoRun {
  from {
    transform: perspective(1000px) rotateY(0deg);
  }
  to {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.slider.no__rotation {
  animation: none;
}

.banner .slider .item {
  position: absolute;
  inset: 0 0 0 0;
  transform: rotateY(
      calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
    )
    translateZ(306px);
}

.scaled {
  transform: scale(1.2);
}

.banner .slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-spinner {
  position: absolute;
  inset: 0 0 0 0;
  width: 10rem;
  height: 130px;
  top: 10%;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  background-size: cover;
  animation: autoRun 10s linear infinite;
}

.center-item {
  position: absolute;
  inset: 0 0 0 0;
  transform: rotateY(
      calc((var(--position-inner) - 1) * (360 / var(--quantity-inner)) * 1deg)
    )
    translateZ(26px) rotateX(357deg);
}

.inner-spinner::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(48, 48, 48, 0.534);
  transform: rotateX(86deg);
  position: absolute;
  bottom: -97%;
  filter: blur(56px);
}

.center-item img {
  width: 100%;
  height: 100%;
}

/* .inner__shadow {
  border-radius: 50%;
  position: absolute;
  width: 20%;
  top: 48%;
  left: 52%;
  height: 64%;
  background-color: #272727ab;
  z-index: 5;
  filter: blur(56px);
  transform: rotateX(85deg) translateX(-50%) translatey(0%);
} */

/* desktop */
.slider__backend,
.slider__design {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.slider__backend .inner-spinner,
.slider__design .inner-spinner {
  margin: 0 auto;
  position: relative;
  grid-column: 2/3;
  grid-row: 1;
}

.slider__backend .item,
.slider__design .item {
  position: relative;
  grid-row: 1;
}

.slider__backend .item .developer__icon,
.slider__design .item .developer__icon {
  margin: 0 auto 2.4rem auto;
}

/* front end  */

.slider__frontend {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}

.slider__frontend .banner {
  grid-column: 2 / 3;
}

.team__frontend .inner-slider {
  width: 100%;
  margin: 0 auto;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(1000px) translateY(2.8rem);
  background-size: cover;
}

.team__frontend .logo {
  position: absolute;
  inset: 0 0 0 0;
  transition: all 1s linear;
  width: 5rem;
  margin: 0 auto;
}

.team__frontend .logo::after {
  content: '';
  display: block;
  width: 100%;
  border-radius: 50%;
  height: 4rem;
  position: absolute;
  transform: rotateX(79deg);
  bottom: 17%;
  background-color: #00000024;
  filter: blur(9px);
}

.team__frontend .item {
  transform: translate(-4%, 26%) scale(1.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-background {
  background-image: url(images/wall.png);
  background-size: contain;
  position: absolute;
  width: 100%;
  height: 48%;
  top: 0;
  opacity: 40%;
  border-bottom: 1px solid black;
}

.article-background img {
  height: 100%;
  object-fit: contain;
}
