@font-face {
    font-family: "Chlora";
    src: url("../fonts/Chlora.ttf") format("truetype");
    font-weight: 400;
    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 0%),
        radial-gradient(circle at 80% 10%, rgba(97, 217, 232, 0.055), transparent 50%),
        radial-gradient(circle at 50% 60%, rgba(116, 214, 122, 0.055), transparent 100%),
        linear-gradient(180deg, #080908 10%, #0b0f0c 5%, #080908 10%);
    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.2) 0.0625rem, transparent 0.0625rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 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;
}

.hero-section {
    min-height: calc(100vh - 8.75rem);
    padding: 6rem 0 4rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-section-txt {
    max-width: 43rem;
    flex: 1;
}

.degree {
    margin-bottom: 1rem;
    color: #74d67a;
    font-family: system-ui, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

h1 {
    max-width: 42.5rem;
    color: #ffffff;
    font-size: 5.6rem;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.18rem;
}

.hero-section-additional-txt {
    max-width: 38rem;
    margin-top: 1.6rem;
    color: #a6ada2;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.65;
}


.hero-section-code {
    position: relative;
    padding: 3.25rem 1.25rem 1.25rem;
    min-height: 32.5rem;
    width: 100%;
    flex: 1;
    overflow: hidden;
    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 35%),
        linear-gradient(315deg, rgba(228, 180, 92, 0.06), transparent 40%),
        rgba(14, 16, 15, 0.84);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.36);
}

.code-section-dots {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    gap: 0.5rem;
}

.code-section-dots span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: rgba(166, 173, 162, 0.45);
}

.hero-code-content {
    color: #ffffff;
    font-family: "DraftingMono-Bold", monospace;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.65;
    white-space: nowrap;
}

.current-stack-section {
    position: relative;
    padding: 1rem 0 7rem;
    text-align: center;
    overflow: hidden;
}

.current-stack-section h2 {
    margin-bottom: 2.8rem;
    color: #ffffff;
    font-family: "Chlora", system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04rem;
}

.web-tech-stack-slider {
    position: relative;
    width: 60%;
    height: 6rem;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

.web-tech-stack-slider img {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.8;
    transform: translateY(-50%);
    animation: tech-icon-slide 21s linear infinite;
}

.web-tech-stack-slider img:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    filter: drop-shadow(0 0 1rem rgba(105, 192, 110, 0.32));
}

.web-tech-stack-slider img:nth-child(1) {
    animation-delay: 0s;
}

.web-tech-stack-slider img:nth-child(2) {
    animation-delay: -3s;
}

.web-tech-stack-slider img:nth-child(3) {
    animation-delay: -6s;
}

.web-tech-stack-slider img:nth-child(4) {
    animation-delay: -9s;
}

.web-tech-stack-slider img:nth-child(5) {
    animation-delay: -12s;
}

.web-tech-stack-slider img:nth-child(6) {
    animation-delay: -15s;
}

.web-tech-stack-slider img:nth-child(7) {
    animation-delay: -18s;
}

@keyframes tech-icon-slide {
    from {
        left: 100%;
    }

    to {
        left: -5.4rem;
    }
}

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

@media (max-width: 62rem) {
    .hero-section {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;

        min-height: auto;
        padding: 2.5rem 0 4rem;
    }

    .hero-section-txt {
        max-width: 100%;
        width: 100%;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(3rem, 14vw, 5.6rem);
        line-height: 1;
        letter-spacing: -0.1rem;
    }

    .hero-section-additional-txt {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-section-code {
        width: 100%;
        min-height: 28rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .hero-code-content {
        min-width: 42rem;
        font-size: 0.82rem;
        line-height: 1.65;
    }

     .current-stack-section {
        padding: 3rem 0 5rem;
    }

    .current-stack-section h2 {
        font-size: clamp(2.4rem, 11vw, 3rem);
        line-height: 1.08;
        margin-bottom: 2.5rem;
    }

    .web-tech-stack-slider {
        width: 100%;
        max-width: 100%;
        height: 6.5rem;
    }

    .web-tech-stack-slider img {
        width: 3.4rem;
        height: 3.4rem;
    }
}

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

    .hero-section {
        padding-top: 2rem;
    }

    h1 {
        font-size: clamp(2.5rem, 15vw, 3.6rem);
        letter-spacing: -0.07rem;
    }

    .hero-section-code {
        min-height: 25rem;
        padding: 3rem 1rem 1rem;
    }

    .hero-code-content {
        min-width: 40rem;
        font-size: 0.74rem;
    }

    .current-stack-section h2 {
        font-size: clamp(2.1rem, 12vw, 2.7rem);
    }

    .web-tech-stack-slider {
        width: 100%;
        height: 6rem;
    }

    .web-tech-stack-slider img {
        width: 3rem;
        height: 3rem;
    }
}