@import url("fonts.css");
@import url("var.css");
@import url("media.css");

/* Poppins Font Weights */
.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

/* Poppins Font Weights */

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

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--main-white);
  font-size: 16px;
  background-color: brown;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.wrapper {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(26, 14, 1, 1) 100%
  );
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px;
}

header {
  padding: 50px 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}


header .logo {
  text-transform: uppercase;
  font-size: 29px;
}

header nav {
  width: 50%;
  z-index: 2;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}

header nav ul li {
  display: inline-block;
}
header nav ul li.active::after {
  content: "";
  display: block;
  width: 80%;
  height: 5px;
  background: var(--main-active);
  border-radius: 10px;
  position: relative;
  top: 15px;
  left: -15px;
}

header nav ul li:not(.active):not(.btn) a:hover {
  border-bottom: 5px solid var(--main-active);
}

header nav ul li.btn a {
  background: var(--main-gold);
  padding: 10px 25px;
  border-radius: 5px;
  transition: all 0.7s ease;
}

header nav ul li.btn a:hover {
  background: var(--main-active-hover-btn);
}

/* Header Styles End */

.hero {
  margin-top: 110px;
  padding-bottom: 100px;
  position: relative;
}

.hero--info {
  max-width: 530px;
}

.hero--info h2 {
  color: var(--main-gold);
  font-size: 20px;
}

.hero--info h1 {
  font-size: 50px;
  line-height: 1.5;
}

.hero--info p {
  margin-top: 25px;
  line-height: 1.6;
}

.hero--info .btn {
  background: var(--main-gold);
  color: var(--main-white);
  border-radius: 50px;
  padding: 15px 30px;
  border: none;
  transition: all 0.7s ease;
  margin-top: 50px;
}

.hero--info .btn:hover {
  background: var(--main-active-hover-btn);
  cursor: pointer;
  transform: scale(1.05);
}

.hero img {
  position: absolute;
  top: -244px;
  right: 208px;
  object-fit: cover;
}

/* Hero Section Styles End */

/* Section trending */
.trending {
  margin-top: 100px;
}

.wrapper_for_title_in_trending {
  display: flex;
  justify-content: space-between;
  align-items: center
}
.trending h3 {
  font-size: 31px;
}

.trending .see-all, .projects_button {
  color: var(--main-white);
  background: #25211D;
  border-radius: 15px;
  padding: 10px 25px;
  display: inline-block;
  transition: all 1s ease;
}

.trending .see-all:hover {
  transform: scale(1.1);
}

.trending .games {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 50px 0 0 0;
  column-gap: 15px;
}

.trending .games span {
  column-gap: 10px;
  text-align: center;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* важно для ::after */
  padding-bottom: 13px; /* место под линию */
}

/*Анимация для тега  span  в trending */
/* Линия — изначально невидима */
.trending .games .block span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  width: 60%;
  height: 5px;
  background: var(--main-active);
  border-radius: 10px;
  transform: scaleX(0);           /* невидима */
  transform-origin: left center;  /* растёт слева */
  transition: transform 1s ease;
  pointer-events: none;
}

/* При наведении — линия растёт слева направо */
.trending .games .block:hover span::after {
  transform: scaleX(1); /* полная ширина */
}


/* Start Анимация при наведении на карточки*/
.trending .games .block img {
  transition: all 1s ease;
}

.trending .games .block img:hover {
  transform: scale(1.1);
}

/* Все затемняются при наведении на контейнер */
.trending .games:hover .block img {
  filter: brightness(0.7);
}

/* Текущий — увеличивается и очищается */
.trending .games .block:hover img {
  transform: scale(1.1);
  filter: none;
}


/* END Анимация при наведении */

/* Section trending END*/

/* Start big-text*/
.big-text {
  margin-top: 130px;
  font-size: 35px;
  text-align: center;
  max-width: 900px;
}
/*  big-text END*/


/* Start banner*/
.banner {
  margin-top: 65px;
  padding-bottom: 155px;
}

.banner h3 {
  font-size: 30px;
}

.banner p {
  line-height: 170%;
  margin-top: 32px;
  font-size: 18px;
  max-width: 550px;
}

.banner img {
  width: 100%;
  margin: 45px 0 0 0;
}
/* banner END*/

/* Start Секция с изображением: features*/

.features {
  background: url("../IMG/info/background_One.png") no-repeat center center fixed;
  background-size: cover;
}

.features h3 {
  margin: 90px auto 0 auto;
  text-align: center;
  font-size: 30px;
  line-height: 187%;
  max-width: 825px;
}

.features_p {
  font-size: 18px;
  line-height: 187%;
  max-width: 825px;
  margin: 25px auto 0 auto;
  text-align: center;
}

.features .info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;
  max-width: 1000px;
  margin: 100px auto 0 auto;
  justify-items: center;
}

/* Вторая строка — смещаем в центр */
.features .info .block:nth-child(5) {
  grid-column: 2 / 3; /* вторая колонка */
  width: 100%;
}

.features .info .block:nth-child(6) {
  grid-column: 3 / 4; /* третья колонка */
  width: 100%;
}
.features .info .block {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 25px;
  text-align: center;
}

