/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Force Monospace everywhere */
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Фиксируем небольшую высоту */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-family: 'Silkscreen', monospace !important;
    font-size: 1.2rem; /* Возвращаем оригинальный размер */
    color: #ffffff;
    line-height: 1;
    letter-spacing: 1px;
}

.ascii-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem; /* Уменьшили с 2.5rem до 2rem */
}

.ascii-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    display: inline-block; /* Для стабильной высоты при анимации */
    /* Убираем фиксированные размеры для навигации */
    white-space: nowrap; /* Запрещаем перенос текста */
    text-align: center;
    line-height: 1.2; /* Немного уменьшаем высоту строки */
}

.ascii-nav a:hover {
    color: #00ff00;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.landing-container {
    position: relative;
    left: 5%;
    z-index: 10;
}

.ascii-logo {
    font-size: 14px;
    line-height: 1.2;
    white-space: pre;
    user-select: none;
    margin-bottom: 2rem;
    color: #ffffff;
}

.slogan {
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 2px;
}

/* ===== EARTH CONTAINER ===== */
.earth-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 5;
}

/* ===== UPDATED ABOUT SECTION - TWO COLUMNS ===== */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.ascii-art-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mac-ascii {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    line-height: 1.3;
    color: #ffffff; /* Белый текст */
    white-space: pre;
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    border: none;
}

.about-content {
    text-align: left;
    padding-left: 2rem;
}

.about-label {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.about-footer {
    margin-top: 3rem;
    color: #444;
    font-size: 0.8rem;
    font-style: italic;
}

/* Пиксельный шрифт для названия проекта - Press Start 2P */
.pixel-project-name {
    font-family: 'Press Start 2P', monospace;
    color: #00ff00;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 0.95em;
}

.blink {
    animation: blink-animation 1s infinite;
}

@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding-top: 120px;
    }
    .landing-container {
        left: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    .earth-container {
        position: relative;
        transform: none;
        right: auto;
        top: auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ascii-art-container {
        justify-content: center;
        order: 2;
    }

    .about-content {
        order: 1;
        padding-left: 0;
        text-align: center;
    }

    .mac-ascii {
        font-size: 10px;
        text-align: center;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .mac-ascii {
        font-size: 10px;
    }

    .about-content p {
        font-size: 1rem;
    }
}

.about-content .pixel-project-name {
    font-family: 'Silkscreen', monospace !important;
    color: #00ff00;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* ===== CULTURE SECTION (зеркальный блок) ===== */
.culture-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Уменьшаем отступ снизу */
    padding: 6rem 5% 1rem; /* Уменьшили до 1rem */
}

.culture-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

/* Текст теперь слева, картинка справа */
.culture-text {
    text-align: left;
    padding-right: 2rem; /* Вместо padding-left */
    /* Prevent layout shift during animation */
    contain: layout;
}

.culture-label {
    color: #00ff00;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.culture-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* Стиль для кошечки - белый текст, прозрачный фон */
.cat-ascii {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
    white-space: pre;
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    border: none;
    /* Prevent layout shift during animation */
    contain: layout;
}

/* Адаптив для нового блока */
@media (max-width: 1024px) {
    .culture-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .culture-text {
        order: 1;
        padding-right: 0;
        text-align: center;
    }

    #cat-ascii-container {
        order: 2;
        display: flex;
        justify-content: center;
    }

    .cat-ascii {
        font-size: 10px;
        text-align: center;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .cat-ascii {
        font-size: 10px;
    }
}

/* ===== FIRE STRIP SECTION (Above Footer) ===== */
.fire-strip {
    width: 100%;
    background-color: #000000;
    padding: 0;
    margin: 0;
    overflow: hidden;
    /* Уменьшаем отступ снизу */
    margin-bottom: -40px;
}

.fire-container {
    width: 100%;
    /* Уменьшаем высоту контейнера огня */
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ascii-fire-canvas {
    user-select: none;
    pointer-events: none;
    width: 100%;
}

/* ===== FOOTER SECTION ===== */
.main-footer {
    position: relative;
    background-color: #000000;
    /* Уменьшаем верхний отступ */
    padding: 2rem 5% 3rem;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

/* Project Name - как в шапке, но большего размера */
.footer-project-name {
    font-family: 'Silkscreen', monospace !important;
    font-size: 2.5rem; /* Больше чем в шапке (1.2rem) */
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
    font-weight: normal;
}

/* Copyright Line */
.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.6;
    font-family: 'JetBrains Mono', monospace;
}

/* Social Links - простые ссылки без рамок */
.footer-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.footer-link {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    /* Убираем все фоновые элементы и рамки */
    background: none;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    display: inline-block; /* Для стабильной высоты при анимации */
    min-width: 70px; /* Уменьшили минимальную ширину */
    text-align: center;
    white-space: nowrap; /* Запрещаем перенос текста */
    line-height: 1.2; /* Уменьшаем высоту строки */
}

.footer-link:hover {
    color: #00ff00;
    /* Убираем все эффекты при наведении, кроме цвета */
    transform: none;
    box-shadow: none;
    background: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .fire-container {
        min-height: 150px;
    }

    .footer-project-name {
        font-size: 1.8rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .footer-link {
        font-size: 0.9rem;
        min-width: 60px; /* Уменьшили для мобильных */
    }
}

@media (max-width: 480px) {
    .fire-container {
        min-height: 120px;
    }

    .footer-project-name {
        font-size: 1.4rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-link {
        min-width: 55px; /* Еще меньше для очень маленьких экранов */
        font-size: 0.85rem;
    }
}

/* ===== FIRE TEXT (STATIC) ===== */
.fire-word {
    display: inline-block;
    font-weight: bold;
    color: #ff4500; /* Оранжево-красный (OrangeRed) */
    text-shadow: 0 0 5px #ff0000; /* Статичное красное свечение */
}

/* ===== NAVIGATION ===== */
/* Активные ссылки (зеленое подчеркивание, белый текст) */
.ascii-nav a.active {
    color: #ffffff !important;
    position: relative;
}

.ascii-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00ff00;
    /* Убрали анимацию мерцания */
    animation: none;
}