html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    color: #f0f6fc;
    background: #0d1117;
    line-height: 1.5;
}

.github-nav {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    flex-shrink: 0;
}

.nav-logo {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border: 1px solid white;
    border-radius: 6px;
    padding: 3px;
}

.nav-middle {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 16px;
}

.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #0b1116;
    border-right: 1px solid #30363d;
    padding: 20px 12px;
    z-index: 110;
    box-shadow: 6px 0 12px rgba(0, 0, 0, 0.3);
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.side-nav li.nav-divider {
    height: 2px;
    margin: 12px 0;
    padding: 0;
    background: rgba(139, 148, 158, 0.12);
    border-radius: 1px;
    list-style: none;
    border-bottom: none;
    pointer-events: none;
    user-select: none;
}

.side-nav a {
    color: #c9d1d9;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
}

.side-nav a:hover {
    background: #161b22;
    color: #58a6ff;
}

.side-nav {
    transform: translateX(-100%);
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.side-nav.open {
    transform: translateX(0);
    pointer-events: auto;
}

.side-nav li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    z-index: 90;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-link {
    color: #f0f6fc;
    text-decoration: none;
    font-size: 14px;
}

.nav-link:hover {
    color: #58a6ff;
}

.profile {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 24px;
}

.profile-avatar {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid #30363d;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #f0f6fc;
}

.profile-username {
    font-size: 20px;
    color: #8b949e;
    margin: 0 0 16px 0;
}

.profile-location,
.profile-time {
    font-size: 14px;
    color: #8b949e;
    margin: 4px 0;
}

.profile-social {
    margin-top: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #58a6ff;
    text-decoration: none;
    font-size: 14px;
    margin-right: 16px;
}

.social-link:hover {
    text-decoration: underline;
}

.social-link svg {
    fill: #8b949e;
}

.pinned-section,
.contributions-section,
.reviews-section {
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 24px;
    background: #161b22;
}

.pinned-section h2,
.contributions-section h2,
.reviews-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #30363d;
    background: #21262d;
    color: #f0f6fc;
}

.pinned-content,
.contributions-content {
    padding: 24px;
}

.pinned-content p,
.contributions-content p {
    margin: 0 0 8px 0;
    color: #f0f6fc;
}

.contributions-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.contributions-content li {
    margin-bottom: 4px;
    color: #f0f6fc;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.1s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.5s;
}

.fade-in.delay-2 {
    animation-delay: 1.0s;
}

.fade-in.delay-3 {
    animation-delay: 1.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-marquee,
.reviews-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    border: none;
    background: transparent;
}

.reviews-marquee {
    touch-action: pan-y;
}

.reviews-section h2 {
    background: transparent;
    border: none;
    padding: 0 0 16px 0;
    font-size: 22px;
    color: #f0f6fc;
}

.reviews-track {
    display: flex;
    align-items: stretch;
    gap: 32px;
    will-change: transform;
    transition: none;
}

.review-card {
    background: #21262d;
    border-radius: 6px;
    width: 340px;
    min-width: 320px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    flex-direction: column;
    margin: 0 8px;
    overflow: hidden;
    border: 1px solid #30363d;
    position: relative;
}

.review-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #161b22;
    padding: 10px 18px;
    border-bottom: 1px solid #30363d;
}

.review-bar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #30363d;
}

.review-bar .reviewer-name {
    font-weight: bold;
    font-size: 1.08em;
    color: #f0f6fc;
}

.review-bar .review-date {
    margin-left: auto;
    font-size: 0.95em;
    color: #8b949e;
}

.review-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px 18px;
}

.review-content img {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #30363d;
}

.review-text {
    font-size: 1.05em;
    color: #f0f6fc;
    text-align: left;
}

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

    .profile-avatar {
        width: 200px;
        height: 200px;
    }

    .profile {
        padding: 16px;
    }

    .github-nav {
        padding: 8px;
        flex-wrap: wrap;
    }

    .nav-right {
        display: none;
    }

    .side-nav {
        display: block;
        left: 0;
        top: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 8px 0 20px rgba(0, 0, 0, 0.6);
    }

    .overlay {
        display: block;
    }
}

.nav-logo:focus {
    outline: 2px solid #2853ff55;
    border-radius: 6px;
}

.nav-open .side-nav {
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.site-footer {
    max-width: 980px;
    margin: 28px auto;
    padding: 18px 20px;
    text-align: center;
    color: #8b949e;
}

.site-footer .footer-card {
    display: inline-block;
    background: #0f1418;
    border: 1px solid #30363d;
    padding: 12px 16px;
    border-radius: 8px;
}

.site-footer a {
    color: #58a6ff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.button {
    display: inline-block;
    background-color: #238636;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.button:hover {
    background-color: #2ea043;
}

.reviews-marquee.dragging {
    cursor: grabbing;
}

.site-footer .button {
    color: #ffffff !important;
    text-decoration: none !important;
}

.site-footer .button:hover {
    color: #ffffff !important;
}