/* ── About Page ─────────────────────────────────────────────── */

.about-page {
    padding-top: 110px; /* clear fixed navbar */
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Main two-column grid ─── */
.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 12%;
    flex: 1;
    align-items: start;
}

/* ── Left: bio ─── */
.about-left {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-meta p {
    font-family: var(--font-navbar);
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.4;
}

.about-meta a {
    color: var(--gray-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.about-meta a:hover {
    color: var(--white);
}

.bio-text {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.45;
    color: var(--white);
    font-weight: 400;
}

.bio-text del {
    text-decoration: line-through;
    color: var(--gray-mid);
    text-decoration-color: var(--gray-mid);
}

.bio-secondary {
    color: var(--gray-light);
}

/* ── Right: skill matrix + photo row ─── */
.about-right {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* ── Skill matrix panel ─── */
.skill-matrix-panel {
    flex: 0 0 260px;
    background-color: #161616;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skill-matrix-label {
    font-family: var(--font-navbar);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    padding: 1.1rem 1.25rem 0.6rem;
}

/* scrolling viewport */
.skill-matrix-viewport {
    height: 210px;
    overflow: hidden;
    position: relative;
    padding: 0 1rem;
}

/* the moving track */
.skill-matrix-track {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: skillScroll 12s linear infinite;
}

@keyframes skillScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.skill-matrix-track:hover {
    animation-play-state: paused;
}

.skill-card {
    background-color: #242424;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-family: var(--font-navbar);
    font-size: 0.85rem;
    color: #ddd;
    white-space: nowrap;
    flex-shrink: 0;
}

/* CTA at bottom of panel */
.skill-matrix-cta {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #242424;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.skill-matrix-cta p {
    font-family: var(--font-navbar);
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}

.skill-cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: #e8ff6b;
    color: #111;
    font-family: var(--font-navbar);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.skill-cta-btn:hover {
    opacity: 0.85;
    transform: scale(0.97);
}

/* ── Photo ─── */
.about-photo {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 360px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 20px;
}

/* ── Location bar ─── */
.location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 12%;
    border-top: 1px solid var(--gray-dark);
    margin-top: auto;
}

.location-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-navbar);
    font-size: 0.82rem;
    color: var(--gray-light);
}

.location-text svg {
    flex-shrink: 0;
    color: #e84545;
}

.location-time {
    font-family: var(--font-navbar);
    font-size: 0.82rem;
    color: var(--gray-light);
    font-variant-numeric: tabular-nums;
}

/* ── Skills Section ─── */
.about-content {
    padding: var(--space-xl) 12%;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 2rem;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Education */
.education-item {
    margin-bottom: var(--space-md);
}

.education-item h3 {
    margin-bottom: 0.2rem;
}

.education-item p {
    color: var(--gray-light);
    margin-bottom: 0.2rem;
}

.education-item .date {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: #000000;
}

/* Languages */
.language-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-dark);
}

.language-list .lang-name {
    font-weight: bold;
}

.language-list .lang-level {
    color: var(--gray-light);
    font-family: var(--font-secondary);
}

/* Skills */
.skill-group {
    margin-bottom: var(--space-lg);
}

.skill-group h3 {
    font-family: var(--font-secondary);
    color: var(--gray-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-list li {
    background-color: var(--off-black);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--gray-dark);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.skill-list li:hover {
    border-color: var(--gray-light);
}

/* ── Responsive ─── */
@media (max-width: 900px) {
    .about-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 6%;
    }

    .about-right {
        flex-direction: column;
    }

    .skill-matrix-panel {
        flex: none;
        width: 100%;
    }

    .about-photo {
        min-height: 280px;
    }

    .about-content {
        padding: 3rem 6%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}
