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

body {
    background: #008080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    font-size: 12px;
    color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 8px;
}

a {
    color: #000080;
}

a:hover {
    color: #1084d0;
}

.window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    user-select: none;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-icon {
    font-size: 10px;
}

.title-buttons {
    display: flex;
    gap: 2px;
}

.win-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 16px;
    height: 14px;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.win-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.close-btn {
    color: #000;
}

.main-nav {
    background: #c0c0c0;
    padding: 2px 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 1px solid #808080;
}

.main-nav a {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;
    border-bottom: none;
    padding: 3px 10px;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    position: relative;
    top: 1px;
}

.main-nav a.active,
.main-nav a:hover {
    background: #dfdfdf;
    border-bottom: 2px solid #dfdfdf;
    font-weight: bold;
}

.window-content {
    background: #dfdfdf;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    margin: 0 3px 3px;
    padding: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.window-content::-webkit-scrollbar {
    width: 16px;
}

.window-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #808080;
}

.window-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.glass-panel {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(200, 220, 240, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-inset {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 10px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.glass-divider {
    height: 2px;
    margin: 12px 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(200, 220, 240, 0.4) 50%,
        rgba(255, 255, 255, 0.6) 80%,
        transparent
    );
}

.bio-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.portrait-frame {
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.portrait-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    pointer-events: none;
}

.portrait {
    display: block;
    width: 180px;
    height: auto;
    filter: contrast(1.05);
}

.bio-intro h1 {
    font-size: 18px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 4px;
}

.tagline {
    font-style: italic;
    color: #404040;
    margin-bottom: 6px;
    font-size: 12px;
}

.meta {
    font-size: 11px;
    color: #808080;
}

.bio-text {
    margin-top: 12px;
    line-height: 1.6;
}

.bio-text p {
    margin-bottom: 10px;
    font-size: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 128, 0.2);
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.work-card {
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.work-card:hover {
    background: rgba(255, 255, 255, 0.3);
}

.work-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 1px solid #808080;
    display: block;
    filter: saturate(0.9);
    transition: filter 0.3s;
}

.work-card:hover .work-img {
    filter: saturate(1.1);
}

.work-info {
    padding: 8px 2px 2px;
}

.work-info h3 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #000080;
}

.work-info p {
    font-size: 11px;
    line-height: 1.4;
    color: #404040;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edu-item {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-year {
    font-size: 11px;
    color: #808080;
    min-width: 90px;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

.edu-item strong {
    color: #000080;
}

.code-block {
    background: rgba(0, 0, 30, 0.85);
    color: #c0c0c0;
    padding: 14px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow-x: auto;
    border: 2px solid;
    border-color: #404040 #808080 #808080 #404040;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(100, 150, 200, 0.05) 0%,
        transparent 50%,
        rgba(100, 150, 200, 0.03) 100%
    );
    pointer-events: none;
}

.code-block pre {
    white-space: pre;
}

.kw { color: #6ca0dc; }
.fn { color: #dcdcaa; }
.str { color: #ce9178; }

.tech-links p {
    margin-bottom: 4px;
    font-size: 12px;
}

.exhibition-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exh-item {
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.exh-year {
    display: inline-block;
    min-width: 60px;
    color: #808080;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 10px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    font-size: 12px;
}

.status-bar {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 2px 6px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #404040;
    margin-top: 8px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    padding: 3px;
}

.lightbox-content img {
    display: block;
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

.lightbox-close {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 20px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-close:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.lightbox-caption {
    padding: 4px 6px;
    font-size: 11px;
    color: #404040;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    background: #c0c0c0;
}

.clickable-img {
    cursor: pointer;
    transition: filter 0.2s, box-shadow 0.2s;
}

.clickable-img:hover {
    filter: brightness(1.1) saturate(1.1);
    box-shadow: 0 0 8px rgba(100, 150, 200, 0.4);
}

.subsection-title {
    font-size: 12px;
    font-weight: bold;
    color: #000080;
    margin: 10px 0 6px;
}

.methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.methods-grid h4 {
    font-size: 11px;
    color: #000080;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.methods-grid ul {
    list-style: none;
    padding: 0;
}

.methods-grid li {
    font-size: 11px;
    padding: 2px 0;
    padding-left: 10px;
    position: relative;
}

.methods-grid li::before {
    content: '\25AA';
    position: absolute;
    left: 0;
    color: #808080;
    font-size: 8px;
}

.lang-block p {
    font-size: 12px;
    margin-bottom: 4px;
}

.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.project-item {
    padding: 8px;
}

.project-item h3 {
    font-size: 12px;
    color: #000080;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 9px;
    font-weight: normal;
    background: rgba(0, 0, 128, 0.1);
    border: 1px solid rgba(0, 0, 128, 0.2);
    padding: 1px 5px;
    color: #000080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-item p {
    font-size: 11px;
    color: #404040;
    line-height: 1.4;
}

.cmt { color: #6a9955; }

@media (max-width: 600px) {
    .bio-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .portrait {
        width: 140px;
    }

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

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

    .edu-item {
        flex-direction: column;
        gap: 2px;
    }

    .edu-year {
        min-width: unset;
    }

    .main-nav {
        flex-wrap: wrap;
    }

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

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