.features .info .block:nth-child(4) {
  justify-content: space-between;
}

/* Анимация стрелки: от левого края к правому */
/* Скрываем анимированную стрелку по умолчанию */
.features .info .block .arrow.animated {
  opacity: 0;
  position: absolute;           /* чтобы не занимала место */
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;         /* не мешает кликам */
  transition: opacity 0.2s ease;
}

/* Статическая стрелка — по умолчанию видна */
.features .info .block .arrow.static {
  transition: opacity 0.2s ease;
}

/* Обертка для позиционирования (добавим relative к .block) */
.features .info .block {
  position: relative;  /* важно! чтобы absolute работал внутри */
  overflow: hidden;    /* скрываем выходящую анимацию */
}

/* === АНИМАЦИЯ ДВИЖЕНИЯ === */
@keyframes arrowSlide {
  0%   { transform: translateX(-70px); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(50px);  opacity: 0; }
}

/* При наведении: скрываем статическую, показываем анимированную */
.features .info .block:hover .arrow.static {
  opacity: 0;
}

.features .info .block:hover .arrow.animated {
  opacity: 1;
  animation: arrowSlide 1.6s ease-in-out infinite;
}
/* Анимация закончилась */

/* Секция с изображением: features END*/

/* START блока projects */

.projects h3 {
  margin: 140px auto 0 auto;
  font-size: 30px;
  text-align: center;
}
.projects p {
  font-size: 18px;
  text-align: center;
  margin-top: 15px;
}

.projects_flexbox {
  display: flex;
  flex-wrap: wrap;
  gap: 27px 33px;
  margin-top: 70px;
  justify-content: center
}

.flexbox_item {
  height: 223px;
  flex: 0 0 auto; /* не растягивать */
  overflow: hidden;                    /* КЛЮЧЕВОЕ: скрываем выходящее изображение */
  border-radius: 12px;                 /* опционально: как на скриншоте */
  transition: transform 0.4s ease;     /* плавность для всего блока (на всякий случай) */
}

.flexbox_item:nth-child(1) { width: 382px; }
.flexbox_item:nth-child(2) { width: 382px; }
.flexbox_item:nth-child(3) { width: 352px; }
.flexbox_item:nth-child(4) { width: 246px; }
.flexbox_item:nth-child(5) { width: 400px; }
.flexbox_item:nth-child(6) { width: 470px; }


.flexbox_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;     /* плавное увеличение */
}

.flexbox_item:hover img {
  transform: scale(1.2);               /* +20% */
}

.projects_button {
  margin: 80px auto 0 auto;
  display: block;
  max-width: 145px;
  max-height: 55px;
  text-align: center;
}
.projects_button:hover {
  transform: scale(1.1);
}
/* projects END*/

/* Start block email */
.email {
  padding-bottom: 160px;
}
.email__title {
  margin-top: 100px;
  font-size: 30px;
}

.email__text {
  margin-top: 30px;
  font-size: 18px;
}
.email .email_block label {
  display: none;
}
.email_block {
  background-color: #1C140F;
  /*max-width: 1170px;*/
  width: 93%;
  border-radius: 15px;
  margin-top: 75px;
  padding: 40px 50px 40px 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email > .email_block > div:nth-child(2) {
  display: flex;
}
.email__block-title {
  font-size: 30px;
}

.email__block-text {
  font-size: 18px;
  margin-top: 10px;
}

.email__input {
  background-color: var(--main-white);
  outline: none;
  border: none;
  border-radius: 8px;
  max-width: 400px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  padding: 20px 130px 20px 20px;
  position: relative;
  z-index: 1;
  right: -120px;

}

.email__button {
  background: var(--main-gold);
  padding: 0 15px 0 15px;
  transition: all 1s ease;
  color: var(--main-white);
  border-radius: 18px;
  font-size: 18px;
  border: none;
  z-index: 3;
  height: 42px;
  position: relative;
  top: 9px;

}

.email__button:hover {
  background: var(--main-active);
  transform: scale(1.05);
  cursor: pointer;
}
/**/
/* Footer start */
footer {
  background-color: #070707;
}
footer img {
  transition: all 1s ease;
}
footer img:hover {
  transform: scale(1.2);
}

footer > .container {
  display: flex;
  padding-top: 80px;
  justify-content: space-between;
}
.footer_logo {
  max-width: 370px;
  display: flex;
  flex-direction: column
}
.footer_logo > p:first-child {
  text-transform: uppercase;
  font-size: 24px;
}
.footer_logo > p:nth-child(2) {
  margin-top: 15px;
}
.footer_logo > p:last-child {
  margin-top: 25px;
}

.footer_about {
  display: flex;
  flex-direction: column
}

.footer_about > p:nth-child(2) {
  margin-top: 20px;
}
.footer_about > p:nth-child(3), .footer_about > p:nth-child(4), .footer_about > p:last-child {
  margin-top: 10px
}
.footer_contacts {
  max-width: 280px
}
.footer_contacts > p:nth-child(2) {
  margin-top: 20px;
}
.footer_contacts > p:last-child {
  margin-top: 20px;
}
.footer_social {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end
}
.footer_end {
  text-align: center;
  padding: 30px 0;
}
