/* --- 1. ОБЩИЕ СТИЛИ (Reset & Base) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Обязательно для прижатия футера */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column; /* Делаем тело сайта колонкой */
    min-height: 100vh;
}

/* ГЛАВНЫЙ СЕКРЕТ: заставляет контент растягиваться и толкать футер вниз */
main {
    flex: 1 0 auto;
    padding-top: 60px; /* Компенсируем фиксированную шапку, чтобы контент не залезал под неё */
}

a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: oklch(70.7% 0.165 254.624);
    cursor: pointer;
}

/* --- 2. HEADER (ШАПКА) --- */
.header {
    width: 100%;
    height: 60px;
    background-color: oklch(21% .034 264.665);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.header-title {
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-title:hover {
    color: oklch(70.7% 0.165 254.624);
}

.navigation-buttons {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation-buttons li a {
    font-weight: 500;
}

/* --- 5. FOOTER (ПОДВАЛ) --- */
.footer {
    flex-shrink: 0; /* Чтобы футер не сжимался */
    width: 100%;
    background-color: oklch(21% .034 264.665);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem; /* Хорошие отступы сверху и снизу */
    gap: 10px;
}

.footer-text-2{
    color: #636262 !important;
}

.footer-text, .footer-text-2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
}



.footer-link {
    color: oklch(70.7% 0.165 254.624) ;
    font-weight: bold;
    margin-top: 5px;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .header{
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .navigation-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
    } 

    main{
        padding-top: 120px;
    }
}

@media (max-width: 415px) {
    main{
        padding-top: 120px; /* Увеличиваем отступ для мобильных устройств */
    }
}

/* Main Блок */

.block-CV {
    width: 40%;
    margin: 0 auto;
    padding: 2rem;

}

.h1-text {
    font-size: 2.5rem;
    color: oklch(21% .034 264.665);
    margin-bottom: 20px;
}

.h2-text {
    font-size: 1.5rem;
    color: oklch(41.703% 0.00677 274.814);
    margin-bottom: 15px;
}

.p-text{
    color: oklch(41.703% 0.00677 274.814);
    margin-bottom: 15px;
}

.skills{
    color: rgb(242, 244, 252);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
    animation: colorChange 3s linear infinite;
    margin-top: 1vh;
    margin-bottom: 4vh;
}

.skills:hover {
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.skills:nth-child(1) { animation-delay: 0s; }
.skills:nth-child(2) { animation-delay: 0.5s; }
.skills:nth-child(3) { animation-delay: 1s; }

.skills:nth-child(4) { animation-delay: 1.5s; }
.skills:nth-child(5) { animation-delay: 2s; }
.skills:nth-child(6) { animation-delay: 2.5s; }

@keyframes colorChange {
     0%  { background-color: #2417db; }
     100% { background-color: #dc4ae9; }
}

.experience-item{
    border-left: 3px solid oklch(53.423% 0.18142 262.111);
    padding-left: 15px;
}

@media (max-width: 700px) {
    .block-CV {
        width: 90%;
        padding: 1rem;
    }

    .h1-text {
        font-size: 2rem;
    }

    .h2-text {
        font-size: 1.2rem;
    }
}