/* Герой секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.hero-glitch {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: var(--glow);
    animation: textGlitch 3s infinite;
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: #0ff;
    z-index: -1;
}

.hero-glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: #f0f;
    z-index: -2;
}

.hero-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.terminal-window {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--red);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.terminal-header {
    background: rgba(255, 0, 51, 0.1);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-buttons .close { background: #ff5f56; }
.terminal-buttons .minimize { background: #ffbd2e; }
.terminal-buttons .maximize { background: #27ca3f; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--red);
}

.terminal-body {
    padding: 2rem;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.terminal-line {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #00ff00;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 1.5s; }
.terminal-line:nth-child(2) { animation-delay: 2s; }
.terminal-line:nth-child(3) { animation-delay: 2.5s; }

.terminal-line.active {
    animation: blink 1s infinite;
}

.prompt {
    color: var(--red);
    margin-right: 0.5rem;
}

.cursor {
    animation: cursorBlink 1s infinite;
}

/* Быстрые ссылки */
.quick-links {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.link-card {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.1), transparent);
    transition: left 0.6s;
}

.link-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.link-card:hover::before {
    left: 100%;
}

.link-icon {
    font-size: 2rem;
    color: var(--red);
}

.link-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.link-content p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.link-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--red);
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover .link-arrow {
    opacity: 1;
}

/* Статистика */


/* Анимации */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, -2px); }
    100% { clip-path: inset(42% 0 60% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(25% 0 30% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(20% 0 35% 0); transform: translate(2px, -2px); }
}

@keyframes typeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-glitch {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
