/*Global reset*/

*,
*::before,
*::after
{
    box-sizing: border-box;
}

*
{
    margin: 0;
    padding: 0;
}

img,
picture,
svg,
video
{
    display: block;
    max-width: 100%;
}

/* End global reset*/
:root
{
    --primary-color: hsl(0, 0%, 90%, 0.95);
    --primary-color-text: hsl(0, 0%, 5%);
    --primary-color-link: hsl(240, 100%, 5%);
    --primary-color-shadow: hsla(0, 0%, 10%, 0.05);

    --linear-gradient: linear-gradient(135deg, hsl(0, 0%, 60%), hsl(0, 0%, 50%))
}

nav>ul
{
    display: flex;
    gap: 1.5rem;
    list-style-type: none;
}

a
{
    color: var(--primary-color-text);
    text-decoration: none;
}

body
{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #faf9fc;
    color: #1a1a2c;
    line-height: 1.5;
    scroll-behavior: smooth;
    min-height: 100vh;
}

header
{
    height: 48px;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    box-shadow: 0 2px 4px var(--primary-color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

main
{
    display: flex;
    max-width: 900px;
}

aside
{
    width: 200px;
    background: var(--primary-color);
    padding: 1rem;
}

.container
{
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.containerHeader
{
    width: min(100%, 1100px);
    display: flex;
    justify-content: space-between;
    padding-inline: 1rem;
}

/* header / hero */
.hero
{
    text-align: center;
    padding: 3rem 0 2rem;
}

.avatar
{
    width: 112px;
    height: 112px;
    background: var(--linear-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 24px -8px var(--primary-color-shadow);
}

.avatar span
{
    font-size: 3.2rem;
    font-weight: 500;
    color: white;
}

h1
{
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, hsl(0, 0%, 10%), hsl(0, 0%, 15%));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.tagline
{
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 560px;
    margin: 1rem auto 0;
}

.social-links
{
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.social-links a
{
    color: var(--primary-color-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.social-links a:hover
{
    color: #6366f1;
}

/* section styling */
.section
{
    margin: 4rem 0;
}

.section-title
{
    font-size: 1.8rem;
    font-weight: 650;
    margin-bottom: 1.8rem;
    letter-spacing: -0.01em;
    border-left: 5px solid #8b5cf6;
    padding-left: 1rem;
}

.projects-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.project-card
{
    background: white;
    border-radius: 1.5rem;
    padding: 1.6rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #ede9fe;
}

.project-card:hover
{
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(99, 102, 241, 0.12);
    border-color: #cbd5e1;
}

.project-title
{
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge
{
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    letter-spacing: -0.2px;
}

.project-desc
{
    color: #334155;
    margin: 0.8rem 0 1.2rem;
    font-size: 0.95rem;
}

.project-link
{
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color-link);
    font-size: 0.9rem;
}

.tech-stack
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.tech
{
    background: #f1f5f9;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #1e293b;
}

hr
{
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: #e2e8f0;
}

footer
{
    width: min(100%, 1100px);
    text-align: center;
    color: #6c727f;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2ff;
}

@media (max-width: 640px)
{
    .container
    {
        padding: 1rem;
    }

    h1
    {
        font-size: 2rem;
    }

    .hero
    {
        padding: 1.5rem 0;
    }
}