﻿@import "reset.css";
@import url('../css2');



:root{
    --black: #171718;
    --black-l: #bfb4df;
    --black-f: #bfb4df;
    --black-border:#26292D;
    --white: #fff;
    --purple: #fe284a;
    --toxic: #a0d8fc;

    --dark-border:var(--black-border);
    --dark-bg:var(--black);
    --accent: var(--purple);
    --header-text:var(--white);

    --page-bg:var( --white);
    --text-color:var(--black);
}
.dark{
    --page-bg:var(--black-border);
    --text-color:var(--white);
    --header-text:var(--white);
}

html, body{
    height: 100%;
}
ol, ul{
    list-style: none;
}
.row--dark ul li {
    padding-left: 21px;
    position: relative;
}
body{
    font-family: 'Roboto', sans-serif;
    color:var(--header-text);
    font-size: 16px;
    display: flex;
    flex-direction: column;

    background-color: var(--page-bg);
    color: var(--text-color);
}

footer{
    margin-top: auto;
}

.container{
    max-width: 1230px;
    padding: 0 30px;
    margin: 0 auto;
}
.dark-block{
    padding: 100px 0;
    background-color: var(--black);
}
.dark-block .text-block h2, .dark-block .text-block h3{
    font-size: 2rem;
    color: var(--toxic);
}
.title-1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--toxic);
}

.button {
    background-color: var(--accent);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--header-text);
    transition: background-color 0.2s ease-in, top 0.2s ease-in;
}

.button:hover, .button:focus{
    background-color: var(--accent);
}

.button:active{
    background-color: #8a8deb;
    position: relative;
    top: 1px;
}
p,h3,h2{
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}
/* HEADER */

.header{
    background-color: var(--black);
    color: var(--header-text);
    
}

.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 30px;
}

.nav-border{
    padding: 20px 0;
    border-bottom: 1px solid #26292D;
}

.logo{
    max-width: 200px;
    padding-right: 12px;
    padding-bottom: 3px;
    position: relative;
    font-weight: 700;
    font-size: 32px;
    color: var(--header-text);
    line-height: 1;
    margin-right: auto;
}

.logo span{
    font-weight: 400;
}


/* NAV */

.nav-list{
    display: flex;
    column-gap: 40px;
    font-weight: 500;
    font-size: 16px;
}



.nav-button{
    display: none;
}

.nav-link{
    color: var(--header-text);
}

.nav-link.active{
    border-bottom: 3px solid var(--accent);
}


/* DARK MODE */

.dark-mode-btn {
    display: flex;
    position: relative;
    justify-content: space-between;
    width: 51px;
    height: 26px;
    border-radius: 50px;
    background-color: var(--accent);
    padding: 5px;
    order:9;
}

.dark-mode-btn::before {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    width: 24px;
    height: 24px;
    border-radius:  50%;
    background-color: var(--white);

    transition: left 0.2s ease-in;
}

.dark-mode-btn--active::before{
    left: 26px;
}
.dark-mode-btn__icon {
    position: relative;
    z-index: 9;
}
/* HEADER CONTENT */

