
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Fira+Code:wght@300..700&family=Share+Tech+Mono&display=swap');


@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

#hero-text .greeting::after {
    content: '_';
    display: inline-block;
    color: #00ff88;
    animation: blink 1.1s step-end infinite;
    margin-left: 2px;
}

html {
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #7a7a7a #111111;
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: #111111;
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b8b8b 0%, #6a6a6a 100%);
    border-radius: 12px;
    border: 2px solid #111111;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a0a0a0 0%, #7a7a7a 100%);
}

#binary-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


#wip-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#wip-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
}

#wip-splash-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.wip-splash-card {
    background: rgba(0, 10, 5, 0.88);
    border: 1px solid #00ff88;
    border-radius: 4px;
    padding: 48px 52px;
    max-width: 520px;
    width: 88vw;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.15), inset 0 0 60px rgba(0, 255, 136, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: auto;
}

.wip-splash-icons {
    font-size: 3.2rem;
    line-height: 1;
}

.wip-splash-title {
    font-family: 'VT323', monospace;
    font-size: 3.2rem;
    font-weight: 400;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    text-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
}

.wip-splash-sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

#wip-enter-btn {
    margin-top: 12px;
    padding: 12px 32px;
    background: transparent;
    color: #00ff88;
    border: 1px solid #00ff88;
    border-radius: 2px;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}


#wip-enter-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.4);
}

#wip-roadmap-btn {
    background: transparent;
    color: #444444;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    padding: 0;
    transition: color 0.15s;
}

#wip-roadmap-btn:hover {
    color: #00ff88;
}

#wip-roadmap {
    display: block;
    width: 100%;
    border-top: 1px solid #1a2e1e;
    padding-top: 14px;
}

.wip-roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wip-roadmap-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #00ff88;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    text-align: left;
    width: 100%;
    opacity: 0.7;
}

.wip-roadmap-list li {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wip-roadmap-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    opacity: 0.5;
    flex-shrink: 0;
}

#legend-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: background 0.2s;
}

#legend-btn:hover {
    background: #333333;
}

#legend-popup {
    display: none;
    position: fixed;
    bottom: 66px;
    right: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    padding: 14px 18px;
    z-index: 100;
    text-align: left;
    min-width: 230px;
    border: 1px solid #2a2a2a;
}

#legend-popup.open {
    display: block;
}

#legend-popup p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    font-size: 0.88rem;
    font-weight: 500;
}

#legend-popup .done-badge,
#legend-popup .prod-badge,
#legend-popup .wip-badge,
#modal-body .done-badge,
#modal-body .prod-badge,
#modal-body .wip-badge {
    position: static;
    box-shadow: none;
    flex-shrink: 0;
}

body {
    text-align: center;
    background: #101010;
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
    box-sizing: border-box;
    font-family: 'Fira Code', 'Courier New', monospace;
}

h1 {
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'VT323', monospace;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.7rem;
}

#links {
    color: #aaaaaa;
    font-size: 0.95rem;
    text-align: center;
    margin: 0 15px;
    font-weight: 500;
}

#coming {
    color: #666666;
}

ul {
    list-style-position: outside;
    margin: 0 auto;
    width: fit-content;
}

#links a {
    margin: 0 16px;
    text-decoration: none;
    color: #aaaaaa;
    transition: color 0.2s;
    font-weight: 500;
}

#links a:hover {
    color: #ffffff;
}

#name {
    line-height: 1;
    margin: 0;
    padding: 8px 0 0 0;
    color: #00ff88;
    font-family: 'VT323', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: none;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

#name.name-with-image {
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
}

#name .name-label {
    display: inline-block;
}

#name .name-side-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

#description {
    margin-top: 0.2em;
    margin-bottom: 0.3em;
    color: #888888;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
}

#projects {
    line-height: 1.5;
    margin-top: 0.4em;
    margin-bottom: 0.8em;
    color: #00ff88;
    font-weight: 400;
    font-size: 4rem;
    font-family: 'VT323', monospace;
    letter-spacing: 3px;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

#bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #101010;
    z-index: 10;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    border-top: 1px solid #1e1e1e;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    background: #101010;
    border-bottom: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 60px;
    box-sizing: border-box;
}


#hamburger {
    display: none;
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 20;
    border-radius: 6px;
    transition: background 0.2s;
}

#hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

#hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}


#hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


#nav-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 12px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
    min-width: 180px;
    z-index: 30;
    border: 1px solid #2a2a2a;
}

