:root {
    --accent: #0f6e8c;
    --accent-hover: #0b5870;
    --bg: #f3f6f8;
    --card-bg: #ffffff;
    --text: #1f2933;
    --muted: #5f6c7b;
    --border: #d9e2ec;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.profile-card h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.profile-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #3aa0b8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-name {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.profile-headline {
    margin: 0 0 0.35rem;
    color: var(--text);
    font-weight: 500;
}

.profile-location {
    margin: 0;
    color: var(--muted);
}

.about-intro {
    margin: 0 0 1rem;
}

.about-intro-spaced {
    margin-top: 2rem;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-header h2 {
    margin: 0;
}

.about-copy-button {
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--accent);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.about-copy-button:hover {
    border-color: var(--accent);
    background: #f0f9fb;
}

.about-copy-button.is-copied {
    color: #0f7b3c;
    border-color: #0f7b3c;
}

.about-copy-button.is-copy-error {
    color: #b42318;
    border-color: #b42318;
}

.about-export-text {
    display: block;
    width: 100%;
    min-height: 12rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    white-space: pre-wrap;
}

.about-subsection {
    margin-top: 1rem;
}

.about-subsection h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.about-subsection p,
.about-subsection ul {
    margin: 0;
}

.about-subsection ul {
    padding-left: 1.2rem;
}

.about-subsection + .about-subsection {
    margin-top: 0.85rem;
}

.timeline-item + .timeline-item {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.timeline-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.timeline-meta {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.timeline-item ul {
    margin: 0;
    padding-left: 1.2rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background: #e8f4f8;
    color: var(--accent);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-sidebar {
    position: sticky;
    top: 1.5rem;
}

.sidebar-linkedin {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.linkedin-url-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: right;
    color: var(--text-muted, #5a6570);
}

.linkedin-qr img {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.vcard-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.vcard-link:hover {
    text-decoration: underline;
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.linkedin-button:hover {
    background: var(--accent-hover);
    color: #fff;
}

.projects-card h2 {
    margin-bottom: 1rem;
}

.project-card + .project-card {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.project-card p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-links a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

.site-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        order: 2;
    }

    .profile-main {
        order: 1;
    }

    .sidebar-linkedin {
        justify-content: flex-start;
    }
}
