/* Скидання базових відступів */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05070a;
    color: #f5f5f5;
}


/* Скролбар - Початок*/

/* --- Scrollbar (Chrome, Edge, Opera) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
    /* темний фон під стиль сайту */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #00e5ff;
    /* <-- колір під стиль кнопок */
    border-radius: 10px;
    box-shadow: 0 0 10px #00e5ff,
        0 0 20px #00e5ff;
    /* неоновий glow */
    animation: glowScroll 2s infinite alternate;
}

::-webkit-scrollbar-thumb:hover {
    background: #37f7ff;
    /* світліший при наведенні */
    box-shadow: 0 0 15px #37f7ff,
        0 0 30px #37f7ff;
}

@keyframes glowScroll {
    from {
        box-shadow: 0 0 8px #00e5ff;
    }

    to {
        box-shadow: 0 0 20px #00e5ff;
    }
}

/* --- Scrollbar (Firefox) --- */
html {
    scrollbar-width: thin;
    /* thin / auto / none */
    scrollbar-color: #00e5ff #0d0d0d;
    /* ползунок | фон треку */
}

/* Скролбар - Кінець*/


/* ====== ШАПКА САЙТУ ====== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: linear-gradient(to bottom, rgba(3, 5, 10, 0.9), rgba(3, 5, 10, 0.65));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo span {
    color: #4fd1c5;
    /* акцентний бірюзовий */
}

/*Плавний перехід картинок анімація - Початок*/

.hero {
    position: relative;
    overflow: hidden;
}

/* два шари фону */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg {
    will-change: opacity;
    transform: translateZ(0);
}

/* видимий шар */
.hero-bg.visible {
    opacity: 1;
}

/* накладка поверх фону */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* контент над усім */
.hero-content {
    position: relative;
    z-index: 2;
}

/*Плавний перехід картинок анімація - Кінець*/


/*Навігаційна панель кнопки - Початок*/

.main-nav a {
    position: relative;
    margin-left: 18px;
    padding: 8px 16px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #e2e8f0;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

/* Неоновий контур під стиль сайту */
.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(79, 209, 197, 0.55);
    /* бірюзовий акцент */
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

/* Hover — легкий фон + glow */
.main-nav a:hover {
    background: rgba(15, 23, 42, 0.9);
    /* темний фон як у карток */
    color: #ffffff;
    transform: translateY(-1px);
}

.main-nav a:hover::before {
    opacity: 1;
    box-shadow: 0 0 18px rgba(79, 209, 197, 0.4);
}

/* Ефект натискання (mousedown) */
.main-nav a:active {
    transform: translateY(1px) scale(0.97);
    background: rgba(10, 16, 30, 0.95);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Красивий фокус з клавіатури */
.main-nav a:focus-visible {
    outline: none;
    background: rgba(15, 23, 42, 0.95);
}

.main-nav a:focus-visible::before {
    opacity: 1;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.55);
}

/* --- ПОСИЛЕНИЙ ЕФЕКТ КЛІКУ ДЛЯ КНОПОК МЕНЮ --- */
.main-nav a:active {
    transform: scale(0.92) translateY(2px);
    /* помітний провал вниз */
    background: rgba(5, 12, 20, 0.9);
    /* затемнення */
    color: #b6fff5;
    /* трохи тьмяніший текст */
    box-shadow: inset 0 0 12px rgba(0, 255, 215, 0.4),
        0 0 0 rgba(0, 0, 0, 0);
    /* glow пропадає */
}

/* щоб неоновий контур гаснув при кліку */
.main-nav a:active::before {
    opacity: 0.2;
    box-shadow: 0 0 4px rgba(79, 209, 197, 0.2);
}

/*Навігаційна панель кнопки - Кінець*/


/* ====== ГОЛОВНИЙ ЕКРАН (HERO) ====== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
}

/* Напівпрозорий темний шар поверх фону */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

/* Контент по центру */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
}

.hero-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ae6b4;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 24px;
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #4fd1c5, #63b3ed);
    color: #0b1020;
    font-weight: 600;
}

.primary-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ghost-btn {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.5);
}

.ghost-btn:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

/* Заглушки секцій */
.placeholder-section {
    padding: 96px 16px;
    max-width: 960px;
    margin: 0 auto;
}

.placeholder-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.placeholder-section p {
    color: #cbd5f5;
}

/* Футер */
.site-footer {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: 40px;
}

