/* Professional Portfolio — Sidebar + Main Layout */

:root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-dim: #0ea5e9;
    --border: #334155;
    --border-subtle: #1e293b;
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 280px;
    --content-max: 680px;
    --gap: 3rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    scroll-padding-bottom: 5rem;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-width);
    padding: 3rem 2rem;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
}

.profile {
    margin-bottom: 2.5rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bg);
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.role {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

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

.profile-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-downloads a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.profile-downloads a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Side Navigation */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-item.active {
    background: var(--bg-hover);
    color: var(--accent);
}

.nav-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 1.5rem;
}

.nav-item.active .nav-num {
    color: var(--accent);
}

/* Socials */
.socials {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 2rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

/* ─── Main Content ─── */
.content {
    flex: 1;
    padding: 3rem 3rem 3rem 3.5rem;
    max-width: var(--content-max);
}

.section {
    margin-bottom: 5rem;
}

.section:last-of-type {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}

/* ─── About ─── */
.about-content {
    max-width: 560px;
}

.lead {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.lead strong {
    color: var(--accent);
    font-weight: 600;
}

.about-content p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.about-content p strong {
    color: var(--text);
    font-weight: 500;
}

/* ─── Experience ─── */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.exp-item:hover {
    border-color: var(--border);
}

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

.exp-date {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.exp-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.exp-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.exp-company {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.exp-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.exp-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
}

/* ─── Skills ─── */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-cat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

.skill-bar {
    height: 4px;
    background: var(--bg-alt);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: 2px;
    transition: width 1s ease;
}

/* ─── Projects ─── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.project-item:hover {
    border-color: var(--border);
    transform: translateY(-1px);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fbbf24;
    margin-right: 0.75rem;
}

.project-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

.project-status .status-dot-green {
    background: #22c55e;
}

.project-status .status-dot-green ~ .project-status-dot {
    animation: none;
}

.project-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.project-icon svg {
    width: 20px;
    height: 20px;
}

.project-links {
    margin-left: auto;
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.project-links a:hover {
    color: var(--accent);
    background: var(--bg-hover);
}

.project-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.project-emp {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 0.9rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    font-family: "JetBrains Mono", monospace;
}

/* ─── Projects CTA ─── */
.projects-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.projects-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

.projects-cta svg {
    transition: transform 0.2s ease;
}

.projects-cta:hover svg {
    transform: translateX(2px);
}

/* ─── Projects Row (homepage, mirrors Experience) ─── */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.project-row:hover {
    border-color: var(--border);
}

.project-row-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-row-head .project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.project-row-head .project-title a,
.project-item .project-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-row-head .project-title a:hover,
.project-item .project-title a:hover {
    color: var(--accent);
}

.project-row-head .project-status {
    margin-left: auto;
    margin-right: 0;
}

.project-row-head .project-links {
    margin-left: 0;
}

.project-row .project-emp {
    font-size: 0.78rem;
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
}

.project-row .project-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.project-row .project-tags {
    margin-top: 0.25rem;
}

/* ─── Projects Page (full width) ─── */
body.projects-page {
    background: var(--bg);
    color: var(--text);
}

.pp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.pp-brand {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.pp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pp-back:hover {
    color: var(--accent);
}

.pp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.pp-hero {
    margin-bottom: 3rem;
}

.pp-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pp-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0.5rem 0 0.75rem;
}

.pp-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.6;
}

.pp-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pp-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 0.65rem 0.9rem;
    transition: border-color 0.2s ease;
}

.pp-search:focus-within {
    border-color: var(--accent-dim);
}

.pp-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.pp-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
}

.pp-search input::placeholder {
    color: var(--text-muted);
}

.pp-search input::-webkit-search-cancel-button {
    filter: invert(0.5);
}

.pp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pp-tag-chip {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pp-tag-chip:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.pp-tag-chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f172a;
    font-weight: 600;
}

.pp-count {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pp-no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
}

.pp-no-results[hidden] {
    display: none;
}

.pp-hidden {
    display: none;
}

.pp-group {
    margin-bottom: 3rem;
}

