/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --background: #0d0d15;
    --background-soft: #13131e;
    --background-card: #181824;
    --background-card-hover: #1d1d2b;
    --text: #f7f4ff;
    --text-muted: #aaa6b8;
    --text-dark: #161019;
    --accent: #ff65c3;
    --accent-light: #ff9bd8;
    --accent-purple: #8c72ff;
    --border: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 101, 195, 0.42);
    --shadow-small: 0 12px 35px rgba(0, 0, 0, 0.22);
    --shadow-large: 0 30px 80px rgba(0, 0, 0, 0.35);
    --content-width: 1180px;
    --header-height: 76px;
    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 26px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(140, 114, 255, 0.15),
            transparent 28rem
        ),
        radial-gradient(
            circle at 12% 35%,
            rgba(255, 101, 195, 0.09),
            transparent 30rem
        ),
        var(--background);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button {
    color: inherit;
    font: inherit;
}

ul {
    list-style: none;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   GENERAL UTILITIES
========================================================= */

.section {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    padding: 120px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: start;
    gap: 35px;
    margin-bottom: 52px;
}

.section-heading > div {
    padding-top: 8px;
}

.section-number {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.section-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 850px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-description {
    max-width: 720px;
    margin-top: -20px;
    margin-bottom: 46px;
    margin-left: 215px;
    color: var(--text-muted);
    font-size: 1.02rem;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: rgba(13, 13, 21, 0.78);
    backdrop-filter: blur(18px);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.header-scrolled {
    border-bottom-color: rgba(255, 101, 195, 0.17);
    background-color: rgba(13, 13, 21, 0.95);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.26);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 40px), var(--content-width));
    height: var(--header-height);
    margin: 0 auto;
}

.logo {
    position: relative;
    z-index: 1002;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.logo:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation a {
    position: relative;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.navigation a::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    content: "";
    transition: width 0.22s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--text);
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-button {
    position: relative;
    z-index: 1002;
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.menu-button span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 10px;
    background-color: var(--text);
    transition:
        top 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-button span:nth-child(1) {
    top: 12px;
}

.menu-button span:nth-child(2) {
    top: 19px;
}

.menu-button span:nth-child(3) {
    top: 26px;
}

.menu-button.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 130px 24px 90px;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero::after {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background-color: rgba(255, 101, 195, 0.08);
    content: "";
    filter: blur(110px);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    margin: 0 10px;
    color: var(--accent-purple);
}

.hero-title {
    margin-top: 22px;
    font-size: clamp(3.7rem, 10vw, 8rem);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.hero-title span {
    display: block;
    color: var(--accent);
}

.hero-description {
    max-width: 720px;
    margin: 32px auto 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.26rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 27px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-small);
    font-size: 0.92rem;
    font-weight: 800;
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: var(--text-dark);
    background-color: var(--accent);
    box-shadow: 0 12px 35px rgba(255, 101, 195, 0.2);
}

.button-primary:hover {
    background-color: var(--accent-light);
    box-shadow: 0 16px 42px rgba(255, 101, 195, 0.3);
}

.button-secondary {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
    color: var(--accent-light);
    background-color: rgba(255, 101, 195, 0.08);
}

.button-text {
    border-color: transparent;
    color: var(--text-muted);
    background-color: transparent;
}

.button-text:hover {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.03);
}

.button-text span {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.button-text:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 50%;
    width: 27px;
    height: 44px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    transform: translateX(-50%);
}

.scroll-indicator > span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 10px;
    background-color: var(--accent);
    animation: scroll-dot 1.8s infinite;
    transform: translateX(-50%);
}

@keyframes scroll-dot {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}


/* =========================================================
   DECORATIVE PIXELS
========================================================= */

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pixel {
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 101, 195, 0.8);
    animation: float-pixel 5s ease-in-out infinite;
}

.pixel-one {
    top: 24%;
    left: 14%;
}

.pixel-two {
    top: 18%;
    right: 18%;
    animation-delay: 1s;
}

.pixel-three {
    right: 13%;
    bottom: 27%;
    animation-delay: 2s;
}

.pixel-four {
    bottom: 23%;
    left: 20%;
    animation-delay: 1.4s;
}

.pixel-five {
    top: 44%;
    right: 30%;
    width: 5px;
    height: 5px;
    animation-delay: 0.5s;
}

@keyframes float-pixel {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: translateY(-18px) rotate(90deg);
    }
}


