:root {
    --bg-deep: #040c18;
    --bg-card: #071525;
    --bg-card-hover: #0c1e35;
    --accent-cyan: #00e5ff;
    --accent-amber: #ffb347;
    --accent-green: #39ff14;
    --text-primary: #e8f4fd;
    --text-muted: #7a9bb5;
    --border-subtle: rgba(0, 229, 255, 0.15);
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.4);
    --glow-sm: 0 0 8px rgba(0, 229, 255, 0.25);
    color-scheme: dark;
}

/* ── Global Reset ── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    background: var(--bg-deep) !important;
    color: var(--text-primary) !important;
    font-family: 'IBM Plex Mono', monospace !important;
    overflow-x: hidden;
}

/* Match native selection highlight/scrollbars/form controls to the site's
   cyan-on-dark theme instead of the browser's default light-mode styling. */
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #ffffff;
}

/* ── Respect OS-level "reduce motion" preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Skip-to-content link (keyboard/screen-reader users only, until focused) ── */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 1100;
    padding: 10px 18px;
    background: var(--bg-card);
    color: var(--accent-cyan);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    box-shadow: var(--glow-cyan);
}

    /* ── Grid Background ── */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        pointer-events: none;
        z-index: 0;
    }

/* ── Floating Social Sidebar ── */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

    .social-sidebar::before,
    .social-sidebar::after {
        content: '';
        display: block;
        width: 1px;
        height: 60px;
        background: linear-gradient(to bottom, transparent, var(--accent-cyan));
    }

    .social-sidebar::after {
        background: linear-gradient(to top, transparent, var(--accent-cyan));
    }

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .social-icon-link::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--accent-cyan);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .social-icon-link:hover::before {
        opacity: 0.12;
    }

    .social-icon-link:hover {
        border-color: var(--accent-cyan);
        box-shadow: var(--glow-sm);
        transform: translateX(3px);
    }

    .social-icon-link img {
        width: 20px;
        height: 20px;
        filter: brightness(0.7) invert(1);
        position: relative;
        z-index: 1;
        transition: filter 0.3s;
    }

    .social-icon-link:hover img {
        filter: brightness(1) invert(1);
    }

/* ── Sections ── */
.nc-section {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    container-type: inline-size;
}

@media (max-width: 768px) {
    .nc-section {
        padding: 48px 20px;
    }

    .social-sidebar {
        display: none;
    }

    .nc-divider {
        margin: 0 20px;
    }
}

/* ── Section Label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

    .section-label::before {
        content: '//';
        opacity: 0.5;
    }

/* ── Section Heading ── */
.section-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    /* cqw ties size to the actual .nc-section content width, so the
       widest heading word (e.g. "Certifications") always fits without
       wrapping mid-word, at any viewport size. */
    font-size: clamp(1.3rem, 8.3cqw, 3.5rem);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 40px;
}

    .section-heading span {
        color: var(--accent-cyan);
    }

@media (max-width: 768px) {
    .section-heading {
        margin-bottom: 28px;
        overflow-wrap: break-word;
    }
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

    .hero-section > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 720px;
        container-type: inline-size;
    }

    /* Radial glow behind hero text */
    .hero-section::after {
        content: '';
        position: absolute;
        top: -10%;
        right: -5%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.2s forwards;
}

.hero-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    /* cqw ties size to the actual container width (the flex item this
       sits in), so "Carpenter" always fits on one line without breaking
       mid-word, at any viewport size. */
    font-size: clamp(1.6rem, 11cqw, 4.1rem);
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeIn 0.7s ease 0.4s forwards;
}

    .hero-name .accent {
        color: var(--accent-cyan);
    }

.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease 0.6s forwards;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease 0.8s forwards;
}

.badge-tech {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(0,229,255,0.04);
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    transition: all 0.25s;
}

    .badge-tech:hover {
        background: rgba(0,229,255,0.1);
        border-color: var(--accent-cyan);
        box-shadow: var(--glow-sm);
    }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1.4s both;
}

    .scroll-hint::after {
        content: '';
        width: 1px;
        height: 50px;
        background: linear-gradient(to bottom, var(--accent-cyan), transparent);
        animation: scrollPulse 2s ease infinite;
    }

