body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.left-side {
    position: relative;
    min-height: 100vh;
    background-color: #33a9f5;
    /* background-image: linear-gradient(rgba(51, 169, 245, 0.8), rgba(51, 169, 245, 0.8)), url('images/avatar.png');
    background-size: cover;
    background-position: center; */
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.right-side {
    min-height: 100vh;
    background-color: #FAF5E6;
    color: #2D3748;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Header at ~1/5 from top, centered */
.side-header {
    padding-top: 15vh;
    text-align: center;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Content centered below header */
.side-content {
    flex: 1;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    text-align: center;
}

/* Custom buttons for left side */
.btn-group-custom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin-top: 2rem;
}

.btn-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-custom i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Social links styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.social-links a {
    color: #fff;
    font-size: 2.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #fff2ce;
}

/* Professional links styling */
.professional-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.professional-links a {
    color: #2D3748;
    font-size: 2.5rem;
    transition: color 0.3s;
}
.professional-links a:hover {
    color: #666c75;
}

.lead {
    font-size: 1.2rem;
    text-align: center;
    max-width: 640px; 
    margin: 0 auto; 
}


/* ─── Tab layout (rurikon style) ─── */
.side-content {
    text-align: left;
    align-items: flex-start;
}

.tab-layout {
    display: flex;
    width: 100%;
    max-width: 520px;
}

/* ── Nav ── */
.tab-nav { flex-shrink: 0; width: 120px; }

.tab-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: sticky;
    top: 1.5rem;
    text-align: right;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    width: 100%;
    text-align: right;
    transition: color 0.2s;
    text-transform: lowercase;
}

.tab-btn:hover { color: #2D3748; }

.tab-nav-item.active .tab-btn {
    color: #2D3748;
    font-style: italic;
    font-weight: 700;
}

/* ── Main area with vertical line ── */
.tab-main { position: relative; flex: 1; }

.tab-divider {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(45,55,72,0.18);
}

.tab-content-area {
    padding-left: 1.75rem;
    font-size: 0.91rem;
    color: #4a5568;
    line-height: 1.75;
}

.tab-panel { display: none; animation: fadeIn 1s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CV items ── */
.cv-list { display: flex; flex-direction: column; gap: 1rem; }
.cv-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.cv-meta { width: 160px; flex-shrink: 0; }
.cv-date { font-size: 0.73rem; color: #a0aec0; font-weight: 600; white-space: nowrap; }
.cv-body { flex: 1; }
.cv-role { font-size: 0.9rem; font-weight: 700; color: #2D3748; margin: 0 0 0.05rem; }
.cv-place { font-size: 0.77rem; color: #718096; margin: 0 0 0.2rem; }
.cv-desc { font-size: 0.77rem; color: #a0aec0; margin: 0; line-height: 1.5; }

/* ── Projects (dot-leader style) ── */
.project-list { list-style: none; padding: 0; margin: 0; }

.project-row {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    padding: 0.18rem 0;
}

.project-row:hover .project-name { color: #2D3748; }
.project-row:hover .project-desc { color: #718096; }
.project-name { font-weight: 600; color: #718096; font-size: 0.88rem; white-space: nowrap; transition: color 0.15s; }
.project-dots { flex: 1; border-bottom: 1px dotted #cbd5e0; min-width: 0.5rem; margin-bottom: 0.18rem; }
.project-desc { font-size: 0.78rem; color: #a0aec0; white-space: nowrap; transition: color 0.15s; }

/* ── Skills ── */
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.skill-tag {
    background: #eef2f7;
    color: #4a5568;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.skill-tag:hover { background: #2D3748; color: #fff; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .tab-layout { flex-direction: column; }
    .tab-nav { width: 100%; }
    .tab-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        position: static;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 0.5rem;
    }
    .tab-divider { display: none; }
    .tab-content-area { padding-left: 0; padding-top: 1rem; }
    .cv-item { flex-direction: column; gap: 0.25rem; }
    .cv-meta { width: auto; }
}
