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

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1f2937;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-hover: #79c0ff;
    --border-color: #30363d;
    --success-color: #3fb950;
    --warning-color: #d29922;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0a0e14 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

/* Header Section */
.header {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.5);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

section h2 i {
    font-size: 1.5rem;
}

/* About Section */
.about-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 15px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(88, 166, 255, 0.2);
}

.stat-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Activity Graph */
.activity-graph {
    display: flex;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.activity-graph img {
    max-width: 100%;
    height: auto;
}

/* Contributions Section */
.contributions-info {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.contribution-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contribution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(88, 166, 255, 0.2);
    border-color: var(--accent-color);
}

.contribution-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contribution-card h3 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contribution-card h3 a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contribution-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contribution-card .repo-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.contribution-card .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.contribution-card .stat i {
    color: var(--warning-color);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.error-message {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Contribution Snake Section */
.contribution-snake {
    display: flex;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.contribution-snake img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 8px;
}

.footer i.fa-heart {
    color: #f85149;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    section {
        padding: 25px;
    }

    section h2 {
        font-size: 1.5rem;
    }

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

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

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 40px 15px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
