
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

p {
    position: relative;
    transition: all 0.5s ease;
    padding-bottom: 2px;
}

p:hover {
    text-decoration:underline;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Минимальная высота = высота окна */
    background-color: rgba(2, 3, 20, 1);
    font-family: 'Tektur', 'Orbitron', sans-serif;
    color: aliceblue;
}

a {
    text-decoration: none;
    color: rgb(0, 228, 76);
    transition: color 0.3s;
}

a:hover {
    color: azure;
}

.header_text_light h1 {
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(2, 3, 20, 1);
}

.header_text_light h2 {
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(2, 3, 20, 1);
}


.header_text_light h3 {
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(2, 3, 20, 1);
}

.header_text_light h4 {
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(2, 3, 20, 1);
}

.section_header_wrapper {
    background-color: rgb(22, 24, 35, 0.65);
    width: 100%;
    padding-left: 0.3vw;
    padding-right: 0.3vw;
    padding-top: 0.3vh;
    padding-bottom: 0.3vh;
    margin-bottom: 1vh;
    border-radius: 10px;

    /* Неоновые эффекты */
    box-shadow:
        inset 2px 2px 1px rgba(46, 2, 68, 0.616),
        inset -2px -2px 1px rgba(7, 0, 100, 0.555);
}

.section_header_box {
    height: 100%;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    margin-left: 0.3vw;
    margin-right: 0.3vw;
    margin-top: 0.3vh;
    margin-bottom: 0.3vh;
    background-color: rgb(22, 24, 35, 0.65);;
    transition: all 0.8s;
    /* Скосы по углам
        (0, 0)           (100%, 0)
        ┌─────────────────┐
        │                 │
        │                 │
        │                 │
        └─────────────────┘
        (0, 100%)       (100%, 100%)
    */
    clip-path: polygon(
        0 0,
        calc(100% - 42px) 0,
        100% 42px,
        100% 100%,
        0 100%
    );

    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);
}

.section_header_box:hover {
    border-left-color: rgb(0, 228, 76);
    background: rgba(0, 228, 76, 0.05);
}

.main_content {
    flex: 1;
    color: aliceblue;
    background-color: rgba(2, 3, 20, 1);
    font-family: 'Tektur', 'Orbitron', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.about_me {
    display: flex;
    align-self: stretch;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    /* justify-content: space-between; */
    justify-content:space-around;

}

.about_me_image_wrapper {
    margin-top: 1vh;
    padding: 1vh;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    transition: filter 0.5s;
}

.about_me_image_wrapper:hover {
    filter:
        drop-shadow(-1px -1px 2px rgba(181, 23, 158, 0.7))
        drop-shadow(-3px -3px 5px rgba(181, 23, 158, 0.5))
        drop-shadow(-5px -5px 10px rgba(181, 23, 158, 0.3));
}

.about_me_profile_image {
    border: none;
    width: 300px; /* Фиксированная ширина для изображения */
    border-radius: 10px;
    height: auto;
    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 25px,
        100% 100%,
        25px 100%,
        0 calc(100% - 25px)
    );
    transition: all 0.8s;
}

/* Увеличить изображение профиля при наведении */
.about_me_profile_image:hover {
    transform: scale(1.01);
}

.article_about_me {
    margin-top: 1vh;
    align-self: stretch;
    max-width: 60%;
    min-width: 250px;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;

    display: flex;
    flex-direction: column;

    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 25px,
        100% 100%,
        0 100%
    );

    background-color: rgb(11, 14, 28, 0.56);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.822),
        inset -3px -3px 5px rgba(0, 0, 0, 0.822);
}

.article_text {
    font-weight: lighter;
}

.about_me_links {
    margin-top: 1vh;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.about_me_links_background {
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    height: 100%;
    background-color: rgb(11, 14, 28, 0.56);
    clip-path: polygon(
        0 0,
        calc(100% - 23px) 0,
        100% 23px,
        100% 100%,
        0 100%
    );
}

.about_me_header_background {
    background-color: rgb(22, 24, 35, 0.65);
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
    clip-path: polygon(
        0 0,
        calc(100% - 23px) 0,
        100% 23px,
        100% 100%,
        0 100%
    );
    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);
    transition: all 0.8s
}

.about_me_header_background:hover {
    border-left-color: rgb(0, 228, 76);
    background: rgba(0, 228, 76, 0.05);
}

.row_section {
    display: flex;
    flex-direction: row;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: rgba(11, 14, 28, 0.56);
}

.row_image_wrapper {
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
    min-width: 200px;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    clip-path: polygon(
        0 0,
        calc(100% - 23px) 0,
        100% 23px,
        100% 100%,
        0 100%
    );
    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);
    background: rgba(0, 0, 0, 0.3);
    transition: all 1s;
}

.row_image_wrapper:hover {
    border: 1px solid rgba(255, 255, 255, 0.5)
}

.row_image_wrapper img {
    min-width: 200px;
    border-radius: 10px;
    transition: all 0.8s;
}

.row_image_wrapper img:hover {
    transform: scale(1.01);
}

