* {
    box-sizing: border-box;
}

body {
    color:#94A3B8;
    margin: 0;
    height: 100vh;
    --x: 50%;
    --y: 50%;
    background-color: #0b1029;
    background-image:
        radial-gradient(
            600px at var(--x) var(--y),
            rgba(38, 39, 94, 0.5),
            transparent 70%
        );
    display: block;
    overflow-y: auto;
    font-family: Inter, sans-serif;
    line-height: 1.2;
    font-size: 1rem;
}

header {
    flex: 0 0 42%;
    height: auto;
    padding: 5rem 10rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0 10rem 6rem;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

h2 {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #CBD5E1;
    font-size: 1.35rem;
    font-weight: 600;
}

header p {
    max-width: 700px;
    line-height: 1.7;
}

main section h3 {
    color: white;
}

main section h4 {
    color: #CBD5E1;
}

.portfolio-card {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    transition:
        background-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.portfolio-card:hover {
    background: rgba(30, 41, 59, .45);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.portfolio-date {
    flex-shrink: 0;
    width: 80px;
    padding-top: .35rem;
    color: #64748B;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.repository-link:hover .portfolio-card h4 {

    color: #5EEAD4;

}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.tech-stack li {
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(45,212,191,.12);
    color: #5EEAD4;
    font-size: .8rem;
    font-weight: 600;
}

.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(45,212,191,.15);
    border: 1px solid rgba(45,212,191,.3);
    color: #5EEAD4;
    font-size: 1.2rem;
    cursor: pointer;
    transition:
        background .25s,
        transform .25s;
    z-index: 1000;
}

.scroll-top:hover {
    background: rgba(45,212,191,.25);
    transform: translateY(-3px);
}

.profile-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(30,41,59,.35);
    border: 1px solid rgba(45,212,191,.15);
}

.profile-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(45,212,191,.4);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0;
    color: #E2E8F0;
    font-size: 2rem;
}

.username {
    margin-top: .5rem;
    color: #5EEAD4;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.profile-stats div {
    display: flex;
    flex-direction: column;
}

.profile-stats span {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.profile-stats small {
    margin-top: .35rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 2rem;
    color: #5EEAD4;
    font-weight: 600;
    text-decoration: none;
    transition:
        color .25s ease,
        transform .25s ease;
}

.back-link:hover {
    color: white;
    transform: translateX(-4px);
}

#contributions {
    margin-top: 4rem;
}

.contribution-card {
    margin-top: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(30,41,59,.35);
    border: 1px solid rgba(45,212,191,.15);
}

.contribution-card img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.repository-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (max-width: 1100px) {

    header {
        padding: 4rem;
    }

    main {
        padding: 0 4rem 4rem;
    }

    .profile-card {
        gap: 2rem;
    }

    .profile-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

}

@media (max-width: 700px) {

    header {
        padding: 2rem 1.5rem;
    }

    main {
        padding: 0 1.5rem 3rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }

    .profile-stats {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .portfolio-card {
        flex-direction: column;
        gap: 1rem;
    }

    .portfolio-date {
        width: auto;
    }

    .contribution-card {
        padding: 1rem;
    }

    .tech-stack {
        justify-content: center;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 46px;
        height: 46px;
    }

}