/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #0c0c0c;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 40px;
    z-index: 2;
}

.text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 80%;
}

.main-text {
    font-size: 28px;
    padding: 15px 25px;
    color: #4dd0ff;
    background-color: rgba(0, 0, 0, 0.5);
    border-left: 3px solid #00b4db;
    border-right: 3px solid #00b4db;
    letter-spacing: .5px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.main-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #4dd0ff;
    animation: pulse 2s infinite;
}

.main-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: #4dd0ff;
    animation: pulse 2s infinite;
}

.main-text .bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #4dd0ff, transparent);
}

.ascii-art {
    font-size: 28px;
    color: #4dd0ff;
    letter-spacing: -1px;
    font-weight: bold;
    text-shadow: 0 0 10px #00b4db, 0 0 20px #00b4db;
    position: relative;
    white-space: pre;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rune {
    position: absolute;
    color: #4dd0ff;
    font-size: 20px;
    text-shadow: 0 0 5px #00b4db;
    opacity: .8;
    font-family: monospace;
}

.language-indicator {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 14px;
    color: #00b4db;
    opacity: .7;
}

.geometric-particle {
    position: absolute;
    background-color: #4dd0ff;
    opacity: .3;
    pointer-events: none;
    transform-origin: center center;
    box-shadow: 0 0 10px #00b4db;
}

.glitch-effect {
    animation: glitch 2s infinite;
    position: relative;
}

/* Кнопка files */
.bottom-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.files-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, rgba(77, 208, 255, 0.1), rgba(0, 180, 219, 0.1));
    border: 2px solid #4dd0ff;
    color: #4dd0ff;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.files-button:hover {
    background: linear-gradient(45deg, rgba(77, 208, 255, 0.3), rgba(0, 180, 219, 0.3));
    box-shadow: 0 0 20px rgba(77, 208, 255, 0.5);
    transform: translateY(-2px);
}

.files-button .button-text {
    position: relative;
    z-index: 2;
}

.files-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.files-button:hover .button-glow {
    left: 100%;
}

/* Анимации */
@keyframes pulse {
    0% {
        opacity: .5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: .5;
    }
}

@keyframes glitch {
    0% {
        transform: translateX(0);
    }
    2% {
        transform: translateX(3px) skewX(2deg);
    }
    4% {
        transform: translateX(-3px) skewX(-2deg);
        filter: hue-rotate(90deg);
    }
    6% {
        transform: translateX(0) skewX(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: translateX(0);
    }
}

/* Адаптивная верстка */
@media(max-width: 600px) {
    .ascii-art {
        font-size: 16px;
        transform: scale(0.8);
        transform-origin: center center;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .main-text {
        font-size: 18px;
        padding: 10px 15px;
        width: 90%;
        max-width: 300px;
    }
    
    .header {
        top: 20px;
    }
}

@media(max-width: 400px) {
    .ascii-art {
        font-size: 12px;
        transform: scale(0.7);
    }
    
    .main-text {
        font-size: 16px;
        padding: 8px 12px;
    }
}

@media(max-height: 600px) {
    .header {
        top: 10px;
    }
    
    .ascii-art {
        transform: scale(0.7);
        transform-origin: center top;
    }
}