body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #041429, #000c00, #041429, #002200);
    background-size: 400% 400%;
    color: #fff;
    animation: matrixGradient 15s ease infinite;
}

/* Анимация плавного перелива градиента */
@keyframes matrixGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 900px;
    margin: 15px auto;
    background: rgba(4, 20, 41, 0.8);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

h2 {
    color: #1a1a1a;
}

h1,h3 {
    color: #ff7b02;
}


h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

h2 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

h3 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
}

p, li {
    line-height: 1.6;
    font-size: 15px;
}

ul {
    padding-left: 20px;
}

.skills span {
    display: inline-block;
    background: #1a73e8; /* насыщенный синий */
    color: #fff;
    padding: 3px 8px;
    margin: 3px;
    border-radius: 6px;
    font-size: 13px;
}

ul.experience {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.experience > li {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

ul.experience > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

ul.experience li strong {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 16px;
}

ul.experience li em {
    font-style: italic;
    color: #1a73e8;
    display: block;
    margin-bottom: 8px;
}

ul.experience li ul,
ul.experience li ol {
    margin: 8px 0 8px 20px;
    padding: 0;
}

ul.experience li ul li,
ul.experience li ol li {
    margin-bottom: 5px;
}

ul.experience li a {
    color: #1a73e8;
    text-decoration: none;
}

ul.experience li a:hover {
    text-decoration: underline;
}

ul.experience li strong + br {
    margin-bottom: 5px;
    content: "";
}


/* Шапка з слайдером */
.header-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Слайдер */
.slider {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background-color: #000;
}

/* Картинки */
.slider img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    object-fit: cover;
}
.slider img.active { display: block; }

/* Кнопки */
.slider button.prev,
.slider button.next {
    position: absolute;
    bottom: -25px;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    z-index: 10;
}
.slider button.prev { left: 0; }
.slider button.next { right: 0; }
.slider button:hover { background-color: rgba(0,0,0,0.8); }

/* Інформація про резюме */
.header-info {
    flex: 1;
}
.header-info h1 { margin: 0 0 10px 0; }
.header-info .contact { font-size: 14px; line-height: 1.4; }

/* Про мене */
.about-me-container { margin-top: 20px; }
.about-text { font-size: 16px; line-height: 1.5; }

/* Добавляем стрелку справа от заголовка */
.block h2 {
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0 0 5px 0;
    font-size: 18px;
    transition: background 0.3s;
}

/* Стрелка с помощью ::after */
.block h2::after {
    content: "▼"; /* стрелка вниз */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-size: 14px;
}

/* Когда блок раскрыт, стрелка поворачивается вверх */
.block .content {
    display: none; /* по умолчанию закрыто */
}

.block .content strong{
    color: #ff7b02;
}

.block .content.show + h2::after,
.block h2.active::after {
    transform: translateY(-50%) rotate(180deg); /* стрелка вверх */
}

.block h2:hover {
    background: #e0e0e0;
}

/* Блок с прозрачным фоном */
.block .content {
    display: none;
    padding: 10px 15px 15px 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05); /* почти прозрачный белый */
    margin-bottom: 15px;
    color: #fff; /* текст лучше читается на темном фоне */
    backdrop-filter: blur(5px); /* эффект стекла */
    border-radius: 8px; /* скругление, чтобы выглядело аккуратно */
}

.resume-header {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 30px;
    background: rgba(0, 123, 255, 0.2); /* прозрачный синий фон */
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* тень чуть ярче для контраста */
    backdrop-filter: blur(10px); /* размытие фона под шапкой для эффекта стекла */
}

.resume-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.resume-header .contact {
    font-size: 14px;
    line-height: 1.5;
}

.resume-header .contact a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.resume-header .contact a:hover {
    color: #ff7b02;
    text-decoration: none;
}

/* Позиция под именем */
.resume-header .position {
    font-size: 18px;
    font-weight: 500;
    color: #ffdd57;
    margin: 5px 0 10px 0;
    padding-bottom: 20px;
}


