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

:root {
    --bg: #f6f6f3;
    --surface: #ffffff;
    --surface-soft: #fbfbf9;
    --text: #000000;
    --text-soft: #2f2f2f;
    --text-muted: #4f4f4f;
    --border: #e5e5e5;
    --border-soft: #e1e1e1;
    --hover: #f4f4ef;
    --hover-border: #cfcfcf;
    --line: #d9d9d9;
    --btn-primary-bg: #000000;
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: #111111;
    --btn-primary-hover-text: #ffffff;
    --link-chip-bg: #efefe9;
    --link-chip-border: #d6d6cf;
    --link-chip-shadow: #d1d1cb;
    --link-chip-hover-bg: #eaeae4;
    --toggle-hover: #eeeeee;
    --chat-bubble-bg: #000000;
    --chat-bubble-text: #ffffff;
    --chat-bubble-border: #000000;
    --chat-bubble-hover-bg: #111111;
}

html[data-theme='dark'] {
    --bg: #000000;
    --surface: #1a1d21;
    --surface-soft: #20252a;
    --text: #f4f6f8;
    --text-soft: #d5dae0;
    --text-muted: #b2bac4;
    --border: #2d353f;
    --border-soft: #35404b;
    --hover: #26303a;
    --hover-border: #475767;
    --line: #35404b;
    --btn-primary-bg: #f4f6f8;
    --btn-primary-text: #111315;
    --btn-primary-hover-bg: #ffffff;
    --btn-primary-hover-text: #000000;
    --link-chip-bg: #26303a;
    --link-chip-border: #3a4755;
    --link-chip-shadow: #1b222a;
    --link-chip-hover-bg: #2e3a47;
    --toggle-hover: #2a2a2a;
    --chat-bubble-bg: #f4f6f8;
    --chat-bubble-text: #111315;
    --chat-bubble-border: #f4f6f8;
    --chat-bubble-hover-bg: #ffffff;
}

body {
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100svh;
    padding: 2rem 15rem 1rem;
    font-family: 'Geist', sans-serif;
    color: var(--text);
    transition: background-color 200ms ease, color 200ms ease;
}

.top-bar {
    width: 100%;
    max-width: 980px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

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

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--surface);
    color: var(--text);
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0.08rem;
    right: -0.65rem;
    cursor: pointer;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    touch-action: manipulation;
}

@media (hover: hover) {
    .theme-toggle:hover {
        background: var(--toggle-hover);
        transform: translateY(-1px);
    }
}

.theme-toggle-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    position: relative;
}

.theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

html[data-theme='dark'] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

html[data-theme='dark'] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.info-grid {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: stretch;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.experience-box {
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
}

.experience-box h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.55rem 0;
}

.experience-stats-box {
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 0.55rem;
    border-radius: 0.55rem;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.experience-stats-box:hover {
    border-color: var(--hover-border);
}

.experience-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.exp-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.55rem 0.65rem;
    min-height: 64px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 0.42rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-stat-card:hover {
    background-color: var(--hover);
    border-color: var(--hover-border);
    transform: translateY(-1.5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

html[data-theme='dark'] .exp-stat-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.exp-stat-card:active {
    transform: translateY(0);
}

.exp-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
}

.exp-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.exp-stat-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--text-muted);
    opacity: 0.35;
    transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.exp-stat-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.2;
}

.exp-stat-card:hover .exp-stat-arrow {
    opacity: 1;
    color: var(--text);
    transform: translate(1.5px, -1.5px);
}

.exp-stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    overflow: hidden;
    margin-top: 0.35rem;
}

.exp-stat-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-stat-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.experience-timeline,
.education-timeline {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.8rem;
    align-items: start;
    position: relative;
}

.timeline-marker {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.62rem;
    position: relative;
    z-index: 1;
    align-self: stretch;
}

.timeline-marker::after {
    content: "";
    position: absolute;
    top: 0.8rem;
    bottom: -1.3rem;
    left: 50%;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
    z-index: -1;
    transition: background-color 220ms ease;
}

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

