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

:root {
    --bg: #ffffff;
    --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: flex-start;
    min-height: 100vh;
    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.5s ease, transform 0.5s ease;
}

.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.5s ease, transform 0.5s ease;
}

.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-timeline {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 2rem;
    width: 2px;
    background: var(--line);
}

.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;
}

.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.06);
}

.timeline-content {
    min-width: 0;
    padding: 0.62rem 0.74rem;
    background: var(--surface);
}

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

.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) {
    .experience-timeline::before {
        left: 1.7rem;
    }

    .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;
    margin-top: auto;
}

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

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

.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-box h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.45rem 0;
}

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

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

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

.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.42rem;
    padding: 0.68rem 0.72rem;
}

.cert-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

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

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

.cert-meta {
    margin: 0.3rem 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-muted);
}

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

.project-card {
    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-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;
    }

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

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

.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: 0.8rem;
}

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

.tech-capsules {
    margin-top: 0.34rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.tech-capsule {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.2;
    padding: 0.36rem 0.6rem;
}

.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;
}

.education-program,
.education-school,
.education-year {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
}

.education-school,
.education-year {
    margin-top: 0.2rem;
}

.education-program {
    font-weight: 700;
    font-size: 0.93rem;
}

.education-school,
.education-year {
    font-size: 0.88rem;
}

.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.05rem;
    bottom: 1.05rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--chat-bubble-border);
    border-radius: 999px;
    background: var(--chat-bubble-bg);
    color: var(--chat-bubble-text);
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
    cursor: pointer;
}

.chat-bubble:hover {
    transform: translateY(-1px);
    background: var(--chat-bubble-hover-bg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.chat-bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.98rem;
    line-height: 1;
    animation: chat-icon-float 1.8s ease-in-out infinite;
}

@keyframes chat-icon-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.5px);
    }
}

.chat-panel {
    position: fixed;
    right: 1.05rem;
    bottom: 4.45rem;
    z-index: 999;
    width: min(22rem, calc(100vw - 1.4rem));
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
}

.chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

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

.chat-panel-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.chat-panel-title {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.chat-panel-close {
    border: 1px solid var(--border-soft);
    border-radius: 0.3rem;
    background: var(--surface-soft);
    color: var(--text);
    width: 1.7rem;
    height: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chat-email-row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.chat-input {
    width: 100%;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 0.4rem;
    padding: 0.46rem 0.55rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.8rem;
}

.chat-input:focus {
    outline: 2px solid var(--hover-border);
    outline-offset: 1px;
}

.chat-tip {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    border-radius: 0.45rem;
    padding: 0.55rem;
    min-height: 10.5rem;
    max-height: 15.5rem;
    overflow-y: auto;
    margin-bottom: 0.55rem;
}

.chat-message {
    max-width: 88%;
    padding: 0.5rem 0.58rem;
    border-radius: 0.55rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid var(--border-soft);
}

.chat-message p {
    margin: 0;
}

.chat-message-incoming {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
}

.chat-message-outgoing {
    align-self: flex-end;
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.chat-textarea {
    flex: 1;
    border: 1px solid var(--border-soft);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 0.4rem;
    padding: 0.52rem 0.58rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.82rem;
    resize: none;
    min-height: 2.25rem;
    max-height: 6rem;
}

.chat-textarea:focus {
    outline: 2px solid var(--hover-border);
    outline-offset: 1px;
}

.chat-status {
    margin: 0;
    min-height: 1rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.chat-status.is-error {
    color: #b00020;
}

.chat-actions {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    gap: 0.45rem;
}

.chat-action {
    border: 1px solid var(--border-soft);
    border-radius: 0.4rem;
    background: var(--surface-soft);
    color: var(--text);
    padding: 0.52rem 0.7rem;
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

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

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

.chat-panel-close:hover {
    background: var(--hover);
    border-color: var(--hover-border);
}

@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) {
    .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,
    .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.7rem;
        bottom: 0.78rem;
        padding: 0.56rem 0.76rem;
        font-size: 0.78rem;
    }

    .chat-panel {
        right: 0.7rem;
        bottom: 4rem;
        width: calc(100vw - 1.4rem);
        max-width: 22rem;
        padding: 0.74rem;
    }
}

@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-timeline::before {
        left: 1.5rem;
    }

    .chat-panel {
        right: 0.58rem;
        bottom: 3.75rem;
        width: calc(100vw - 1.16rem);
    }

    .chat-bubble {
        right: 0.58rem;
        bottom: 0.65rem;
        font-size: 0.75rem;
    }
}