#nav-dropdown.open {
    display: flex;
}

.nav-link {
    text-decoration: none;
    color: #aaaaaa;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: background 0.2s, color 0.2s;
    font-family: 'Fira Code', monospace;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
}


.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

.about-section {
    text-align: left;
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-section a {
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    text-decoration: underline;
}

.contact-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.contact-list li {
    margin-bottom: 0.8em;
    font-size: 1.05rem;
    color: #cccccc;
}

.contact-or {
    width: 100%;
    text-align: center;
    margin: 1.4rem 0 1.2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #666;
}

.contact-form {
    margin: 0 auto;
    width: min(100%, 720px);
    max-width: 720px;
    display: grid;
    gap: 0.55rem;
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid #232323;
    border-radius: 10px;
    padding: 1.1rem 1.1rem 1.2rem;
}

.contact-form-title {
    margin: 0 0 0.5rem;
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    font-size: 1.65rem;
    color: #ececec;
}

.contact-form label {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b7b7b;
    font-family: 'Fira Code', monospace;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2e2e2e;
    border-radius: 7px;
    background: #111111;
    color: #d7d7d7;
    padding: 0.65rem 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.15);
}

#contact-send-btn {
    margin-top: 0.4rem;
    justify-self: start;
    border: 1px solid #00ff88;
    background: transparent;
    color: #00ff88;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#contact-send-btn:hover {
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.2);
}

.contact-form-status {
    margin: 0.35rem 0 0;
    min-height: 1.2em;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: #7a7a7a;
}

.contact-form-status.ok {
    color: #54d992;
}

.contact-form-status.err {
    color: #ff7373;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 20px auto;
    max-width: 1100px;
    padding: 0 2rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}


#project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 0 auto 1.6rem;
    max-width: 1100px;
    padding: 0 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555;
    font-family: 'Fira Code', monospace;
    margin-right: 2px;
    flex-shrink: 0;
}

.filter-btn {
    font-family: 'Fira Code', monospace;
    font-size: 0.62rem;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid #2a2a2a;
    background: #111;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    background: #1a1a1a;
    color: #aaa;
    border-color: #444;
}

.filter-btn.active {
    background: #0d1f0f;
    color: #00ff88;
    border-color: #00ff88;
}

.project.hidden-by-filter {
    display: none;
}

@media (max-width: 600px) {
    .projects-grid {
        padding: 0 1rem;
    }
    
    #name {
        font-size: 2rem;
    }
    
    #projects {
        font-size: 1.5rem;
    }
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    background: #1a1a1a;
    padding: 1.2rem;
    padding-top: 2.8rem;
    border-radius: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #252525;
    box-sizing: border-box;
    position: relative;
}

.project:hover {
    transform: translateY(-4px);
    background: #212121;
    border-color: #00ff88;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.32);
}

.wip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2e2416;
    color: #f5c9a0;
    border: 1px solid #a87040;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    font-family: 'Fira Code', monospace;
    pointer-events: none;
}

.done-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #122019;
    color: #00ff88;
    border: 1px solid #00ff88;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    font-family: 'Fira Code', monospace;
    pointer-events: none;
}

.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #141e2e;
    color: #a0c8f5;
    border: 1px solid #3a6090;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    font-family: 'Fira Code', monospace;
    pointer-events: none;
}

.project img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0.8rem;
    width: 100%;
    height: 180px;
    border-radius: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.2s ease;
}

.rc-plane-card img {
    width: 85%;
    height: 160px;
}

.project p {
    font-size: 0.88rem;
    font-weight: 400;
    color: #ffffff;
    margin: 6px 0 0;
    line-height: 1.4;
    font-family: 'Fira Code', monospace;
}

.project:hover img {
    transform: scale(1.05);
}

.project h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: 'Fira Code', monospace;
}

.project p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    margin: 6px 0 0;
    line-height: 1.4;
    font-family: 'Fira Code', monospace;
}

.proj-subtitle {
    display: block;
    font-size: 0.6rem;
    color: #555;
    font-family: 'Fira Code', monospace;
    margin-top: 4px;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.modal {
    background: #1a1a1a;
    border-radius: 18px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.8);
    padding: 32px 28px;
    max-width: 480px;
    width: 92vw;
    max-height: 82vh;
    overflow: auto;
    position: relative;
    min-width: 280px;
    border: 1px solid #2a2a2a;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: #8a8a8a #121212;
}

.modal::-webkit-scrollbar {
    width: 10px;
}

