* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #00ffff #000000;
}

:root {
    --primary: #000000;
    --secondary: #000000;
    --accent: #00ffff;
    --text: #ffffff;
    --text-dim: #aaaaaa;
    --border: #00ffff;
    --border-thin: 1px solid #00ffff;
    --border-thick: 2px solid #00ffff;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: var(--border-thin);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
    /* New
    shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast; */
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    border: var(--border-thin);
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute; /*fixed;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text);
    text-transform: uppercase;
    border-bottom: var(--border-thick);
    padding-bottom: 10px;
    display: inline-block;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-dim);
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.3s ease;
    border: var(--border-thick);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text);
    text-transform: uppercase;
    padding-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: var(--accent);
}

/* Games - ИСПРАВЛЕНО */
.game-img {
    height: 200px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    border-bottom: var(--border-thin);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 360px);
    gap: 40px;
    justify-content: center;
}

.game-card {
    background-color: transparent;
    border: var(--border-thin);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.1);
}

.game-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.game-card:hover:before {
    left: 100%;
}

/* Контейнер для фотографии игры */
.game-photo-container {
    height: 200px; /* Оригинальная высота как было */
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: var(--border-thin);
    background-color: #000000;
    display: flex; /* Центрируем изображение */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
}

/* Стили для фотографии игры */
.game-photo {
    max-width: 100%; /* Не больше ширины контейнера */
    /*max-height: 100%;  Не больше высоты контейнера */
    width: auto; /* Автоматическая ширина */
    height: auto; /* Автоматическая высота */
    object-fit: contain; /* Вмещает все изображение без обрезки */
    display: block;
}

.game-card:hover .game-photo {
    transform: scale(1.05); /* Легкий зум при наведении */
    transition: transform 0.3s ease;
}

/* Запасной вариант если фото не загрузится */
.game-photo-container:before {
    content: '\f11b'; /* Иконка игры */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: var(--accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1;
}

.game-photo-container.img-failed:before {
    display: block;
}

.game-photo-container.img-failed {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
    border-bottom: var(--border-thin);
    padding-bottom: 8px;
    display: block; /* Изменяем с inline-block на block */
    width: 100%; /* Занимает всю ширину */
}

.game-info p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-tag {
    background-color: transparent;
    color: var(--accent);
    padding: 5px 15px;
    border: var(--border-thin);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background-color: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: var(--border-thin);
    transition: all 0.3s ease;
    background-color: transparent;
}

.stat-item:hover {
    background-color: rgba(0, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 40px;
    justify-content: center;
}

.team-member {
    text-align: center;
    border: var(--border-thin);
    padding: 30px 20px;
    transition: all 0.3s ease;
    background-color: transparent;
    cursor: pointer;
}

.team-member:hover {
    border-color: var(--accent);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    background-color: transparent;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    border: var(--border-thick);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo-img {
    transform: scale(1.1);
}

.member-photo:before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 4rem;
    color: var(--accent);
    position: absolute;
    display: none;
}

.member-photo.img-failed:before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.team-member:hover .member-info h3 {
    color: var(--accent);
}

.member-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.team-member:hover .member-role {
    letter-spacing: 2px;
}

.member-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border: var(--border-thin);
    padding: 20px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.contact-item:hover {
    border-color: var(--accent);
    background-color: rgba(0, 255, 255, 0.02);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    border: var(--border-thin);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: var(--accent);
    color: var(--primary);
    transform: rotate(15deg) scale(1.1);
}

.contact-item h3 {
    color: var(--text);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-dim);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: transparent;
    border: var(--border-thin);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form ::placeholder {
    color: var(--text-dim);
}

/* Inputs */
.textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: transparent;
    border: var(--border-thin);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}


/* Footer */
footer {
    background-color: var(--primary);
    padding: 60px 0 30px;
    border-top: var(--border-thick);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.1);
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    border-bottom: var(--border-thin);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.footer-links a:before {
    content: '>';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--accent);
}

.footer-links a:hover:before {
    left: 0;
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    border: var(--border-thin);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: var(--border-thin);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Addings to All pages */

/*Inputs*/
.styled-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: transparent;
    border: var(--border-thin);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.styled-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.fa-bars {
    pointer-events: none;
}



/* Simple animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    /*transition: opacity 0.5s ease, transform 0.5s ease;*/
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность для мобильных устройств - Games */
@media (max-width: 768px) {
    .game-photo-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .game-photo-container {
        height: 160px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 120px;
        /*left: -100%;*/
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: right 0.5s ease;
        border-top: var(--border-thin);
    }
    
    .nav-links.active {
        /*left: 0;*/
        right:0;
    }
    
    .nav-links li {
        margin: 0 0 30px 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 10px 20px;
        border: var(--border-thin);
        width: 200px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}