/* Decorative terminal block - a real flex column, not an overlay, so it
   can never overlap the name/tagline column regardless of text width. */
.hero-terminal {
    flex: 0 0 340px;
    width: 340px;
    margin-left: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: fadeSlideLeft 0.8s ease 1s forwards;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-sm);
}

.terminal-bar {
    background: rgba(0,229,255,0.06);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .t-dot:nth-child(1) {
        background: #ff5f57;
    }

    .t-dot:nth-child(2) {
        background: #febc2e;
    }

    .t-dot:nth-child(3) {
        background: #28c840;
    }

.terminal-title {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: 6px;
    letter-spacing: 0.1em;
}

.terminal-body {
    padding: 18px 20px;
    font-size: 0.75rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-height: 400px;
    overflow-y: auto;
    cursor: text;
}

.t-prompt {
    color: var(--accent-cyan);
}

.t-cmd {
    color: var(--text-primary);
}

.t-out {
    color: var(--accent-green);
    font-size: 0.7rem;
}

    .t-out a {
        color: var(--accent-cyan);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.t-dim {
    opacity: 0.7;
}

.t-error {
    color: var(--accent-amber);
}

.t-help-line {
    display: block;
}

.t-help-desc {
    color: var(--text-muted);
}

.t-cmd-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: inherit;
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

    .t-cmd-link:hover {
        color: var(--text-primary);
    }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.terminal-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    caret-color: var(--accent-cyan);
}

    .terminal-input::placeholder {
        color: var(--text-muted);
        opacity: 0.6;
    }

@media (max-width: 1100px) {
    .hero-terminal {
        display: none;
    }
}

/* Hero - Phone */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh;
        padding: 90px 22px 70px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .hero-section > div:first-child {
        width: 100%;
        max-width: 100%;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        white-space: normal;
        overflow-wrap: break-word;
        margin-bottom: 14px;
    }

    .hero-name {
        line-height: 1.05;
        overflow-wrap: break-word;
        margin-bottom: 18px;
    }

    .hero-tagline {
        font-size: 0.82rem;
        max-width: 100%;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .hero-badges {
        gap: 7px;
    }

    .badge-tech {
        font-size: 0.66rem;
        padding: 5px 10px;
        letter-spacing: 0.06em;
    }

    .scroll-hint {
        display: none;
    }
}

/* Extra-small phones (SE, Galaxy A series) */
@media (max-width: 390px) {
    .hero-section {
        padding: 80px 18px 60px;
    }

    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }

    .hero-tagline {
        font-size: 0.78rem;
    }

    .section-heading {
        margin-bottom: 22px;
    }
}

/* ══════════════════════════════
   DIVIDER
══════════════════════════════ */
.nc-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-cyan), transparent);
    opacity: 0.25;
    margin: 0 60px;
}

/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

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

.about-photo-wrapper {
    position: relative;
}

    .about-photo-wrapper::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: 8px;
        bottom: 8px;
        border: 1px solid var(--accent-cyan);
        border-radius: 10px;
        opacity: 0.3;
    }

    .about-photo-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 8px;
        background: linear-gradient(to bottom, transparent 60%, rgba(4,12,24,0.9));
    }

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    filter: grayscale(20%) contrast(1.05);
}

.about-paragraphs p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

    .about-paragraphs p:first-child::first-letter {
        font-family: 'Syne', sans-serif;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--accent-cyan);
        float: left;
        line-height: 0.8;
        margin-right: 8px;
        margin-top: 6px;
    }

.about-highlights {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .about-highlights li {
        font-size: 0.85rem;
        line-height: 1.6;
        color: var(--text-muted);
    }

.highlight-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--accent-cyan);
    background: rgba(0,229,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 3px 10px;
    margin-right: 8px;
    text-transform: uppercase;
}

