/* --- CSS Переменные и сброс стилей --- */
:root {
    --bg-color: #0b0c15;
    --bg-secondary: #161823;
    --primary-color: #7000ff; /* Фиолетовый неон */
    --primary-hover: #8a2be2;
    --accent-color: #00f2ff; /* Циан неон */
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
     overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Компоненты --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 12, 21, 0.8), rgba(11, 12, 21, 0.9)), 
                url('screen2.jpeg') center/cover no-repeat;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary-color);
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- About Section --- */
.about {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    opacity: 0.5;
    z-index: -1;
    transform: translate(10px, 10px);
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Games Portfolio --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    group: cursor;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.2);
}

.card-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.game-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.play-btn svg {
    fill: var(--primary-color);
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.game-card:hover .play-btn svg {
    fill: var(--accent-color);
}

/* --- Services --- */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.team-member:hover {
    background: #1e2130;
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member span {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Contact / CTA --- */
.cta {
    background: linear-gradient(rgba(11, 12, 21, 0.9), rgba(11, 12, 21, 0.9)),
                url('https://picsum.photos/seed/setup/1920/600') center/cover;
    text-align: center;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    background: #050508;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    font-size: 1.2rem;
    margin-left: 20px;
    color: #fff;
}

.social-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1; /* Image first on mobile */
    }
}
