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: flex;
    overflow: hidden;
    font-family: Inter, sans-serif;
    line-height: 1.2;
    font-size: 1rem;
}

header {
    flex: 0 0 42%;
    height: 100vh;
    padding: 6rem 3rem 6rem 10rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header section:first-child {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6rem 10rem 6rem 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

main {
    width: 100%;
    max-width: 650px;
}

footer {
    max-width: 850px;
    padding: 4rem 0;
}

header h1 a {
    position: relative;
    color: #e2e8f0be;
    text-decoration: none;
    transition: color .25s ease;
}

header h1 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #5EEAD4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

header h1 a:hover {
    color: #FFFFFF;
}

header h1 a:hover::after {
    transform: scaleX(1);
}

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: 320px;
    line-height: 1.7;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-top: 4rem;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    color: #64748B;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    transition:
        color .25s ease,
        transform .25s ease;
}

.side-nav a::before {
    content: "";
    width: 32px;
    height: 1px;
    background: #64748B;
    transition:
        width .25s ease, background .25s ease;
}

.side-nav a:hover {
    color: white;
}

.side-nav a.active {
    color: white;
}

.side-nav a.active::before {
    width: 64px;
    background: white;
}

.side-nav a:hover::before {
    width: 64px;
    background: white;
}

main section h3 {
    color: white;
}

main section h4, 
main section h5 {
    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;
}

.portfolio-content {
    flex: 1;
}

.portfolio-content h4 {
    margin: 0;
    color: #E2E8F0;
    font-size: 1.1rem;
    transition: color .25s ease;
}

.portfolio-card:hover h4 {
    color: #5EEAD4;
}

.portfolio-content h5 {
    margin-top: .35rem;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-weight: 500;
}

.portfolio-content p {
    margin: 0;
    line-height: 1.7;
}

.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;
}

.section-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #5EEAD4;
    font-weight: 600;
    text-decoration: none;
    transition:
        color .25s ease,
        transform .25s ease;
    cursor: pointer;
}

.section-link:hover {
    color: #99F6E4;
    transform: translateX(6px);
}

.github-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 2rem;
    padding: .8rem 1.3rem;
    border-radius: 999px;
    background: rgba(45,212,191,.12);
    border: 1px solid rgba(45,212,191,.25);
    color: #5EEAD4;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .25s,
        transform .25s,
        color .25s;
    white-space: nowrap;
    margin-top: 2rem;
}

.github-dashboard:hover {
    background: rgba(45,212,191,.2);
    color: white;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #5EEAD4;
    transition:
        color .25s,
        transform .25s;
}

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

.social-links svg {
    width: 24px;
    height: 24px;
}

.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);
}

@media (max-width: 1100px) {

    body {
        display: block;
        height: auto;
        overflow-y: auto;
    }

    header {
        width: auto;
        height: auto;
        padding: 4rem 3rem 2rem;
    }

    header p {
        max-width: 100%;
    }

    .side-nav {
        margin-top: 2.5rem;
        margin-bottom: 3rem;
    }

    .github-dashboard {
        white-space: nowrap;
    }

    header section:last-child {
        margin-top: 2rem;
    }

    .content {
        overflow: visible;
        padding: 0 3rem 3rem;
    }

    main {
        max-width: 100%;
    }

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

    .portfolio-date {
        width: auto;
        padding-top: 0;
    }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        margin: 2rem 0 3rem;
    }
}

@media (max-width: 700px) {

    header {
        padding: 2rem 1.5rem;
    }

    .content {
        padding: 0 1.5rem 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    header p {
        font-size: .95rem;
    }

    .side-nav {
        gap: .9rem;
    }

    .side-nav a {
        font-size: .72rem;
        letter-spacing: .12em;
    }

    .portfolio-card {
        padding: 1.2rem;
    }

    .portfolio-content h4 {
        font-size: 1rem;
    }

    .portfolio-content p {
        line-height: 1.6;
    }

    .tech-stack {
        gap: .4rem;
    }

    .tech-stack li {
        font-size: .75rem;
        padding: .35rem .7rem;
    }

    .github-dashboard {
        width: 100%;
        justify-content: center;
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
        padding: .7rem 1rem;
        font-size: .9rem;
        white-space: nowrap;
        margin-bottom: 1.5rem;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
    }

    .side-nav {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
}

.cv-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: .8rem 1.3rem;
    border-radius: 999px;
    background: rgba(45,212,191,.12);
    border: 1px solid rgba(45,212,191,.25);
    color: #5EEAD4;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .25s,
        transform .25s,
        color .25s;
}

.cv-download:hover {
    background: rgba(45,212,191,.2);
    color: white;
    transform: translateY(-2px);
}