.timeline-year-box {
    margin-top: 0;
    background: var(--surface);
    border: 1px solid var(--hover-border);
    border-radius: 0.28rem;
    width: 0.82rem;
    height: 0.82rem;
    display: inline-block;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.timeline-year-box.is-filled {
    background: var(--text);
    border-color: var(--text);
}

.timeline-year-box:hover {
    background: var(--text);
    border-color: var(--text);
    transform: scale(1.12);
}

.timeline-item:hover .timeline-year-box {
    background: var(--text);
    border-color: var(--text);
    transform: scale(1.12);
}

.timeline-item:hover .timeline-marker::after {
    background: var(--text-soft);
}

.timeline-content {
    min-width: 0;
    padding: 0.62rem 0.74rem;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 0.42rem;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.timeline-item:hover .timeline-content {
    background: var(--surface-soft);
    border-color: var(--border-soft);
    transform: translateX(4px);
}

.timeline-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
}

.education-timeline .timeline-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.timeline-title {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.3;
}

.timeline-year {
    margin: 0;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-description {
    margin: 0.18rem 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .timeline-item {
        grid-template-columns: 3.4rem 1fr;
        gap: 0.55rem;
    }

    .timeline-head {
        flex-wrap: wrap;
        gap: 0.3rem 0.55rem;
    }
}

.about-box {
    margin-top: 0;
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
}

.tech-stack-box {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
}

.recent-projects-box {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
    flex: 1;
}

.recent-certifications-box {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
    margin-top: auto;
}

.recommendations-github-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

.recommendations-github-row>* {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.recommendations-box {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.github-activity-box {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.lets-work-box {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
    font-family: 'Montserrat', 'Gotham', sans-serif;
}

.lets-work-full-row {
    grid-column: 1 / -1;
}

.about-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.45rem 0;
}

.about-box h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.about-expand-hint {
    display: none;
}

.tech-stack-box h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.recent-projects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.7rem 0;
}

.recent-projects-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.projects-view-all {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.projects-view-all:hover {
    color: var(--text);
}

.recent-certifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.7rem 0;
}

.recent-certifications-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.certs-view-all {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 180ms ease;
}

.certs-view-all:hover {
    color: var(--text);
}

.recommendations-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.7rem 0;
}

.recommendations-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.recom-view-all {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.recom-view-all:hover {
    color: var(--text);
}

.recommendations-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    touch-action: pan-y;
}

.recommendation-card {
    position: relative;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.6rem;
    padding: 1rem 1.25rem;
    min-height: 140px;
    transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.recommendation-card:hover {
    border-color: var(--hover-border);
    background: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

body.has-rec-carousel .recommendation-card {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 450ms ease, transform 450ms cubic-bezier(0.25, 1, 0.5, 1);
}

body.has-rec-carousel .recommendation-card.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

body.has-rec-carousel .recommendation-card:hover {
    transform: translateY(-2px);
}

.recommendation-quote-bg {
    position: absolute;
    top: -1rem;
    left: -0.25rem;
    font-size: 7rem;
    font-family: 'Georgia', serif;
    color: var(--text);
    opacity: 0.045;
    /* extremely subtle, stylized background element */
    pointer-events: none;
    line-height: 1;
    font-weight: 900;
    user-select: none;
}

.recommendation-quote {
    position: relative;
    z-index: 1;
    margin: 0 0 0.8rem 0;
    /* Reduced margin for smaller height */
    font-size: 0.94rem;
    font-weight: 500;
    /* slightly higher contrast font weight */
    font-style: italic;
    color: var(--text-soft);
    line-height: 1.6;
}

.toggle-quote-expand {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 150ms ease;
    display: inline-block;
}

.toggle-quote-expand:hover {
    opacity: 0.75;
}

.recommendation-author-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--hover);
    /* Soft light-grey background */
    color: var(--text);
    /* Dark high-contrast text */
    border: 1.5px solid var(--border-soft);
    user-select: none;
    flex-shrink: 0;
    transition: background-color 200ms ease, color 200ms ease;
}

.recommendation-author {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.author-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}

.author-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.recommendations-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rec-dot {
    appearance: none;
    border: 1px solid var(--border-soft);
    background: transparent;
    width: 0.58rem;
    /* Slightly larger */
    height: 0.58rem;
    /* Slightly larger */
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    /* lower opacity for inactive dots to increase active contrast */
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.rec-dot:hover {
    opacity: 0.8;
}

.rec-dot[aria-current="true"] {
    background: var(--text);
    border-color: var(--text);
    width: 1.4rem;
    /* Stretches dynamically */
    opacity: 1;
    /* Maximum contrast */
}

.lets-work-box h2 {
    font-size: 17pt;
    font-weight: 900;
    color: var(--text);
    font-synthesis: weight;
    margin: 0;
}

.lets-work-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.lets-work-box .get-in-touch-label {
    margin: 0 0 0.45rem;
}

.lets-work-muted {
    color: var(--text-muted);
}

.lets-work-description {
    margin: 0;
    font-family: 'Geist', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-soft);
    line-height: 1.45;
}

.lets-work-body {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 1rem;
    align-items: stretch;
}

.lets-work-left {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: space-between;
    height: 100%;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
}

.contact-card {
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.35rem;
    padding: 0.45rem;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-card:hover {
    border-color: var(--hover-border);
    background: var(--hover);
    transform: translateY(-1px);
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.contact-card-head {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    line-height: 1.35;
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-icon {
    width: 1.2rem;
    height: 0.92rem;
    display: inline-flex;
    justify-content: center;
    margin: 0 0.18rem;
    flex-shrink: 0;
    color: var(--text);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.contact-card-value {
    margin: 0.12rem 0 0;
    display: block;
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    word-break: break-all;
}

.contact-card-type {
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
}

.follow-me-wrap {
    margin-top: 0;
    align-self: flex-start;
}

.lets-work-box .follow-me-label {
    margin: 0 0 0.55rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    max-width: none;
}

.social-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}

.social-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    text-decoration: none;
    color: var(--text);
    transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.social-box:hover {
    transform: translateY(-1px);
    border-color: var(--hover-border);
    background: var(--hover);
}

.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    color: var(--text);
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cert-item {
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.48rem;
    padding: 0.62rem 0.72rem;
}

.cert-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cert-link:hover {
    border-color: var(--hover-border);
    background: var(--hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

html[data-theme='dark'] .cert-link:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.cert-logo-wrap {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    border-radius: 0.42rem;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: transform 180ms ease, border-color 180ms ease;
}

.cert-link:hover .cert-logo-wrap {
    transform: scale(1.04);
    border-color: var(--hover-border);
}

.cert-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cert-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.32;
}

.cert-meta {
    margin: 0.22rem 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.cert-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
    flex-shrink: 0;
    margin-left: 0.2rem;
    transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.cert-link:hover .cert-arrow {
    opacity: 1;
    color: var(--text);
    transform: translateX(2px);
}

/* GitHub Activity Box */
.github-activity-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.github-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    margin: 0 0 0.2rem 0;
}

.github-activity-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.github-view-all {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.github-view-all:hover {
    color: var(--text);
    transform: translateX(2px);
}

.github-activity-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
}

.github-stats-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    padding: 0.1rem 0.2rem 0;
}

.github-stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.github-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.github-stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.github-graph-container {
    position: relative;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.55rem;
    padding: 0.7rem 0.75rem 0.55rem;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 180ms ease;
}

.github-activity-box:hover .github-graph-container {
    border-color: var(--hover-border);
}

.github-graph-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    width: 100%;
}

.github-graph-scroll::-webkit-scrollbar {
    height: 4px;
}

.github-graph-scroll::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 4px;
}

.github-graph-svg {
    display: block;
    height: 96px;
    width: auto;
    user-select: none;
}

.graph-month-label {
    font-family: 'Geist', sans-serif;
    font-size: 9px;
    font-weight: 500;
    fill: var(--text-muted);
}

.contrib-cell {
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: stroke 140ms ease, opacity 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .contrib-cell:hover {
        stroke: var(--text);
        stroke-width: 1.5px;
        opacity: 0.88;
    }
}

/* Light Mode contribution colors - distinct clean grey for no activity */
.level-0 {
    fill: #e1e4e8;
    background-color: #e1e4e8;
}

.level-1 {
    fill: #9be9a8;
    background-color: #9be9a8;
}

.level-2 {
    fill: #40c463;
    background-color: #40c463;
}

.level-3 {
    fill: #30a14e;
    background-color: #30a14e;
}

.level-4 {
    fill: #216e39;
    background-color: #216e39;
}

/* Dark Mode contribution colors - sleek slate grey for no activity boxes */
html[data-theme='dark'] .level-0 {
    fill: #2d333b;
    background-color: #2d333b;
}

html[data-theme='dark'] .level-1 {
    fill: #0e4429;
    background-color: #0e4429;
}

html[data-theme='dark'] .level-2 {
    fill: #006d32;
    background-color: #006d32;
}

html[data-theme='dark'] .level-3 {
    fill: #26a641;
    background-color: #26a641;
}

html[data-theme='dark'] .level-4 {
    fill: #39d353;
    background-color: #39d353;
}

.github-graph-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.legend-box {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 2px;
    display: inline-block;
}

/* Tooltip for graph */
.github-graph-tooltip {
    position: fixed;
    z-index: 10001;
    background: #111315;
    color: #f4f6f8;
    padding: 0.35rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
    pointer-events: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease;
    transform: translate(-50%, calc(-100% - 6px));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .github-graph-tooltip {
    background: #24292f;
    color: #ffffff;
}

.github-graph-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Certificate Image Viewer Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.cert-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cert-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

html[data-theme='dark'] .cert-modal-overlay {
    background: rgba(0, 0, 0, 0.82);
}

.cert-modal-container {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.cert-modal.is-active .cert-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.cert-modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 0.45rem;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    font-family: 'Geist', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cert-modal-back-btn:hover {
    background: var(--hover);
    border-color: var(--hover-border);
    transform: translateX(-2px);
}

.cert-modal-info {
    text-align: right;
    min-width: 0;
    overflow: hidden;
}

.cert-modal-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-modal-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-modal-body {
    position: relative;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: var(--bg);
    flex: 1;
    min-height: 240px;
}

.cert-modal-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 2;
}

.cert-modal-body.is-loading .cert-modal-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cert-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: cert-spinner-spin 0.75s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cert-spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cert-modal-image {
    max-width: 100%;
    max-height: calc(90vh - 5.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.45rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 220ms ease, transform 220ms ease;
}

.cert-modal-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.cert-modal-body.is-loading .cert-modal-image {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .cert-modal {
        padding: 0.75rem;
    }

    .cert-modal-header {
        padding: 0.65rem 0.8rem;
    }

    .cert-modal-title {
        font-size: 0.84rem;
    }

    .cert-modal-meta {
        font-size: 0.68rem;
    }

    .cert-modal-body {
        padding: 0.6rem;
        min-height: 180px;
    }

    .cert-modal-image {
        max-height: calc(90vh - 4.8rem);
    }
}

.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.42rem;
    padding: 0.7rem;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

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

/* Project card backgrounds & overlays (homepage recent projects) */
.project-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
}

.project-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Individual card background images */
.project-card-ifind .project-card-bg {
    background-image: url('assets/images/projects/ifind-bg.webp');
}

.project-card-dalina .project-card-bg {
    background-image: url('assets/images/projects/dalina-bg.webp');
}

.project-card-ishelf .project-card-bg {
    background-image: url('assets/images/projects/ishelf-bg.webp');
}

.project-card-quicksnap .project-card-bg {
    background-image: url('assets/images/projects/quicksnap-bg.webp');
}

.project-card-alterego .project-card-bg {
    background-image: url('assets/images/projects/alterego-bg.webp');
}

.project-card-nucleus .project-card-bg {
    background-image: url('assets/images/projects/nucleus_bg.webp');
}

.project-card-a1 .project-card-bg {
    background-image: url('assets/images/projects/a1-bg.webp');
}

.project-card-baud .project-card-bg {
    background-image: url('assets/images/projects/baud-bg.webp');
}

.project-card-kluster .project-card-bg {
    background-image: url('assets/images/projects/kluster-bg.webp');
}

/* Hover effects */
.project-card:hover .project-card-bg {
    transform: scale(1.05);
}

/* Color overrides for background image cards */
.project-card.project-card-ifind,
.project-card.project-card-dalina,
.project-card.project-card-ishelf,
.project-card.project-card-quicksnap,
.project-card.project-card-alterego,
.project-card.project-card-nucleus,
.project-card.project-card-a1,
.project-card.project-card-baud,
.project-card.project-card-kluster {
    color: #ffffff !important;
}

.project-card.project-card-ifind .project-title,
.project-card.project-card-dalina .project-title,
.project-card.project-card-ishelf .project-title,
.project-card.project-card-quicksnap .project-title,
.project-card.project-card-alterego .project-title,
.project-card.project-card-nucleus .project-title,
.project-card.project-card-a1 .project-title,
.project-card.project-card-baud .project-title,
.project-card.project-card-kluster .project-title {
    color: #ffffff;
}

.project-card.project-card-ifind .project-description,
.project-card.project-card-dalina .project-description,
.project-card.project-card-ishelf .project-description,
.project-card.project-card-quicksnap .project-description,
.project-card.project-card-alterego .project-description,
.project-card.project-card-nucleus .project-description,
.project-card.project-card-a1 .project-description,
.project-card.project-card-baud .project-description,
.project-card.project-card-kluster .project-description {
    color: rgba(255, 255, 255, 0.85);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text);
    line-height: 1.3;
}

.project-description {
    margin: 0.36rem 0 0.52rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-soft);
    line-height: 1.45;
}

.project-link {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    background: var(--link-chip-bg);
    border: 1px solid var(--link-chip-border);
    box-shadow: 2px 2px 0 var(--link-chip-shadow);
    border-radius: 0.24rem;
    padding: 0.22rem 0.36rem;
}

.project-link:hover {
    background: var(--link-chip-hover-bg);
}

@media (max-width: 700px) {
    .recent-projects-grid {
        grid-template-columns: 1fr;
    }

    .recent-projects-grid .project-card:nth-child(n+3) {
        display: none;
    }


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

    .social-boxes {
        gap: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-rec-carousel .recommendation-card {
        transition: none;
        transform: none;
    }
}

.tech-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.55rem 0;
}

.tech-view-all {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.tech-view-all:hover {
    color: var(--text);
}

.tech-stack-groups {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tech-group h3 {
    margin: 0 0 0.6rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.tech-capsules {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-capsules .tech-card {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    user-select: none;
}

.tech-capsules .tech-card:hover {
    background: var(--surface-soft);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .tech-capsules .tech-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.tech-capsules .tech-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tech-capsules .tech-icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tech-icon-dark {
    display: none;
    width: 100%;
    height: 100%;
}

.tech-icon-light {
    display: block;
    width: 100%;
    height: 100%;
}

html[data-theme='dark'] .tech-icon-dark {
    display: block;
}

html[data-theme='dark'] .tech-icon-light {
    display: none;
}

.tech-capsules .tech-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.education-box {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 1rem 1.1rem;
    border-radius: 0.55rem;
}

.education-box h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.45rem 0;
}


.about-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.profile-image {
    width: 158px;
    height: 158px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 180ms ease;
}

.profile-image.is-fading {
    opacity: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-12px);
}

.profile-info h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.verified-badge {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #1d9bf0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified-badge svg {
    width: 0.72rem;
    height: 0.72rem;
    fill: #ffffff;
}

.location {
    font-size: 1rem;
    color: var(--text);
    margin: 0.5rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.location-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text);
}

.roles {
    font-size: 1rem;
    color: var(--text);
    margin: 0.5rem 0 0 0;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.86rem;
    line-height: 1;
    font-weight: 500;
    border: 1px solid transparent;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.action-btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.action-btn-secondary {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border-soft);
}

.action-btn-secondary:hover {
    border-color: var(--hover-border);
    background: var(--hover);
    transform: translateY(-1px);
}

.action-btn-primary:hover {
    border-color: var(--btn-primary-hover-bg);
    background: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    transform: translateY(-1px);
}

.action-icon {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.site-footer {
    width: 100%;
    max-width: 980px;
    margin-top: 1.1rem;
    padding: 0.75rem 0 0.9rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-bubble {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    width: 3.35rem;
    height: 3.35rem;
    padding: 2.5px;
    border: 1.5px solid var(--border-soft);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-bubble:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: var(--text);
    box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.26);
}

.chat-bubble:active {
    transform: translateY(0) scale(0.96);
}

.chat-bubble-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.chat-bubble-online-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: chat-pulse 2s infinite;
}

html[data-theme='dark'] .chat-bubble-online-dot {
    border-color: #111315;
}

.chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 4.85rem;
    z-index: 999;
    width: min(23.5rem, calc(100vw - 1.5rem));
    border: 1px solid rgba(229, 229, 229, 0.6);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0.8rem;

    /* Animation state */
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    pointer-events: none;
    transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme='dark'] .chat-panel {
    border: 1px solid rgba(53, 64, 75, 0.55);
    background: rgba(24, 27, 31, 0.88);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chat-panel.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-soft);
}

.chat-panel-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.chat-panel-avatar-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 2.45rem;
    height: 2.45rem;
}

.chat-panel-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 1.5px solid var(--border-soft);
}

