/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 120px 24px 60px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 64% center;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.hero-links svg {
    flex-shrink: 0;
}

/* Reference-style biography hero */
.hero {
    background: var(--bg-primary);
    padding: 84px 24px 56px;
}

.hero-content {
    display: block;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.hero-left {
    text-align: center;
}

.profile-photo {
    display: block;
    width: 250px;
    height: 250px;
    margin: 0 auto 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 36% center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.hero-left h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-subtitle,
.hero-role,
.hero-org {
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 1.05rem;
}

.hero-org a {
    color: #0f766e;
    text-decoration: none;
}

.hero-org a:hover {
    text-decoration: underline;
}

.hero-right {
    padding-top: 8px;
}

.hero-right h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.bio-content h3 {
    margin: 26px 0 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.bio-content h3:first-child {
    margin-top: 0;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.hero-links {
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.hero-links a {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Two-column homepage layout */
.page-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.page-layout > .section {
    padding: 32px 28px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.page-layout > .section .container {
    padding: 0;
}

.page-layout .section-title {
    text-align: left;
}

.page-layout #hobbies {
    grid-row: 1;
    grid-column: 1;
}

.page-layout #technical {
    grid-column: 2;
    grid-row: 1;
}

.page-layout #publications {
    grid-column: 1 / -1;
    grid-row: 3;
}

.page-layout #education {
    grid-column: 1 / -1;
    grid-row: 2;
    background: transparent;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

.page-layout #projects {
    grid-column: 1 / -1;
    grid-row: 4;
}

/* Introduction Section */
.introduction {
    background-color: var(--bg-primary);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-block {
    margin-bottom: 24px;
}

.intro-block:last-child {
    margin-bottom: 0;
}

.intro-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.intro-block p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.intro-block p:last-child {
    margin-bottom: 0;
}

.intro-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.intro-block a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

/* Education Section */
.education {
    background-color: var(--bg-secondary);
}

.edu-list {
    max-width: 1000px;
    margin: 0 auto;
}

.edu-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: baseline;
    gap: 24px;
    padding: 0 0 18px;
    margin-bottom: 18px;
}

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

.edu-time {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    min-width: 180px;
}

.edu-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.edu-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Publications Section */
.publications {
    background-color: var(--bg-secondary);
}

.pub-list {
    max-width: 1000px;
    margin: 0 auto;
}

.pub-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.pub-item:last-child {
    margin-bottom: 0;
}

.pub-item:hover {
    box-shadow: var(--shadow-md);
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pub-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.pub-title a:hover {
    text-decoration: underline;
}

.pub-link {
    font-size: 0.85rem;
    font-weight: 500;
}

.pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.pub-venue {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.project-content h3 a:hover {
    text-decoration: underline;
}

.project-repo {
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Hobbies Section */
.hobbies {
    background-color: var(--bg-primary);
}

.hobbies-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.hobby-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
}

.hobby-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.hobby-label em {
    color: var(--text-light);
    font-weight: 400;
}

.hobby-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-tertiary);
}

.hobby-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
}

/* Contact Section */
.contact {
    background-color: var(--bg-primary);
}

.contact-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-tertiary);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
}

/* Social Page */
.nav-active {
    color: var(--primary-color) !important;
}

.nav-game {
    color: #7c3aed !important;
    font-weight: 700 !important;
}

.nav-social {
    color: #e63946 !important;
    font-weight: 700 !important;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-item {
    display: flex;
    flex-direction: column;
}

.video-caption {
    text-align: center;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.video-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: #00a1d6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.social-icon-img img {
    object-fit: contain;
}

.social-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.social-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Game Page */
.game-page {
    padding: 100px 24px 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1100px;
    width: 100%;
}

.game-area {
    position: relative;
    flex-shrink: 0;
}

.game-area {
    touch-action: none;
}

.game-area canvas {
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    max-width: 100%;
    height: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    color: white;
    text-align: center;
    padding: 24px;
}

.game-overlay h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.game-overlay p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.submit-score {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.submit-score input {
    padding: 10px 14px;
    border: 2px solid white;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    width: 150px;
}

.submit-score input::placeholder {
    color: rgba(255,255,255,0.6);
}

.submit-score input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.25);
}

.leaderboard {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 1000px;
    box-shadow: var(--shadow-md);
}