.modal::-webkit-scrollbar-track {
    background: #111111;
    border-radius: 12px;
}

.modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9a9a9a 0%, #727272 100%);
    border-radius: 12px;
    border: 2px solid #111111;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b0b0b0 0%, #888888 100%);
}

#modal-body h2 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    font-weight: 400;
    color: #00ff88;
    margin: 8px 0 12px;
    line-height: 1.3;
    letter-spacing: 2px;
}

#modal-body p {
    font-family: 'Fira Code', monospace;
    font-size: 0.92rem;
    color: #aaaaaa;
    line-height: 1.75;
    margin: 0 0 4px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #b32121;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #772626;
}


.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 2.5rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.skills-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-row {
    display: contents;
}

.skill-card {
    --accent: #666;
    background: #131313;
    border: 1px solid #222;
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.8rem 2rem 1.6rem;
    text-align: left;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, filter 0.3s ease;
}


.skills-grid:has(.skill-card:hover) .skill-card:not(:hover) {
    opacity: 0.35;
    filter: brightness(0.5);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

.skill-card-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    line-height: 1;
}

.skill-card-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
}

.skill-card-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 0.62rem;
    color: #555;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.skill-section {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 64px;
    position: relative;
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 8px;
    overflow: hidden;
}

.skill-section-label {
    position: absolute;
    top: 5px;
    left: 7px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4a4a4a;
    font-family: 'Fira Code', monospace;
    pointer-events: none;
    z-index: 1;
    display: block;
}

.skill-card .tags-list {
    justify-content: flex-start;
    margin-top: 0;
    gap: 7px;
    row-gap: 8px;
    position: relative;
    width: 100%;
    height: 100%;
}