/* About - Phone */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo-wrapper {
        max-width: 260px;
        margin: 0 auto;
    }

    .about-paragraphs p {
        font-size: 0.83rem;
    }

        .about-paragraphs p:first-child::first-letter {
            font-size: 1.8rem;
            margin-top: 4px;
        }

    .about-highlights li {
        font-size: 0.8rem;
    }

    .highlight-tag {
        display: block;
        width: fit-content;
        margin-bottom: 4px;
    }
}

/* ══════════════════════════════
   CERTIFICATES
══════════════════════════════ */
.certs-track {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

    .cert-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, var(--accent-cyan), var(--accent-amber));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s ease;
    }

    .cert-card:hover {
        border-color: rgba(0,229,255,0.35);
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.5), var(--glow-sm);
        background: var(--bg-card-hover);
    }

        .cert-card:hover::before {
            transform: scaleX(1);
        }

    .cert-card img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        border-radius: 6px;
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
        transition: transform 0.35s;
    }

    .cert-card:hover img {
        transform: scale(1.03);
    }

.cert-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Certs with no verifiable credential link - not interactive */
.cert-card.cert-card-static {
    cursor: default;
}

    .cert-card.cert-card-static:hover {
        border-color: var(--border-subtle);
        transform: none;
        box-shadow: none;
        background: var(--bg-card);
    }

        .cert-card.cert-card-static:hover::before {
            transform: scaleX(0);
        }

        .cert-card.cert-card-static:hover img {
            transform: none;
        }

/* Certificates - Phone */
@media (max-width: 768px) {
    .certs-track {
        gap: 16px;
    }

    .cert-card {
        width: calc(50% - 8px);
        padding: 16px 12px;
    }

        .cert-card img {
            height: 110px;
        }

    .cert-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .cert-card {
        width: 100%;
    }
}

/* ══════════════════════════════
   TECH BADGE POPOVER
══════════════════════════════ */
.badge-tech,
.cert-card {
    cursor: pointer;
}

.tech-popover {
    position: fixed;
    z-index: 2000;
    max-width: 260px;
    background: var(--bg-card-hover);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), var(--glow-sm);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .tech-popover.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .tech-popover-arrow {
        position: absolute;
        top: -6px;
        left: 20px;
        width: 12px;
        height: 12px;
        background: var(--bg-card-hover);
        border-left: 1px solid var(--accent-cyan);
        border-top: 1px solid var(--accent-cyan);
        transform: rotate(45deg);
    }

    .tech-popover-text {
        font-size: 0.78rem;
        line-height: 1.55;
        color: var(--text-primary);
        margin: 0 0 8px;
    }

    .tech-popover-link {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.7rem;
        color: var(--accent-cyan);
        text-decoration: none;
        letter-spacing: 0.05em;
    }

        .tech-popover-link:hover {
            text-decoration: underline;
        }

/* ══════════════════════════════
   CERT DETAIL MODAL
══════════════════════════════ */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 12, 24, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .cert-modal-overlay[hidden] {
        display: none;
    }

    .cert-modal-overlay.open {
        opacity: 1;
    }

.cert-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--glow-cyan);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

    .cert-modal-overlay.open .cert-modal {
        transform: translateY(0);
    }

.cert-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

    .cert-modal-close:hover {
        border-color: var(--accent-cyan);
        color: var(--accent-cyan);
    }

.cert-modal-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: rgba(0,229,255,0.03);
    padding: 24px;
    display: block;
    box-sizing: border-box;
}

.cert-modal-body {
    padding: 24px 28px 28px;
}

.cert-modal-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.cert-modal-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0 0 20px;
}

    .cert-modal-meta dt {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .cert-modal-meta dd {
        font-size: 0.85rem;
        color: var(--text-primary);
        margin: 0;
    }

.cert-modal-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s;
}

    .cert-modal-verify:hover {
        background: rgba(0,229,255,0.08);
        box-shadow: var(--glow-cyan);
    }

@media (max-width: 480px) {
    .cert-modal-body {
        padding: 18px 18px 22px;
    }

    .cert-modal-name {
        font-size: 1.1rem;
    }
}