/* =========================================================
   MOUSE GLOW
========================================================= */

.mouse-glow {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background-color: rgba(255, 101, 195, 0.07);
    filter: blur(80px);
    pointer-events: none;
    transform: translate(-50%, -50%);
}


/* =========================================================
   FEATURED PROJECT
========================================================= */

.featured-section {
    padding-top: 140px;
}

.featured-project {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background-color: var(--background-card);
    box-shadow: var(--shadow-large);
}

.featured-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding: 30px;
    overflow: hidden;
    background: #11111a;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.featured-image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.38),
            transparent 55%
        );
    content: "";
    pointer-events: none;
}

.featured-image:hover img {
    transform: scale(1.04);
}

.featured-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(38px, 5vw, 68px);
}

.project-role {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.featured-content h3 {
    margin: 12px 0 20px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.featured-content > p:not(.project-role) {
    color: var(--text-muted);
}

.featured-content > p + p {
    margin-top: 14px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 30px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.project-details div {
    display: flex;
    flex-direction: column;
}

.project-details span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-details strong {
    margin-top: 3px;
    font-size: 0.96rem;
}


/* =========================================================
   PROJECT BADGES AND IMAGE ACTIONS
========================================================= */

.project-badge {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.65);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.image-action {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--text);
    background-color: rgba(0, 0, 0, 0.62);
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(7px);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.featured-image:hover .image-action,
.project-image:hover .image-action {
    background-color: rgba(255, 101, 195, 0.82);
    transform: translateY(-3px);
}


/* =========================================================
   TAGS AND PROJECT LINKS
========================================================= */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
}

.project-tags li {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 800;
}

.project-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.project-link:hover {
    color: var(--accent-light);
}

.project-link:hover span {
    transform: translate(3px, -3px);
}


/* =========================================================
   ABOUT
========================================================= */

.about-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    align-items: center;
    gap: 80px;
}

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

.about-text p + p {
    margin-top: 18px;
}

.about-introduction {
    color: var(--text);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.about-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.profile-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background-color: var(--background-card);
    box-shadow: var(--shadow-large);
    transform: rotate(2deg);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.profile-card:hover {
    border-color: var(--border-accent);
    transform: rotate(0deg) translateY(-5px);
}

.profile-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 13px;
    background-color: #11111a;
}

.profile-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.04);
}

.profile-card figcaption {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

.profile-card figcaption strong {
    font-size: 1.17rem;
}

.profile-card figcaption span {
    color: var(--text-muted);
    font-size: 0.88rem;
}


/* =========================================================
   INKTOBER 2026
========================================================= */

.inktober-section {
    position: relative;
}

.inktober-section::before {
    position: absolute;
    top: 160px;
    left: -180px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background-color: rgba(255, 101, 195, 0.06);
    content: "";
    filter: blur(100px);
    pointer-events: none;
}

.inktober-intro {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    margin-bottom: 65px;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(
            145deg,
            rgba(255, 101, 195, 0.045),
            rgba(140, 114, 255, 0.04)
        ),
        var(--background-card);
    box-shadow: var(--shadow-small);
}

.inktober-intro-text {
    color: var(--text-muted);
    font-size: 1rem;
}

.inktober-intro-text p + p {
    margin-top: 18px;
}

.inktober-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.inktober-fact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background-color: rgba(255, 255, 255, 0.025);
}

.inktober-fact span {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.inktober-fact strong {
    color: var(--text);
    font-size: 0.94rem;
}

.inktober-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.inktober-day {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background-color: var(--background-card);
    box-shadow: var(--shadow-small);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.inktober-day:hover {
    border-color: var(--border-accent);
    background-color: var(--background-card-hover);
    box-shadow: var(--shadow-large);
    transform: translateY(-6px);
}

.inktober-day-header {
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--border);
}

.inktober-day-header span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.inktober-day-header h3 {
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.inktober-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--border);
}

.inktober-comparison figure {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--background-card);
}

.inktober-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 14px;
    background-color: #11111a;
}

.inktober-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.inktober-day:hover .inktober-image img {
    transform: scale(1.025);
}

.pixel-image {
    padding: 24px;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.025)
        ),
        #11111a;
}

.pixel-image img {
    object-fit: contain;
    image-rendering: pixelated;
}

