@font-face {
  font-family: "Involve";
  font-style: normal;
  font-display: swap;
  src: url("../assets/font/Involve-Regular.eot");
  src: url("../assets/font/Involve-Regular.eot?#iefix") format("embedded-opentype"),
    url("../assets/font/Involve-Regular.woff2") format("woff2"),
    url("../assets/font/Involve-Regular.woff") format("woff"),
    url("../assets/font/Involve-Regular.ttf") format("truetype"),
    url("../assets/font/Involve-Regular.svg#Involve-Regular") format("svg");
  font-weight: 400;
}

@font-face {
  font-family: "Involve";
  font-style: normal;
  font-display: swap;
  src: url("../assets/font/Involve-Medium.eot");
  src: url("../assets/font/Involve-Medium.eot?#iefix") format("embedded-opentype"),
    url("../assets/font/Involve-Medium.woff2") format("woff2"),
    url("../assets/font/Involve-Medium.woff") format("woff"),
    url("../assets/font/Involve-Medium.ttf") format("truetype"),
    url("../assets/font/Involve-Medium.svg#Involve-Medium") format("svg");
  font-weight: 500;
}

@font-face {
  font-family: "Involve";
  font-style: normal;
  font-display: swap;
  src: url("../assets/font/Involve-Bold.eot");
  src: url("../assets/font/Involve-Bold.eot?#iefix") format("embedded-opentype"),
    url("../assets/font/Involve-Bold.woff2") format("woff2"),
    url("../assets/font/Involve-Bold.woff") format("woff"),
    url("../assets/font/Involve-Bold.ttf") format("truetype"),
    url("../assets/font/Involve-Bold.svg#Involve-Bold") format("svg");
  font-weight: 700;
}

@font-face {
  font-family: "Involve";
  font-style: normal;
  font-display: swap;
  src: url("../assets/font/Involve-SemiBold.eot");
  src: url("../assets/font/Involve-SemiBold.eot?#iefix") format("embedded-opentype"),
    url("../assets/font/Involve-SemiBold.woff2") format("woff2"),
    url("../assets/font/Involve-SemiBold.woff") format("woff"),
    url("../assets/font/Involve-SemiBold.ttf") format("truetype"),
    url("../assets/font/Involve-SemiBold.svg#Involve-SemiBold") format("svg");
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

body {
  background-color: #05050f;
  height: 100%;
  width: 100vw;
  font-family: "Involve", sans-serif;
  font-style: normal;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

header {
  position: absolute;
}

main {
  overflow: hidden;
}

a {
  all: unset;
  text-decoration: none;
  cursor: pointer;
}

section#hero {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  position: relative;
}

section#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/light.png") no-repeat center top;
  background-size: cover;
  pointer-events: none;
}

.hero-content {
  display: flex;
  gap: 20px;
  width: 500px;
  color: #fff;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.hero-content > *:nth-child(n + 4) {
  margin-top: 60px;
}

h1 {
  font-size: 70px;
  font-weight: 400;
  line-height: 100px;
  text-transform: uppercase;
}

.hero-content video {
  width: 300px;
  mix-blend-mode: lighten;
}

.hero-content h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

button.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 54px;
  border: none;
  border-radius: 27px;
  background-color: #cffd66;
  color: #05050f;
  font-size: 14px;
  font-weight: 700;
  line-height: 10px;
  text-transform: uppercase;
}

img.crystal,
img.triangle,
img.blob {
  position: absolute;
  will-change: transform;
}

img.crystal {
  width: 608px;
  height: 608px;
  top: -150px;
  right: -250px;
  transform: translate(0, 0) scale(1) rotate(0deg);
  animation: randomMovement 60s ease-in-out infinite;
}

img.triangle {
  width: 704px;
  height: 707px;
  top: 440px;
  left: -240px;
  transform: translate(0, 0) scale(1) rotate(0deg);
  animation: complexAnimation 80s ease-in-out infinite;
}

img.blob {
  width: 457px;
  height: 457px;
  bottom: -230px;
  right: -90px;
  transform: translate(0, 0) scale(1) rotate(0deg);
  animation: rotateAndScale 120s linear infinite;
}

