@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
    --primary: #0d5cff;
    --text: #101827;
    --muted: #4b5563;
    --line: #e5e7eb;
    --bg: #ffffff;
    --soft: #f8fafc;
    --font-main: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    letter-spacing: 0.01em;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 32px;
}

img {
    max-width: 100%;
    display: block;
}

p {
    line-height: 28px;
    color: #374151;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.brand span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.94rem;
    font-weight: 500;
}

.desktop-nav .active {
    color: var(--primary);
}

.language-btn {
    cursor: pointer;
    position: relative;
    font-size: 0.8125rem;
    font-weight: 600;
}

.language-btn--desktop {
    border-left: 1px solid var(--line);
    padding-left: 16px;
}

.language-btn--mobile {
    display: none;
}

.language-btn::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    height: 12px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 160px;
    background-color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.35;
}

.language-dropdown a:last-child {
    border-bottom: 0;
}

.language-dropdown a:hover,
.language-dropdown a[aria-current="true"] {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.language-btn:active .language-dropdown,
.language-btn:hover .language-dropdown,
.language-btn:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 14px;
}

@media (min-width: 769px) {
    .header-actions {
        display: none !important;
    }

    .language-btn--mobile {
        display: none !important;
    }

    .language-btn--desktop {
        display: block;
    }
}


.hire-btn,
.btn-primary {
    background: var(--primary);
    color: #fff;
}

.hire-btn {
    padding: 10px 18px;
    border-radius: 8px;
}

.menu-btn {
    display: none;
    width: 34px;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: #222;
    margin: 6px 0;
}

.mobile-nav {
    display: none;
}

.hero {
    margin-top: 26px;
    display: grid;
    gap: 26px;
    grid-template-columns: 1.06fr 1fr;
    align-items: center;
}

.hero-image img {
    border-radius: 25px;
    height: 100%;
    object-fit: cover;
}

.kicker {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(1.9rem, 4.8vw, 3.1rem);
    line-height: 1.24;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.kicker-title {
    color: var(--primary);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 300;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-ghost {
    border-color: var(--line);
    background: #fff;
}

.btn.small {
    font-size: 0.95rem;
    padding: 10px 18px;
}

.hero-meta {
    display: flex;
    gap: 44px;
}

.hero-meta strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.hero-meta span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.2;
}

.home-hero-meta > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 14px;
    align-items: start;
    min-width: 145px;
}

.home-hero-meta > div .icon-badge {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    color: #111827;
    border-radius: 0;
    padding: 0;
}

.home-hero-meta > div .icon-badge svg {
    width: 28px;
    height: 28px;
}

.section {
    padding: 56px 0 0;
}

.projects-page {
    padding-bottom: 56px;
}

.projects-title {
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    margin: 0 0 1rem 0;
}