.leaderboard h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 6px 8px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.leaderboard-table td {
    padding: 8px 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tr.gold td {
    color: #b8860b;
    font-weight: 700;
}

.leaderboard-table tr.silver td {
    color: #808080;
    font-weight: 600;
}

.leaderboard-table tr.bronze td {
    color: #cd7f32;
    font-weight: 600;
}

.leaderboard-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .hero {
        padding: 100px 16px 32px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-photo {
        width: 180px !important;
        height: 180px !important;
    }

    .hero-right {
        padding-top: 0;
    }

    .profile-photo img {
        width: 160px !important;
        height: 160px !important;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-links {
        justify-content: center;
        gap: 12px;
    }

    .hero-links a {
        font-size: 0.85rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .page-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px 16px 48px;
    }

    .page-layout > .section {
        grid-column: auto !important;
        grid-row: auto !important;
        padding: 28px 20px;
    }

    .intro-content,
    .pub-list,
    .edu-list,
    .hobbies-list {
        max-width: 100%;
    }

    .intro-block h3 {
        font-size: 1.1rem;
    }

    .intro-block p {
        font-size: 0.95rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .edu-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

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

    .game-page {
        padding: 90px 12px 40px;
    }

    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .game-overlay h2 {
        font-size: 1.4rem;
    }

    .game-overlay p {
        font-size: 0.95rem;
    }

    .submit-score {
        flex-direction: column;
        align-items: center;
    }

    .submit-score input {
        width: 100%;
        max-width: 200px;
    }

    .leaderboard {
        width: 100%;
        min-width: auto;
        padding: 16px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }

    .footer {
        padding: 24px 0;
    }
}

/* AcadHomepage-inspired homepage. Scoped so game and social stay unchanged. */
.homepage {
    background: #fff;
    color: #4b5563;
}

.homepage-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5e7eb;
}

.homepage-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 58px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.homepage-brand {
    color: #374151;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.homepage-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

.homepage-nav-links a {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.homepage-nav-links a:hover {
    color: #1d4ed8;
}

.homepage-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 72px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.homepage-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    color: #4b5563;
}

.homepage-avatar {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.homepage-sidebar h1 {
    margin: 0;
    color: #374151;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}

.homepage-cn-name,
.homepage-role,
.homepage-affiliation {
    margin: 5px 0;
    font-size: 0.92rem;
}

.homepage-cn-name {
    color: #6b7280;
}

.homepage-affiliation a,
.homepage-sidebar a {
    color: #2563eb;
    text-decoration: none;
}

.homepage-affiliation a:hover,
.homepage-sidebar a:hover {
    text-decoration: underline;
}

.homepage-sidebar-summary {
    margin: 26px 0 22px;
    font-size: 0.92rem;
    line-height: 1.65;
}

.homepage-contact {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 11px;
    font-size: 0.9rem;
}

.homepage-main {
    min-width: 0;
}

.academic-block {
    margin-bottom: 42px;
}

.academic-block h2 {
    margin: 0 0 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1.45rem;
    font-weight: 600;
}

.homepage-biography h3 {
    margin: 20px 0 8px;
    color: #4b5563;
    font-size: 1.05rem;
    font-weight: 600;
}

.homepage-biography h3:first-child {
    margin-top: 0;
}

.homepage-bio p,
.homepage-publication p,
.homepage-project-list p,
.homepage-education-item p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 0.97rem;
    line-height: 1.75;
}

.homepage-bio a,
.homepage-publication a,
.homepage-project-list a {
    color: #1d4ed8;
    text-decoration: none;
}

.homepage-bio a:hover,
.homepage-publication a:hover,
.homepage-project-list a:hover {
    text-decoration: underline;
}

.homepage-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.homepage-skill {
    display: grid;
    gap: 7px;
    color: #4b5563;
    font-size: 0.94rem;
}

.homepage-skill i {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: #e5e7eb;
}

.homepage-skill b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.homepage-education-item {
    padding: 0 0 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eef0f3;
}

.homepage-education-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.homepage-education-item strong {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-size: 0.98rem;
}

.homepage-education-item p {
    margin-bottom: 0;
}

.homepage-publication,
.homepage-project-list article {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eef0f3;
}

.homepage-publication:last-child,
.homepage-project-list article:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.homepage-publication h3,
.homepage-project-list h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.homepage-publication p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.homepage-publication em {
    color: #6b7280;
    font-size: 0.88rem;
}

.homepage-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 32px;
}

.homepage-project-list article {
    margin-bottom: 0;
}

.homepage-project-list p {
    margin-bottom: 0;
    font-size: 0.93rem;
}

.homepage-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 800px) {
    .homepage-nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }

    .homepage-nav-links {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px 18px 52px;
    }

    .homepage-sidebar {
        position: static;
        text-align: center;
    }

    .homepage-avatar {
        width: 170px;
        height: 170px;
    }

    .homepage-contact {
        justify-items: center;
    }

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

.homepage-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.homepage-contact-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.homepage-nav-links .homepage-social-link {
    color: #be123c !important;
    font-weight: 700 !important;
}

.homepage-nav-links .homepage-game-link {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

.homepage-nav-links .homepage-social-link:hover,
.homepage-nav-links .homepage-game-link:hover,
.homepage-nav-links .nav-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}