/* Основные настройки и сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #050505;
    color: #00ff66;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Фоновый холст для эффекта Matrix */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Терминальный контейнер */
.terminal-container {
    max-width: 900px;
    margin: 20px auto;
    background-color: rgba(13, 17, 23, 0.94);
    border: 1px solid #00ff66;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.25);
    overflow: hidden;
}

/* Шапка окна терминала */
.terminal-header {
    background-color: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-expand { background-color: #27c93f; }

.terminal-title {
    margin-left: 20px;
    font-size: 0.85rem;
    color: #8b949e;
}

/* Тело терминала */
.terminal-body {
    padding: 30px;
}

/* Герой-секция */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed #00ff66;
    padding-bottom: 20px;
}

.hero-section h1 {
    font-size: 2.3rem;
    color: #00ff66;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: #8b949e;
    font-size: 1rem;
}

/* Навигация */
.terminal-nav {
    background: #12161c;
    padding: 12px 15px;
    border: 1px solid #21262d;
    border-radius: 4px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.prompt-symbol {
    color: #ff7b72;
    font-weight: bold;
}

.nav-link {
    color: #58a6ff;
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #58a6ff;
    color: #0d1117;
}

/* Контентные секции */
.content-section {
    margin-bottom: 35px;
}

.content-section h2 {
    font-size: 1.3rem;
    color: #7ee787;
    margin-bottom: 15px;
    border-left: 3px solid #00ff66;
    padding-left: 10px;
}

.sec-num {
    color: #d2a8ff;
}

.content-section p {
    margin-bottom: 15px;
    color: #c9d1d9;
    text-align: justify;
}

/* Блок цитаты */
.quote-box {
    background: #161b22;
    border-left: 3px solid #58a6ff;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #8b949e;
}

.quote-box span {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #58a6ff;
    font-style: normal;
}

/* Списки */
.terminal-list {
    list-style-type: none;
    padding-left: 0;
}

.terminal-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #c9d1d9;
}

.terminal-list li::before {
    content: "?";
    color: #00ff66;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.terminal-list span {
    color: #7ee787;
    font-weight: bold;
}

/* Сетка навыков / достижений */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background-color: #161b22;
    color: #7ee787;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #30363d;
}

.skill-tag:hover {
    border-color: #00ff66;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}

/* Интерактивный терминал */
.interactive-terminal {
    background-color: #05070b;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    font-family: 'Courier New', Courier, monospace;
}

#terminal-output {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #c9d1d9;
}

#terminal-output p {
    margin-bottom: 5px;
}

.sys-msg {
    color: #8b949e;
}

.cmd-echo {
    color: #7ee787;
}

.cmd-response {
    color: #58a6ff;
    margin-left: 10px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #21262d;
    padding-top: 10px;
}

.prompt {
    color: #ff7b72;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.quick-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cmd-btn {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.cmd-btn:hover {
    background: #00ff66;
    color: #0d1117;
    border-color: #00ff66;
}

/* Футер */
.terminal-footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px dashed #30363d;
    text-align: center;
    font-size: 0.85rem;
    color: #8b949e;
}

.status-ok {
    color: #00ff66;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 768px) {
    .terminal-container {
        margin: 5px;
    }
    .terminal-body {
        padding: 15px;
    }
    .hero-section h1 {
        font-size: 1.6rem;
    }
}