/* Адаптив */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 16px;
    }

    .main-nav {
        display: none;
        /* потім зробимо бургер, поки можна сховати */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Проєкти - Початок */

.category-title {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #4fd1c5;
    text-align: center;

}

.projects-section {
    padding: 100px 20px;
    background: #0d0d0d;
    color: #fff;
    text-align: center;
}

.projects-grid {
    margin-top: 40px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid #222;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4fd1c5;
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.project-card h3 {
    margin-top: 15px;
    margin-bottom: 12px;
}

.tech {
    color: #4fd1c5;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-project {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    background: #4fd1c5;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-project:hover {
    background: #39b0a9;
}

/* ======================== */
/*     РОЗДІЛЮВАЧ: ПРО МЕНЕ */
/* ======================== */

.divider-about {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 50px 0 40px;
    /* трохи вище, ніж було */
    flex: 0 0 100%;
    /* щоб у flex-розкладці зайняв 100% ширини */
}

.divider-about::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7df0ff, transparent);
    opacity: 0.65;
}

.divider-about span {
    position: relative;
    padding: 6px 32px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #02090d;
    border: 1px solid rgba(125, 240, 255, 0.75);
    border-radius: 999px;
    color: #dfffff;
    box-shadow:
        0 0 12px rgba(125, 240, 255, 0.55),
        0 0 28px rgba(125, 240, 255, 0.25);
}


/* ======================== */
/*        ПРО МЕНЕ           */
/* ======================== */

.about-section {
    margin: 0;
    /* прибрали великий верхній margin */
    padding: 0 20px 140px;
    /* рівний низ */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    
    /* ✅ щоб текст і картка були “в рівень” */
    gap: 60px;
}

/* Ліва колонка */
.about-text {
    flex: 1;
    min-width: 320px;
    text-align: left;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #dfffff;
    text-align: left;
}