h2 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.section-head a {
    color: var(--primary);
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.thumb {
    border-radius: 10px;
    height: 150px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
}

.thumb-one {
    background-image: linear-gradient(140deg, #e3eeff, #f8fbff);
}

.thumb-two {
    background-image: linear-gradient(140deg, #f5f7fb, #ecf4ff);
}

.thumb-three {
    background-image: linear-gradient(140deg, #1f2937, #334155);
}

.project-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.project-card p {
    color: var(--muted);
    font-size: 0.92rem;
    min-height: 54px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}

.project-detail-tags .tags {
    margin: 0;
}

.tags span {
    font-size: 0.77rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
}

.links {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.project-card > .links {
    margin-top: auto;
}

.project-card > .btn {
    margin-top: auto;
}

.links a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.links .link-live-demo {
    margin-right: auto;
}

.links .link-live-demo svg {
    vertical-align: middle;
    width: 13px;
    height: 13px;
    margin-top: -2px;
}


.links .link-github {
    margin-left: auto;
}

.links a svg {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

.project-grid-page {
    grid-template-columns: repeat(3, 1fr);
}

.project-action-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.project-action-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #111827;
    transition: all 0.2s ease;
}

.project-action-icons a:hover {
    color: var(--primary);
    border-color: #bfd4ff;
    background: #f5f9ff;
}

.project-action-icons svg {
    width: 18px;
    height: 18px;
}

.stack-grid {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 12px;
}

.stack-grid .stack-item {
    text-align: center;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.home-stack-grid .stack-item {
    display: grid;
    gap: 10px;
    justify-items: center;
    align-content: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 6px;
    font-size: 0.92rem;
    color: #1f2937;
}

.home-stack-grid .logo {
    width: 32px;
    height: 32px;
}

.stack-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.section-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    border-top: 1px solid var(--line);
    margin-top: 56px;
    padding-top: 40px;
}

.section-split p {
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    font-weight: 500;
}

.contact {
    margin-bottom: 1.5rem;
}

#contact .contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

#contact h2 {
    margin-bottom: 14px;
}

#contact > p {
    font-size: 1.02rem;
    color: #6b7280;
    margin-bottom: 14px;
}

.home-contact-list {
    display: grid;
    gap: 7px;
}

.home-contact-list li {
    border: 0;
    border-radius: 0;
    margin-bottom: 0;
    padding: 0;
    color: #4b5563;
    font-weight: 300;
    gap: 14px;
}

.home-contact-list .contact-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    flex-shrink: 0;
}

.home-contact-list .contact-icon svg {
    width: 22px;
    height: 22px;
}

.home-contact-list .email-link,
.home-contact-list .page-link,
.home-contact-list li {
    font-size: 1.02rem;
    font-weight: 300;
}

.home-contact-list .email-link,
.home-contact-list .page-link {
    color: var(--primary);
}

.home-contact-list .email-link:hover,
.home-contact-list .page-link:hover {
    text-decoration: underline;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding: 20px 0 28px;
    color: #6b7280;
    font-size: 0.9rem;
}

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

.footer-nav {
    display: flex;
    gap: 14px;
    font-weight: 600;
}

.footer-nav a {
    color: #374151;
}

.page-section {
    padding-bottom: 25px;
}

.page-lead {
    color: var(--muted);
    margin-bottom: 18px;
    max-width: 760px;
}

.page-lead strong {
    font-weight: 500;
    color: #0f172a;
}

.page-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    display: grid;
    gap: 10px;
}

.contact-card {
    max-width: 520px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.contact-form {
    max-width: 760px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    margin-bottom: 8px;
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    margin-bottom: 8px;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #bfd4ff;
    outline: 2px solid #e4eeff;
}

.remote-availible {
    display: inline-block;
    background: #16a34a;
    border-radius: 6px;
    padding: 5px 8px 2px 8px;
    color: #ffffff!important;
    font-size: 0.92rem;
}

.remote-availible-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffffff;
    margin-right: 2px;
    border-radius: 100%;
}

.email-link,
.page-link {
    color: var(--primary);
    font-weight: 300;
}

.email-link:hover,
.page-link:hover {
    text-decoration: underline;
}

.portfolio-page {
    padding-bottom: 48px;
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 420px) 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 26px;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-card {
    border: 1px solid #e7edf7;
    border-radius: 14px;
    padding: 16px 16px 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.stat-card h3 {
    font-size: 2rem;
    margin: 12px 0 4px;
}

.stat-card p {
    color: #667085;
    font-size: 0.82rem;
    margin-bottom: 0;
}

.stat-card .icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f5f9ff;
    border-color: #e1ecff;
    color: var(--primary);
    box-shadow: none;
}

.stat-card .icon-badge svg {
    width: 16px;
    height: 16px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.portfolio-disclaimer {
    display: block;
    margin-bottom: 22px;
}

.portfolio-disclaimer p {
    display: block;
    color: var(--muted);
    line-height: 26px;
    font-size: 0.98rem;
}

.portfolio-disclaimer p svg {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 3px;
    vertical-align: middle;
    color: var(--muted);
}

.project-filter-empty {
    margin-top: 16px;
    color: #667085;
    font-size: 0.95rem;
}

.project-card--hidden {
    display: none !important;
}

.chip {
    display: inline-block;
    border: 1px solid #e3e8ef;
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.project-card-rich {
    border-color: #e7edf7;
}

.project-card-clickable {
    cursor: pointer;
}

.project-card-clickable:hover {
    border-color: #bfd4ff;
    box-shadow: 0 8px 20px rgba(13, 92, 255, 0.08);
}

.project-card-clickable:focus-visible {
    outline: 2px solid #9bbcff;
    outline-offset: 2px;
}

.project-thumb {
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.project-thumb a {
    display: block;
    height: 100%;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.project-links-row .links {
    gap: 16px;
}

.project-links-row .links a {
    font-size: 0.86rem;
}

.focus-box {
    margin-top: 28px;
    border: 1px solid #e8eef8;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    padding: 22px 24px;
}

.portfolio-contact-strip {
    margin-top: 18px;
    background: linear-gradient(135deg, #0d5cff 0%, #0a4cd4 100%);
    color: #fff;
    border-radius: 18px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.portfolio-contact-strip h2,
.portfolio-contact-strip p,
.portfolio-contact-strip li {
    color: #fff;
}

.portfolio-contact-copy .hero-actions {
    margin: 16px 0 0;
}

.portfolio-contact-copy .btn-primary {
    background: #fff;
    color: var(--primary);
}

.portfolio-contact-strip .btn-ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.portfolio-contact-strip .email-link {
    color: #fff;
}

.portfolio-contact-links {
    list-style: none;
    display: grid;
    gap: 10px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.portfolio-contact-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 400;
}

.portfolio-contact-links .contact-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portfolio-contact-links .contact-icon svg {
    width: 16px;
    height: 16px;
}

.portfolio-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.portfolio-focus-card {
    display: grid;
    gap: 10px;
}

.portfolio-focus-card .icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    border-color: #e5eefb;
    color: var(--primary);
    box-shadow: none;
}

.portfolio-focus-card .icon-badge svg {
    width: 16px;
    height: 16px;
}

.portfolio-focus-card h3 {
    font-size: 0.98rem;
    margin: 0;
}

.portfolio-focus-card p {
    margin: 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.65;
}

.portfolio-page .project-card {
    border-color: #e9eef7;
    border-radius: 16px;
    padding: 12px 12px 14px;
}

.portfolio-page .project-thumb {
    height: 146px;
    margin-bottom: 12px;
}

.portfolio-page .project-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.portfolio-page .project-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    min-height: 54px;
}

.portfolio-page .project-grid-page {
    gap: 20px;
}

.portfolio-contact-strip .page-link,
.portfolio-contact-strip .email-link {
    color: #fff;
}

.contact-page .focus-box {
    margin-top: 22px;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 18px;
}

.contact-intro {
    border-right: 1px solid #e7edf7;
    padding-right: 18px;
}

.contact-icon-list li {
    background: transparent;
    border: 0;
    padding: 8px 0;
}

.contact-icon-list li strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.contact-icon-list li span {
    font-size: 0.92rem;
    color: #4b5563;
    font-weight: 300;
}

.contact-form-card h2 {
    margin-bottom: 4px;
}

.contact-form-card p {
    margin-bottom: 10px;
    color: #6b7280;
}

.contact-feedback,
.contact-field-error {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.contact-feedback {
    margin: 6px 0 14px;
}

.contact-feedback-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.contact-feedback-error,
.contact-field-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.contact-field-error {
    margin: -2px 0 10px;
}

.contact-note {
    text-align: center;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.86rem;
}

.contact-bottom-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.availability-list {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 10px 0;
}

.availability-list li {
    color: #374151;
}

.faq-card details {
    border: 1px solid #e7edf7;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 8px;
}

.faq-card summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.faq-card details p {
    margin-top: 6px;
    color: #6b7280;
}

.stack-page .section-head p {
    color: #6b7280;
    font-size: 0.9rem;
}

.stack-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}

.stack-code-panel {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #1e293b;
    background: #111c30;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-path {
    color: #cbd5e1;
    font-size: 0.78rem;
    margin-left: 6px;
}

.code-lang {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.code-body {
    padding: 10px 0;
    overflow-x: auto;
}

.code-line {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 3px 12px;
    font-size: 0.84rem;
    line-height: 1.65;
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: nowrap;
}

.line-number {
    color: #64748b;
    text-align: right;
    user-select: none;
}

.code-content {
    display: inline-block;
    min-width: max-content;
    white-space: pre;
    letter-spacing: 0;
    tab-size: 4;
}

.token-keyword { color: #93c5fd; }
.token-class { color: #a5b4fc; }
.token-method { color: #5eead4; }
.token-string { color: #86efac; }
.token-variable { color: #f9a8d4; }
.token-punctuation { color: #cbd5e1; }
.token-operator { color: #fca5a5; }

.stack-rows {
    display: grid;
    gap: 18px;
}

.stack-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
}

.stack-category {
    padding: 6px 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    align-items: start;
    background: transparent;
}

.stack-category .icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f6ff;
    border: 1px solid #edf2ff;
    color: #5b6cff;
    box-shadow: none;
}

.stack-category .icon-badge svg {
    width: 24px;
    height: 24px;
}

.stack-category h3 {
    margin-bottom: 6px;
    font-size: 0.96rem;
    line-height: 1.2;
}

.stack-category p {
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.55;
    max-width: 150px;
}

.stack-tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.tech-card {
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 16px 10px 14px;
    text-align: center;
    background: #fff;
    min-height: 98px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-card-link {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.tech-card p {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

.tech-icon {
    width: auto;
    height: 42px;
    max-width: 46px;
    object-fit: contain;
    margin: 0 auto;
}

.logo {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.logo.laravel { background: #ff2d20; }
.logo.php { background: #777bb4; }
.logo.api { background: #0f766e; }
.logo.mysql { background: #00758f; }
.logo.redis { background: #dc382d; }
.logo.vue { background: #42b883; }
.logo.react { background: #61dafb; color: #0f172a; }
.logo.tailwind { background: #38bdf8; }
.logo.js { background: #f7df1e; color: #111827; }
.logo.html { background: #e34f26; }
.logo.docker { background: #2496ed; }
.logo.git { background: #f1502f; }
.logo.github { background: #111827; }
.logo.vscode { background: #007acc; }
.logo.postman { background: #ff6c37; }
.logo.pusher { background: #300d4f; }
.logo.stripe { background: #635bff; }
.logo.nginx { background: #009639; }
.logo.figma { background: #a259ff; }
.logo.aws { background: #232f3e; }

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.workflow-grid .page-card {
    align-content: start;
}

.workflow-grid .icon-badge {
    width: 35px;
    height: 35px;
}

.project-detail-page {
    padding-bottom: 48px;
}

.project-detail-page .page-card {
    border-color: #e7edf7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

.project-detail-page .icon-badge {
    width: 28px;
    height: 28px;
}

.project-detail-page .icon-badge svg {
    width: 16px;
    height: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.project-hero-image {
    border: 1px solid #e7edf7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.project-detail-hero .hero-actions {
    margin: 18px 0 16px;
}

.project-detail-hero .tags {
    margin: 10px 0 0;
}

.project-detail-meta {
    display: block;
    margin-top: 18px;
}

.project-overview-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-overview-card p,
.detail-callout p,
.project-bottom-card p {
    color: #667085;
    line-height: 1.8;
}

.project-overview-card p strong {
    color: #0f172a;
    font-weight: 500;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.detail-meta-item h3,
.detail-callout h2,
.detail-cta h2 {
    display: flex;
    align-items: start;
    gap: 15px;
}

.detail-meta-item p {
    padding-left: 44px;
    margin-top: -10px;
    color: #667085;
}

.project-problem-solution {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.project-problem-solution h2 {
    margin-bottom: 10px;
}

.detail-callout.problem {
    border-left: 0;
}

.detail-callout.problem .icon-badge {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #ef4444;
}

.detail-callout.solution {
    border-left: 0;
}

.detail-callout.solution .icon-badge {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #16a34a;
}

.project-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.project-detail-bottom {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.detail-cta {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
    border-color: #e4ecfb;
    padding: 18px 22px;
}

.detail-cta .hero-actions {
    margin: 0;
}

.detail-cta .btn-primary {
    min-width: 110px;
}

.detail-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 10px;
    background: #eef5ff;
    border-color: #dce9ff;
}

.detail-icon svg {
    width: 16px;
    height: 16px;
}

.project-section-title {
    font-size: 1.38rem;
    margin-bottom: 12px;
}

.project-section-sub-title {
    font-size: 1.08rem;
}


.project-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.project-feature-card {
    padding: 16px 14px;
    gap: 10px;
}

.project-feature-card h3 {
    font-size: 0.92rem;
    margin: 0 0 -0.25rem 0;
}

.project-feature-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #667085;
    margin: 0;
}

.screenshot-card {
    padding: 10px 10px 12px;
}

.screenshot-card .project-thumb {
    height: 160px;
    margin-bottom: 10px;
}

.screenshot-card h3 {
    margin-bottom: 4px;
}

.screenshot-card p {
    min-height: 0;
    line-height: 1.55;
}

.project-bottom-card .tags span {
    background: #f7f9fc;
    border-color: #ebf0f6;
    color: #4b5563;
    font-size: 0.72rem;
}

.project-detail-page .chip.active {
    font-size: 0.72rem;
    padding: 6px 10px;
}

.project-detail-page .projects-title {
    margin-bottom: 10px;
}

.about h2 {
    margin-bottom: 1rem;
}

.about-page h2 {
    margin-bottom: 16px;
}

.about-page h3 {
    font-size: 1.05rem;
    color: var(--text);
}

.about-page p {
    color: var(--muted);
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
}

.about-hero-image img {
    width: 100%;
    border-radius: 16px;
    min-height: 420px;
    object-fit: cover;
}

.about-hero-resume {
    display: block;
    margin-bottom: 10px;
}

.about-hero-resume label {
    display: block;
    color: var(--text);
    margin-bottom: 3px;
    font-weight: 500;
}

.about-hero-resume label svg{
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: var(--muted);
}

.about-hero-resume a {
    display: inline-block;
    position: relative;
    padding-left: 2.25rem!important;
}

.about-hero-resume a svg {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    fill: var(--soft);
}

.about-hero .btn {
    margin-top: 10px;
    margin-bottom: 10px;
}

.about-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-hero-meta {
    grid-template-columns: repeat(3, 1fr);
}

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

.about-stats strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
}

.about-stats span {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.2;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
}

.journey-grid::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    border-top: 2px dashed #cfe0ff;
    z-index: -1;
}

.about-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.about-two-col > div {
    min-width: 0;
}

.stack-list {
    min-width: 0;
}

.stack-list-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    margin-bottom: 10px;
}

.stack-list strong {
    color: var(--text);
    font-size: 0.95rem;
}

.stack-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.stack-list span {
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #fff;
    color: #374151;
}

.experience-list {
    display: grid;
    gap: 10px;
}

.experience-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: start;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 1rem;
}

.about-cta {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.about-cta .hero-actions {
    margin: 16px 0 0;
}

.about-cta {
    background: #f7faff;
    border-color: #dbe9ff;
}

.icon-card {
    border-color: #e6ebf5;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.icon-badge {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eff5ff;
    color: var(--primary);
    border: 1px solid #d9e7ff;
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.icon-badge.small {
    width: 24px;
    height: 24px;
    margin: 0;
}

.icon-badge.small svg {
    width: 12px;
    height: 12px;
}

.about-contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stack-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

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

    .journey-grid::before {
        display: none;
    }

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

    .portfolio-hero,
    .portfolio-contact-strip,
    .project-detail-hero,
    .project-detail-meta,
    .project-problem-solution,
    .project-detail-bottom,
    .contact-hero-grid,
    .contact-bottom-grid,
    .stack-hero {
        grid-template-columns: 1fr;
    }

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

    .project-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-focus-grid {
        grid-template-columns: 1fr;
    }

    .stack-row {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .btn {
        font-size: 16px;
    }

    .container {
        width: min(1120px, calc(100% - 28px));
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        display: flex !important;
    }

    .menu-btn {
        display: block;
    }

    .language-btn--desktop {
        display: none !important;
    }

    .language-btn--mobile {
        display: block;
        padding: 4px 8px;
    }

    .header-wrap {
        min-height: 68px;
    }

    .brand {
        font-size: 1.35rem;
    }

    .menu-btn {
        display: block;
        width: 24px;
        flex-shrink: 0;
    }

    .mobile-nav {
        display: none;
        border-top: 1px solid var(--line);
        padding: 12px 14px;
        background: #fff;
    }

    .mobile-nav.open {
        display: grid;
        gap: 8px;
    }

    .mobile-nav a {
        display: block;
        padding: 4px 0;
        border-radius: 8px;
        font-weight: 300;
    }

    .mobile-nav a.hire-btn {
        font-size: 16px;
        text-align: center;
        margin-top: 2px;
        font-weight: 300;
        padding: 0.75rem 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
        justify-items: center;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 1.70rem!important;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        margin-bottom: -2px;
    }

    .hero-image img {
        width: min(76%, 170px);
        max-height: none;
        margin: 0 auto;
    }

    .kicker {
        margin-bottom: 10px;
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    h1 {
        font-size: 1.95rem;
        line-height: 1.18;
        margin-bottom: 8px;
        max-width: 290px;
    }

    .lead {
        font-size: 0.88rem;
        line-height: 1.65;
        margin: 0 auto;
    }

    .page-lead {
        margin-bottom: 0;
    }

    .icon-badge {
        width: 40px;
        height: 40px;
    }

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

    .hero {
        padding-top: 2.5rem;
    }

    .hero-actions {
        width: 100%;
        margin: 26px auto 18px;
        flex-direction: column;
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        min-height: 37px;
        padding: 9px 16px;
        font-size: 0.7rem;
        border-radius: 6px;
        font-size: 16px;
        gap: 6px;
    }

    .hero-meta {
        justify-content: space-between;
        gap: 6px;
    }

    .home-hero-meta {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        margin: 0;
        border: 1px solid var(--line);
        border-radius: 6px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .about-hero-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-hero-resume {
        margin-top: 10px;
        margin-bottom: 0;
    }

    .about-hero-resume label {
        margin-bottom: 0;
    }

    .about-hero-resume__buttons {
        overflow-x: auto;
        white-space: nowrap;
    }

    .about-hero-resume .btn {
        margin-top: 10px!important;
        margin-bottom: 12px!important;
    }

    .home-hero-meta > div {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1px;
        min-width: 0;
    }

    .home-hero-meta > div .icon-badge {
        grid-row: auto;
        width: 26px;
        height: 26px;
        margin-bottom: 5px;
    }

    .home-hero-meta > div .icon-badge svg {
        width: 26px;
        height: 26px;
    }

    .hero-meta strong {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .hero-meta span {
        font-size: 0.7rem;
        line-height: 1.55;
    }

    .portfolio-page {
        padding-bottom: 22px;
    }

    .project-hero-image img {
        min-height: 260px;
    }

    .screenshot-card .project-thumb {
        height: 160px;
    }

    .section {
        padding-top: 22px;
    }

    .section-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .section-head h2 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .section-head a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .project-grid,
    .project-grid-page,
    .section-split,
    .contact-layout,
    .about-hero,
    .about-two-col,
    .about-cta {
        grid-template-columns: 1fr;
    }

    .about-hero-image {
        order: -1;
        min-height: 250px;
    }

    .about-hero-image img {
        min-height: 250px;
    }

    .section-split {
        margin-top: 35px;
    }

    .contact-intro {
        border-right: 0;
        padding-right: 0;
    }

    .portfolio-stats {
        gap: 10px;
    }

    .portfolio-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 0;
    }

    .portfolio-filters .chip {
        flex-shrink: 0;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-card h3 {
        font-size: 1.35rem;
        margin: 8px 0 4px;
    }

    .stat-card p {
        font-size: 0.72rem;
    }

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

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

    .project-hero-image {
        order: -1;
    }

    .portfolio-focus-grid {
        grid-template-columns: 1fr;
    }

    .stack-tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .stack-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stack-list-row {
        grid-template-columns: 1fr;
        row-gap: 12px;
        margin-bottom: 16px;
    }

    .stack-list strong {
        font-size: 0.98rem;
    }

    .stack-list-items {
        gap: 6px;
    }

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

    .stack-hero {
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 26px;
    }

    .stack-code-panel {
        order: -1;
        max-height: 300px;
    }

    .stack-code-panel .code-body {
        max-height: 248px;
        overflow: auto;
    }

    .stack-page .projects-title,
    .stack-page .page-lead {
        max-width: none;
        width: 100%;
    }

    .stack-page .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stack-page .section-head p {
        width: 100%;
        margin: 0;
    }

    .stack-category p {
        max-width: none;
        width: 100%;
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .about-hero .btn {
        margin-top: 16px;
        margin-bottom: 28px;
    }

    .about-stats {
        justify-content: space-between;
        gap: 8px;
    }

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

    .site-footer {
        margin-top: 0px;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        width: 100%;
        justify-content: space-between;
    }
}