.inktober-comparison figcaption {
    padding: 12px 15px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    background-color: var(--background-card);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.inktober-day:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.inktober-day:last-child:nth-child(odd) .inktober-comparison {
    max-width: 590px;
    margin: 0 auto;
}

.inktober-day:last-child:nth-child(odd) .inktober-day-header {
    text-align: center;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background-color: var(--background-card);
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.project-card:hover {
    border-color: var(--border-accent);
    background-color: var(--background-card-hover);
    box-shadow: var(--shadow-large);
    transform: translateY(-7px);
}

.project-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background-color: #11111a;
}

.project-card:last-child .project-image {
    min-height: 430px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-image::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.38),
            transparent 58%
        );
    content: "";
    pointer-events: none;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    height: 100%;
    padding: 32px;
}

.project-card:last-child .project-content {
    justify-content: center;
    padding: 48px;
}

.project-content h3 {
    margin: 8px 0 15px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.project-content > p:not(.project-role) {
    color: var(--text-muted);
}

.project-content > p + p {
    margin-top: 12px;
}

.project-content .project-link {
    margin-top: auto;
}

/* =========================================================
   BACHELOR THESIS
========================================================= */

#thesis {
    position: relative;
}

#thesis::before {
    position: absolute;
    top: 150px;
    right: -190px;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background-color: rgba(140, 114, 255, 0.07);

    content: "";

    filter: blur(110px);

    pointer-events: none;
}

#thesis .resume-column {
    position: relative;
    overflow: hidden;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#thesis .resume-column:hover {
    border-color: rgba(255, 101, 195, 0.45);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.3);

    transform: translateY(-5px);
}

#thesis .resume-column::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-purple)
        );

    content: "";
}

#thesis .resume-column > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

#thesis .resume-column > h3::before {
    display: inline-block;

    width: 10px;
    height: 10px;

    border-radius: 2px;

    background-color: var(--accent);

    box-shadow:
        0 0 12px rgba(255, 101, 195, 0.45);

    content: "";
}

#thesis .resume-entry {
    border-left-color: rgba(140, 114, 255, 0.32);
}

#thesis .resume-entry::before {
    background-color: var(--accent-purple);
}

#thesis .resume-date {
    color: var(--accent-light);
}

#thesis .resume-place {
    color: var(--accent-light);
}

#thesis .resume-entry p:not(.resume-place) {
    color: var(--text-muted);
}

#thesis .resume-entry h4 {
    color: var(--text);

    font-size: 1.22rem;
}

#thesis .resume-entry p {
    max-width: 540px;
}


/* =========================================================
   RESUME
========================================================= */

.resume-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.resume-column {
    padding: 38px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background-color: var(--background-card);

    box-shadow: var(--shadow-small);
}

.resume-column > h3 {
    margin-bottom: 32px;

    color: var(--accent);

    font-size: 1.4rem;
}

.resume-entry {
    position: relative;

    padding-bottom: 38px;
    padding-left: 27px;

    border-left: 2px solid rgba(255, 101, 195, 0.22);
}

.resume-entry:last-child {
    padding-bottom: 0;
}

.resume-entry::before {
    position: absolute;
    top: 7px;
    left: -7px;

    width: 12px;
    height: 12px;

    border: 3px solid var(--background-card);
    border-radius: 50%;

    background-color: var(--accent);

    content: "";
}

.resume-date {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--accent-light);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.resume-entry h4 {
    margin-bottom: 3px;

    font-size: 1.14rem;
    line-height: 1.35;
}

.resume-place {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 0.87rem;
    font-weight: 700;
}

.resume-entry p:not(.resume-place) {
    color: var(--text-muted);

    font-size: 0.94rem;
}

.resume-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;

    margin-top: 40px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    padding: 31px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background-color: rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.skill-card:hover {
    border-color: var(--border-accent);

    background-color: rgba(255, 101, 195, 0.035);

    transform: translateY(-5px);
}

.skill-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    margin-bottom: 20px;

    border: 1px solid rgba(255, 101, 195, 0.35);
    border-radius: var(--radius-small);

    color: var(--accent);

    background-color: rgba(255, 101, 195, 0.08);

    font-size: 0.75rem;
    font-weight: 800;
}

.skill-card h3 {
    margin-bottom: 9px;

    font-size: 1.22rem;
}

.skill-card p {
    color: var(--text-muted);
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 42px;
}

.tool-list span {
    padding: 10px 16px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted);

    background-color: var(--background-card);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.tool-list span:hover {
    border-color: var(--border-accent);

    color: var(--text);

    transform: translateY(-2px);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-box {
    padding: clamp(42px, 8vw, 90px);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(255, 101, 195, 0.13),
            rgba(140, 114, 255, 0.09)
        ),
        var(--background-card);

    box-shadow: var(--shadow-large);

    text-align: center;
}

