/* app/static/css/resume.css [AUTOGEN_PATH] */

body {
    margin: 0; /* Убираем отступы по умолчанию у body */
    font-family: 'Segoe UI', sans-serif; /* Основной шрифт */
    display: flex; /* Flex-контейнер — для центрирования */
    justify-content: center; /* Горизонтальное выравнивание контента по центру */
    align-items: center; /* Вертикальное выравнивание контента по центру */
}
h1, h2, h3{
    text-align: center; /* Выравнивание заголовков по центру */
}

.wave-bg {
    position: absolute; /* Фон в виде волны — абсолютное позиционирование */
    top: 0; /* Отступ сверху — 0 */
    left: 0; /* Отступ слева — 0 */
    width: 100%; /* На всю ширину экрана */
    height: 300px; /* Высота блока волны */
    background: linear-gradient(135deg, #28a745 10%, #1976d2 80%); /* Градиент волны */
    border-bottom-left-radius: 30% 10%; /* Скругление левого нижнего угла */
    border-bottom-right-radius: 30% 10%; /* Скругление правого нижнего угла */
    z-index: -1; /* Отправляем волну назад */
}

.container {
    display: flex; /* Flex-контейнер — для колонок */
    align-items: center; /* Вертикальное выравнивание контента по центру */
    justify-content: center; /* Центрирование колонок */
    flex-direction: column; /* Колонки идут сверху вниз */
    gap: 30px; /* Отступ между колонками */
    max-width: 1400px; /* Ограничиваем максимальную ширину */
    width: 100%; /* Занимает 100% до max-width */
    margin: 0 auto; /* Автоматические отступы по бокам для центрирования */
    animation: fadeIn 1s ease; /* Анимация появления */
}

.box {
    width: 90%; /* По умолчанию 90% ширины */
    max-width: 1400px; /* Максимальная ширина как у container */
    justify-content: center; /* Горизонтальное выравнивание контента по центру */
    align-items: center; /* Вертикальное выравнивание контента по центру */
    flex-direction: column; /* Колонки идут сверху вниз */
    background: white; /* Белый фон для бокса */
    border-radius: 16px; /* Скругление углов */
    padding: 30px; /* Внутренние отступы */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Тень */
}
.info-box h2 {
    font-size: 1.6em; /* Размер заголовка */
    color: #0d47a1; /* Цвет текста */
    margin-bottom: 15px; /* Отступ снизу */
}
.info-box p {
    font-size: 1em; /* Размер текста */
    color: #333; /* Цвет текста */
    margin: 10px 0; /* Вертикальные отступы */
    line-height: 1.6; /* Межстрочный интервал */
}
.info-box a {
    color: #1976d2; /* Цвет ссылок */
    text-decoration: none; /* Убираем подчёркивание */
}
.info-box a:hover {
    text-decoration: underline; /* Добавляем подчёркивание при наведении */
}


.button-container h1 {
    width: 100%; /* Занимает всю ширину родителя */
    max-width: 1400px; /* Соответствует общему ограничению */
    margin: 0 auto; /* Центрирование */
}
.readme-btn {
    width: 100%;
    text-align: center;
    font-family: monospace;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.green-btn {
    background: #28a745;
}
.green-btn:hover {
    background: #218838;
}
.red-btn {
    background: #e53935;
}
.red-btn:hover {
    background: #d32f2f;
}
.blue-btn {
    background: #1976d2;  /* Красивый синий цвет */
    transition: background-color 0.3s ease; /* Плавное изменение цвета */
}
.blue-btn:hover {
    background: #1565c0;  /* Чуть более темный синий при наведении */
}
/* Строка с кнопками - теперь занимает всю ширину box */
.buttons-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px; /* Увеличили отступ между кнопками */
    max-width: 1400px;
    margin: 0 auto; /* Центрирование */
}
/* Сетка навыков - адаптивная, но с ограничением ширины */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%; /* Занимает всю ширину родителя */
    max-width: 1400px; /* Соответствует общему ограничению */
    /* Ограничиваем количество элементов в строке максимум 3 */
    grid-auto-flow: dense; /* Позволяет элементам заполнять пустоты */
}