.header-row{
    padding: 100px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 30px;
    justify-content: center;
    background-image: url("../img/header/abstract.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
}

.header-content{
    max-width: 630px;
    text-align: center;
    padding: 182px 0 248px 0;
}
.header-left, .header-right{
    flex:1;
}

.header-heading{
    font-weight: 600;
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1;
}

.header-content p{
    line-height: 24px;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 40px;

}

.heading-color{
    color: var(--accent);
    line-height: 1.4;
}

.heading-small{
    font-size: 40px;
    line-height: 1.4;
}

/* Portfolio */

.portfolio {
    background-color: var(--page-bg);
    padding: 70px 0;
}

.portfolio-title {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-title h2{
    font-weight: 600;
    font-size:2rem;
    text-transform: uppercase;
    margin-bottom: 0;
}
.portfolio-title a{
    font-weight: 400;
    font-size:1rem;
    text-transform: uppercase;
    color: var(--accent);
    transition: 0.2s ease-in;
}
.portfolio-title a:hover{
    color: #8a8deb;
}


.project{
    background-color: var(--white);
    box-shadow: 0px 5px 10px 2px rgba(92, 97, 236, 0.3);
    border-radius: 10px;
    max-width: 349px;
}


.project-img{
    border-radius: 10px;
}
.project-title{
    font-size: 20px;
    font-weight: 600;
    color: #000;
    padding: 15px 20px 25px;
}

.projects-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 15px;
    row-gap: 15px;
    flex-wrap: wrap;
}

/* Footer */

.contacts {
    background-color: var(--black);
    padding: 60px 0 50px 0;
    text-align: center;
}
.contacts-title {
    margin-bottom: 40px;
}
.contacts-content {
    font-size: 18px;
    margin-bottom: 40px;
}
.contacts-button {
    margin-bottom: 80px;

}

.contacts-social {
    margin-bottom: 27px;
    display: flex;
    justify-content: center;
    column-gap: 30px;
    align-items: center;
}

.contacts-social img{
    min-width: 30px;
    height: auto;
}
.contacts-footer {
    color: var(--header-text);
}

.skills{
    padding: 70px 0;
    text-align: center;
}

.skills-title{

    color:var(--accent); 
    margin-bottom: 40px;


}
.skills-item-title{
    color: var(--text-color);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.skills-item p{
    color: var(--text-color);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
}

.skills-item{
    margin-bottom: 40px;
}

.skills-item img{
    max-width: 865px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

p.project-item-title{
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.button img{
    width: 24px;
    margin: 0;
}
/* Стили для основного блока */
.game-card {
    position: relative;
    width: calc((100% - 45px) / 4); /* Ширина блока */
    overflow: hidden;
   
    border-radius:12px ;
    background-color: var(--black);
  }
  .game-title{
    padding: 4px 12px 6px;
  }
  
  /* Стили для изображения */
  .game-image {
    display: block;
    width: 100%;
    height: auto;
  }
  
  /* Стили для затемненного слоя */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Черный цвет с прозрачностью */
    opacity: 0; /* Скрытый по умолчанию */
    transition: opacity 0.3s ease; /* Плавная анимация */
  }
  
  /* Стили для кнопок */
  .buttons {
    position: absolute;
    font-weight: 500;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0; /* Скрытые по умолчанию */
    transition: opacity 0.3s ease; /* Плавная анимация */
  }
  
  .play-button, .demo-button {
    width:100px;
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    color: white;
    background-color: var(--accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  
  .demo-button {
    color: var(--accent);
    border: 2px solid var(--accent);;
    background-color:#8a8deb00; /* Зелёный фон для демо */
  }
  .play-button:hover {
    background-color:#8a8deb; 
  }
  
  /* Эффект при наведении */
  .game-card:hover .overlay {
    opacity: 1; /* Показать затемнённый слой */
  }
  
  .game-card:hover .buttons {
    opacity: 1; /* Показать кнопки */
  }

.banner {
    width: 100%;
    height: 372px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    padding: 32px 16px;
    text-align: center;
    display: flex
;
    flex-direction: column;
    align-items: center;
}
 .banner::before {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(346deg, var(--accent) -9.34%, rgba(24, 24, 24, 0) 21.35%), linear-gradient(85deg, #26292D 17.89%, rgba(24, 24, 24, 0.59) 61.42%);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}
.banner--dark::before{
    background: linear-gradient(346deg, var(--accent) -9.34%, rgba(24, 24, 24, 0) 21.35%), linear-gradient(85deg, #171718 17.89%, rgba(24, 24, 24, 0.59) 61.42%);
}
 .banner img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
}
 .banner .subtitle {
    font-size: 15px;
}
 .banner .title {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 44px;
}
.banner a {
    margin-top: auto;
}
.banner .play-button{
    height: 44px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    transition: all .2s ease-out;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


.header-row ul li::before {
    content: "";
    background: linear-gradient(90deg, #00aec4, #03d192);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}
li{
position: relative;

}
.text-block ul li {
    padding-left: 21px;
    position: relative;
    margin-bottom: 15px;
}
.text-block .page-img {

    margin-bottom: 20px;
}
.text-block ul li::before {
    content: "";
    background: linear-gradient(90deg, #00aec4, #03d192);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}

.row--dark .title-1{
    color: var(--accent);
}

 .jackpot {
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    padding: 32px 16px;
    text-align: center;
    display: flex
;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 24px 24px 32px;
    border-radius: 20px;
    padding: 20px 16px 19px;
    margin-bottom: 16px;
    background: #131a2d;
}
 .jackpot .title {
    width: 100%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    color: #b3b2b2;
}
.jackpot a {
    width: auto;
    
}
 .jackpot .count-block, .jackpot .count  {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    color: #fff;
}
.jackpot .count-block{
    justify-content: center;
}
.jackpot img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -2;
}
.jackpot::before {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(346deg, var(--accent) -9.34%, rgba(24, 24, 24, 0) 21.35%), linear-gradient(85deg, #171718 50%, rgba(24, 24, 24, 0.59) 61.42%);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}
ol li::before {
    counter-increment: item;
    content: counter(item) ". ";
    font-weight: 700;
    color: #ef4136;
}
ol {
    counter-reset: item;
    margin-bottom: 16px;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}
.popup {
    z-index: 100;
    width: 100%;
    max-width: 420px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #201e2c;
    color: #fff;
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
.popup img{
   width: 70px;
}
.popup_block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.popup_block p{
    margin: 0;
}
.block_txt {
    width: 40%;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.block_btn {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
}
@keyframes glow {
	0% { box-shadow: 0 0 5px var(--accent); }
	50% { box-shadow: 0 0 20px var(--accent);}
	100% { box-shadow: 0 0 5px var(--accent); }
}
.glowing {
	animation: glow 1.5s infinite alternate;
}
.btn {
    border: 1px solid var(--accent);
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s ease-in-out;
}
.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.476);
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 6px;
}
.block_txt span {
    font-size: 35px;
    color: #ffffff;
    font-weight: 700;
}