.contact-box .section-number,
.contact-box .section-label {
    display: block;
}

.contact-box h2 {
    max-width: 830px;

    margin: 14px auto 22px;

    font-size: clamp(2.6rem, 6.5vw, 5.1rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.contact-box > p:not(.section-number):not(.section-label) {
    max-width: 640px;

    margin: 0 auto;

    color: var(--text-muted);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;

    margin-top: 36px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;

    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;

    padding: 38px 0 42px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 0.85rem;
}

.footer-logo {
    color: var(--accent);

    font-size: 1.18rem;
    font-weight: 900;
}

.footer > div:first-child p {
    margin-top: 3px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    grid-column: 1 / -1;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 0.78rem;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    .section-heading {
        grid-template-columns: 140px 1fr;
    }

    .section-description {
        margin-left: 175px;
    }

    .featured-project {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 500px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        width: min(100%, 470px);
        margin: 0 auto;
    }


    /* Inktober */

    .inktober-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }


    /* Projects */

    .project-card:last-child {
        display: flex;
        grid-column: auto;
    }

    .project-card:last-child .project-image {
        min-height: 310px;
    }

    .project-card:last-child .project-content {
        padding: 32px;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 780px) {

    html {
        scroll-padding-top: 72px;
    }

    .header-inner {
        height: 72px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: fixed;
        z-index: 1001;

        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        gap: 24px;

        padding: 90px 24px 40px;

        background-color: rgba(13, 13, 21, 0.98);

        opacity: 0;

        pointer-events: none;

        transform: translateY(-18px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .navigation.open {
        opacity: 1;

        pointer-events: auto;

        transform: translateY(0);
    }

    .navigation a {
        font-size: 1.45rem;
    }

    .navigation a::after {
        bottom: -5px;
    }

    .hero {
        min-height: 100svh;
    }

    .section {
        width: min(
            calc(100% - 28px),
            var(--content-width)
        );

        padding: 90px 0;
    }

    .section-heading {
        display: block;

        margin-bottom: 38px;
    }

    .section-heading > div {
        margin-bottom: 12px;
    }

    .section-description {
        margin-top: -12px;
        margin-left: 0;
    }

    .featured-image {
        min-height: 400px;
    }


    /* Inktober */

    .inktober-gallery {
        grid-template-columns: 1fr;
    }

    .inktober-day:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .inktober-day:last-child:nth-child(odd)
    .inktober-comparison {
        max-width: none;
    }

    .inktober-day:last-child:nth-child(odd)
    .inktober-day-header {
        text-align: left;
    }


    /* Projects */

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

    .project-card:last-child {
        grid-column: auto;
    }

    .project-image,
    .project-card:last-child .project-image {
        min-height: 330px;
    }

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

    .footer {
        grid-template-columns: 1fr;

        align-items: start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 560px) {

    .hero {
        padding: 110px 18px 85px;
    }

    .eyebrow {
        line-height: 2;
    }

    .eyebrow span {
        margin: 0 4px;
    }

    .hero-title {
        font-size: clamp(3.4rem, 18vw, 5.6rem);
    }

    .hero-buttons,
    .about-buttons,
    .resume-downloads,
    .contact-buttons {
        width: 100%;

        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 30px 24px;
    }

    .project-details {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* Inktober */

    .inktober-intro {
        padding: 25px;
    }

    .inktober-facts {
        grid-template-columns: 1fr;
    }

    .inktober-comparison {
        grid-template-columns: 1fr 1fr;
    }

    .inktober-day-header {
        padding: 21px 22px 17px;
    }

    .inktober-image {
        padding: 8px;
    }

    .pixel-image {
        padding: 15px;
    }

    .inktober-comparison figcaption {
        padding: 10px 6px;

        font-size: 0.65rem;
    }


    /* Projects */

    .project-image,
    .project-card:last-child .project-image {
        min-height: 260px;
    }

    .project-content,
    .project-card:last-child .project-content {
        padding: 25px;
    }

    .resume-column {
        padding: 28px 24px;
    }

    .profile-image,
    .profile-image img {
        min-height: 310px;
    }

    .contact-box {
        padding: 42px 24px;
    }

    .footer-links {
        gap: 15px;
    }

    .mouse-glow {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}
