body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 30px 0;
    box-sizing: border-box;
    background-color: #091521;
    font-family: Arial, sans-serif;
}

.profile {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    color: #c4d0dd;
    text-align: center;
    border: none;
}

.card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 70px;
    grid-template-areas:
        "intro picture"
        "bottom bottom";
    min-height: 560px;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background-color: #102232;
    border: 1px solid #294654;
    box-sizing: border-box;
    text-align: left;
}

.intro-content {
    grid-area: intro;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 60px 45px;
    box-sizing: border-box;
}

.card-main .profile-image {
    grid-area: picture;
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    align-self: stretch;
}

.card-main .profile-picture {
    position: absolute;
    inset: 1px;
    display: block;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.card-main .intro-label {
    margin: 0 0 25px;
    color: #52e0e4;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.card-main p {
    margin: 0 0 25px;
    line-height: 1.8;
}

.card-main p:last-child {
    margin-bottom: 0;
    color: #a5b5c8;
    font-size: 13px;
}

.page-nav {
    grid-area: bottom;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px;
    margin: 0;
    padding: 14px 24px;
    background-color: #0c1928;
    border-top: 1px solid #294654;
    box-sizing: border-box;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 10px 18px;
    background-color: #102232;
    border: 1px solid #31566b;
    box-sizing: border-box;
    color: #c4d0dd;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    background-color: #173746;
    border-color: #52e0e4;
}

.nav-link[aria-current="page"] {
    background-color: #52e0e4;
    border-color: #52e0e4;
    color: #091521;
}

.nav-link:focus-visible {
    outline: 2px solid #52e0e4;
    outline-offset: 3px;
}

#intro-heading {
    margin: 0 0 30px;
    color: #f3f7fc;
    font-size: clamp(34px, 5.5vw, 52px);
    letter-spacing: -1px;
}

#intro-heading span {
    color: #52e0e4;
    text-decoration: underline;
    text-decoration-color: #29999e;
    text-decoration-thickness: 3px;
    text-underline-offset: 10px;
}

#showcase {
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background-color: #102232;
    border: 1px solid #294654;
    box-sizing: border-box;
}

#showcase-heading {
    position: relative;
    margin: 0;
    padding: 28px 30px 12px 48px;
    background-color: #0c1928;
    color: #f3f7fc;
    font-size: 28px;
    line-height: 1.3;
    text-align: left;
}

#showcase-heading::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 30px;
    width: 3px;
    height: 28px;
    background-color: #52e0e4;
}

#showcase > p {
    max-width: none;
    margin: 0;
    padding: 0 30px 26px 48px;
    background-color: #0c1928;
    border-bottom: 1px solid #294654;
    color: #a5b5c8;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 30px;
    box-sizing: border-box;
}

.project-card {
    display: block;
    flex: 0 1 calc((100% - 40px) / 3);
    min-width: 0;
    overflow: hidden;
    background-color: #0c1928;
    border: 1px solid #31566b;
    box-sizing: border-box;
    color: #f3f7fc;
    text-align: left;
    text-decoration: none;
}

.project-card:only-child {
    flex-basis: 335px;
}

.project-card:focus-visible {
    outline: 2px solid #52e0e4;
    outline-offset: 4px;
}

.project-card img {
    display: block;
    width: 100%;
    height: 250px;
    aspect-ratio: auto;
    object-fit: cover;
}

footer {
    margin-top: 40px;
    color: #a5b5c8;
    font-size: 14px;
}

@media (max-width: 850px) {
    .project-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .card-main {
        grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
        min-height: 460px;
    }

    .intro-content {
        padding: 35px 18px;
    }

    .card-main .intro-label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    #intro-heading {
        font-size: clamp(28px, 6vw, 36px);
        line-height: 1.3;
    }

    .card-main p {
        font-size: 14px;
    }

    .card-main p:last-child {
        font-size: 12px;
    }

    #showcase-heading {
        padding: 24px 20px 10px 38px;
        font-size: 25px;
    }

    #showcase-heading::before {
        top: 27px;
        left: 20px;
        height: 24px;
    }

    #showcase > p {
        padding: 0 20px 22px 38px;
        font-size: 13px;
    }

    .gallery {
        padding: 22px 18px;
    }

    .project-card {
        flex-basis: 100%;
    }
}