/* ══════════════════════════════
   RESUME
══════════════════════════════ */
.resume-embed-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: 0 auto;
}

.resume-toolbar {
    padding: 14px 20px;
    background: rgba(0,229,255,0.04);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resume-toolbar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.1em;
    transition: all 0.25s;
}

    .resume-download-btn:hover {
        background: rgba(0,229,255,0.08);
        box-shadow: var(--glow-sm);
        color: var(--accent-cyan);
        text-decoration: none;
    }

.resume-canvas-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: rgba(0,229,255,0.02);
    padding: 20px 0;
}

    .resume-canvas-wrapper canvas {
        display: block;
        max-width: 100%;
        border-radius: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }

.resume-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0 20px;
}

/* Resume - Phone */
@media (max-width: 768px) {
    .resume-toolbar-label {
        font-size: 0.62rem;
    }

    .resume-canvas-wrapper {
        padding: 14px 0;
    }
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* ── Scroll-triggered reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ══════════════════════════════
   MOBILE SOCIAL BAR
   (shown only on phones)
══════════════════════════════ */
.mobile-social-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-social-bar {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 36px;
        opacity: 0;
        animation: fadeSlideUp 0.7s ease 1s forwards;
    }

        .mobile-social-bar .social-icon-link {
            width: 46px;
            height: 46px;
            border-radius: 10px;
        }

            .mobile-social-bar .social-icon-link img {
                width: 22px;
                height: 22px;
            }
}

/* ══════════════════════════════
   BODY OFFSET (for fixed nav)
══════════════════════════════ */
body {
    padding-top: 64px !important;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.nc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(4, 12, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

    .nc-nav.scrolled {
        background: rgba(4, 12, 24, 0.97);
        border-bottom-color: rgba(0, 229, 255, 0.18);
    }

/* Logo */
.nc-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

    .nc-nav-logo:hover {
        text-decoration: none;
    }

.nav-logo-mark {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 229, 255, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.06);
    transition: all 0.25s;
    flex-shrink: 0;
}

.nc-nav-logo:hover .nav-logo-mark {
    background: rgba(0, 229, 255, 0.12);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

.nav-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e8f4fd;
    letter-spacing: 0.04em;
    transition: color 0.25s;
}

    .nav-logo-text span {
        color: #00e5ff;
    }

.nc-nav-logo:hover .nav-logo-text {
    color: #fff;
}

/* Nav links */
.nc-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nc-nav-links a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 16px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        color: #7a9bb5;
        text-decoration: none;
        border-radius: 6px;
        border: 1px solid rgba(0, 229, 255, 0.2);
        transition: all 0.25s;
        text-transform: uppercase;
    }

        .nc-nav-links a:hover {
            color: #00e5ff;
            border-color: rgba(0, 229, 255, 0.4);
            background: rgba(0, 229, 255, 0.05);
            text-decoration: none;
        }

        .nc-nav-links a.active {
            color: #00e5ff;
            border-color: rgba(0, 229, 255, 0.5);
            background: rgba(0, 229, 255, 0.07);
        }

    .nc-nav-links .nav-index {
        color: #7a9bb5;
    }

    /* Contact CTA button - slightly more prominent */
    .nc-nav-links .nav-cta {
        color: #7a9bb5;
        border-color: rgba(0, 229, 255, 0.2);
        background: transparent;
    }

        .nc-nav-links .nav-cta:hover {
            background: rgba(0, 229, 255, 0.12);
            box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
        }

/* Hamburger button (mobile only) */
.nc-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 7px;
    cursor: pointer;
    padding: 8px;
    transition: border-color 0.25s, background 0.25s;
}

    .nc-hamburger:hover {
        border-color: rgba(0, 229, 255, 0.5);
        background: rgba(0, 229, 255, 0.06);
    }

    .nc-hamburger span {
        display: block;
        width: 100%;
        height: 1.5px;
        background: #7a9bb5;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .nc-hamburger.open span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
        background: #00e5ff;
    }

    .nc-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nc-hamburger.open span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
        background: #00e5ff;
    }

