/* TERMINAL STYLE v2.2 (Glitch & Oversized & Clean)
    Author: [TEEN_PRO_YT]
    Dependencies: none (No Tailwind)
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
    --blood: #ff0000;
    --blood-low: rgba(255, 0, 0, 0.2);
    --blood-glow: rgba(255, 0, 0, 0.5);
    --dark-bg: #050505;
    --panel-bg: rgba(10, 10, 10, 0.95);
    --text-main: #eee;
    --text-dim: #555;
    
    /* Цвета для глитч-эффекта */
    --glitch-cyan: #0ff;
    --glitch-magenta: #f0f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- ФОНОВЫЕ ЭФФЕКТЫ --- */

.bg-grid {
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--blood);
    border-radius: 50%;
    animation: float linear infinite;
    filter: blur(1px);
}

@keyframes float {
    0% { transform: translateY(105vh); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-5vh); opacity: 0; }
}

/* --- НАВИГАЦИЯ --- */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--blood-low);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--blood);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blood);
    transition: 0.3s ease;
    box-shadow: 0 0 8px var(--blood);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--blood-glow);
}

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

/* --- ГЛАВНЫЙ ЭКРАН (С ЦЕНТРАЛЬНЫМ ГЛИТЧЕМ) --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--blood-low);
    color: var(--blood);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    background: rgba(255, 0, 0, 0.05);
}

/* Стили заголовка с глитч-эффектом */
.main-title {
    font-size: clamp(3.5rem, 12vw, 7.5rem);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    color: var(--text-main);
    
    /* Подготовка к глитчу на ховер */
    cursor: wait; /* Показываем, что объект интерактивен */
}

/* Слои для глитча */
.main-title::before,
.main-title::after {
    content: attr(data-text); /* Берёт текст из HTML атрибута */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Скрыты по умолчанию */
}

.main-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--glitch-cyan);
    background: var(--dark-bg); /* Чтобы не просвечивал фон */
}

.main-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--glitch-magenta);
    background: var(--dark-bg);
}

/* Анимация при наведении */
.main-title:hover::before {
    opacity: 1;
    animation: glitch-anim-1 0.4s infinite linear alternate-reverse;
}

.main-title:hover::after {
    opacity: 1;
    animation: glitch-anim-2 0.4s infinite linear alternate-reverse;
}

/* Красный текст внутри заголовка */
.red-text {
    color: var(--blood);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    position: relative;
    z-index: 1; /* Чтобы красный был поверх слоёв глитча */
}

.hero-subtitle {
    color: var(--text-dim);
    margin-bottom: 4rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* КНОПКИ */

.button-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-action {
    position: relative;
    padding: 1.2rem 3rem;
    background: var(--blood);
    color: black;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0% 100%);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

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

.btn-action:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.btn-action:hover::before {
    left: 150%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--blood);
    color: var(--blood);
}

.btn-outline:hover {
    background: rgba(255, 0, 0, 0.1);
    color: white;
}

/* --- ФУТЕР --- */

.footer {
    padding: 3rem 2rem;
    background: #000;
    border-top: 1px solid rgba(255, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #222;
}

/* СКРОЛЛБАР */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #200; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood); }

/* --- КЛЮЧЕВЫЕ КАДРЫ ДЛЯ ГЛИТЧА --- */

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    10% { clip: rect(80px, 9999px, 85px, 0); }
    20% { clip: rect(40px, 9999px, 50px, 0); }
    30% { clip: rect(60px, 9999px, 70px, 0); }
    40% { clip: rect(10px, 9999px, 20px, 0); }
    50% { clip: rect(90px, 9999px, 100px, 0); }
    60% { clip: rect(30px, 9999px, 35px, 0); }
    70% { clip: rect(70px, 9999px, 75px, 0); }
    80% { clip: rect(50px, 9999px, 60px, 0); }
    90% { clip: rect(15px, 9999px, 25px, 0); }
    100% { clip: rect(85px, 9999px, 90px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 9999px, 90px, 0); }
    10% { clip: rect(15px, 9999px, 25px, 0); }
    20% { clip: rect(50px, 9999px, 60px, 0); }
    30% { clip: rect(70px, 9999px, 75px, 0); }
    40% { clip: rect(30px, 9999px, 35px, 0); }
    50% { clip: rect(90px, 9999px, 100px, 0); }
    60% { clip: rect(10px, 9999px, 20px, 0); }
    70% { clip: rect(60px, 9999px, 70px, 0); }
    80% { clip: rect(40px, 9999px, 50px, 0); }
    90% { clip: rect(80px, 9999px, 85px, 0); }
    100% { clip: rect(20px, 9999px, 15px, 0); }
}