.skill-card--prog   { --accent: #818cf8; }
.skill-card--hw     { --accent: #00ff88; }
.skill-card--pcb    { --accent: #38bdf8; }
.skill-card--soft   { --accent: #fbbf24; }
.skill-card--domain { --accent: #fb923c; }


.skill-card .tag {
    background: #1a1a1a;
    border-radius: 6px;
    font-size: 0.68rem;
    padding: 4px 10px;
    border: 1px solid #2a2a2a;
    color: #bbb;
    transition: border-color 0.15s, color 0.15s;
    position: absolute;
    user-select: none;
    white-space: nowrap;
}

.skill-card .tag.tag--icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
}

.skill-card .tag .tag-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-card .tag.tag--icon span {
    font-size: 0.66rem;
}


.skill-card .tag[data-section] {
    opacity: 1;
}


.skill-card .tag[data-section="langs"],
.skill-card .tag[data-section="mcus"],
.skill-card .tag[data-section="pcb"],
.skill-card .tag[data-section="soft"] {
    opacity: 1;
}


.skill-card .tag[data-section="tech"],
.skill-card .tag[data-section="3d"] {
    opacity: 0.75;
    filter: brightness(0.9);
}

.skill-card:hover .tag {
    border-color: #333;
}

.skill-card--prog   .tag { background: #18173a; color: #a5b4fc; border-color: #2a2856; }
.skill-card--hw     .tag { background: #122019; color: #54d992; border-color: #3fb877; }
.skill-card--pcb    .tag { background: #0c2038; color: #7dd3fc; border-color: #163050; }
.skill-card--soft   .tag { background: #2e2308; color: #fcd34d; border-color: #3d3010; }
.skill-card--domain .tag { background: #2c1a04; color: #fdba74; border-color: #3e260a; }


.skill-card--prog   .tag--gray { background: #14132e; color: #6366f1; border-color: #252350; }
.skill-card--hw     .tag--gray { background: #122019; color: #54d992; border-color: #3fb877; }
.skill-card--pcb    .tag--gray { background: #091828; color: #38bdf8; border-color: #122640; }
.skill-card--soft   .tag--gray { background: #201904; color: #d97706; border-color: #33280a; }
.skill-card--domain .tag--gray { background: #201200; color: #f97316; border-color: #301d06; }


.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

#modal-body .tags-list {
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 2px;
}

.tag {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: 'Fira Code', monospace;
    text-transform: lowercase;
}

.tag-lang   { background: #161616; border: 1px solid #333; color: #666; }
.tag-hw     { background: #161616; border: 1px solid #333; color: #666; }
.tag-fab    { background: #161616; border: 1px solid #333; color: #666; }
.tag-tool   { background: #161616; border: 1px solid #333; color: #666; }
.tag-domain { background: #161616; border: 1px solid #333; color: #666; }


.progress-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #2a2a2a;
}

.progress-label {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 6px;
    font-family: 'Fira Code', monospace;
}

.progress-pct {
    color: #7dd3fc;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1c5a7c, #7dd3fc);
    border-radius: 99px;
    transition: width 0.6s ease;
}

.progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.progress-step {
    font-size: 0.70rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
}

.step-done    { background: #122019; color: #00ff88; border: 1px solid #00ff88; }
.step-current { background: #1c5a7c; color: #fff; }
.step-todo    { background: #2a2a2a; color: #666; }


.modal-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 22px 0 4px;
    align-items: center;
}

.modal-thumb {
    width: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.modal-thumb-square {
    width: min(60vw, 300px);
    aspect-ratio: 1 / 1;
    object-position: center;
}

.modal-video {
    margin: 14px 0 4px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    max-width: 100%;
}

.modal-video iframe,
.modal-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

.modal-video-portrait {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.modal-video-portrait iframe,
.modal-video-portrait video {
    aspect-ratio: 9 / 16;
}

.modal-links-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 4px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    font-family: 'Fira Code', monospace;
}

.modal-link:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.modal-link-github {
    background: #1a1a2e;
    color: #fff;
}


#nav-logo {
    font-family: 'VT323', monospace;
    font-size: 26px;
    font-weight: 400;
    color: #00ff88;
    white-space: nowrap;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

#nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: -80px;
    transform: translateX(16px);
}

#nav-desktop .nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

#contact-btn-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(16px);
}

#contact-btn-wrap a {
    text-decoration: none;
}

#contact-btn {
    background: #ffffff;
    color: #101010;
    border: none;
    border-radius: 24px;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 22px;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.15s;
    white-space: nowrap;
}

.lang-btn {
    background: transparent;
    color: #00ff88;
    border: 1px solid #00ff88;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: #00ff88;
    color: #101010;
}

.lang-btn-mobile {
    margin-top: 4px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#contact-btn:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}


#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 2.5rem 3.5rem;
    margin: 3rem auto 0;
    max-width: 1100px;
    border: 1px solid #252525;
    box-sizing: border-box;
    min-height: 60vh;
    position: relative;
    z-index: 2;
}

#hero-text {
    text-align: left;
    flex: 0 1 560px;
}

#hero-text .greeting {
    font-family: 'Fira Code', monospace;
    font-size: 1.6rem;
    color: #00ff88;
    margin: 0 0 0.4rem;
    display: block;
    letter-spacing: 0.05em;
}

#hero-text h1 {
    font-family: 'VT323', monospace;
    font-size: 5.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 0.4rem;
    margin-left: -5px;
    line-height: 1;
    letter-spacing: 2px;
    display: block;
}

.hero-side-image {
    width: 340px;
    height: 340px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
    transform: translateX(-1.5rem);
}

#hero-text .subtitle {
    font-family: 'Share Tech Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    display: block;
    letter-spacing: 0.05em;
}


@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

#scroll-down {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #555555;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
    user-select: none;
    padding: 2.5rem 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#scroll-down svg {
    width: 24px;
    height: 24px;
    color: #00ff88;
    opacity: 0.6;
}


@media (max-width: 768px) {
    #binary-canvas {
        display: none;
    }

    #header {
        display: block;
        padding: 10px 0;
        text-align: center;
    }

    #nav-logo,
    #nav-desktop,
    #contact-btn-wrap { display: none; }

    #hamburger { display: flex; }

    #name { display: block; }

    #name.name-with-image {
        display: flex;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
        text-align: center;
    }

    .projects-grid {
        padding: 0 1rem;
    }

    #project-filters {
        padding: 0 1rem;
        gap: 10px 14px;
    }

    #project-filters .filter-group {
        width: 100%;
        justify-content: flex-start;
    }

    #project-filters .filter-group:nth-child(2) {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #project-filters .filter-group:nth-child(2)::-webkit-scrollbar {
        display: none;
    }

    #project-filters .filter-group:nth-child(2) .filter-label,
    #project-filters .filter-group:nth-child(2) .filter-btn {
        flex-shrink: 0;
    }

    #hero-text {
        text-align: center;
    }

    #hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-side-image {
        width: 230px;
        height: 230px;
        transform: none;
    }

    #projects {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 1.5rem 1.2rem;
    }

}

footer a,
footer a:visited {
    color: #00ff88;
}
