* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: #0d1117; min-height: 100vh; color: #e6edf3;
    display: flex; justify-content: center; overflow-x: hidden;
}
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, #0d1117, #161b22, #0d1117, #1c2128);
    background-size: 400% 400%; z-index: -1; animation: bgMove 15s ease infinite;
}
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.main-container {
    width: 100%; max-width: 1100px; padding: 40px 20px; text-align: center;
}
.brand-section { margin-bottom: 30px; }
.logo-ring {
    fill: none; stroke: #58a6ff; stroke-width: 2; stroke-dasharray: 20, 10;
    animation: rotateLogo 10s linear infinite; transform-origin: center;
}
@keyframes rotateLogo { 100% { transform: rotate(360deg); } }
.glow-text {
    font-size: clamp(2rem, 6vw, 3.5rem); color: #58a6ff;
    text-shadow: 0 0 15px rgba(88, 166, 255, 0.6); font-weight: 800;
}
.search-section { margin-bottom: 80px; display: flex; justify-content: center; }
.search-bar {
    display: flex; align-items: center; background: rgba(22, 27, 34, 0.7);
    border: 1px solid rgba(48, 54, 61, 1); border-radius: 50px;
    padding: 8px 10px 8px 25px; backdrop-filter: blur(10px); width: 100%; max-width: 600px;
}
input { background: transparent; border: none; outline: none; color: white; flex: 1; font-size: 1.1rem; }
button { background: #238636; color: white; border: none; padding: 12px 30px; border-radius: 40px; cursor: pointer; font-weight: 700; transition: 0.3s; }
button:hover { background: #2ea043; transform: scale(1.05); }
.loader {
    width: 50px; height: 50px; border: 4px solid rgba(88, 166, 255, 0.1);
    border-top: 4px solid #58a6ff; border-radius: 50%; margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
.profile-card {
    background: rgba(22, 27, 34, 0.85); border: 1px solid rgba(48, 54, 61, 1);
    border-radius: 24px; padding: 40px; display: flex; align-items: center; gap: 40px;
    text-align: left; margin-bottom: 60px; opacity: 0;
    transform: translateY(30px) scale(0.95); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-card.active { opacity: 1; transform: translateY(0) scale(1); }
.profile-card:hover {
    border-color: #58a6ff;
    background: rgba(33, 38, 45, 0.95);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 166, 255, 0.2);
}
.avatar-frame { width: 150px; height: 150px; border-radius: 50%; padding: 5px; background: linear-gradient(45deg, #58a6ff, #0366d6); flex-shrink: 0; }
.avatar-frame img { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #161b22; object-fit: cover; }
.profile-info h2 { font-size: 2.2rem; color: #fff; }
.profile-info p { color: #8b949e; margin: 15px 0; line-height: 1.5; }
.stats-bar { display: flex; gap: 25px; font-size: 0.95rem; }
.stats-bar b { color: #fff; }
.sort-container { width: 100%; display: flex; justify-content: flex-end; margin-bottom: 25px; opacity: 0; transition: 0.5s; }
.sort-container.visible { opacity: 1; }
#sort-select {
    background: rgba(22, 27, 34, 0.8); color: #58a6ff; border: 1px solid rgba(88, 166, 255, 0.3);
    padding: 10px 15px; border-radius: 12px; cursor: pointer; outline: none;
}
.repos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px; width: 100%;
}
.repo-card {
    background: rgba(22, 27, 34, 0.6); border: 1px solid rgba(48, 54, 61, 1);
    border-radius: 20px; padding: 30px; text-align: left; backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.repo-card.show { opacity: 1; transform: translateY(0); }
.repo-card:hover { border-color: #58a6ff; box-shadow: 0 0 25px rgba(88, 166, 255, 0.2); transform: translateY(-8px); }
.repo-name { color: #58a6ff; font-size: 1.4rem; font-weight: 700; text-decoration: none; display: block; margin-bottom: 12px; }
.repo-desc { font-size: 1rem; color: #8b949e; line-height: 1.6; min-height: 50px; margin-bottom: 20px; }
.repo-footer { display: flex; justify-content: space-between; color: #c9d1d9; font-size: 0.9rem; }

@media (max-width: 850px) {
    .profile-card { flex-direction: column; text-align: center; padding: 30px; }
    .stats-bar { justify-content: center; }
    .repos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .search-bar { padding-left: 15px; }
    button { padding: 10px 20px; font-size: 0.9rem; }
    .avatar-frame { width: 120px; height: 120px; }
}