@font-face {
    font-family: "Chlora";
    src: url("../fonts/Chlora.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DraftingMono-Bold";
    src: url("../fonts/DraftingMono-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 20rem;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 25%, rgba(116, 214, 122, 0.13), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(97, 217, 232, 0.055), transparent 30%),
        radial-gradient(circle at 50% 60%, rgba(116, 214, 122, 0.055), transparent 40%),
        linear-gradient(180deg, #080908 0%, #0b0f0c 42%, #080908 100%);
    color: #ffffff;
    font-family: "Chlora", system-ui, sans-serif;
    font-weight: 600;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(243, 245, 239, 0.148) 0.0625rem, transparent 0.0625rem),
        linear-gradient(90deg, rgba(243, 245, 239, 0.148) 0.0625rem, transparent 0.0625rem);
    background-size: 2.65rem 2.65rem;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 50%);
}

a {
    color: inherit;
    text-decoration: none;
}

p, h1, h2, h3 {
    margin: 0;
}

main {
    width: calc(100% - 3rem);
    max-width: 90rem;
    margin: 0 auto;
}

nav {
    position: sticky;
    top: 3rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: calc(100% - 3rem);
    max-width: 90rem;
    min-height: 3.625rem;
    margin: 3rem auto 0;
    padding: 0.65rem 2.7rem;
    border: 0.0625rem solid rgba(243, 245, 239, 0.08);
    border-radius: 999rem;
    background: rgba(10, 11, 10, 0.38);
    backdrop-filter: blur(1.125rem);
    -webkit-backdrop-filter: blur(1.125rem);
    box-shadow: 0 0.75rem 2.125rem rgba(0, 0, 0, 0.18);
    font-family: system-ui, "Segoe UI", sans-serif;
}

.logo {
    display: flex;
    width: 2.2rem;
    height: 2.2rem;
    overflow: hidden;
}

.logo img {
    width: 2.4rem;
    height: auto;
    display: block;
    opacity: 1;
}

.portfolio-name {
    margin-right: auto;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    margin-right: 0.25rem;
}

nav a {
    color: #a6ada2;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.18s ease;
}

nav a:hover {
    color: #ffffff;
}

.nav-separator {
    width: 0.0625rem;
    height: 1.35rem;
    flex-shrink: 0;
    background: #ffffff;
}

.github-link {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.github-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

.github-link img {
    width: 1.7rem;
    height: 1.7rem;
    display: block;
    object-fit: contain;
}

.portfolio-name {
    margin-right: 0;
}

.aboutme-section {
    min-height: calc(100vh - 8.75rem);
    padding: 6rem 0 7rem;
}

.aboutme-top-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.article-code-txt-card {
    font-family: "DraftingMono-Bold", monospace;
    height: 26rem;
    border: 0.0625rem solid rgba(243, 245, 239, 0.12);
    border-radius: 1.75rem;
    background:
        linear-gradient(145deg, rgba(116, 214, 122, 0.06), transparent 34%),
        linear-gradient(315deg, rgba(228, 180, 92, 0.06), transparent 38%),
        rgba(14, 16, 15, 0.84);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.36);
    padding: 1rem 1.25rem 1rem 0.25rem;
    font-size: 0.90rem;
    line-height: 1.5;
    white-space: nowrap;
}

.article-info-aboutme {
    max-width: 44rem;
    margin-left: auto;
}

.article-info-aboutme h1 {
    color: #ffffff;
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.08rem;
}

.article-info-aboutme p {
    margin-top: 1.25rem;
    color: #a6ada2;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
}

.aboutme-bottom-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 2.75rem;
}

.aboutme-bottom-row .article-code-txt-card {
    width: 50%;
    height: 20rem;
}

#three-shapes-scene {
    width: 100%;
    height: 100%;
}

.three-shapes-scene {
    overflow: hidden;
}


.about-me-learning-info {
    width: 50%;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.i-like-also, .i-want-to-learn {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.i-like-also h2, .i-want-to-learn h3 {
    margin-bottom: 2rem;

    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04rem;
    text-align: center;
}

.oop-programing-skills, .backend-programing-skills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.oop-programing-skills img, .backend-programing-skills img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.82;
}

.oop-programing-skills img:hover, .backend-programing-skills img:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 1rem rgba(105, 192, 110, 0.32));
}

.article-wide-aboutme-card {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem 5rem 2rem 2rem;
    border: 0.0625rem solid rgba(243, 245, 239, 0.12);
    border-radius: 1.75rem;
    background:
        linear-gradient(145deg, rgba(116, 214, 122, 0.06), transparent 34%),
        linear-gradient(315deg, rgba(228, 180, 92, 0.06), transparent 38%),
        rgba(14, 16, 15, 0.84);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.recognitions-heading {
    max-width: 50rem;
    margin: 5rem auto 1rem;
    text-align: center;
}

.recognitions-heading h4 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.06rem;
}

.recognitions-heading p {
    margin-top: 0.35rem;
    color: #a6ada2;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.recognition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8.75rem;
    align-items: stretch;
    min-height: 8rem;
    padding-left: 2rem;
    padding-right: 1rem;
    border-bottom: 0.0625rem solid rgba(243, 245, 239, 0.12);
    transition: background 0.2s ease;
}

.recognition:hover {
    background: rgba(255, 255, 255, 0.018);
}

.recognition-no-border {
    border-bottom: 0;
}