.skill-category {
    background: rgba(241, 243, 245, 0.7);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.skill-category h4 {
    margin-top: 0;
    color: #1976d2;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.skill-category ul {
    padding-left: 20px;
    margin: 10px 0 0 0;
}
.skill-category li {
    margin-bottom: 8px;
    line-height: 1.4;
}

#readmeWrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.pdf-container {
    max-height: 0;
    width: 90%;
    max-width: 1024px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #ddd;
    transition: max-height 2s ease, padding 2s ease;
    padding: 0;
    margin-bottom: 20px;
}
.pdf-container.open {
    max-height: 90vh;
    padding: 20px;
}
.pdf-viewer {
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pdf-viewer object {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.readme-md-container {
    max-height: 0;
    overflow: auto;
    background: #1c1c1c;
    color: #ddd;
    font-family: monospace;
    border-radius: 15px;
    margin-top: 15px;
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    transition: max-height 2s ease, padding 2s ease;
    padding: 0;
}

.readme-md-container.open {
    max-height: 768px;
    padding: 20px;
    margin-bottom: 40px;
}
.readme-md-container h1,
.readme-md-container h2,
.readme-md-container h3,
.readme-md-container h4,
.readme-md-container h5,
.readme-md-container h6,
.readme-md-container p,
.readme-md-container li,
.readme-md-container code,
.readme-md-container span {
    color: #ddd;
}
.source-code-container {
    max-height: 0;
    width: 90%;
    max-width: 1024px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #ddd;
    transition: max-height 2s ease, padding 2s ease;
    padding: 0;
    margin-bottom: 20px;
}
.source-code-container.open {
    max-height: 90vh;
    padding: 20px;
}

.about-me {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.profile-image-wrapper {
    width: 200px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.profile-title {
    flex-grow: 1;
}
.section-title {
    color: #0d47a1;
    font-size: 2.2em;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff9a9e, #a1c4fd);
}

.section-subtitle {
    color: #1976d2;
    font-size: 1.6em;
    font-weight: 500;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: linear-gradient(to bottom, #ff9a9e, #a1c4fd);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 0 0 4px #a1c4fd, 0 3px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 1.05em;
}

.highlight-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.highlight-link:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1976d2;
    transition: width 0.3s ease;
}

.highlight-link:hover:after {
    width: 100%;
}
@keyframes fadeIn {
    from {
        opacity: 0; /* Начальная прозрачность */
        transform: translateY(20px); /* Смещение вниз */
    }
    to {
        opacity: 1; /* Полная видимость */
        transform: translateY(0); /* Без смещения */
    }
}
@media (max-width: 1500px) {
        .box {
        width: 50%;
    }
}
@media (max-width: 1000px) {
        .box {
        width: 80%;
    }
}
@media (max-width: 768px) {
    .box {
    width: 90%;
    }
    .skills-grid {
    grid-template-columns: 1fr !important; /* Всегда 1 колонка на мобильных */
    }
    .buttons-row {
    flex-direction: column;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-image-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
        width: 150px;
        height: 225px;
    }

    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (min-width: 1500px) {
    .box {
    width: 640px;
    }
}
@media (min-width: 1000px) {
    .info-box {
    width: 60%; /* Ширина 60% на десктопе */
    margin: 0 auto; /* Центрирование, если нужно */
    }
}

/* Стили для контейнера иконок */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    margin-top: -30px; /* Поднимаем иконки выше, к уровню фото */
}

/* Общие стили для всех иконок */
.social-icon {
    font-size: 2.2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.social-icon.hh {
    background-color: #d9131b;
    padding: 0; /* Убираем padding */
}

.hh-icon {
    width: 100%; /* Уменьшаем размер изображения */
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto; /* Центрируем по горизонтали и вертикали */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Точное центрирование */
}
/* Анимация при наведении */
.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Эффект "пульсации" после клика */
.social-icon:active:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: pulse 0.6s ease-out;
}

/* Индивидуальные цвета для иконок */
.github {
    color: #333;
    background: rgba(255,255,255,0.8);
}

.telegram {
    color: #0088cc;
    background: rgba(255,255,255,0.8);
}

.phone {
    color: #28a745;
    background: rgba(255,255,255,0.8);
}

/* Микровзаимодействия - подпись при наведении */
.social-icon:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    background: #333;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-icon:hover:before {
    opacity: 1;
    bottom: -25px;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Анимация "прыжка" при загрузке */
@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Применяем анимацию прыжка поочередно к иконкам */
.social-icon:nth-child(1) {
    animation: jump 1s ease 0.1s;
}

.social-icon:nth-child(2) {
    animation: jump 1s ease 0.2s;
}

.social-icon:nth-child(3) {
    animation: jump 1s ease 0.3s;
}

.social-icon:nth-child(4) {
    animation: jump 1s ease 0.4s;
}

.social-icon:nth-child(5) {
    animation: jump 1s ease 0.5s;
}

.social-icon:nth-child(6) {
    animation: jump 1s ease 0.6s;
}
/* ==================== */
/* СТИЛИ ДЛЯ КНОПОК README */
/* ==================== */
.buttons-container {
    width: 100%;
    max-width: 1400px;
    justify-content: center;
    margin: 0 auto;
}
.buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 15px;
    padding: 15px 0;
}

.readme-btn {
  flex: 1 1 calc(33.333% - 30px); /* 3 кнопки в ряд с учетом gap */
  min-width: 250px; /* Минимальная ширина кнопки */
  text-align: center;
  font-family: monospace;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px 0; /* Отступы между строками */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.readme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Цвета кнопок */
.green-btn {
  background: #28a745;
}
.green-btn:hover {
  background: #218838;
}

.red-btn {
  background: #e53935;
}
.red-btn:hover {
  background: #d32f2f;
}

.blue-btn {
  background: #1976d2;
}
.blue-btn:hover {
  background: #1565c0;
}

/* Стили для подзаголовков между кнопками */
.buttons-row .section-subtitle {
  width: 100%;
  text-align: center;
  margin: 10px 0;
  color: #1976d2;
  font-size: 1.6em;
}

/* Адаптивность для кнопок */
@media (max-width: 1200px) {
  .readme-btn {
    flex: 1 1 calc(50% - 30px); /* 2 кнопки в ряд на планшетах */
  }
}

@media (max-width: 768px) {
  .readme-btn {
    flex: 1 1 100%; /* 1 кнопка в ряд на мобильных */
    min-width: auto;
  }
  .buttons-row {
    gap: 10px;
  }
}
