/*=============== FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Syne:wght@600;700;800&display=swap');

/*=============== VARIABLES ===============*/
:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --surface: #111111;
    --border: #2a2a2a;
    --border-strong: #ffffff;
    --text: #c8c8c8;
    --text-muted: #7a7a7a;
    --title: #ffffff;
    --accent: #ffffff;
    --scanline: rgba(255, 255, 255, 0.03);

    --font-display: 'Syne', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --biggest-font-size: clamp(2.75rem, 8vw, 5.5rem);
    --h1-font-size: 2rem;
    --h2-font-size: 1.35rem;
    --h3-font-size: 1.05rem;
    --normal-font-size: 0.9375rem;
    --small-font-size: 0.8125rem;
    --smaller-font-size: 0.75rem;

    --font-medium: 500;
    --font-bold: 700;

    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    --z-fixed: 10;
    --z-modal: 100;
    --nav-w: 100px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media screen and (max-width: 1024px) {
    :root {
        --h1-font-size: 1.65rem;
        --h2-font-size: 1.2rem;
        --h3-font-size: 1rem;
        --normal-font-size: 0.875rem;
        --small-font-size: 0.75rem;
        --smaller-font-size: 0.6875rem;
    }
}

/*=============== BASE ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input {
    font-family: var(--font-mono);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background-image:
        linear-gradient(var(--scanline) 1px, transparent 1px);
    background-size: 100% 3px;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

h1, h2, h3 {
    color: var(--title);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input {
    border: none;
    outline: none;
    cursor: pointer;
}

::selection {
    background: var(--title);
    color: var(--bg);
}

/*=============== LAYOUT ===============*/
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.grid {
    display: grid;
}

.section {
    padding: 6rem 0 3rem;
}

.section__title {
    font-family: var(--font-display);
    text-align: left;
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-3);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section__title::before {
    content: attr(data-heading);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/*=============== SIDEBAR ===============*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-w);
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg);
    border-right: 1px solid var(--border);
    transition: transform 0.45s var(--ease);
    z-index: var(--z-fixed);
}

.nav {
    position: relative;
    width: 100%;
    height: 100%;
}

.nav__logo {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.8rem;
    width: 40px;
    height: 40px;
    margin: auto;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    display: grid;
    place-items: center;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--title);
    font-weight: 800;
    line-height: 1;
}

.nav__menu {
    position: absolute;
    left: 0;
    top: 0;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
    width: 100vh;
    width: 100dvh;
    height: var(--nav-w);
}

.menu {
    display: flex;
    height: 100%;
}

.nav__list {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin: 0 auto;
    height: 100%;
}

.nav__link {
    float: right;
    height: 100%;
    line-height: var(--nav-w);
    padding: 0 1rem;
    color: var(--text-muted);
    font-weight: var(--font-medium);
    font-size: var(--small-font-size);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s var(--ease);
}

.btn__share {
    position: absolute;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    text-align: center;
}

.social__share {
    font-size: 1.5rem;
}

.nav__toggle {
    height: 32px;
    width: 36px;
    cursor: pointer;
    position: fixed;
    right: 1.5rem;
    top: 2rem;
    font-size: 1.2rem;
    border: 1px solid var(--border-strong);
    background-color: var(--bg);
    color: var(--title);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-fixed);
}

.lang-switch {
    position: fixed;
    top: 2rem;
    right: 1.5rem;
    z-index: calc(var(--z-fixed) + 1);
    display: inline-flex;
    border: 1px solid var(--border);
    background: var(--bg);
}

.lang-switch__btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--smaller-font-size);
    letter-spacing: 0.12em;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.lang-switch__btn + .lang-switch__btn {
    border-left: 1px solid var(--border);
}

.lang-switch__btn.is-active,
.lang-switch__btn:hover {
    color: var(--title);
    background: rgba(255, 255, 255, 0.04);
}

.nav__close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: pointer;
    display: none;
    color: var(--title);
}

.nav__link.active-link,
.nav__link:hover {
    color: var(--title);
}

.nav__link.active-link::after,
.nav__link:hover::after {
    position: absolute;
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--title);
    bottom: 1.8rem;
    left: 0;
    right: 0;
    margin: auto;
}

/*=============== MAIN ===============*/
.main {
    margin-left: var(--nav-w);
    position: relative;
    z-index: 1;
}

/*===== Home =====*/
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 75% 45%, rgba(255, 255, 255, 0.06), transparent 60%),
        var(--bg);
}

