:root {
    --red: #ff0033;
    --dark-red: #990000;
    --neon-red: #ff0066;
    --black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gray: #333;
    --light-gray: #666;
    --white: #fff;
    --glow: 0 0 5px rgba(255, 0, 51, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Анимированный фон */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#particles-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 51, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 51, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.glitch-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 51, 0.05) 2px,
        rgba(255, 0, 51, 0.05) 4px
    );
    animation: glitch 0.1s infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-1px); }
    20% { transform: translateX(1px); }
    30% { transform: translateX(0); }
}

/* Навигация */
.cyber-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--red);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.bolt {
    position: relative;
    width: 100%;
    height: 100%;
}

.bolt-main {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--red);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: boltPulse 2s infinite;
}

.bolt-spark {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--neon-red) 0%, transparent 70%);
    opacity: 0.5;
    animation: sparkle 3s infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-text .red {
    color: var(--red);
    text-shadow: var(--glow);
}

.logo-text .white {
    color: var(--white);
}

.logo-text .tag {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-left: 0.5rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

@keyframes boltPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .cyber-nav {
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.3s;
        border-top: 1px solid var(--red);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
}