.chat-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background-color: #22c55e;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: chat-pulse 2s infinite;
}

html[data-theme='dark'] .chat-online-dot {
    border-color: #14171a;
}

.chat-panel-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.chat-panel-title {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.chat-panel-subtitle {
    margin: 0.12rem 0 0;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.25;
}

.chat-panel-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-server-select {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    max-width: 95px;
}

.chat-server-select:hover,
.chat-server-select:focus {
    background: var(--hover);
    border-color: var(--hover-border);
}

.chat-server-select option {
    background: var(--surface);
    color: var(--text);
}

.chat-panel-close,
.chat-panel-clear {
    border: none;
    background: transparent;
    color: var(--text-soft);
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
}

.chat-panel-close:hover,
.chat-panel-clear:hover {
    color: var(--text);
    background: var(--hover);
    transform: scale(1.05);
}

.chat-panel-clear svg,
.chat-panel-close svg {
    stroke: currentColor;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border: none;
    background: transparent;
    padding: 0.25rem 0.1rem 0.45rem;
    min-height: 23.5rem;
    max-height: min(29.5rem, calc(100vh - 12rem));
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0.35rem;
    scroll-behavior: smooth;
}

html[data-theme='dark'] .chat-messages {
    border: none;
    background: transparent;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 999px;
}

.chat-message {
    position: relative;
    max-width: 88%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    font-size: 0.83rem;
    line-height: 1.5;
    word-break: break-word;
    transition: all 0.2s ease;
}

.chat-message-content p {
    margin: 0;
}

.chat-message-content p+p {
    margin-top: 0.45rem;
}

.chat-message-content strong {
    font-weight: 700;
}

.chat-message-content em {
    font-style: italic;
}

.chat-bullet-list {
    margin: 0.35rem 0 0.35rem 1.15rem;
    padding: 0;
    list-style-type: disc;
}

.chat-bullet-list li {
    margin-bottom: 0.25rem;
}

.chat-bullet-list li:last-child {
    margin-bottom: 0;
}

.chat-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-inline-code {
    font-family: 'Geist Mono', monospace, monospace;
    font-size: 0.76rem;
    padding: 0.12rem 0.35rem;
    border-radius: 0.3rem;
    background: rgba(125, 125, 125, 0.15);
}

.chat-message-incoming {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    padding-right: 1.85rem;
}

.chat-message-outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid #09090b;
    color: #ffffff;
    border-bottom-right-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

html[data-theme='dark'] .chat-message-outgoing {
    background: linear-gradient(135deg, #f4f6f8 0%, #e1e4e6 100%);
    border-color: #e1e4e6;
    color: #111315;
}

.chat-copy-btn {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.chat-message-incoming:hover .chat-copy-btn,
.chat-copy-btn:focus,
.chat-copy-btn.is-copied {
    opacity: 1;
}

.chat-copy-btn:hover {
    color: var(--text);
    background: var(--hover);
    transform: scale(1.08);
}

.chat-copy-btn.is-copied {
    border-color: #22c55e;
}

/* Chat Welcome Hero */
.chat-welcome-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex: 1;
    width: 100%;
    padding: 0.35rem 0.15rem 0.2rem;
    box-sizing: border-box;
    text-align: left;
}

.chat-welcome-hero.is-hidden,
.chat-welcome-hero[hidden] {
    display: none !important;
}

.chat-welcome-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.chat-welcome-intro {
    margin: 0.15rem 0 0.85rem;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.chat-contact-pill-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    background: #09090b;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.58rem 1.15rem;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.chat-contact-pill-btn:hover {
    background: #27272a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.chat-contact-pill-btn:active {
    transform: translateY(0);
}

html[data-theme='dark'] .chat-contact-pill-btn {
    background: #f4f4f5;
    color: #09090b;
}

html[data-theme='dark'] .chat-contact-pill-btn:hover {
    background: #ffffff;
}

.chat-welcome-desc {
    margin: 0.75rem 0 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
}

/* 2x2 Quick Prompts Grid with Rounded Sides */
.chat-prompt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1.25rem;
}

.chat-prompt-card {
    appearance: none;
    border: 1px solid var(--border-soft);
    border-radius: 9999px;
    background: var(--surface);
    color: var(--text);
    padding: 0.46rem 0.75rem;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    min-height: 36px;
}

.chat-prompt-card:hover {
    background: var(--hover);
    border-color: var(--hover-border);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.07);
}