/* Контейнер для табів */
.tabs-container {
    margin: 30px 0;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Сами таби */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tab {
    padding: 10px 25px;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: black;
    transition: all 0.3s;
}

.tab:hover {
    background: #ff7b02;
    color: black;
}

.tab.active {
    background: #ff7b02;
    color: black;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}


.resume-footer {
    text-align: center;
    padding: 15px 20px;
    margin-top: 30px;
    background: rgba(0, 123, 255, 0.15); /* прозрачный синий фон */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px); /* эффект стекла */
    font-size: 14px;
}

.resume-footer strong {
    color: #ff7b02;
}


/* Контейнер слайдера проектов */
.portfolio-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Список проектов */
.portfolio-list {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap: 0;
}

/* Каждый проект как слайд */
.portfolio-item-new {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
}

/* Слайдер картинок внутри проекта */
.portfolio-list .slider {
    width: 100%;
    max-width: 420px;
    height: 260px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 5px solid #ff7b02;
}


.portfolio-list .slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.portfolio-list .slider img.active { display: block; }

/* Информация о проекте */
.portfolio-info {
    max-width: 450px;
}
.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.portfolio-info p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}
.btn {
    display: inline-block;
    padding: 8px 18px;
    background: #0351b0;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}
.btn:hover { background: #023a80; }

/* Стиль кнопок для портфолио */
.portfolio-prev,
.portfolio-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: 2px solid #ff7b02;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-size: 18px;
}

.portfolio-prev:hover,
.portfolio-next:hover {
    background: #1a1a1a;
    color: #ff7b02;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.portfolio-prev { left: 10px; }
.portfolio-next { right: 10px; }

/* 📱 Адаптив */
@media (max-width: 768px) {
    .portfolio-item-new { flex-direction: column; }
    .portfolio-info { max-width: 100%; }
    .portfolio-prev, .portfolio-next { padding: 6px 10px; }
}

.btn.disabled-link {
    display: inline-block;
    background-color: #ccc;
    color: #666;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.btn.disabled-link:hover {
    background-color: #bbb;
    color: #444;
}

.portfolio-info .year {
    display: block;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 12px;
    font-weight: 500;
}


/* ===== Справка про невідображені проєкти ===== */
.portfolio-note {
    background-color: #f9f9f9;       /* світло-сірий фон */
    border-left: 4px solid #0073e6;  /* синя лінія зліва */
    padding: 16px 20px;              /* внутрішні відступи */
    margin-bottom: 30px;             /* відступ знизу до проектів */
    border-radius: 6px;              /* закруглені кути */
    font-family: 'Inter', sans-serif;
}

.portfolio-note h3 {
    margin-top: 0;
    color: #0073e6;
    font-size: 20px;
}

.portfolio-note p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.portfolio-note ul {
    margin: 10px 0 10px 20px;
    padding: 0;
    color: #555;
    font-size: 14px;
}

.portfolio-note ul li {
    margin-bottom: 6px;
}

/* ===== Справка про невідображені проєкти ===== */
.portfolio-note {
    background-color: #f4f1ee;       /* теплий світло-бежевий фон */
    border-left: 4px solid #c66d1e;  /* коричнево-помаранчева лінія зліва */
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    margin-top: 10px;
}

.portfolio-note h3 {
    margin-top: 0;
    color: #c66d1e;                  /* колір заголовку під колір лінії */
    font-size: 20px;
}

.portfolio-note p,
.portfolio-note ul li {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.portfolio-note ul {
    margin: 10px 0 10px 20px;
    padding: 0;
    color: #555;
    font-size: 14px;
}

/* ===== Справка про показані проєкти (скріншоти) ===== */
.portfolio-note-visible {
    background-color: #e6f0fa;       /* більш м’який світло-блакитний фон */
    border-left: 4px solid #1a73e8;  /* синя лінія зліва */
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 6px;
}

.portfolio-note-visible h3 {
    margin-top: 0;
    color: #1a73e8;
    font-size: 20px;
}

.portfolio-note-visible p,
.portfolio-note-visible ul li {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.portfolio-note-visible ul {
    margin: 10px 0 10px 20px;
    padding: 0;
    color: #555;
    font-size: 14px;
}