/* Mobile drawer */
.nc-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(4, 12, 24, 0.98);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    padding: 12px 20px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

    .nc-mobile-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nc-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .nc-mobile-menu a {
        display: block;
        padding: 12px 16px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        color: #7a9bb5;
        text-decoration: none;
        border-radius: 7px;
        border: 1px solid rgba(0, 229, 255, 0.2);
        text-transform: uppercase;
        transition: all 0.2s;
        text-align: center;
    }

        .nc-mobile-menu a:hover {
            color: #00e5ff;
            border-color: rgba(0, 229, 255, 0.4);
            background: rgba(0, 229, 255, 0.05);
            text-decoration: none;
        }

        .nc-mobile-menu a.active {
            color: #00e5ff;
            border-color: rgba(0, 229, 255, 0.5);
            background: rgba(0, 229, 255, 0.08);
            box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
        }

@media (max-width: 768px) {
    .nc-nav {
        padding: 0 18px;
    }

    .nc-nav-links {
        display: none;
    }

    .nc-hamburger {
        display: flex;
    }

    .nc-mobile-menu {
        display: block;
    }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.nc-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding: 20px 60px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(4, 12, 24, 0.6);
}

    .nc-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0,229,255,0.3), transparent);
    }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #7a9bb5;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

    .status-dot.status-up {
        background: var(--accent-green);
        box-shadow: 0 0 6px var(--accent-green);
        animation: statusPulse 2s ease infinite;
    }

    .status-dot.status-down {
        background: #ff5f57;
        box-shadow: 0 0 6px #ff5f57;
    }

