/* styles.css */
:root {
    --background-color: rgba(30, 30, 46, 0.9);
    --button-bg: rgba(59, 66, 82, 0.8);
    --button-hover-bg: #88c0d0;
    --text-color: #d8dee9;
    --primary-accent: #a3be8c;
    --primary-accent-hover: #356d03;
    --secondary-accent: #b48ead;
    --shape-color-1: rgba(163, 190, 140, 0.6);
    --shape-color-2: rgba(136, 192, 208, 0.6);
    --shape-color-3: rgba(180, 142, 173, 0.6);
    --shape-color-4: rgba(126, 189, 142, 0.6);
    --shape-color-5: rgba(72, 73, 121, 0.6);
    --shape-color-6: rgba(150, 75, 75, 0.6);
    --shape-color-7: rgba(190, 174, 100, 0.6);
    --shape-color-8: rgba(175, 235, 215, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 20px 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.8), rgba(3, 218, 198, 0.8));
    background-size: cover;
    background-blend-mode: multiply;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    color: #ffffff;
}
.main{
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.8), rgba(3, 218, 198, 0.8));
    background-size: cover;
    background-blend-mode: multiply;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #ffffff;
}
.footer {
    position: fixed; /* Фиксирует блок относительно окна браузера */
    bottom: 0; /* Прижимает к нижнему краю */
    left: 0; /* Прижимает к левому краю */
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
    color: #ffffff; /* Цвет текста */
    padding: 10px 20px; /* Внутренние отступы */
    font-size: 0.9em; /* Размер текста */
    border-top-right-radius: 8px; /* Закругление правого верхнего угла */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5); /* Тень сверху */
    margin-top: calc(10vh); /* Отступ сверху: 10% от высоты окна */
}

a {
    color: #c1c1ff;
}
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Фигуры */
.shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(163, 190, 140, 0.6);
    border-radius: 50%; /* Круглая форма */
    mix-blend-mode: lighten;
    pointer-events: none; /* Фигуры не перехватывают клики */
    animation: float 20s infinite;
}

.shape:nth-child(2) {
    background-color: var(--shape-color-2);
    width: 120px;
    height: 120px;
    animation-duration: 18s;
}

.shape:nth-child(3) {
    background-color: var(--shape-color-3);
    width: 80px;
    height: 80px;
    animation-duration: 22s;
}

.shape:nth-child(4) {
    background-color: var(--shape-color-4);
    width: 90px;
    height: 90px;
    animation-duration: 15s;
}
.shape:nth-child(5) {
    background-color: var(--shape-color-5);
    width: 50px;
    height: 50px;
    animation-duration: 12s;
}
.shape:nth-child(6) {
    background-color: var(--shape-color-6);
    width: 28px;
    height: 28px;
    animation-duration: 17s;
}
.shape:nth-child(7) {
    background-color: var(--shape-color-7);
    width: 110px;
    height: 110px;
    animation-duration: 27s;
}
.shape:nth-child(8) {
    background-color: var(--shape-color-8);
    width: 95px;
    height: 95px;
    animation-duration: 21s;
}
.like-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.2s ease-in-out;
}
.like-button.liked {
    color: red;
    transform: scale(1.2);
}
.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Анимация */
@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50vw, -20vh);
    }
    50% {
        transform: translate(-30vw, 40vh);
    }
    75% {
        transform: translate(30vw, -30vh);
    }
}

/* Основной контейнер */
.container {
    text-align: center;
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--background-color);
    z-index: 1;
    position: relative;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-accent);
    animation: fadeIn 1s ease-in-out;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.button {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--button-bg);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, background-color 0.3s;
    width: 150px;
    height: 200px;
    overflow: hidden;
}

.button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-5px);
}

.button img {
    width: 100%;
    height: auto;
    max-height: 120px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.button span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-accent);
}

.button:hover span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-accent-hover);
}

.content {
    margin: 100px 100px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: calc(10vh); /* Отступ сверху: 10% от высоты окна */
    margin-bottom: calc(5vh); /* Отступ снизу: 10% от высоты окна */
}

.title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #c1c1ff;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.image-container {
    margin-bottom: 20px;
}

.program-image {
    max-width: 100%;
    height: 300px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.back-button {
    background: linear-gradient(135deg, #6200ee, #03dac6);
    color: white;
    font-size: 1.2rem;
    width: 190px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Расстояние между кнопками */
    margin-top: 20px;
}

.back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h1, h2, h3{
    color: #c1c1ff;
    text-align: left;
}

p{
    text-align: left;
}

ul {
    padding-left: 20px;
    text-align: left;
}

li {
    text-align: left;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resume pages reuse the existing palette, background, typography and buttons. */
.resume-page {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 40px 20px 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
}

.resume-page #background {
    position: fixed;
}

.resume-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--background-color);
    backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
}

.resume-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.resume-role {
    color: var(--primary-accent);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
}

.resume-contacts {
    margin-top: 0.75rem;
    line-height: 1.6;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.resume-action {
    display: inline-flex;
    width: auto;
    min-width: 170px;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.resume-section {
    margin-top: 2rem;
}

.resume-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(193, 193, 255, 0.35);
}

.resume-section p,
.resume-section li {
    line-height: 1.6;
}

.resume-section ul {
    padding-left: 1.4rem;
}

.resume-entry {
    margin-top: 1.5rem;
}

.resume-entry h3 {
    line-height: 1.4;
}

.resume-date {
    margin: 0.35rem 0 0.75rem;
    color: var(--primary-accent);
}

.resume-skills li {
    margin-bottom: 0.65rem;
}

.resume-footer {
    position: static;
    width: calc(100% + 40px);
    margin-top: 40px;
    margin-left: -20px;
    align-self: stretch;
    border-top-right-radius: 0;
}

@media (max-width: 600px) {
    .main {
        min-height: 100vh;
        height: auto;
        padding: 20px 12px 0;
        flex-direction: column;
        justify-content: flex-start;
    }

    .main .container {
        width: 100%;
        padding: 1rem;
        margin-bottom: 20px;
    }

    .main header h1 {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .main .buttons {
        gap: 0.75rem;
    }

    .main .button {
        width: calc(50% - 0.375rem);
        height: auto;
        min-height: 170px;
    }

    .main .footer {
        position: static;
        width: calc(100% + 24px);
        margin: auto -12px 0;
        align-self: stretch;
        border-top-right-radius: 0;
        overflow-wrap: anywhere;
    }

    .resume-page {
        padding: 20px 12px 0;
    }

    .resume-container {
        padding: 1.25rem;
    }

    .resume-header h1 {
        font-size: 2rem;
    }

    .resume-role {
        font-size: 1rem;
    }

    .resume-actions {
        gap: 0.75rem;
    }

    .resume-action {
        width: 100%;
        min-width: 0;
    }

    .resume-section {
        margin-top: 1.5rem;
    }

    .resume-section h2 {
        font-size: 1.35rem;
    }

    .resume-entry h3 {
        font-size: 1.05rem;
    }

    .resume-footer {
        width: calc(100% + 24px);
        margin-top: 20px;
        margin-left: -12px;
        overflow-wrap: anywhere;
    }
}