.pp-group-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pp-group-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.pp-group-period {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pp-grid .project-item {
    padding: 1.5rem;
}

.pp-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Project Detail Page ─── */
body.project-detail-page {
    background: var(--bg);
    color: var(--text);
}

.pd-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.pd-hero {
    margin-bottom: 2rem;
}

.pd-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0.5rem 0 1rem;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.pd-meta-item {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.pd-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
}

.pd-hero-image {
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pd-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.pd-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.pd-lead {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pd-h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.3px;
}

.pd-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pd-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    padding: 0;
    margin: 0;
}

.pd-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.pd-features li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.pd-outcomes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pd-outcome {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.pd-outcome-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.pd-outcome-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

.pd-sidebar {
    position: sticky;
    top: 5rem;
}

.pd-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-side-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pd-side-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-side-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.pd-side-link {
    color: var(--accent);
    text-decoration: none;
}

.pd-side-link:hover {
    text-decoration: underline;
}

.pd-gallery {
    margin-top: 3rem;
    overflow: hidden;
}

.pd-gallery-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    animation: pd-gallery-scroll var(--pd-duration, 20s) linear infinite;
}

.pd-gallery-track.dragging {
    cursor: grabbing;
}

.pd-gallery-track:hover,
.pd-gallery-track:focus-within {
    animation-play-state: paused;
}

.pd-gallery-set {
    display: flex;
    align-items: flex-start;
}

.pd-gallery-item {
    flex: 0 0 auto;
    width: 340px;
    margin-right: 1rem;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.pd-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

@keyframes pd-gallery-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-gallery-track {
        animation: none;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pd-gallery-track .pd-gallery-set + .pd-gallery-set {
        display: none;
    }
}

.pd-breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.pd-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

.pd-breadcrumb a:hover {
    color: var(--text);
}

.pd-breadcrumb span[aria-current="page"] {
    color: var(--text);
}

.pd-related {
    margin-top: 3rem;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pd-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.pd-related-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.pd-related-name {
    font-weight: 600;
    color: var(--text);
}

.pd-related-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.pd-related-cat {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.pd-notfound {
    text-align: center;
    padding-top: 4rem;
}

/* ─── Contact ─── */
.contact-lead {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-card:hover {
    border-color: var(--border);
    background: var(--bg-hover);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* ─── Skills Canvas ─── */
.skills-visual {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skills-noscript {
    padding: 1.5rem 1.75rem;
    color: var(--text);
}

.skills-noscript ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skills-visual:has(noscript .skills-noscript) #skillCanvas,
.skills-visual:has(noscript .skills-noscript) .canvas-overlay,
.skills-visual:has(noscript .skills-noscript) .skill-legend,
.skills-visual:has(noscript .skills-noscript) .skill-hint {
    display: none;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
}

.canvas-search {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 auto 0 0;
    pointer-events: auto;
}

.canvas-search input {
    width: 100%;
    height: 34px;
    padding: 0 2.1rem 0 2.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: rgba(30, 41, 59, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.7rem center;
    background-size: 16px 16px;
    backdrop-filter: blur(6px);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.canvas-search input::placeholder {
    color: var(--text-muted);
}

.canvas-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.canvas-search .search-clear {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.canvas-search .search-clear:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.canvas-search.has-value .search-clear {
    display: flex;
}

.canvas-controls {
    display: flex;
    gap: 0.4rem;
    pointer-events: auto;
    white-space: nowrap;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(6px);
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
}

#skillCanvas {
    display: block;
    width: 100%;
    height: 600px;
    cursor: grab;
    background: var(--bg);
    touch-action: none;
}

#skillCanvas:active {
    cursor: grabbing;
}

.skill-legend {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    padding: 0.75rem 1rem;
    pointer-events: none;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: inherit;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legend-item:hover {
    color: var(--text);
    background: rgba(51, 65, 85, 0.4);
}

.legend-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.legend-item.active {
    color: var(--text);
    border-color: var(--border);
    background: rgba(51, 65, 85, 0.7);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.skill-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    pointer-events: none;
}

/* ─── Footer ─── */
.footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: left;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.heart {
    color: #ef4444;
}

.copyright {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem !important;
}

.footer-socials {
    display: none;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--text-dim);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .pp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-body {
        grid-template-columns: 1fr;
    }

    .pd-sidebar {
        position: static;
    }

    .pd-gallery-item {
        width: 280px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }

    .profile {
        margin-bottom: 0;
        flex: 1;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .name {
        font-size: 1.2rem;
    }

    .role {
        display: none;
    }

    .status {
        display: none;
    }

    .side-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        flex-direction: row;
        justify-content: center;
        gap: 0.25rem;
        flex: none;
        width: auto;
        padding: 0.5rem;
        background: var(--bg);
        border-top: 1px solid var(--border-subtle);
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 0.5rem 0.75rem;
        border-radius: 999px;
    }

    .nav-num {
        display: none;
    }

    .socials {
        display: none;
    }

    .footer-socials {
        display: flex;
    }

    .content {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .footer {
        padding-bottom: 5rem;
        text-align: center;
    }

    .section {
        margin-bottom: 3rem;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skill-item {
        grid-template-columns: 120px 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pd-main {
        padding: 2rem 1.25rem 3rem;
    }

    .pd-title {
        font-size: 2rem;
    }

    .pd-features,
    .pd-outcomes {
        grid-template-columns: 1fr;
    }

    .pd-gallery-item {
        width: 240px;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
    }

    .pd-breadcrumb {
        padding: 1.25rem 1.25rem 0;
    }
}

@media (max-width: 500px) {
    .sidebar {
        flex-direction: column;
        align-items: flex-start;
    }

    .side-nav {
        justify-content: space-between;
    }

    .nav-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }

    .skill-item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .canvas-overlay {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .canvas-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 0;
    }
}
