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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

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

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

.hero {
    padding: 80px 0 0;
}

.profile-section {
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

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

.github-stats-card {
    width: 128px;
    height: 128px;
    background-position: -80px 0;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.username {
    font-size: 1.25rem;
    color: #7d8590;
    margin-bottom: 16px;
}

.bio {
    color: #c9d1d9;
    margin-bottom: 24px;
}

.meta-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: #7d8590;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #238636;
    color: white;
    border: 1px solid rgba(240, 246, 252, 0.1);
}

.btn-primary:hover {
    background: #2ea043;
}

.btn-secondary {
    border: 1px solid #30363d;
    color: #c9d1d9;
    background: transparent;
}

.btn-secondary:hover {
    background: #161b22;
    border-color: #8b949e;
}

.btn-coffee {
    color: #c9d1d9;
    background: #388bfd4d;
}

.btn-coffee:hover {
    color: #ffffff;
    background: #4493f8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 8px;
}

.stat-label {
    color: #7d8590;
    font-size: 0.875rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #f0f6fc;
    border-bottom: 1px solid #21262d;
    padding-bottom: 12px;
}

.projects {
    display: grid;
    gap: 16px;
    margin-bottom: 80px;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.project-card.hidden-filter {
    display: none;
}

.project-card:hover {
    border-color: #58a6ff;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    cursor: pointer;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #58a6ff;
    transition: color 0.2s;
}

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

.external-icon {
    color: #7d8590;
    transition: color 0.2s;
    cursor: pointer;
}

a.project-header:hover .external-icon {
    color: #c9d1d9;
}

.project-description {
    color: #7d8590;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.project-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
}

.language {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c9d1d9;
    padding: 4px 10px;
}

.language:hover {
    border-radius: 16px;
    color: #ffffff;
    background-color: #1f6feb;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.project-stats {
    display: flex;
    gap: 16px;
    color: #7d8590;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.topic {
    padding: 4px 10px;
    color: #4493f8;
    background-color: #388bfd1a;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.topic:hover {
    color: #ffffff;
    background-color: #1f6feb;
}

.footer {
    padding: 32px 0;
    border-top: 1px solid #21262d;
    text-align: center;
    color: #7d8590;
    font-size: 0.875rem;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 3px solid #21262d;
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.projects-loading {
    text-align: center;
    padding: 40px;
    color: #7d8590;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    color: #7d8590;
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-tag {
    padding: 6px 12px;
    background: #21262d;
    color: #7d8590;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #30363d !important;
    color: #c9d1d9 !important;
}

.filter-tag.active {
    background: transparent;
    color: #58a6ff;
    border-color: #58a6ff;
}

.filter-tag .remove {
    margin-left: 6px;
    font-weight: bold;
}

.clear-filters {
    padding: 6px 12px;
    background: transparent;
    color: #58a6ff;
    border: 1px solid #58a6ff;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #1f6feb;
    color: #ffffff;
}

.private-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(187, 128, 9, 0.15);
    color: #d29922;
    border: 1px solid rgba(187, 128, 9, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .name {
        font-size: 2rem;
    }

    .profile-section {
        text-align: center;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .profile-info {
        width: 100%;
    }

    .meta-info,
    .actions {
        flex-direction: column;
        justify-content: center;
    }

    .topics {
        margin-left: 0;
    }
}

.hidden {
    display: none;
}

.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 14px;
    height: 14px;
}
