/* ============================================
   About Me - Tabbed Layout
   Dark theme matching DAT Workspace
   ============================================ */

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #222636;
    --bg-input: #2a2e3f;
    --border: #2e3348;
    --text-primary: #f5f6fa;
    --text-secondary: #cdd1e0;
    --text-muted: #a0a4b8;
    --accent: #6c8cff;
    --accent-hover: #8ba4ff;
    --green: #4ade80;
    --yellow: #facc15;
    --red: #f87171;
    --orange: #fb923c;
    --purple: #a78bfa;
    --pink: #f472b6;
    --radius: 8px;
    --header-height: 52px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ---------- Header ---------- */
.header {
    background: rgba(15, 17, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(108, 140, 255, 0.1);
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header__back:hover {
    background: rgba(108, 140, 255, 0.15);
    color: var(--text-primary);
}

.header__back svg { width: 20px; height: 20px; }

.header__title {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Main ---------- */
.main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 36px 20px 28px;
}

.hero__name {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 40%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.hero__role {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
}

.hero__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero__contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.hero__contact a:hover { color: var(--accent); }
.hero__contact a svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 6px;
    background: rgba(108, 140, 255, 0.1);
    border: 1px solid rgba(108, 140, 255, 0.25);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
    transition: background 0.15s, border-color 0.15s;
}

.hero__download:hover {
    background: rgba(108, 140, 255, 0.18);
    border-color: rgba(108, 140, 255, 0.4);
}

.hero__download svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero__summary {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ---------- Tab Bar ---------- */
.tab-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--text-secondary);
    background: rgba(108, 140, 255, 0.06);
}

.tab--active {
    color: var(--accent);
    background: rgba(108, 140, 255, 0.1);
    border-color: rgba(108, 140, 255, 0.2);
}

/* ---------- Tab Panels ---------- */
.tab-panel {
    display: none;
    animation: fadePanel 0.25s ease;
}

.tab-panel--active {
    display: block;
}

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

/* ---------- Timeline ---------- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(46, 51, 72, 0.5);
}

.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; }

.timeline-item__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
    flex-shrink: 0;
    width: 16px;
}

.timeline-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 2px rgba(108, 140, 255, 0.3);
    flex-shrink: 0;
}

.timeline-item__line {
    flex: 1;
    width: 2px;
    background: var(--border);
    margin-top: 6px;
}

.timeline-item:last-child .timeline-item__line { display: none; }

.timeline-item__content {
    flex: 1;
    min-width: 0;
}

.timeline-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.timeline-item__subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 2px;
}

.timeline-item__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.timeline-item__detail {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.timeline-item__tasks {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-item__tasks li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
}

.timeline-item__tasks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
}

/* ---------- Role Block ---------- */
.role-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(46, 51, 72, 0.4);
}

.role-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.role-block__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 6px;
}

/* ---------- Publications ---------- */
.pub-section {
    margin-bottom: 28px;
}

.pub-section:last-child { margin-bottom: 0; }

.pub-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pub-section__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pub-section__dot--pending {
    background: var(--yellow);
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

.pub-section__dot--published {
    background: var(--green);
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pub-section__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.pub-section__count {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-left: auto;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pub-item {
    padding: 14px 16px;
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid rgba(46, 51, 72, 0.5);
    border-radius: 8px;
    transition: border-color 0.15s;
    position: relative;
}

.pub-item:hover {
    border-color: rgba(108, 140, 255, 0.3);
}

.pub-item--pending {
    border-left: 3px solid var(--yellow);
    padding-left: 14px;
}

.pub-item--pending:hover {
    border-color: rgba(46, 51, 72, 0.5);
    border-left-color: var(--yellow);
}

.pub-item__status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--yellow);
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.pub-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.pub-item__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pub-item__year {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(108, 140, 255, 0.1);
    border: 1px solid rgba(108, 140, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pub-item__year--pending {
    color: var(--yellow);
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.15);
}

.pub-item__venue {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.pub-item__authors {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------- Core Competencies ---------- */
.competencies {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.competency-section__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.competency-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competency-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid rgba(46, 51, 72, 0.5);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.competency-item:hover {
    border-color: rgba(108, 140, 255, 0.25);
}

.competency-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(108, 140, 255, 0.08);
    color: var(--accent);
    margin-top: 2px;
}

.competency-item__icon svg { width: 16px; height: 16px; }

.competency-item__text {
    flex: 1;
    min-width: 0;
}

.competency-item__text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.competency-item__text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.competency-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-shrink: 0;
    max-width: 200px;
    justify-content: flex-end;
    align-self: center;
}

.skill-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    background: rgba(108, 140, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(108, 140, 255, 0.15);
    white-space: nowrap;
}

/* Soft skills as icon cards */
.soft-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.soft-skill-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid rgba(46, 51, 72, 0.5);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.soft-skill-card:hover {
    border-color: rgba(167, 139, 250, 0.3);
}

.soft-skill-card svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--purple);
}

.soft-skill-card span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ---------- Languages ---------- */
.lang-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-card {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background: rgba(26, 29, 39, 0.5);
    border: 1px solid rgba(46, 51, 72, 0.5);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.15s;
}

.lang-card:hover {
    border-color: rgba(108, 140, 255, 0.3);
}

.lang-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lang-card__score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.lang-card__year {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .main { padding: 0 12px 48px; }
    .hero { padding: 24px 8px 20px; }
    .hero__name { font-size: 1.8rem; }
    .hero__summary { font-size: 0.82rem; }

    .tab-bar {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 4px;
        gap: 4px;
    }

    .tab-bar::-webkit-scrollbar { display: none; }
    .tab-bar { -ms-overflow-style: none; scrollbar-width: none; }

    .tab { padding: 6px 12px; font-size: 0.78rem; }
    .tab svg { width: 14px; height: 14px; }

    .timeline-item { gap: 12px; }
    .pub-item__head { flex-direction: column; gap: 6px; }
    .lang-grid { flex-direction: column; }

    .competency-item { flex-wrap: wrap; }
    .competency-item__tags { max-width: none; justify-content: flex-start; }
    .soft-skills-row { gap: 8px; }
    .soft-skill-card { padding: 8px 12px; }
}