.row_section_header_background {
    width: 100%;
    margin-bottom: 1vh;
    background-color: rgb(22, 24, 35, 0.65);
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
    clip-path: polygon(
        0 0,
        calc(100% - 23px) 0,
        100% 23px,
        100% 100%,
        0 100%
    );
    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);
    transition: all 0.8s
}

.row_section_header_background:hover {
    border-left-color: rgb(0, 228, 76);
    background: rgba(0, 228, 76, 0.05);
}

.row_section_article {
    align-self: stretch;
    width: 40%;
    min-width: 250px;
    padding-left: 1vw;
    padding-right: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;

    display: flex;
    flex-direction: column;

    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 25px,
        100% 100%,
        0 100%
    );

    background-color: rgb(11, 14, 28, 0.56);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.822),
        inset -3px -3px 5px rgba(0, 0, 0, 0.822);
}

.row_image_preview_wrapper {
    max-width: 45%;
    min-width: 300px;
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);
    transition: all 0.8s;
}

.row_image_preview_wrapper:hover {
    background: rgba(0, 0, 0, 0.3);
}

.row_image_preview_wrapper img {
    width: 100%;
    border-radius: 10px;
    transition: all 0.8s;
}

.fade-out {
    opacity: 0.1;
}

.row_image_preview_wrapper img:hover {
    transform: scale(1.02);
}

.row_image_list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 50%;
    flex-wrap: wrap;
    margin-left: 0.5vw;
    margin-right: 0.5vw;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
}

.single_image_wrapper {
    width: 15%;
    min-width: 200px;
    height: auto;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;

    clip-path: polygon(
        0 0,
        calc(100% - 25px) 0,
        100% 25px,
        100% 100%,
        25px 100%,
        0 calc(100% - 25px)
    );

    border-radius: 10px;
    border: 1px solid rgba(0, 228, 76, 0.3);
    box-shadow: 0 0 20px rgba(0, 228, 76, 0.1);

    transition: all 0.5s;
}

.single_image_pointer {
    border: 1px solid rgba(236, 236, 236, 0.349);
    box-shadow: 0 0 20px rgba(236, 236, 236, 0.1);
}

.single_image_wrapper img {
    width: 100%; /* Изображение занимает 100% ширины контейнера */
    height: auto; /* Высота пропорциональна ширине */
    border-radius: 10px;
    transition: all 0.8s;
}

.single_image_wrapper img:hover {
    transform: scale(1.02);
}


/* Вариация списка - обычный список */
.article_text ul {
    list-style: none;
    padding-left: 0;
}

.article_text > ul > li,
.about_me_links_background > ul > li {
    padding: 10px 15px; /* Отступы внутреннего контента */
    margin-bottom: 8px;
    background: linear-gradient( /* Исходный фон */
        90deg,
        rgba(0, 228, 76, 0.05),
        transparent
    );
    position: relative;
    overflow: hidden; /* Cкрывает выходящую за пределы анимацию градиента */
}

.article_text > ul > li > ul > li {
    padding: 10px 15px;
    margin-bottom: 4px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

/* Анимация градиента слева направо */
.article_text > ul:not(.blocks) > li:hover::after,
.about_me_links_background > ul:not(.blocks) > li:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 228, 76, 0.2),
        transparent
    );
    animation: glitch 0.5s linear;
}

@keyframes glitch {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Кастомный маркер, добавляемый перед текстом элемента списка */
.article_text ul:not(.blocks):not(.timeline) li::before {
    content: '▶';
    color: rgb(0, 228, 76);
    margin-right: 10px;
    left: 0;
    font-size: 0.8em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Вариация списка - блоки */
.article_text ul.blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

/* Элемент блочного списка */
.article_text ul.blocks li {
    background: rgba(0, 228, 76, 0.1);
    border: 1px solid rgba(0, 228, 76, 0.3);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-family: 'Tektur', monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.article_text ul.blocks li:hover {
    background: rgba(0, 228, 76, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 228, 76, 0.2);
}


/* Вариация списка - таймлайн */
.article_text ul.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.article_text ul.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(0, 228, 76);
}

.article_text ul.timeline li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
}

/* Маркеры списка-таймлайна */
.article_text ul.timeline li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: rgb(0, 228, 76);
    border-radius: 50%;
    border: 2px solid #0a0a15;
    animation: pulse 2s infinite;
}

.article_text ul.timeline .date {
    color: rgb(0, 228, 76);
    font-family: 'Tektur', monospace;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.article_text ul.timeline .title {
    font-weight: bold;
    color: #fff;
}

.full_screen_image_wrapper {
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background-color 0.3s;
    z-index: 1;
}

.full_screen_image_wrapper img {
    width: auto;
}

.full_screen_image_wrapper:hover {
    border: none;
}

/* Адаптация текста под узкие экраны */
@media (max-width: 999px) {
    .row_section_article {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .article_about_me {
        max-width: 100%;
    }

    .about_me_links {
        width: 100%;
    }

    .row_image_list {
        width: 100%;
        justify-content: space-around;
    }

    .row_image_preview_wrapper {
        max-width: 100%;
    }
}

@media (max-width: 440px) {
    .single_image_wrapper {
        width: 80%;
    }
}