section#expertise,
section#why-we,
section#cases,
section#about {
  display: flex;
  position: relative;
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
}

.expertise-content,
.why-we-content,
.cases-content,
.about-content {
  display: flex;
  margin-top: 150px;
  gap: 20px;
  width: 1024px;
  color: #fff;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.cards-expertise {
  display: flex;
  row-gap: 50px;
  margin-top: 160px;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.expertise-card {
  display: flex;
  position: relative;
  width: 320px;
  height: 307px;
  cursor: pointer;
  opacity: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.expertise-card .extra-info {
  display: none;
  opacity: 0;
}

.expertise-card:hover {
  transform: translateY(-10px);
}

.expertise-card.expertise-card-duplicate {
  display: flex;
  position: absolute;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.expertise-card.expertise-card-duplicate .extra-info {
  display: block;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  display: none;
}
.expertise-card.expanded .close-btn {
  display: block;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 87px;
  height: 87px;
  border: 2px solid #cffd66;
  border-radius: 100%;
  color: #cffd66;
}

.expertise-card:hover .card-btn,
.card-btn:hover {
  background-color: #cffd66;
  color: #000;
}

.card-content {
  display: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  row-gap: 20px;
  padding: 0 35px 40px 35px;
  width: inherit;
  height: inherit;
  color: #000;
  text-align: left;
  background-color: #cffd66;
  clip-path: url(#card-clip-normal);
}


h3.card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

h4.card-text {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
}

.expertise-card.expanded h4.card-text {
  width: 70%;
}

.extra-info p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
}

img.why-we-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: url("../assets/light-2.png") no-repeat center top;
  background-size: cover;
  pointer-events: none;
}

.why-we-titles {
  margin-top: 100px;
}

.why-we-title {
  transform: rotate(-5deg);
  font-size: 67px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 2.68px;
  text-transform: uppercase;
  margin-bottom: 70px;
  opacity: 0;
  transform: scale(4);
  transition: all 1s ease-out 0.5s;
}

.why-we-title.show {
  opacity: 1;
  transform: scale(1) rotate(-5deg); /* Возвращение к исходному размеру */
}

.why-we-title.differentiation {
  background: linear-gradient(
    90deg,
    #9156ca 0%,
    #f8bdda 14%,
    #afc8b9 28%,
    #3498bb 42%,
    #10ecaf 57%,
    #4441b3 71%,
    #fcb3f4 85%,
    #9156ca 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 35s ease infinite alternate;
}

.why-we-title.vision {
  background: linear-gradient(
    90deg,
    #50e6c1 0%,
    #60abed 15%,
    #985be7 30%,
    #f057a2 45%,
    #fba2c6 58%,
    #fffaea 75%,
    #ffc169 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 25s ease infinite alternate;
  transition-delay: 1s;
}

.why-we-title.ai {
  background: conic-gradient(
    from 90deg at 50% 50%,
    #9156ca 0deg,
    #f8bdda 50.40000021457672deg,
    #afc8b9 100.80000042915344deg,
    #3498bb 151.19999527931213deg,
    #10ecaf 205.19999742507935deg,
    #4441b3 255.59999227523804deg,
    #fcb3f4 306.00000858306885deg,
    #9156ca 360deg
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 25s ease infinite alternate;
  transition-delay: 1.5s;
}

.why-we-title.analysis {
  background: linear-gradient(
    90deg,
    #e2c1f9 0%,
    #febd8e 33%,
    #fbffe4 66%,
    #b6d0f7 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 20s ease infinite alternate;
  transition-delay: 1.5s;
}

.cases-content,
.about-content {
  width: 1240px;
}

section#about {
  margin-bottom: 200px;
}

.cases,
.squad,
.values {
  display: flex;
  margin-top: 100px;
  width: inherit;
  height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.case {
  display: flex;
  flex-direction: column;
  width: 31%;
  height: inherit;
  background-color: #191a23;
  border-radius: 45px;
  text-align: left;
}

img.case-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 45px;
}

a h4.case-text {
  padding: 30px 35px 40px 35px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
h2.about-text {
  width: 60%;
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  text-transform: uppercase;
}

h2.about-text span {
  color: #000;
  background-color: #cffd66;
  padding: 4px 7px 0 7px;
  border-radius: 7px;
}

.staff {
  display: flex;
  position: relative;
  flex-direction: column;
  row-gap: 28px;
  padding: 40px 35px;
  height: auto;
  width: 31%;
  background-color: #fff;
  color: #000;
  border-radius: 45px;
  text-align: left;
}

.staff::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -5px;
  z-index: -1;
  background: conic-gradient(
    from 90deg at 50% 50%,
    #9156ca 0deg,
    #f8bdda 50.40000021457672deg,
    #afc8b9 100.80000042915344deg,
    #3498bb 151.19999527931213deg,
    #10ecaf 205.19999742507935deg,
    #4441b3 255.59999227523804deg,
    #fcb3f4 306.00000858306885deg,
    #9156ca 360deg
  );
  background-size: 300% 300%;
  border-radius: 45px; /* Закругление границ */
  animation: gradient-animation 15s ease infinite;
}

.staff-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  column-gap: 20px;
}

img.staff-img {
  height: 100px;
  width: auto;
  object-fit: cover;
}

.staff-name {
  width: 100%;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}

.staff-position {
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

.devider {
  width: 100%;
  height: 1px;
  background: #000;
}

.staff-description {
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
}

.values{
  margin-top: 60px;
  row-gap: 80px;
}

.value {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
  width: 48%;
  border-radius: 45px;
  padding: 50px;
  background: #f3f3f3;
  color: #000;
  text-align: left;
}

.value.green {
  background: #CFFD66;
}

.value.grey {
  background: #191A23;
  color: #fff;
}

span.value-title {
  width: max-content;
  padding: 4px 7px 0 7px;
  background: linear-gradient(to right, #CFFD66 0%, #CFFD66 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  font-size: 30px;
  font-weight: 500;
  line-height: normal;
  border-radius: 7px;
  transition: background-size 2s ease;
}

span.value-title.green,
span.value-title.grey {
  background: linear-gradient(to right, #fff 0%, #fff 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  color: #000;
}

span.value-title.animate {
  animation: fill-background 2s ease forwards;
}

@keyframes randomMovement {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1) rotate(10deg);
  }
  50% {
    transform: translate(-25px, 15px) scale(0.9) rotate(-15deg);
  }
  75% {
    transform: translate(40px, 30px) scale(1.05) rotate(5deg);
  }
}

@keyframes rotateAndScale {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(0.95);
  }
  75% {
    transform: rotate(270deg) scale(1.1);
  }
}

@keyframes complexAnimation {
  0%,
  100% {
    transform: rotate(0deg) scale(1) translate(0, 0);
    filter: hue-rotate(0deg) brightness(1);
  }
  10% {
    transform: rotate(30deg) scale(1.2) translate(20px, -10px);
    filter: hue-rotate(180deg) brightness(1.1);
  }
  30% {
    transform: rotate(15deg) scale(0.9) translate(-30px, 20px);
    filter: hue-rotate(240deg) brightness(1.3);
  }
  50% {
    transform: rotate(-15deg) scale(1.3) translate(50px, 0);
    filter: hue-rotate(180deg) brightness(0.9);
  }
  70% {
    transform: rotate(40deg) scale(0.8) translate(-40px, 30px);
    filter: hue-rotate(270deg) brightness(1.2);
  }
  90% {
    transform: rotate(-30deg) scale(1.1) translate(10px, -20px);
    filter: hue-rotate(360deg) brightness(1.1);
  }
}

@keyframes gradientAnimation {
  0% {
    background-size: 200% 200%;
    background-position: 0% 50%;
  }
  25% {
    background-size: 150% 150%;
    background-position: 25% 50%;
  }
  50% {
    background-size: 100% 100%;
    background-position: 50% 50%;
  }
  75% {
    background-size: 150% 150%;
    background-position: 75% 50%;
  }
  100% {
    background-size: 200% 200%;
    background-position: 100% 50%;
  }
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fill-background {
  0% {
    background-size: 0% 100%;
  }
  100% {
    background-size: 100% 100%;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

footer a ,
footer a:hover ,
footer a:active ,
footer a:visited {
  text-decoration: none;
  color: #fff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 1240px;
  height: 100%;
  border-radius: 45px 45px 0 0;
  background: #191A23;
  padding: 55px 60px 50px 60px;
  gap: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
}

.footer-content-first,
.footer-content-second,
.footer-content-third {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

a.footer-logo img {
  width: 100%;
  height: 30px;
  object-fit: cover;
}

.footer-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

a.footer-social-link img {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.footer-content-second-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 27px;
}

.footer-content-second-left h3 {
  height: 27px;
  padding: 0 7px;
  font-size: 20px;
  font-weight: 500;
  line-height: 29px;
  color: #000;
  background-color: #CFFD66;
  border-radius: 7px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.footer-content-second-right {
  display: flex;
  padding: 58px 40px;
  align-items: flex-start;
  gap: 20px;
  border-radius: 14px;
  background: #292A32;
  width: auto;
  height: 100%;
}

form.footer-subscribe-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 100%;
}

form.footer-subscribe-form input {
  width: 285px;
  height: 68px;
  padding: 22px 35px;
  border-radius: 14px;
  border: 1px solid #FFF;
  background: #292A32;
  color: #fff;
}

form.footer-subscribe-form input::placeholder {
  color: #fff; /* Серый цвет для текста плейсхолдера */
  opacity: 1; /* Для Firefox */
}

form.footer-subscribe-form button {
  height: 68px;
  padding: 20px 35px;
  border-radius: 14px;
  border: none;
  background: #CFFD66;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
}

.footer-content-third {
  padding-top: 50px;
  border-top: 1px solid #fff;
  justify-content: flex-start;
  gap: 40px;
}

@media screen and (max-width: 768px) {

  section#hero, section#expertise, section#why-we, section#cases, section#about , footer {
    padding: 0 20px;
    width: 100vw;
  }

  section#about {
    margin-bottom: 60px;
  } 

  .hero-content {
    width: 100%;
    z-index: 10;
    mix-blend-mode: lighten;
  }

  h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: normal;
  }

  .hero-content video {
    width: 100%;
  }

  img.crystal {
    width: 300px;
    height: 300px;
    top: -125px;
    right: -125px;
  }

  img.triangle {
    width: 350px;
    height: 350px;
    top: 220px;
    left: -240px;
  }

  img.blob {
    width: 200px;
    height: 200px;
    bottom: -30px;
    right: -90px;
  }

  .cards-expertise {
    row-gap: 40px;
    margin-top: 40px;
    justify-content: center;
  }

  .expertise-card-duplicate .card-btn {
    scale: 0.7;
  }


  .why-we-title {
    font-size: 36px;
    margin-bottom: 70px;
  }

  img.why-we-light {
    height: 100%;
  }

  .cases-content, .about-content {
    width: 100%;
  }

  .cases {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 40px;
    gap: 40px;
  }

  .case {
    flex-direction: column;
    width: 100%;
    background-color: #191a23;
    border-radius: 24px;
    text-align: left;
  }

  img.case-img {
    border-radius: 24px;
  }

  h4.case-text {
    padding: 20px;
  }

  h2.about-text {
    width: 100%;
    font-size: 18px;
    line-height: 24px;
  }

  .squad{
    margin-top: 40px;
  }

  .values {
    width: 100%;
    margin-top: 30px;
    row-gap: 40px;
  }

  .value {
    row-gap: 14px;
    width: 100%;
    border-radius: 24px;
    padding: 25px;
  }

  span.value-title {
    font-size: 24px;
  }

  footer .footer-content {
    width: 100%;
    padding: 40px 20px;
    border-radius: 24px 24px 0 0;
  }

  footer .footer-content-first,
  footer .footer-content-second,
  footer .footer-content-third {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }

  footer .footer-content-first {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-content-second-left {
    width: 100%;
  }

  .footer-content-second-right {
    width: 100%;
    padding: 20px;
  }

  form.footer-subscribe-form {
    width: 100%;
    flex-direction: column;
  }

  form.footer-subscribe-form input {
    width: 100%;
    box-sizing: border-box;
  }

  form.footer-subscribe-form button {
    width: 100%;
    height: auto;
    padding: 14px;
    box-sizing: border-box;
  }

  .footer-content-third p , .footer-content-third a {
    font-size: 14px;
    line-height: 20px;
  }

}