.home__container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 3rem;
    padding: 5rem 0 6rem;
}

.home__social {
    position: absolute;
    top: 2rem;
    left: 0;
    display: flex;
    align-items: center;
    column-gap: 2.5rem;
    z-index: 2;
}

.home__social-follow {
    font-weight: var(--font-medium);
    font-size: var(--smaller-font-size);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
}

.home__social-follow::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1px;
    background-color: var(--border);
    right: -2rem;
    top: 50%;
}

.home__social-links {
    display: inline-flex;
    column-gap: 0.85rem;
}

.home__social-link {
    font-size: 1.1rem;
    color: var(--text);
    border: 1px solid var(--border);
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.home__social-link:hover {
    color: var(--title);
    border-color: var(--title);
    transform: translateY(-2px);
}

.home__visual {
    justify-self: end;
    position: relative;
    width: min(380px, 100%);
    aspect-ratio: 1;
    opacity: 0;
    animation: fadeRise 0.9s var(--ease) 0.15s forwards;
}

.home__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--title);
    box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(255, 255, 255, 0.35);
    filter: contrast(1.05);
}

.home__ring {
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spinSlow 28s linear infinite;
    pointer-events: none;
}

.home__ring::before {
    content: 'M455YN // PROFILE';
    position: absolute;
    top: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0 0.5rem;
    white-space: nowrap;
}

.home__data {
    opacity: 0;
    animation: fadeRise 0.9s var(--ease) 0.05s forwards;
}

.home__brand {
    font-family: var(--font-display);
    font-size: var(--biggest-font-size);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--title);
    margin-bottom: 1.25rem;
    position: relative;
}

.home__brand::after {
    content: '_';
    display: inline-block;
    margin-left: 0.05em;
    animation: blink 1s steps(1) infinite;
    color: var(--title);
}