.recognition-content {
    min-width: 0;
    padding: 1.35rem 2rem 1.35rem 0;
}

.recognition-title {
    margin: 0;
}

.recognition-title-link, .recognition-title-static {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03rem;
    text-decoration: none;
}

.recognition-title-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.28rem;
    width: 0;
    height: 0.1rem;
    background: #ffffff;
    transition: width 0.5s ease;
}

.recognition-title-link:hover::after {
    width: 100%;
}

.recognition-text {
    margin-top: 0.45rem;
    max-width: 58rem;
    color: #a6ada2;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.recognition-date {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.25rem;
    padding-left: 1.35rem;
    padding-right: 0.15rem;
    border-left: 0.0625rem solid rgba(243, 245, 239, 0.12);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
}

@media (max-width: 75rem) {
    main {
        width: calc(100% - 2rem);
    }

    .aboutme-section {
        padding: 4rem 0 6rem;
    }

    .aboutme-top-row {
        flex-direction: column;
        gap: 3rem;
    }

    .article-code-txt-card {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .article-info-aboutme {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .article-info-aboutme h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 8vw, 3.25rem);
        line-height: 1.05;
    }

    .article-info-aboutme p {
        max-width: 100%;
    }

    .aboutme-bottom-row {
        flex-direction: column;
        gap: 3rem;
    }

    .about-me-learning-info {
        width: 100%;
    }

    .aboutme-bottom-row .article-code-txt-card {
        width: 100%;
    }
}

.three-shapes-scene {
    overflow: hidden;
}

#three-shapes-scene {
    width: 100%;
    height: 100%;
}

#three-shapes-scene canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 48rem) {
        nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;

        width: calc(100% - 2rem);
        margin-top: 1.5rem;
        padding: 1.25rem 1rem;

        border-radius: 1.75rem;
        text-align: center;
    }

    .logo {
        width: 2.8rem;
        height: 2.8rem;
        margin-bottom: 0.15rem;
    }

    .logo img {
        width: 3rem;
        transform: rotate(6deg);
    }

    .nav-separator {
        display: none;
    }

    .portfolio-name {
        margin-right: 0;
        margin-bottom: 0.4rem;
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .nav-links {
        width: 100%;
        margin: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 1rem;
        line-height: 1.4;
    }

    .github-link {
        width: 2rem;
        height: 2rem;
        margin-top: 0.25rem;
    }

    .github-link img {
        width: 1.35rem;
        height: 1.35rem;
    }

    main {
        width: calc(100% - 1.5rem);
    }

    .aboutme-section {
        padding: 2.5rem 0 5rem;
    }

    .aboutme-top-row {
        flex-direction: column;
        gap: 2.5rem;
    }

    .article-code-txt-card {
        width: 100%;
        height: auto;
        min-height: 24rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1rem 1.25rem;
        font-size: 0.75rem;
        line-height: 1.55;
        -webkit-overflow-scrolling: touch;
    }

    .article-info-aboutme {
        max-width: 100%;
        margin-left: 0;
    }

    .article-info-aboutme h1 {
        font-size: clamp(2.4rem, 12vw, 3.25rem);
        line-height: 1.05;
        letter-spacing: -0.06rem;
    }

    .article-info-aboutme p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .aboutme-bottom-row {
        flex-direction: column;
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .about-me-learning-info {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 3rem;
        padding: 1.5rem 0;
    }

    .i-like-also, .i-want-to-learn {
        width: 100%;
    }

    .i-like-also h2, .i-want-to-learn h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .oop-programing-skills, .backend-programing-skills {
        gap: 1.75rem;
    }

    .oop-programing-skills img, .backend-programing-skills img {
        width: 3.6rem;
        height: 3.6rem;
    }

    .aboutme-bottom-row .article-code-txt-card {
        width: 100%;
        height: 18rem;
        min-height: 18rem;
        padding: 0;
    }

    .three-shapes-scene {
        overflow: hidden;
    }

    .recognitions-heading {
        max-width: 100%;
        margin: 4rem auto 1.25rem;
        padding: 0 0.5rem;
    }

    .recognitions-heading h4 {
        font-size: clamp(2.4rem, 12vw, 3rem);
        line-height: 1.05;
    }

    .recognitions-heading p {
        margin-top: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .article-wide-aboutme-card {
        padding: 0;
        margin-top: 1.5rem;
        border-radius: 1.5rem;
    }

    .recognition {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0 1.25rem;
    }

    .recognition-content {
        padding: 1.5rem 0 1.1rem;
    }

    .recognition-title-link, .recognition-title-static {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .recognition-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .recognition-date {
        align-items: flex-start;
        text-align: left;
        padding: 1rem 0 1.4rem;
        border-left: 0;
        border-top: 0.0625rem solid rgba(243, 245, 239, 0.12);
        font-size: 1rem;
    }
}

@media (max-width: 30rem) {
    .article-code-txt-card {
        font-size: 0.68rem;
    }

    .article-info-aboutme h1 {
        font-size: 2.35rem;
    }

    .article-info-aboutme p {
        font-size: 0.95rem;
    }

    .aboutme-bottom-row .article-code-txt-card {
        height: 16rem;
        min-height: 16rem;
    }

    .recognition {
        padding: 0 1rem;
    }

    .recognition-title-link, .recognition-title-static {
        font-size: 1.12rem;
    }

    .recognition-text {
        font-size: 0.9rem;
    }
}