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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    min-height: 100vh;
    color: #c9d1d9;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.octocat-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    color: #c9d1d9;
}

.hero {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
}

.title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #f778ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin-bottom: 12px;
    animation: fadeInDown 0.6s ease-out;
}

.subtitle {
    font-size: 18px;
    color: #8b949e;
    font-weight: 400;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.main {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.search-section {
    max-width: 650px;
    margin: 0 auto 40px;
}

.search-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.search-input {
    flex: 1;
    height: 60px;
    padding: 0 24px;
    font-size: 17px;
    font-family: 'Space Grotesk', sans-serif;
    border: 2px solid #30363d;
    border-radius: 12px;
    background: #0d1117;
    color: #c9d1d9;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #6e7681;
}

.search-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15);
}

.search-input:disabled {
    opacity: 0.6;
}

.search-btn {
    height: 60px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 134, 54, 0.4);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-icon {
    width: 20px;
    height: 20px;
}

.helper-text {
    font-size: 14px;
    color: #6e7681;
    text-align: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #30363d;
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 16px;
    color: #8b949e;
    animation: pulse 1.5s ease-in-out infinite;
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 24px;
}

.error-text {
    color: #f85149;
    font-size: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 60px 20px;
    animation: fadeIn 0.6s ease-out;
}

.empty-octocat {
    width: 120px;
    height: 120px;
    color: #30363d;
    animation: float 3s ease-in-out infinite;
}

.empty-text {
    font-size: 16px;
    color: #6e7681;
    text-align: center;
}

.card-wrapper {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.5s ease-out;
}

.profile-card {
    background: linear-gradient(145deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #58a6ff, #a371f7, #f778ba);
}

.profile-header {
    display: flex;
    gap: 28px;
    margin-bottom: 32px;
}

.avatar-wrapper {
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #58a6ff;
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.2);
}

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

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.profile-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: #8b949e;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 15px;
    color: #c9d1d9;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    font-size: 14px;
    color: #8b949e;
}

.github-link {
    font-size: 14px;
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.github-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-box {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: #30363d;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    animation: fadeInLeft 0.4s ease-out both;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.language-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.language-dot.small {
    width: 10px;
    height: 10px;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    color: #c9d1d9;
}

.language-percent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #8b949e;
}

.language-bar-bg {
    height: 8px;
    background: #21262d;
    border-radius: 4px;
    overflow: hidden;
}

.language-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.repos-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repo-card {
    display: block;
    background: rgba(33, 38, 45, 0.5);
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.repo-card:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.05);
    transform: translateX(4px);
}

.repo-name {
    font-size: 16px;
    font-weight: 600;
    color: #58a6ff;
    margin-bottom: 6px;
}

.repo-description {
    font-size: 14px;
    color: #8b949e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    line-height: 1.4;
}

.repo-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.repo-stat {
    font-size: 13px;
    color: #6e7681;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-watermark {
    text-align: center;
    font-size: 12px;
    color: #484f58;
    margin-top: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.download-btn {
    width: 100%;
    height: 60px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.footer {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
}

.footer a {
    font-size: 14px;
    color: #6e7681;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #58a6ff;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: confetti-fall linear forwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes confetti-fall {
    0% { 
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 42px;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .search-input,
    .search-btn {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-card {
        padding: 24px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 36px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 24px;
    }
}