.home__title {
    font-family: var(--font-mono);
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    color: var(--title);
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.home__subtitle {
    font-size: var(--small-font-size);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

.home__description {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--text);
    line-height: 1.75;
    font-size: var(--small-font-size);
    letter-spacing: 0.02em;
}

.home__quote {
    max-width: 34rem;
    margin: 0 0 2rem;
    padding: 0.85rem 0 0.85rem 1rem;
    border-left: 1px solid var(--border-strong);
}

.home__quote p {
    color: var(--title);
    font-size: var(--small-font-size);
    line-height: 1.55;
    margin-bottom: 0.4rem;
}

.home__quote cite {
    display: block;
    font-style: normal;
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.my__info {
    display: flex;
    column-gap: 1.5rem;
    position: absolute;
    left: 0;
    bottom: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    width: min(100%, 620px);
}

.info__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.info__title,
.info__subtitle {
    font-size: var(--smaller-font-size);
}

.info__title {
    font-weight: var(--font-medium);
    color: var(--title);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info__subtitle {
    color: var(--text-muted);
}

.info__icon {
    font-size: 1.25rem;
    color: var(--title);
}

/*===== Buttons =====*/
.button {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    background-color: var(--title);
    color: var(--bg);
    padding: 0.8rem 1.35rem;
    font-weight: var(--font-medium);
    font-size: var(--small-font-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    border: 1px solid var(--title);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.button:hover {
    background: transparent;
    color: var(--title);
}

.button--ghost {
    background: transparent;
    color: var(--title);
}

.button--ghost:hover {
    background: var(--title);
    color: var(--bg);
}

.button__icon {
    font-size: 1.1rem;
}

/*===== About =====*/
.about__container {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 3rem;
    align-items: center;
}

.about__img {
    width: min(380px, 100%);
    justify-self: center;
    border: 1px solid var(--border);
    filter: grayscale(1) contrast(1.1);
    opacity: 0.92;
}

.about__data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.about__eyebrow {
    font-size: var(--smaller-font-size);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.about__heading {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.about__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.about__stack li {
    border: 1px solid var(--border);
    padding: 0.35rem 0.7rem;
    font-size: var(--smaller-font-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--title);
}

.about__description {
    margin-bottom: var(--mb-2);
    color: var(--text);
    max-width: 36rem;
}

.about__info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 28rem;
    column-gap: 0;
    row-gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.about__box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding: 0.95rem 1.05rem;
    background-color: transparent;
    border: none;
    border-right: 1px solid var(--border);
    transition: background 0.3s var(--ease);
}

.about__box:last-child {
    border-right: none;
}

.about__box:hover {
    background: rgba(255, 255, 255, 0.03);
}

.about__icon {
    font-size: 1.2rem;
    color: var(--title);
    margin-bottom: 0;
    flex-shrink: 0;
}

.about__title {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
    font-weight: var(--font-medium);
}

.about__subtitle {
    font-size: var(--small-font-size);
    color: var(--title);
    font-weight: var(--font-medium);
}

/*===== Qualification =====*/
.qualification__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.qualification__title {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-2);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline__item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--mb-2);
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__item::before {
    content: '';
    width: 1px;
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    height: calc(100% + 1.5rem);
    background-color: var(--border);
}

.timeline__item:last-child::before {
    height: 0;
}

.circle__dot {
    position: absolute;
    left: 0;
    top: 0.35rem;
    height: 0.7rem;
    width: 0.7rem;
    border: 1px solid var(--title);
    background-color: var(--bg);
    transition: background 0.3s var(--ease);
}

.timeline__item:hover .circle__dot {
    background-color: var(--title);
}

.timeline__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-25);
}

.timeline__text {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--text);
}

.timeline__date {
    display: flex;
    align-items: center;
    column-gap: 0.4rem;
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/*===== Skills =====*/
.skills__container {
    grid-template-columns: minmax(0, 340px) minmax(0, 420px);
    column-gap: 3rem;
    justify-content: center;
}

.skills__header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    transition: border-color 0.3s var(--ease);
}

.skills__header:hover,
.skills__header.skills__active {
    border-color: var(--title);
}

.skills__icon,
.skills__arrow {
    font-size: 1.35rem;
    color: var(--title);
}

.skills__icon {
    margin-right: var(--mb-0-75);
}

.skills__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.skills__subtitle {
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
}

.skills__arrow {
    margin-left: auto;
    transition: transform 0.3s var(--ease);
}

.skills__active .skills__arrow {
    transform: rotate(-90deg);
}

.skills [data-content] {
    display: none;
}

.skills__active[data-content] {
    display: block;
}

.skills__list {
    row-gap: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mb-0-5);
}

.skills__name {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    letter-spacing: 0.04em;
}

.skills__number {
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
}

.skills__bar,
.skills__percentage {
    height: 2px;
}

.skills__bar {
    background-color: var(--border);
}

.skills__percentage {
    display: block;
    background-color: var(--title);
}

/*===== Work =====*/
.work__container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.work__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.work__item {
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.45rem 0.85rem;
    font-weight: var(--font-medium);
    font-size: var(--smaller-font-size);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.work__item:hover {
    color: var(--title);
    border-color: var(--title);
}

.work__card {
    background-color: transparent;
    padding: 0;
    border: 1px solid var(--border);
    overflow: hidden;
    width: calc((100% - 2.5rem) / 3);
    transition: border-color 0.35s var(--ease);
}

.work__card:hover {
    border-color: var(--title);
}

.portfolio__item-details {
    display: none;
}

.work__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
    margin-bottom: 0;
}

.work__card:hover .work__img {
    filter: grayscale(0.35) contrast(1.05);
    transform: scale(1.03);
}

.work__meta {
    padding: 1rem 1.1rem 1.15rem;
    border-top: 1px solid var(--border);
}

.work__title {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.work__button {
    color: var(--text-muted);
    font-size: var(--smaller-font-size);
    display: inline-flex;
    align-items: center;
    column-gap: 0.25rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}

.work__button:hover {
    color: var(--title);
}

.work__button-icon {
    font-size: 0.95rem;
    transition: transform 0.3s var(--ease);
}

.work__button:hover .work__button-icon {
    transform: translateX(0.25rem);
}

.active-work {
    background-color: var(--title);
    color: var(--bg);
    border-color: var(--title);
}

/* Portfolio Popup */
.portfolio__popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s var(--ease);
}

.portfolio__popup.open {
    opacity: 1;
    visibility: visible;
}

.portfolio__popup-inner {
    background-color: var(--bg);
    width: min(900px, 100%);
    border: 1px solid var(--border-strong);
    padding: 2rem;
    position: relative;
}

.portfolio__popup-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 2rem;
}

