main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

#w2 > li.breadcrumb-item.active {
    color: white;
}

/* My Portfolio by G */
:root {
    --bg-color: #050a14;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --neon-orange: #ff6b00;
    --neon-cyan: #4d94ff;
    --neon-pink: #ff00de;
    --neon-green: #34A853;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.05);
}

/* Global base */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.portfolio-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    margin: 60px auto 0; /* забезпечує приємний відступ від фіксованого хедера */
}

/* --- Navbar Customization --- */
.custom-navbar {
    background-color: rgba(5, 10, 20, 0.85); /* var(--bg-color) with opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(77, 148, 255, 0.2); /* Faint neon cyan border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.custom-navbar .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(77, 148, 255, 0.4);
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand:hover {
    text-shadow: 0 0 15px rgba(77, 148, 255, 0.8);
}

.custom-navbar .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(77, 148, 255, 0.6);
}
    
/* Ensure the hamburger menu icon is white */
.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}
    
.custom-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 148, 255, 0.25);
}

    /* --- Language Dropdown (JetBrains style) --- */
    .lang-switch .dropdown-menu {
        background-color: rgba(5, 10, 20, 0.95);
        border: 1px solid rgba(77, 148, 255, 0.3);
        border-radius: 8px;
        padding: 5px 0;
        min-width: 100px;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        margin-top: 10px;
    }

    .lang-switch .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.85rem;
        padding: 8px 15px;
        transition: all 0.2s ease;
    }

    .lang-switch .dropdown-item:hover,
    .lang-switch .dropdown-item:focus {
        background-color: rgba(77, 148, 255, 0.15);
        color: var(--neon-cyan);
    }

    .lang-switch .dropdown-item.active,
    .lang-switch .dropdown-item:active {
        background-color: var(--neon-cyan);
        color: #000;
        font-weight: 600;
    }
    
    /* Align dropdown right on desktop */
    @media (min-width: 768px) {
        .lang-switch .dropdown-menu {
            right: 0;
            left: auto;
        }
    }

    /* --- Хедер --- */
    .main-header {
        margin-bottom: 30px;
    }
.name {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.domain {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    margin-top: 5px;
    opacity: 0.9;
}

/* --- Сітка --- */
.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    position: relative;
    margin-bottom: 40px;
}

/* --- Картки --- */
.grid-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Ефект "зрізаних" кутів через CSS clip-path (опціонально) */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.grid-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.grid-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

/* Кольори карток */
.card-blue {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(77, 148, 255, 0.2);
}
.card-blue:hover { box-shadow: 0 0 20px rgba(77, 148, 255, 0.6); }
.card-blue svg { stroke: var(--neon-cyan); }

.card-purple {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}
.card-purple:hover { box-shadow: 0 0 20px rgba(188, 19, 254, 0.6); }
.card-purple svg { stroke: var(--neon-purple); }

.card-cyan {
    border-color: #6a0dad; /* Трохи інший відтінок для Pano */
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(106,13,173,0.1) 100%);
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.2);
}
.card-cyan:hover { box-shadow: 0 0 20px rgba(106, 13, 173, 0.6); }
.card-cyan svg { stroke: #9d4edd; }

.card-orange {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}
.card-orange:hover { box-shadow: 0 0 20px rgba(255, 107, 0, 0.6); }
.card-orange svg { stroke: var(--neon-orange); }


/* --- Аватар по центру --- */
.avatar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100px; /* Розмір аватара */
    height: 100px;
}

.avatar-glow {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--bg-color);
    padding: 5px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5); /* Синє світіння */
    border: 2px solid var(--neon-cyan);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background-color: #333; /* Заглушка, якщо фото немає */
}

/* --- Бейдж Google --- */
.google-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
    text-align: left;
    margin-top: -20px; /* Трохи підняти */
    position: relative;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #ddd;
}

.g-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    font-size: 0.6rem;
    line-height: 1.1;
}
.badge-text strong { font-size: 0.7rem; font-weight: 800; }

/* --- Футер --- */
.footer-text {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
}

/* Адаптивність для дуже малих екранів */
@media (max-width: 380px) {
    .name { font-size: 2.2rem; }
    .grid-wrapper { gap: 10px; }
    .avatar-center { width: 80px; height: 80px; }
}

/* Додаткові стилі для сторінки About */

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 20px 30px 20px; /* адекватний відступ зверху замість 340-525px */
    display: flex;
    flex-direction: column;
}

/* Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.back-btn {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.back-btn:hover { color: var(--neon-blue); }
.back-btn svg { width: 20px; height: 20px; margin-right: 5px; }
.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--neon-purple);
}

/* Header */
.about-header { text-align: center; margin-bottom: 50px; }
.about-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    position: relative;
}
.subtitle {
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}

/* Blocks */
.info-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.block-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}
.block-icon svg { width: 30px; height: 30px; }

.block-content h2 {
    font-family: 'Orbitron', sans-serif;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.block-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Block Variations */
.block-dev { border-left: 3px solid var(--neon-blue); }
.block-dev .block-icon { color: var(--neon-blue); border: 1px solid var(--neon-blue); }
.block-dev h2 { color: var(--neon-blue); }

.block-photo { border-left: 3px solid var(--neon-purple); }
.block-photo .block-icon { color: var(--neon-purple); border: 1px solid var(--neon-purple); }
.block-photo h2 { color: var(--neon-purple); }

.block-exp { border-left: 3px solid var(--neon-green); }
.block-exp .block-icon { color: var(--neon-green); border: 1px solid var(--neon-green); }
.block-exp h2 { color: var(--neon-green); }

/* Lists & Tags */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.skill-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.custom-list { list-style: none; padding: 0; margin: 0; color: var(--text-muted); }
.custom-list li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.custom-list li::before {
    content: "•";
    color: var(--neon-purple);
    position: absolute;
    left: 0;
}
.custom-list strong { color: var(--text-main); }

.timeline-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

/* Footer */
.about-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.contact-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}
.contact-link:hover { opacity: 0.8; }

@media (max-width: 600px) {
    .info-block { flex-direction: column; text-align: center; }
    .block-icon { margin: 0 auto 15px auto; }
    .about-header h1 { font-size: 2rem; }
    .skills-grid { justify-content: center; }
    .custom-list li { text-align: left; }
}

/* Стилі для сторінки Contact */

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 20px 40px 20px; /* відступ під фіксований хедер + простір знизу */
}

/* --- Header --- */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}
.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
    position: relative;
    display: inline-block;
}
/* Декоративна лінія під заголовком */
.page-header h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    margin: 10px auto 0;
}

/* --- Phone Banner Section (Ваше зображення) --- */
.phone-banner-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    perspective: 1000px; /* Для 3D ефекту */
}

.neon-frame {
    position: relative;
    padding: 5px; /* Товщина рамки */
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
    border-radius: 20px;
    box-shadow:
            0 0 20px rgba(188, 19, 254, 0.3),
            0 0 50px rgba(0, 242, 255, 0.2);
    animation: border-pulse 4s infinite alternate;
    max-width: 100%;
}

/* Анімація світіння рамки */
@keyframes border-pulse {
    0% { box-shadow: 0 0 20px rgba(188, 19, 254, 0.3); filter: hue-rotate(0deg); }
    100% { box-shadow: 0 0 40px rgba(188, 19, 254, 0.6), 0 0 80px rgba(0, 242, 255, 0.4); filter: hue-rotate(30deg); }
}

.phone-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px; /* Трохи менше ніж рамка */
    /* Зливаємо картинку з фоном через overlay, якщо потрібно, або лишаємо чистою */
    filter: contrast(1.1) brightness(0.9);
    transition: transform 0.5s;
}

.phone-banner-wrapper:hover .phone-image {
    transform: scale(1.02);
    filter: contrast(1.1) brightness(1);
}

/* --- Grid Layout for Info & Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* Ліва колонка: Інфо */
.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    margin-right: 15px;
    color: var(--neon-purple);
}
.info-icon svg { width: 24px; height: 24px; }

.info-text strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #fff;
}
.info-text a, .info-text span {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.info-text a:hover {
    opacity: 1;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

/* Права колонка: Форма */
.contact-form-block {
    background: var(--input-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Декоративний кутик */
.contact-form-block::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, transparent 50%, var(--neon-blue) 50%);
    opacity: 0.5;
}

.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 5px; /* Yii додає margin саме до .mb-3 контейнера */
}

.form-control:focus {
    background: rgba(0,0,0,0.5);
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
    color: white;
}

/* Кнопка */
.btn-neon {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 10px 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-neon:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Допоміжні стилі для Yii помилок */
.invalid-feedback { color: #ff4444; font-size: 0.85rem; }
.form-label { display: none; } /* Ховаємо лейбли, якщо використовуємо placeholder */

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
}