:root{
  --accent:#0d9488;
  --bg:#ffffff;
  --muted:#6b7280;
  --card:#f8fafc;
  --radius:12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}

/* Общие настройки */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f7fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  margin: 0 0 12px;
  color: #2b3a42;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
  border-left: 4px solid #0d9488;
  padding-left: 10px;
}

h3 {
  font-size: 18px;
  margin-top: 16px;
}

/* Верхняя часть: фото + контакты */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.portfolio-box {
  display: inline-block;
  margin: 18px 0;
  padding: 14px 12px;
  background: #f0f0f0;
  border: 2px solid #333;
  border-radius: 16px;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
}

.contacts a {
  color: #007bff;
  text-decoration: none;
}

.btn {
  display: inline-block;
  background: #0d9488;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0d9488;
}

/* Miro кнопка */
.btn-miro {
  display: inline-block;
  padding: 12px 20px;
  background: #ffcb45;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: 0.3s;
}
.btn-miro:hover {
  background: #ffb800;
}

/* Секции */
.section {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Сетка 2 колонки */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* --- Стили для нового блока Tech Stack (#tech-stack) --- */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--card); /* Светлый фон */
    color: var(--accent); /* Синий текст */
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.badge:hover {
    background-color: #e0f2ff;
}

.projects-list {
    display: grid;
    gap: 15px;
}

.project-item {
    padding: 12px;
    border-left: 3px solid var(--accent);
    background: var(--card);
    border-radius: 6px;
}

.project-item h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.project-item h4 a {
    color: #0f172a; /* Темный цвет для заголовка */
    text-decoration: none;
}
.project-item h4 a:hover {
    color: var(--accent);
}

.project-item p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* --- Стили для выравнивания ширины заголовков таблиц --- */

/* Общий стиль для всех заголовков в таблицах (для большей читабельности) */
table th {
  white-space: nowrap; /* Предотвращает перенос текста в заголовке */
}

/* Фиксация ширины для двухколоночных таблиц (SQL, Python) */
#sqlTable th:first-child, 
#pyTable th:first-child {
    width: 35%; /* Отдаем 35% первой колонке (Тема) */
}
#sqlTable th:last-child, 
#pyTable th:last-child {
    width: 65%; /* Отдаем 65% второй колонке (Пример/Описание) */
}

/* Фиксация ширины для трехколоночной таблицы (Техники тест-дизайна) */
#techTable th:nth-child(1) {
    width: 25%; /* Техника */
}
#techTable th:nth-child(2) {
    width: 45%; /* Описание */
}
#techTable th:nth-child(3) {
    width: 30%; /* Пример */
}

/* Стили для Data Analysis Dashboard */
#dashboard-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.metric-card {
    background: var(--card);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid #e6eef7;
    text-align: center;
}
.metric-card h4 {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 4px;
}
.metric-card p {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
}
.metric-card.accent p {
    color: var(--accent); /* Синий для Pass Rate */
}
.metric-card.error p {
    color: #ef4444; 
}  

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
}
table th {
  background: #e9ecef;
  text-align: left;
}

/* Статичные блоки SQL/Python */
.static-item {
  background: #f8f9fa;
  border-left: 4px solid #0d9488;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
}

.static-item .title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 15px;
}

.static-item .content {
  white-space: pre-wrap;
  font-family: Consolas, monospace;
  font-size: 14px;
}

/* 🔍 Увеличение изображения (Lightbox) */
.zoomable {
  max-width: 280px;
  cursor: zoom-in;
  border-radius: 6px;
  transition: transform 0.3s;
}
.zoomable:hover {
  transform: scale(1.03);
}

/* --- Стили для центрирования Bug Report --- */
/* Контейнер, который центрирует изображение баг-репорта */
.bugreport-container .image-center-wrapper {
    display: flex;
    justify-content: center; /* Центрирует содержимое (изображение) по горизонтали */
    /* Убедитесь, что .zoomable img имеет достаточный max-width для центрирования */
}

/* Стили для ссылки Miro, чтобы она была во всю ширину колонки */
.full-width-link {
    display: block; /* Делает ссылку блочным элементом, чтобы занять всю ширину */
    width: 100%;
    padding: 10px 15px; /* Немного увеличим для лучшего нажатия */
    text-align: center;
    border-radius: var(--radius);
    background-color: #0d9488; /* Добавим другой цвет или используем акцент */
    color: white;
    text-decoration: none;
    font-weight: 600;
}
.full-width-link:hover {
    background-color: #0f766e;
}

/* Настраиваем изображение баг-репорта внутри нового контейнера */
.bugreport-container .zoomable {
    max-width: 250px; /* Установим адекватную максимальную ширину для центрирования */
}

#imgModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}
#imgModal img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin: 60px auto;
  box-shadow: 0 0 10px #000;
  border-radius: 10px;
}
#imgModal span {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

#data-analysis {
  margin-top: 40px;
}

#data-analysis .text-muted {
  color: #555;
  margin-bottom: 15px;
}

/* .data-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.code-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #0d9488;
}

.code-block pre {
  overflow-x: auto;
  font-size: 14px;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 6px;
}

.image-block {
  text-align: center;
}

.image-block img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.image-block img:hover {
  transform: scale(1.03);
} */

.img-caption {
  font-size: 13px;
  margin-top: 6px;
  color: #777;
}

/* Clean list style for project block */
.clean-list {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}
.clean-list li {
    margin-bottom: 5px;
    padding-left: 10px; /* Небольшой отступ */
    position: relative;
}
.clean-list li::before {
    content: '•'; /* Простой маркер */
    color: var(--accent); /* Синий акцент */
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}


/* --- Стили для блока "Soft Skills и Сертификаты" --- */

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Расстояние между карточками */
    margin-top: 5px;
}

.skill-card {
    /* Базовый стиль карточки */
    background: #f0f7ff; /* Светло-голубой фон */
    border: 1px solid #d3e5ff;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    
    /* Стилизация под квадратные блоки (для визуального эффекта) */
    flex: 1 1 calc(50% - 5px); /* 2 карточки в ряд на широком экране */
    min-width: 150px; /* Минимальная ширина для каждой карточки */
}

/* Список сертификатов */
.cert-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.cert-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list a {
    color: var(--accent); /* Используем синий акцент */
    text-decoration: none;
    font-weight: 500;
}

.cert-list a:hover {
    text-decoration: underline;
}