.chat-prompt-card:active {
    transform: translateY(0);
}

html[data-theme='dark'] .chat-prompt-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .chat-prompt-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

/* Legacy prompt chips fallback */
.chat-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.15rem 0 0.35rem;
}

.chat-prompt-chip {
    font-family: 'Geist', sans-serif;
    font-size: 0.73rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.chat-prompt-chip:hover {
    border-color: var(--hover-border);
    background: var(--hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.chat-prompt-chip:active {
    transform: translateY(0);
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-height: 2rem;
}

.typing-indicator[hidden] {
    display: none !important;
}

.typing-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes typing-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 0.65rem;
    margin-top: 0.2rem;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.chat-textarea {
    flex: 1;
    min-height: 38px;
    max-height: 95px;
    padding: 0.52rem 1.05rem;
    border: 1.2px solid #27272a;
    background: #fbfbf9;
    color: var(--text);
    border-radius: 9999px;
    font-family: 'Geist', sans-serif;
    font-size: 0.82rem;
    line-height: 1.35;
    resize: none;
    outline: none;
    overflow-y: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html[data-theme='dark'] .chat-textarea {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.chat-textarea:focus {
    outline: none;
    border-color: var(--text);
    background: var(--surface);
}

.chat-action-send {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 50%;
    border: none;
    background: #9ca3af;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.chat-action-send:hover:not(:disabled) {
    background: #18181b;
    transform: scale(1.06);
}

html[data-theme='dark'] .chat-action-send {
    background: #52525b;
}

html[data-theme='dark'] .chat-action-send:hover:not(:disabled) {
    background: #f4f4f5;
    color: #18181b;
}

.chat-action-send svg {
    margin-left: 2px;
}

.chat-action-send:active:not(:disabled) {
    transform: scale(0.96);
}

.chat-action-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-status {
    margin: 0;
    min-height: 0.9rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 0 0.15rem;
}

.chat-status.is-error {
    color: #ef4444;
    font-weight: 500;
}

.chat-disclaimer {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.75;
    user-select: none;
}

@media (max-width: 700px) {
    .top-bar {
        align-items: flex-start;
    }

    .theme-toggle {
        right: -0.2rem;
    }
}

@media (max-width: 1200px) {
    body {
        padding: 1.6rem 6rem 1rem;
    }
}

@media (max-width: 980px) {
    body {
        padding: 1.2rem 1.15rem 1rem;
    }

    .top-bar {
        max-width: 100%;
    }

    .theme-toggle {
        right: 0;
    }

    .profile-container {
        gap: 0.95rem;
    }

    .profile-image {
        width: 132px;
        height: 132px;
    }

    .profile-info {
        transform: none;
    }

    .info-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
        margin-top: 1.15rem;
    }

    .left-column,
    .right-column {
        height: auto;
    }

    .lets-work-body {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

}

@media (max-width: 700px) {

    .left-column,
    .right-column,
    .recommendations-github-row {
        display: contents;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .experience-stats-box {
        order: 1;
    }

    .about-box {
        order: 2;
        position: relative;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 180ms ease, background-color 180ms ease;
    }

    .about-box:hover {
        border-color: var(--hover-border);
    }

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

    .about-expand-hint {
        display: inline-flex;
        align-items: center;
        gap: 0.28rem;
        font-family: 'Geist', sans-serif;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-muted);
        transition: color 180ms ease;
    }

    .about-box:hover .about-expand-hint,
    .about-box.is-expanded .about-expand-hint {
        color: var(--text);
    }

    .about-hint-icon {
        transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .about-box.is-expanded .about-hint-icon {
        transform: rotate(180deg);
    }

    .about-content {
        position: relative;
        max-height: 6.2rem;
        overflow: hidden;
        transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .about-content::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3.2rem;
        background: linear-gradient(to bottom, transparent 0%, var(--surface) 100%);
        pointer-events: none;
        opacity: 1;
        transition: opacity 250ms ease;
    }

    .about-box.is-expanded .about-content {
        max-height: 45rem;
    }

    .about-box.is-expanded .about-content::after {
        opacity: 0;
    }

    .recent-projects-box {
        order: 3;
    }

    .tech-stack-box {
        order: 4;
    }

    .recent-certifications-box {
        order: 5;
    }

    .experience-box {
        order: 6;
    }

    .education-box {
        order: 7;
    }

    .recommendations-box {
        order: 8;
    }

    .github-activity-box {
        order: 9;
    }

    .lets-work-box {
        order: 10;
    }

    .lets-work-top {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .lets-work-box .get-in-touch-label {
        margin: 0 0 0.45rem;
        margin-left: 0;
        text-align: left;
        white-space: normal;
    }

    .profile-container {
        display: grid;
        grid-template-columns: minmax(98px, 40%) minmax(0, 1fr);
        align-items: center;
        gap: 0.85rem;
    }

    .profile-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center top;
        border-radius: 0.5rem;
    }

    .profile-info {
        flex: 1;
        min-width: 0;
        align-self: center;
    }

    .profile-info h1 {
        font-size: 0.94rem;
        line-height: 1.25;
    }

    .location {
        font-size: 0.87rem;
        line-height: 1.3;
    }

    .roles {
        font-size: 0.81rem;
        line-height: 1.35;
    }

    .action-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .action-btn {
        min-height: 2.75rem;
        padding: 0.65rem 0.82rem;
        font-size: 0.8rem;
        gap: 0.34rem;
    }

    .action-btn span:last-child {
        white-space: nowrap;
    }

    .action-buttons .action-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .action-buttons .action-btn:first-child {
        flex: 1.28 1 0;
    }

    .action-buttons .action-btn:nth-child(3) {
        flex: 0.72 1 0;
    }

    .action-buttons .action-btn:nth-child(3) .action-icon {
        display: none;
    }

    .action-buttons .action-btn:nth-child(2) {
        display: none;
    }

    .about-box,
    .tech-stack-box,
    .recent-projects-box,
    .recent-certifications-box,
    .recommendations-box,
    .github-activity-box,
    .experience-stats-box,
    .experience-box,
    .education-box,
    .lets-work-box {
        padding: 0.9rem 0.9rem;
    }

    .contact-cards {
        padding: 0.05rem 0;
    }

    .contact-card {
        padding: 0.6rem;
    }

    .social-box {
        width: 2.35rem;
        height: 2.35rem;
    }

    .site-footer {
        margin-top: 0.9rem;
    }

    .chat-bubble {
        right: 0.85rem;
        bottom: 0.85rem;
        padding: 0.58rem 0.85rem;
        font-size: 0.78rem;
    }

    .chat-panel {
        right: 0.85rem;
        bottom: 4.2rem;
        width: calc(100vw - 1.7rem);
        max-width: 23rem;
        padding: 0.85rem;
    }

    .chat-copy-btn {
        opacity: 0.75;
    }
}

@media (max-width: 520px) {
    body {
        padding: 1rem 0.82rem 0.9rem;
    }

    .theme-toggle {
        width: 2rem;
        height: 2rem;
        top: 0;
    }

    .profile-container {
        grid-template-columns: minmax(90px, 39%) minmax(0, 1fr);
        gap: 0.72rem;
    }

    .profile-info h1 {
        font-size: 0.88rem;
    }

    .location {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .roles {
        font-size: 0.76rem;
        line-height: 1.32;
    }

    .action-btn {
        min-height: 2.5rem;
        padding: 0.58rem 0.52rem;
        font-size: 0.74rem;
    }

    .project-link {
        font-size: 0.7rem;
    }

    .timeline-item {
        grid-template-columns: 3rem 1fr;
    }

    .experience-stats-box {
        padding: 0.5rem;
    }

    .experience-stats-grid {
        gap: 0.4rem;
    }

    .exp-stat-card {
        padding: 0.5rem 0.55rem;
        min-height: 58px;
    }

    .exp-stat-value {
        font-size: 1.15rem;
    }

    .exp-stat-arrow {
        width: 0.8rem;
        height: 0.8rem;
    }

    .exp-stat-title {
        font-size: 0.72rem;
    }

    .exp-stat-subtitle {
        font-size: 0.62rem;
    }

    .chat-panel {
        right: 0.5rem;
        bottom: 3.6rem;
        width: calc(100vw - 1rem);
        max-width: 100%;
        padding: 0.65rem 0.7rem;
    }

    .chat-welcome-hero {
        padding: 0.25rem 0.1rem 0.2rem;
    }

    .chat-hero-avatar-wrap {
        width: 3.8rem;
        height: 3.8rem;
        border-radius: 1rem;
        margin-bottom: 0.35rem;
    }

    .chat-hero-avatar {
        border-radius: calc(1rem - 2px);
    }

    .chat-hero-title {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }

    .chat-hero-sub {
        font-size: 0.74rem;
        margin-bottom: 0.15rem;
    }

    .chat-hero-desc {
        font-size: 0.7rem;
        margin-bottom: 0.55rem;
        max-width: 240px;
    }

    .chat-messages {
        min-height: 19.5rem;
        max-height: calc(100dvh - 10.5rem);
    }

    .chat-prompt-grid {
        gap: 0.35rem;
    }

    .chat-prompt-card {
        padding: 0.42rem 0.55rem;
        font-size: 0.7rem;
        min-height: 34px;
        border-radius: 9999px;
    }

    .chat-bubble {
        right: 0.85rem;
        bottom: 0.85rem;
        width: 3.1rem;
        height: 3.1rem;
        padding: 2px;
    }

    .cert-item {
        padding: 0.52rem 0.62rem;
    }

    .cert-link {
        gap: 0.6rem;
    }

    .cert-logo-wrap {
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
    }

    .cert-title {
        font-size: 0.81rem;
    }

    .cert-meta {
        font-size: 0.68rem;
    }
}


/* Freeze transitions while theme overlay is active */
html.theme-no-transition,
html.theme-no-transition * {
    transition: none !important;
    animation: none !important;
}


/* Kill default cross-fade */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* Suppress all element transitions during the sweep so nothing bleeds */
html[data-theme-sweep="on"] *,
html[data-theme-sweep="on"] *::before,
html[data-theme-sweep="on"] *::after {
    transition: none !important;
    animation: none !important;
}

/* New theme expands in as a circle from the toggle button */
html[data-theme-sweep="on"]::view-transition-new(root) {
    clip-path: circle(0px at var(--sweep-x, 50%) var(--sweep-y, 50%));
    animation: theme-sweep 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 9999;
}

html[data-theme-sweep="on"]::view-transition-old(root) {
    z-index: 1;
    animation: none;
}

@keyframes theme-sweep {
    to {
        clip-path: circle(var(--sweep-r, 100vmax) at var(--sweep-x, 50%) var(--sweep-y, 50%));
    }
}

/* DevTools / F12 Protection Screen */
.devtools-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme='dark'] .devtools-overlay {
    background: rgba(13, 15, 18, 0.97);
}

.devtools-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.devtools-blocked {
    overflow: hidden !important;
}

.devtools-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 440px;
    width: 100%;
    margin: auto;
    animation: devtoolsFadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes devtoolsFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

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

.devtools-code {
    margin: 0;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(4.5rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
    opacity: 0.92;
}

.devtools-title {
    margin: 0.85rem 0 0.5rem;
    font-family: 'Geist', sans-serif;
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.devtools-desc {
    margin: 0 0 1.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 320px;
}

.devtools-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.45rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--btn-primary-bg);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    cursor: pointer;
    box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.devtools-back-btn:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.2);
}

.devtools-back-btn:active {
    transform: translateY(0);
}

.devtools-footer {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 1rem;
}

.devtools-footer p {
    margin: 0;
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
}