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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(88, 166, 255, 0.5);
    }
}

/* Header & Navigation */
header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #21262d;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #8b949e;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: #58a6ff;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

main.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

/* Avatar */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #30363d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: glow 3s ease-in-out infinite;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(88, 166, 255, 0.6);
}

main.page {
    padding-top: 4rem;
    animation: fadeIn 0.6s ease-out;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #e6edf3;
}

.tagline {
    font-size: 1.25rem;
    color: #8b949e;
}

/* Content Sections */
.content {
    line-height: 1.7;
}

.content p {
    margin-bottom: 1rem;
    color: #c9d1d9;
}

.content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.content li {
    padding: 0.5rem 0;
    color: #c9d1d9;
    border-bottom: 1px solid #21262d;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
}

.project-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.project-card p {
    color: #8b949e;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Links Page */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.link-card {
    display: block;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: #58a6ff;
    background-color: #1f242b;
}

.link-title {
    display: block;
    color: #e6edf3;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.link-desc {
    color: #8b949e;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-content {
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #8b949e;
    font-weight: 400;
}

.contact-item a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 1.25rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .site-nav {
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    main {
        padding: 1.5rem;
    }
}