.about-text p {
    font-size: 1.05rem;
    color: #c8fef6;
    opacity: 0.85;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* Права колонка */
.about-resume-card {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

/* Картка резюме */
.resume-card {
    width: 100%;
    background: linear-gradient(180deg,
            rgba(10, 20, 24, 0.95),
            rgba(5, 10, 14, 0.95));
    border-radius: 16px;
    padding: 24px;
    text-align: center;

    border: 1px solid rgba(125, 240, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(125, 240, 255, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(125, 240, 255, 0.05);

    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.resume-card:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 240, 255, 0.8);
    box-shadow:
        0 0 25px rgba(125, 240, 255, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.9),
        inset 0 0 40px rgba(125, 240, 255, 0.08);
}

.resume-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    opacity: 1;
}

.resume-card h3 {
    margin-top: 10px;
    margin-bottom: 8px;
    color: #fff;
}

.resume-card p {
    margin-bottom: 0;
}

.resume-link {
    text-decoration: none;
    color: white;
    width: 100%;
}


/* ======================== */
/*        МОБІЛКА            */
/* ======================== */
@media (max-width: 900px) {

    .divider-about {
        padding: 60px 0 40px;
        /* без мінусів і на мобілці */
    }

    .about-section {
        padding: 0 20px 90px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-resume-card {
        width: 100%;
    }

    .resume-card img {
        height: 160px;
    }
}



/* ======================== */
/*    РОЗДІЛЮВАЧ: НАВИЧКИ   */
/* ======================== */

.divider-skills {
    position: relative;
    width: 100%;
    text-align: center;
    margin: -140px 0 60px;
    /* Можеш регулювати як хочеш */
}

.divider-skills::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;

    background: linear-gradient(90deg, transparent, #7df0ff, transparent);
    /* Холодно-бірюзовий — добре пасує до «навичок» */

    opacity: 0.65;
}

/* Табличка */
.divider-skills span {
    position: relative;
    padding: 6px 28px;

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: #02090d;
    border: 1px solid rgba(125, 240, 255, 0.75);
    border-radius: 999px;

    color: #d8fffb;

    box-shadow:
        0 0 12px rgba(125, 240, 255, 0.55),
        0 0 28px rgba(125, 240, 255, 0.25);
}

/* =============================== */
/*   РОЗДІЛЮВАЧ: ANDROID-ДОДАТКИ   */
/* =============================== */

.divider-android {
    position: relative;
    width: 100%;
    text-align: center;
    margin: -105px 0 50px;
    /* можна збільшити або зменшити під цей блок */
}

.divider-android::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;

    height: 1px;
    background: linear-gradient(90deg, transparent, #63e6be, transparent);
    /* Бірюзово-зелений — під Android тему */

    opacity: 0.6;
}

/* Табличка зі словом */
.divider-android span {
    position: relative;
    padding: 6px 26px;

    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: #02090d;
    border: 1px solid rgba(99, 230, 190, 0.75);
    border-radius: 999px;

    color: #d8fff3;
    box-shadow:
        0 0 12px rgba(99, 230, 190, 0.45),
        0 0 26px rgba(99, 230, 190, 0.25);
}


/* =============================== */
/*  СПЕЦІАЛЬНА СІТКА ДЛЯ ANDROID   */
/* =============================== */

.projects-grid-android {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    /* Завжди центр — виглядає ідеально при 1 картці */
    justify-content: center;

    margin-top: 40px;
}

/* Розміри та стиль картки як у Web Projects */
.projects-grid-android .project-card {
    max-width: 320px;
    width: 100%;
}

/*    РОЗДІЛЮВАЧ: ПРОЄКТИ     */
/* ========================== */

.divider-projects {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 60px 0 50px;
}

/* Лінія */
.divider-projects::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #63e6be, transparent);
    /* Той самий бірюзово-зелений що у Android */
    opacity: 0.6;
}

/* Табличка зі словом */
.divider-projects span {
    position: relative;
    padding: 6px 26px;

    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: #02090d;
    border: 1px solid rgba(99, 230, 190, 0.75);
    border-radius: 999px;

    color: #d8fff3;
    box-shadow:
        0 0 12px rgba(99, 230, 190, 0.45),
        0 0 26px rgba(99, 230, 190, 0.25);
}

/*  РОЗДІЛЮВАЧ ДЛЯ AI-ПРОЄКТІВ */
/* ========================== */

.divider-ai {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 60px 0 50px;
}

/* Лінія */
.divider-ai::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;

    background: linear-gradient(90deg, transparent, #63e6be, transparent);
    /* Той самий колір що і Android/Web Projects */
    opacity: 0.6;
}

/* Табличка */
.divider-ai span {
    position: relative;
    padding: 6px 28px;

    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: #02090d;
    border: 1px solid rgba(99, 230, 190, 0.75);
    border-radius: 999px;

    color: #d8fff3;
    box-shadow:
        0 0 12px rgba(99, 230, 190, 0.45),
        0 0 26px rgba(99, 230, 190, 0.25);
}

/* =============================== */
/*       СІТКА ДЛЯ AI-ПРОЄКТІВ     */
/* =============================== */

.projects-grid-ai {
    /* замість grid робимо гнучкий ряд тільки для цього блоку */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    justify-content: center;
    /* 1 картка або кілька — по центру */
    margin-top: 40px;
}

/* Картка AI може бути трохи ширшою */
.projects-grid-ai .project-card {
    max-width: 480px;
    width: 100%;
}

.project-status {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #00ffd5;
    border: 1px solid rgba(0, 255, 213, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Проєкти - Кінець */


/* Контакти - Початок */

/* -------- CONTACT SECTION -------- */

.contact-section {
    padding: 80px 0 60px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e5f9ff;
}

.contact-intro {
    max-width: 640px;
    margin: 0 auto 32px;
    color: #9ca3af;
    font-size: 0.98rem;
}

/* сітка карток */
.contact-grid {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* окрема картка контакту */
.contact-card {
    flex: 1 1 320px;
    min-width: 280px;
    background: radial-gradient(circle at top, #071924 0%, #05070b 60%, #020305 100%);
    border-radius: 20px;
    padding: 22px 24px 20px;
    border: 1px solid rgba(0, 255, 213, 0.35);
    box-shadow:
        0 0 20px rgba(0, 255, 213, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.8);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 255, 213, 0.14), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.contact-card-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: #e5f9ff;
}

/* список рядків контактів */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

/* підпис Email / GitHub / Telegram */
.contact-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6ee7e0;
    opacity: 0.9;
    font-weight: 600;
    min-width: 80px;
}

/* SVG-іконки */
.contact-icon-svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
    filter: invert(75%) drop-shadow(0 0 6px #00f2ff);
    transition: 0.3s ease;
}

.contact-list li:hover .contact-icon-svg {
    opacity: 1;
    filter: invert(100%) drop-shadow(0 0 10px #00faff);
}

/* посилання */
.contact-list a {
    color: #aeeaff;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 1px;
    margin-left: auto;
    transition: color 0.18s ease, transform 0.18s ease;
}

.contact-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00ffd5, #4fd1c5);
    transition: width 0.2s ease;
}

.contact-list a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.contact-list a:hover::after {
    width: 100%;
}

/* адаптив: на малих екранах картки одна під одною */
@media (max-width: 640px) {
    .contact-section {
        padding-top: 60px;
    }

    .contact-card {
        padding: 18px 18px 16px;
    }
}

/* Контакти - Кінець */


/*Розділ слова Контак між секторами - Початок*/

.section-divider {
    position: relative;
    width: 100%;
    margin: -5px 0 0;
    text-align: center;
}

.section-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;

    /* нове світіння — таке саме як у skills/about/contacts */
    background: linear-gradient(90deg, transparent, #7df0ff, transparent);
    opacity: 0.65;
}

/* Неонова "табличка" зі словом */
.section-divider span {
    position: relative;
    padding: 6px 26px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: #02090d;

    /* новий бордер */
    border: 1px solid rgba(125, 240, 255, 0.75);
    border-radius: 999px;

    color: #d8fffb;

    /* новий glow — м’який, чистий, сучасний */
    box-shadow:
        0 0 12px rgba(125, 240, 255, 0.55),
        0 0 28px rgba(125, 240, 255, 0.25);
}

/*Розділ слова Контак між секторами - Кінець*/


/*Корегування банера ai проєктів - Початок*/

.ai-preview {
    width: 100%;
    max-width: 1100px;
    /* ширина банеру */
    height: auto;
    /* натуральні пропорції, нічого не ріже */
    display: block;
    margin: 0 auto;
    border-radius: 18px;

    /* легка тінь під стиль сайту */
    box-shadow: 0 0 25px rgba(0, 255, 213, 0.15);
}

/*Корегування банера ai проєктів - Кінець*/




.skills-section {
    margin: 120px 0;
    text-align: center;
}

.skills-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #e8ffff;
}

/* Сітка */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding: 0 20px;
}

@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Картки */
.skill-card {
    background: #030e12;

    /* новий бірюзовий стиль */
    border: 1px solid rgba(125, 240, 255, 0.35);
    border-radius: 14px;
    padding: 22px 24px;
    text-align: left;

    /* оновлене світіння */
    box-shadow:
        0 0 14px rgba(125, 240, 255, 0.18),
        0 0 28px rgba(125, 240, 255, 0.08);

    transition: 0.25s ease;
}

/* Ховер */
.skill-card:hover {
    box-shadow:
        0 0 20px rgba(125, 240, 255, 0.45),
        0 0 40px rgba(125, 240, 255, 0.25);

    transform: translateY(-4px);
}

.skill-card h3 {
    color: #d8fffb;
    /* той самий неон, що у заголовку КОНТАКТИ */
    font-size: 1.25rem;
    margin-bottom: 10px;

    /* легке світіння під стиль */
    text-shadow:
        0 0 6px rgba(125, 240, 255, 0.4),
        0 0 12px rgba(125, 240, 255, 0.2);
}

/* Текст */
.skill-card p {
    color: #dfffff;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.45;
}


/* ===== UNIVERSITY GRID ===== */
.university-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 820px;
    margin: 40px auto 0;
    justify-items: center;
    
}

.project-card-university {
    width: 100%;
    max-width: 360px;
    background: #111;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #222;
    text-align: center;
    transition: 0.3s ease;
}

.project-card-university:hover {
    transform: translateY(-6px);
    border-color: #4fd1c5;
}

.project-card-university img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center top;
    /* менше ріже низ */
}

.project-card-university h3 {
    margin-top: 15px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .university-grid {
        grid-template-columns: 1fr;
    }
}

#projects {
    scroll-margin-top: 110px;
    /* під висоту твого fixed header */
}

#about {
    scroll-margin-top: 100px;
}

#skills {
    scroll-margin-top: 110px;
}





.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    color: #94a3b8;
    /* холодний сірий */
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover тільки для НЕ активної */
.lang-btn:hover:not(.active) {
    color: #e2e8f0;
    border-color: rgba(79, 209, 197, 0.8);
    box-shadow: 0 0 6px rgba(79, 209, 197, 0.25);
}

/* Активна мова */
.lang-btn.active {
    background: linear-gradient(135deg, #4fd1c5, #63b3ed);
    color: #0b1020;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(125, 240, 255, 0.3);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .lang-switch {
        margin-left: auto;
    }
}


/* Універсальний клік (крім nav/contacts/lang switch) */
.click-effect {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.click-effect:active {
    transform: scale(0.97);
    box-shadow: inset 0 0 14px rgba(79, 209, 197, 0.35);
}


#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.95);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn.show {
    opacity: 0.85;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#scrollTopBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 255, 220, 0.6);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        width: 52px;
        height: 52px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}