.portfolio__popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.35rem;
    color: var(--title);
    cursor: pointer;
}

.portfolio__popup-img {
    border: 1px solid var(--border);
    filter: grayscale(0.4);
}

.portfolio__popup-subtitle {
    font-size: var(--smaller-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.details__title {
    font-family: var(--font-display);
    font-size: var(--h3-font-size);
    font-weight: 700;
    margin-bottom: var(--mb-1);
    text-transform: uppercase;
}

.details__description {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-2);
}

.details__info li {
    margin-bottom: var(--mb-0-5);
    font-size: var(--small-font-size);
    color: var(--text-muted);
}

.details__info li:last-child {
    margin-bottom: 0;
}

.details__info li span,
.details__info li a {
    color: var(--title);
}

.details__info li a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.active-modal {
    opacity: 1;
    visibility: visible;
}

/*=============== FOOTER ===============*/
.footer {
    padding-top: 2rem;
}

.footer__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    align-items: start;
}

.footer__bg {
    background-color: transparent;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
}

.footer__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.footer__subtitle {
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__links {
    display: flex;
    justify-self: center;
    column-gap: 1.5rem;
}

.footer__link {
    font-size: var(--smaller-font-size);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.footer__link:hover {
    color: var(--title);
}

.footer__socials {
    justify-self: flex-end;
}

.footer__social {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--text-muted);
    transition: color 0.3s var(--ease);
}

.footer__social:hover {
    color: var(--title);
}

.footer__copy {
    font-size: var(--smaller-font-size);
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.footer__title,
.footer__social {
    color: var(--title);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background: var(--bg);
    border: 1px solid var(--title);
    display: inline-flex;
    padding: 0.35rem;
    z-index: 10000;
    opacity: 0.9;
    transition: 0.4s var(--ease);
}

.scrollup:hover {
    background: var(--title);
}

.scrollup:hover .scrollup__icon {
    color: var(--bg);
}

.scrollup__icon {
    font-size: 1.25rem;
    color: var(--title);
}

.show-scroll {
    bottom: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: 0.45rem;
    background-color: var(--bg);
}

::-webkit-scrollbar-thumb {
    background-color: #333;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/*=============== MOTION ===============*/
@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .home__data,
    .home__visual,
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 1408px) {
    .container {
        margin-left: var(--mb-2-5);
        margin-right: var(--mb-2-5);
    }
}

@media screen and (max-width: 1216px) {
    .home__container {
        column-gap: 2rem;
    }

    .work__card {
        width: calc((100% - 1.25rem) / 2);
    }
}

@media screen and (max-width: 1024px) {
    .container {
        margin-left: var(--mb-1-5);
        margin-right: var(--mb-1-5);
    }

    .sidebar {
        width: 100%;
        z-index: 999;
        transform: translateX(-100%);
    }

    .show-sidebar {
        transform: translateX(0);
    }

    .nav__logo,
    .btn__share {
        display: none;
    }

    .nav__menu {
        height: 100%;
        width: 100%;
        transform: rotate(0deg) translateX(0);
        display: flex;
        justify-content: center;
        background: var(--bg);
    }

    .nav__list {
        flex-direction: column;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    .nav__link {
        padding: 1rem 0;
        line-height: 1.5;
        float: none;
    }

    .nav__link.active-link::after,
    .nav__link:hover::after {
        bottom: 0;
    }

    .nav__close {
        display: block;
    }

    .nav__toggle {
        display: flex;
    }

    .lang-switch {
        right: 4.75rem;
        top: 2rem;
    }

    .main {
        margin-left: 0;
    }

    .home__container {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
        padding-top: 6rem;
        min-height: auto;
    }

    .home__visual {
        order: -1;
        justify-self: center;
        width: min(280px, 70vw);
    }

    .home__data {
        text-align: center;
    }

    .home__actions {
        justify-content: center;
    }

    .home__description {
        margin-left: auto;
        margin-right: auto;
    }

    .about__container {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .about__img {
        width: min(320px, 100%);
    }

    .about__data {
        text-align: center;
        align-items: center;
    }

    .about__info {
        justify-content: center;
    }

    .about__stack {
        justify-content: center;
    }

    .about__description {
        margin-left: auto;
        margin-right: auto;
    }

    .qualification__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .skills__container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .portfolio__popup-inner {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .section__title {
        text-align: left;
    }

    .qualification__container,
    .skills__container {
        grid-template-columns: 1fr;
    }

    .work__container {
        max-width: 420px;
        margin: 0 auto;
        justify-content: center;
    }

    .work__card {
        width: 100%;
    }

    .footer__container {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    .footer__links,
    .footer__socials {
        justify-self: start;
    }

    .portfolio__popup-content {
        grid-template-columns: 1fr;
        row-gap: 1.25rem;
    }

    .my__info {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .nav__toggle {
        right: 1rem;
        left: auto;
    }

    .home__social {
        position: static;
        justify-content: center;
        margin-bottom: 0.5rem;
        column-gap: 1rem;
    }

    .home__social-follow::after {
        display: none;
    }

    .home__brand {
        font-size: clamp(2.4rem, 14vw, 3.4rem);
    }

    .about__info {
        grid-template-columns: 1fr 1fr;
    }

    .work__filters {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 350px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .home__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        justify-content: center;
    }
}

/*=============== CAREER PAGE ===============*/
.page-hero {
    padding-top: 5.5rem;
    padding-bottom: 1rem;
}

.page-hero__label {
    font-size: var(--smaller-font-size);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.page-hero__text {
    max-width: 36rem;
    color: var(--text);
    font-size: var(--small-font-size);
}

.stack__container {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
}

.stack__group {
    border: 1px solid var(--border);
    padding: 1.35rem 1.4rem 1.45rem;
    transition: border-color 0.3s var(--ease);
}

.stack__group:hover {
    border-color: var(--title);
}

.stack__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.stack__code {
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
    letter-spacing: 0.12em;
    min-width: 1.5rem;
    padding-top: 0.2rem;
}

.stack__title {
    font-family: var(--font-display);
    font-size: var(--h3-font-size);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stack__meta {
    font-size: var(--smaller-font-size);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.stack__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack__tags li {
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    font-size: var(--smaller-font-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--title);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.stack__tags li:hover {
    border-color: var(--title);
    background: var(--title);
    color: var(--bg);
}

.career-cta {
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.career-cta__label {
    font-size: var(--smaller-font-size);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.career-cta__title {
    font-family: var(--font-display);
    font-size: var(--h2-font-size);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.about__data .home__actions {
    margin-top: 0.25rem;
}

@media screen and (max-width: 1024px) {
    .about__data .home__actions {
        justify-content: center;
    }
}
