
@font-face {
  font-family: 'Archer Medium';
  src: url('assets/fonts/Archer Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}

:root {
  --welcome-progress: 0;
    --color-text: #2e2e2e;
    --color-background: rgb(214, 214, 214);
        --navbar-bg-rgb: 216, 216, 216;
    --color-surface: rgba(255, 255, 255, 0.12);
    --color-shadow: rgba(0, 0, 0, 0.4);
        --bg-layer-opacity: 0.08;
        --bg-layer-filter: none;
        --bg-layer-scale: 1.05;

    --black-50: #f8f8f8;
    --black-100: #ebebeb;
    --black-200: #d6d6d6;
    --black-300: #bdbdbd;
    --black-400: #999999;
    --black-500: #737373;
    --black-600: #525252;
    --black-700: #404040;
    --black-800: #262626;
    --black-900: #090909;
}

[data-theme="dark"] {
    --color-text: var(--black-400);
    --color-background: var(--black-900);
    --navbar-bg-rgb: 10, 10, 10;
    --color-surface: rgba(255, 255, 255, 0.08);
    --color-shadow: rgba(0, 0, 0, 0.35);
    --bg-layer-opacity: 0.1;
    --bg-layer-filter: invert(1) brightness(1.2) contrast(0.9);
}


body {
  margin: 0;
    color: var(--color-text);
    background: var(--color-background);
  overflow-x: hidden;
  font-family: Archer Medium, sans-serif;
    position: relative;
}

#page-background {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        overflow: hidden;
}

.page-bg-layer {
        position: absolute;
        left: 50%;
        /* inset: -6vh -6vw; */
        width: 100vw;
        /* max-width: 1000px; */
        height: 100vh;
        object-fit: contain;
        object-position: center;
        opacity: 0;
        transform: translate3d(-50%, 1.25vh, 0) scale(var(--bg-layer-scale));
        filter: var(--bg-layer-filter);
        transition:
                opacity .6s ease,
                transform .8s ease,
                filter .35s ease;
}

@media(max-width: 700px) {
    .page-bg-layer {
        bottom:0;
    }
}

body[data-active-background="education"] .page-bg-layer[data-bg="education"],
body[data-active-background="experience"] .page-bg-layer[data-bg="experience"],
body[data-active-background="projects"] .page-bg-layer[data-bg="projects"],
body[data-active-background="technical"] .page-bg-layer[data-bg="technical"] {
        opacity: var(--bg-layer-opacity);
        transform: translate3d(-50%, 5vh, 0) scale(var(--bg-layer-scale));
}


/* body[data-active-background="education"] .page-bg-layer[data-bg="education"]{
    transform: translate3d(0, 20vh, 0) scale(0.6);
}

body[data-active-background="education"] .page-bg-layer[data-bg="education"]{
    transform: translate3d(0, 20vh, 0) scale(0.6);
} */

body[data-active-background=""] .page-bg-layer {
    opacity: 0;
}

body[data-theme="dark"] .page-bg-layer {
        mix-blend-mode: screen;
}

body:not([data-theme="dark"]) .page-bg-layer {
        mix-blend-mode: multiply;
}

#navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 1rem 2rem;
    box-sizing: border-box;

    background: rgba(var(--navbar-bg-rgb), var(--bg-opacity, 0));
    color: inherit;

    z-index: 1000;

    transition:
        background .3s,
        padding .3s;
}

#welcome{
    position:fixed;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);
    margin:0;
    margin-top: 1rem;
    
    z-index:900;
    text-shadow: 0 4px 8px var(--color-text);
}

#contacts{
    position:fixed;

    left:50%;
    bottom:3rem;
    width: 100%;

    transform:translateX(-50%);

    display:flex;
    gap:.6rem;
    flex-wrap:wrap;
    justify-content:center;

    font-size:.9rem;

    z-index:900;
}

#contacts a{
    color:inherit;
    text-decoration:none;
    font-family: 'Archer Medium', sans-serif;
}

#navbar.nav{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
}
#navbar.nav #welcome{
    position: static;
    transform: none;
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

#navbar.nav #contacts{
    position: static;
    transform: none;

    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;

    font-size: .9rem;
    line-height: 1.4;
}

#hero{
    height:100vh;
}

.portfolio {
    width: 100vw;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;  
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 700px) {
    .portfolio {
        padding-top: 9.5rem;
    }
}

.resume-section {
    width: 900px;
    min-height: 100vh;
    margin-bottom: 8rem;
    position: relative;
}

@media (max-width: 900px) {
    .resume-section {
        width: 100%;
    }
}

.resume-section h2 {
    position: sticky;
    top: calc(var(--navbar-sticky-offset, 5rem) - 2px);
    z-index: 700;
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: .8rem 0 .6rem;
    backdrop-filter: blur(4px);
    /* background: var(--color-background); */
    /* background-image: linear-gradient(to bottom, var(--color-background), var(--color-background)); */
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px var(--color-text);
}


.section-header span {
    font-size: 1.5rem;
}

.divider {
    height: 2px;
    background: currentColor;
    opacity: .7;
    margin-bottom: 1.5rem;
}

.entry {
    margin-bottom: 2rem;
}

.entry-header,
.entry-subheader {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
}

.entry h3 {
    margin: 0;
}

.entry ul {
    margin-top: .75rem;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.tech {
    opacity: .7;
    margin: .3rem 0 1rem;
    font-style: italic;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skills-grid strong {
    display: block;
    margin-bottom: .4rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.skill-list li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1;
    white-space: nowrap;
}

.skill-list img {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}


[data-theme="dark"] .skill-list li {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.icon-shell {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    font-weight: 700;
    border-radius: .25rem;
    background: currentColor;
    color: var(--color-background);
    flex: 0 0 1rem;
}

.projects-grid {
    display: grid;
    gap: 1.25rem;
}

.project-card {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.1rem;
    /* background: rgba(255, 255, 255, 0.08); */
    backdrop-filter: blur(3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}
.project-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.project-card--featured {
    background: rgba(255, 255, 255, 0.12);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.project-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .45rem;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8;
}

.project-icon-shell {
    min-width: 2.2rem;
    height: 1.3rem;
    padding: 0 .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: .35rem;
    background: currentColor;
    color: var(--color-background);
    flex: 0 0 auto;
}

.project-time {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    font-size: .88rem;
    opacity: .82;
}

.project-time img,
.project-pill img,
.project-links img {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 0.9rem;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
}

.project-summary {
    margin: .7rem 0 .9rem;
    line-height: 1.65;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .9rem;
}

.project-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1;
    white-space: nowrap;
}

.project-pill img {
    display: block;
}

.project-pill-icon {
    font-size: .95rem;
    line-height: 1;
    flex: 0 0 auto;
}

.project-features {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.65;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .9rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
}

#surname {
    opacity: 0;
}

.royal {
  font-family: 'Archer Medium', sans-serif;
  font-weight: normal;
}


[data-theme="dark"] .project-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .project-card--featured {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .skill-list li,
[data-theme="dark"] .project-pill,
[data-theme="dark"] .project-links a {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-time img,
[data-theme="dark"] .project-pill img,
[data-theme="dark"] .project-links img {
    filter: grayscale(1) brightness(0) invert(1);
}

@media (max-width: 700px) {
    .project-card {
        padding: .95rem 1rem;
    }

    .project-top {
        flex-direction: column;
    }

    .project-time {
        white-space: normal;
    }

    .project-card h3 {
        font-size: 1.05rem;
    }
}