.status-label {
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.status-item strong {
    color: var(--accent-cyan);
    font-weight: 500;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .footer-status {
        justify-content: center;
        text-align: center;
    }
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: #7a9bb5;
    letter-spacing: 0.06em;
    margin: 0;
}

    .footer-copy span {
        color: #00e5ff;
    }

.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links a {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.7rem;
        color: #7a9bb5;
        text-decoration: none;
        letter-spacing: 0.08em;
        padding: 5px 12px;
        border-radius: 5px;
        border: 1px solid transparent;
        transition: all 0.2s;
        text-transform: uppercase;
    }

        .footer-links a:hover {
            color: #00e5ff;
            border-color: rgba(0, 229, 255, 0.2);
            background: rgba(0, 229, 255, 0.05);
            text-decoration: none;
        }

.footer-divider {
    width: 1px;
    height: 14px;
    background: rgba(0, 229, 255, 0.15);
}

@media (max-width: 768px) {
    .nc-footer {
        padding: 24px 20px;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}

/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */
.contact-section {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
    max-width: 1000px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Info panel (left) ── */
.contact-info-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-info-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
}

    .contact-info-link:hover {
        border-color: rgba(0, 229, 255, 0.35);
        background: var(--bg-card-hover);
        box-shadow: var(--glow-sm);
        transform: translateX(4px);
        text-decoration: none;
    }

.contact-info-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

    .contact-info-link-icon img {
        width: 18px;
        height: 18px;
        filter: brightness(0.7) invert(1);
        transition: filter 0.3s;
    }

    .contact-info-link:hover .contact-info-link-icon img {
        filter: brightness(1) invert(1);
    }

.contact-info-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-link-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info-link-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* ── Form card (right) ── */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.contact-form-header {
    padding: 14px 24px;
    background: rgba(0, 229, 255, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
}

    .form-header-dot:nth-child(1) {
        background: #ff5f57;
    }

    .form-header-dot:nth-child(2) {
        background: #febc2e;
    }

    .form-header-dot:nth-child(3) {
        background: #28c840;
    }

.form-header-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-left: 6px;
}

.contact-form-body {
    padding: 28px 24px;
}

/* Two-col name row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.nc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.nc-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nc-input,
.nc-textarea {
    background: rgba(4, 12, 24, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 11px 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    -webkit-appearance: none;
}

    .nc-input::placeholder,
    .nc-textarea::placeholder {
        color: rgba(122, 155, 181, 0.4);
    }

    .nc-input:focus,
    .nc-textarea:focus {
        border-color: rgba(0, 229, 255, 0.5);
        box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
    }

.nc-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Response messages */
.nc-response {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 7px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

.nc-response-success {
    background: rgba(57, 255, 20, 0.06);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: #39ff14;
}

.nc-response-error {
    background: rgba(255, 95, 87, 0.06);
    border: 1px solid rgba(255, 95, 87, 0.25);
    color: #ff5f57;
}

/* Submit button */
.nc-submit {
    width: 100%;
    padding: 13px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 7px;
    color: var(--accent-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 4px;
}

    .nc-submit:hover {
        background: rgba(0, 229, 255, 0.13);
        box-shadow: var(--glow-cyan);
        transform: translateY(-1px);
    }

    .nc-submit:active {
        transform: translateY(0);
    }

/* ══════════════════════════════
   TALK TO ME - CHAT PAGE
══════════════════════════════ */

/* Full-height layout */
.chat-page {
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── Top bar ── */
.chat-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(4, 12, 24, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-model-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.chat-model-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: pulse-dot 2.5s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.chat-topbar-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.chat-topbar-actions {
    display: flex;
    gap: 8px;
}

.chat-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .chat-icon-btn:hover {
        border-color: rgba(0, 229, 255, 0.35);
        color: var(--accent-cyan);
        background: rgba(0, 229, 255, 0.06);
    }

/* ── Context panel (slide-down) ── */
.chat-context-panel {
    flex-shrink: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, border-color 0.2s;
    border-bottom: 0px solid var(--border-subtle);
    background: var(--bg-card);
}

    .chat-context-panel.open {
        max-height: 220px;
        border-bottom-width: 1px;
    }

.chat-context-inner {
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-context-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .chat-context-label::before {
        content: '//';
        opacity: 0.5;
    }

.chat-context-textarea {
    background: rgba(4, 12, 24, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 7px;
    padding: 10px 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    resize: none;
    height: 90px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.25s;
    line-height: 1.6;
}

    .chat-context-textarea:focus {
        border-color: rgba(0, 229, 255, 0.4);
        box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.06);
    }

.chat-context-save {
    align-self: flex-end;
    padding: 7px 20px;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 6px;
    color: var(--accent-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

    .chat-context-save:hover {
        background: rgba(0, 229, 255, 0.13);
        box-shadow: var(--glow-sm);
    }

/* ── Messages area ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-behavior: smooth;
}

    .chat-messages::-webkit-scrollbar {
        width: 5px;
    }

    .chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background: rgba(0, 229, 255, 0.15);
        border-radius: 3px;
    }

/* Empty state */
.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
}

.chat-empty-icon {
    font-size: 2.2rem;
    opacity: 0.4;
}

/* Message row */
.chat-message {
    display: flex;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    animation: fadeSlideUp 0.3s ease forwards;
}

    .chat-message.user {
        flex-direction: row-reverse;
        align-self: flex-end;
    }

    .chat-message.assistant {
        align-self: flex-start;
    }

/* Avatar */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-message.user .chat-avatar {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
}

.chat-message.assistant .chat-avatar {
    background: rgba(255, 179, 71, 0.1);
    border: 1px solid rgba(255, 179, 71, 0.3);
    color: var(--accent-amber);
}

/* Bubble */
.chat-bubble {
    padding: 13px 18px;
    border-radius: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.83rem;
    line-height: 1.75;
    max-width: 85%;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 3px;
}

.chat-message.assistant .chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 3px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
}

    .chat-typing span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent-amber);
        opacity: 0.4;
        animation: typing-bounce 1.2s ease infinite;
    }

        .chat-typing span:nth-child(2) {
            animation-delay: 0.18s;
        }

        .chat-typing span:nth-child(3) {
            animation-delay: 0.36s;
        }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Error bubble */
.chat-bubble.error {
    background: rgba(255, 95, 87, 0.06);
    border-color: rgba(255, 95, 87, 0.25);
    color: #ff5f57;
}

/* ── Input area ── */
.chat-input-area {
    flex-shrink: 0;
    padding: 16px 28px 20px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(4, 12, 24, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

    .chat-input-wrapper:focus-within {
        border-color: rgba(0, 229, 255, 0.4);
        box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.06);
    }

.chat-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.83rem;
    color: var(--text-primary);
    resize: none;
    max-height: 150px;
    min-height: unset;
    height: 1.4em;
    line-height: 1.4;
    padding: 0;
    overflow-y: auto;
}

    .chat-input::placeholder {
        color: rgba(122, 155, 181, 0.4);
    }

.chat-send-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 8px;
    color: var(--accent-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .chat-send-btn:hover:not(:disabled) {
        background: rgba(0, 229, 255, 0.18);
        box-shadow: var(--glow-sm);
        transform: translateY(-1px);
    }

    .chat-send-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.chat-hint {
    margin-top: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    color: rgba(122, 155, 181, 0.4);
    text-align: center;
    letter-spacing: 0.06em;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
    .chat-topbar {
        padding: 12px 16px;
    }

    .chat-messages {
        padding: 16px;
        gap: 16px;
    }

    .chat-input-area {
        padding: 12px 16px 16px;
    }

    .chat-context-inner {
        padding: 14px 16px;
    }

    .chat-topbar-title {
        display: none;
    }

    .chat-message {
        max-width: 100%;
    }

    .chat-bubble {
        font-size: 0.8rem;
    }
}

/* ══════════════════════════════
   PROJECTS PAGE
══════════════════════════════ */
.projects-intro {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.projects-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

    .projects-empty a {
        color: var(--accent-cyan);
    }

/* ── Repo cards ── */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.repo-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

    .repo-card:hover {
        border-color: rgba(0, 229, 255, 0.35);
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.5), var(--glow-sm);
        background: var(--bg-card-hover);
    }

.repo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.repo-card-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.repo-card-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-cyan);
}

.repo-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 40px;
}

.repo-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.repo-card-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.repo-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Game cards ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.game-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

    .game-card:hover {
        border-color: rgba(0, 229, 255, 0.35);
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.5), var(--glow-sm);
        background: var(--bg-card-hover);
    }

.game-card-cover {
    width: 100%;
    aspect-ratio: 630 / 500;
    overflow: hidden;
    background: rgba(0,229,255,0.04);
}

    .game-card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .game-card:hover .game-card-cover img {
        transform: scale(1.05);
    }

.game-card-body {
    padding: 16px 18px 20px;
}

.game-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.game-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.game-card-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .repo-grid,
    .game-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Tic Tac Toe ── */
.ttt-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 24px 64px;
    position: relative;
    z-index: 1;
}

.ttt-topbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.ttt-topbar-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.ttt-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    min-height: 1.2em;
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 96px));
    grid-template-rows: repeat(3, minmax(72px, 96px));
    gap: 8px;
    background: var(--border-subtle);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--glow-sm);
}

.ttt-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .ttt-cell:hover:not(:disabled) {
        background: var(--bg-card-hover);
    }

    .ttt-cell:disabled {
        cursor: default;
    }

    .ttt-cell.ttt-x {
        color: var(--accent-cyan);
    }

    .ttt-cell.ttt-o::after {
        content: '';
        width: 0.72em;
        height: 0.72em;
        border-radius: 50%;
        border: 0.11em solid var(--accent-amber);
        box-sizing: border-box;
    }

    .ttt-cell.ttt-win {
        background: rgba(57, 255, 20, 0.12);
        box-shadow: inset 0 0 0 2px var(--accent-green);
    }

.ttt-controls {
    display: flex;
    gap: 12px;
}

.ttt-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .ttt-btn:hover {
        border-color: rgba(0, 229, 255, 0.35);
        color: var(--accent-cyan);
        background: rgba(0, 229, 255, 0.06);
    }

.ttt-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 360px;
}

@media (max-width: 480px) {
    .ttt-board {
        grid-template-columns: repeat(3, minmax(64px, 84px));
        grid-template-rows: repeat(3, minmax(64px, 84px));
    }
}
