/* Reset */
*, ::after, ::before {
    box-sizing: border-box
}

* {
    margin: 0
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

canvas, img, picture, svg, video {
    display: block;
    max-width: 100%
}

button, input, select, textarea {
    font: inherit
}

h1, h2, h3, h4, h5, h6, p {
    overflow-wrap: break-word
}

p {
    text-wrap: pretty
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance
}

#__next, #root {
    isolation: isolate
}

/* Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    src: url("fonts/inter-variablefont_opszwght-webfont.cef6b8c69a9d.woff") format('woff');
    src: url("fonts/inter-variablefont_opszwght-webfont.d5e2a4946155.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #000;
    --secondary-color: #6073b9;
    --tertiary-color: #f8f8f8;
    --quaternary-color: #444;
    --button-active-color-bg: var(--tertiary-color);
    --button-active-color-fg: var(--primary-color);
    --button-active-color-border: var(--primary-color);
    --button-inactive-color-bg: var(--primary-color);
    --button-inactive-color-fg: var(--tertiary-color);
    --button-inactive-color-border: var(--primary-color);
    --skill-inactive-color-bg: var(--tertiary-color);
    --skill-inactive-color-fg: var(--primary-color);
    --skill-active-color-bg: var(--primary-color);
    --skill-active-color-fg: var(--tertiary-color);
    --section-header-color-bg: var(--primary-color);
    --section-header-color-fg: var(--tertiary-color);
    --section-color-border: var(--primary-color);

    --border-radius: 15px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--tertiary-color);
    transition: background-color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6, p, a, span, li {
    font-family: 'Inter', sans-serif;
}

iframe {
    display: block;
    height: 100vh;
    width: 100vw;
    border: none;
}

iframe.div.notion-topbar > div > div:nth-child(4) { display: none !important; }

/* Main */
.content {
    padding: 30px 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: start;
    align-content: start;
    color: var(--primary-color);
}

.horizontal-padded {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: start;
    align-content: start;
    row-gap: 30px;
    grid-gap: 40px;
    padding: 0 50px;
}

h2 {
    padding-top: 20px;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 500;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

header {
    background-color: var(--tertiary-color);
    width: 100%;
    position: fixed;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
}

#theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    border-radius: 12px;
    background: var(--button-inactive-color-bg);
    border: 1px solid var(--button-inactive-color-border);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    padding: 2px;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--button-inactive-color-fg);
    transition: transform var(--transition-speed) ease;
    left: 2px;
}

#theme-toggle i {
    position: absolute;
    font-size: 0.85rem;
    transition: opacity var(--transition-speed) ease;
}

#theme-toggle .icon-sun {
    opacity: 1;
}

#theme-toggle .icon-moon {
    right: 2px;
    opacity: 0;
}

/* Logo */
.animate-path {
    stroke: var(--primary-color);
    fill: var(--tertiary-color);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s forwards, fillIn 1s 1s forwards, drawReverse 1s 2s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillIn {
    from {
        fill: var(--tertiary-color);
    }
    to {
        fill: var(--primary-color);
    }
}

@keyframes drawReverse {
    from {
        stroke-dasharray: 0;
        stroke-dashoffset: 0;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
}


.top-buttons {
    display: flex;
    align-items: center;
    position: fixed;
    top: 5px;
    right: 10px;
    gap: 10px;
    z-index: 1001;
}

.top-button {
    background: var(--button-inactive-color-bg);
    border: 1px solid var(--button-inactive-color-border);
    color: var(--button-inactive-color-fg);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.top-button:hover {
    background: var(--button-active-color-bg);
    color: var(--button-active-color-fg);
}

.hero-section div {
    display: inline-block;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 55px;
}

.hero-greeting {
    position: absolute;
    color: var(--quaternary-color);
    padding-bottom: 10px;
    left: 50%;
    transform: translate(-50%, 0);
}

.hero-name {
    position: absolute;
    height: 4rem;
    left: 50%;
    transform: translate(-50%, 0);
}

.hero-name.small {
    height: 2.5rem;
}

.nav-buttons {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
}

.nav-buttons ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.nav-button a {
    display: inline-block;
    background: var(--button-inactive-color-bg);
    color: var(--button-inactive-color-fg);
    padding: 5px 50px;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 1px solid var(--button-inactive-color-border);
    transition: all var(--transition-speed) ease;
}

.nav-button a:hover {
    color: var(--button-active-color-fg);
    background: var(--button-active-color-bg);
    border: 1px solid var(--button-active-color-border);
}

.nav-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid var(--primary-color);
    background-color: var(--tertiary-color);
    transition: all var(--transition-speed) ease;
}

.back-link {
    font-size: 1em;
    color: var(--quaternary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    color: var(--primary-color);
}

.header-title {
    font-size: 1.25em;
    font-weight: bold;
    text-align: right;
    color: var(--quaternary-color);
}

.filter-desc {
    font-size: 0.9em;
}

.top-button {
    padding: 10px;
    border-radius: 50%;
    background-color: var(--button-inactive-color-bg);
    font-size: 1.3rem;
}

.ots-banner {
    display: flex;
    background: var(--secondary-color);
    width: 100%;
    flex: 0 1 100%;
    gap: 10px;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.ots-banner p {
    color: #fff;
    margin-right: 20px;
}

.ots-banner a {
    cursor: pointer;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    padding: 5px;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.ots-banner a:hover {
    background-color: white;
    color: var(--secondary-color);
}

.skills-section {
    flex: 0 1 400px;
    width: 100%;
}

.skill-item {
    display: flex;
    align-items: center;
    border: 1px solid var(--skill-inactive-color-fg);
    color: var(--skill-inactive-color-fg);
    background-color: var(--skill-inactive-color-bg);
    padding: 10px;
    border-radius: var(--border-radius);
    margin: 5px 0;
    gap: 10px;
    transition: all var(--transition-speed) ease;
}

.skill-item:hover {
    background: var(--skill-active-color-bg);
    color: var(--skill-active-color-fg);
}

.skill-icon {
    width: 30px;
    height: 30px;
    background: var(--skill-inactive-color-fg);
    color: var(--skill-inactive-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.skill-icon i {
    color: var(--skill-inactive-color-bg);
    font-size: 16px;
}

.experience-section {
    flex: 0 1 400px;
}

.experience-item,
.education-item {
    border: 1px solid var(--section-color-border);
    transition: border-color var(--transition-speed) ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: left;
    margin-top: 15px;
}

.experience-header, .education-header {
    background: var(--section-header-color-bg);
    color: var(--section-header-color-fg);
    border-bottom: 1px solid var(--section-color-border);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.experience-body, .education-body {
    color: var(--primary-color);
    padding: 10px;
}

.experience-header div {
    display: flex;
    flex-direction: column;
}

.experience-company {
    font-size: 14px;
    font-weight: bold;
}

.experience-dates {
    font-size: 0.8em;
    margin-left: auto;
    white-space: nowrap;
    align-self: flex-start;
}

.education-section {
    flex: 0 1 400px;
    width: 100%;
}

.education-header div {
    display: flex;
    flex-direction: column;
}

.education-icon {
    font-size: 24px;
    align-self: center;
    margin-right: 5px;
}

.education-school {
    font-size: 14px;
    font-weight: bold;
}

.education-dates {
    font-size: 0.8em;
    margin-left: auto;
    white-space: nowrap;
    align-self: flex-start;
}

.projects-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.project-image {
    background-color: #E3E3E3;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    width: 100%;
    height: 160px;
}

.project-item {
    position: relative;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    width: 300px;
    background-color: var(--tertiary-color);
    font-family: Arial, sans-serif;
    transition: all var(--transition-speed) ease;
}

.skills-section h2 {
    margin-bottom: 15px;
}

.experience-section ul,
.education-section ul,
.skills-section ul {
    list-style: none;
    padding: 0;
}

.experience-section h2,
.education-section h2,
.skills-section h2 {
    padding-top: 0;
}


.experience-item,
.education-item {
    margin-top: 15px;
}


a.fill-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--primary-color);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: all var(--transition-speed) ease;
}

.project-title {
    font-size: 1.25em;
    color: var(--primary-color);
}

.project-year {
    font-size: 0.95em;
    color: var(--quaternary-color);
    margin-top: 5px;
}

.project-body {
    padding: 10px;
    font-size: 0.8em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    padding-inline-start: 0;
    justify-content: flex-end;
    flex: 1 0 100%;
    gap: 10px;
    margin-top: 5px;
}

.project-tag, span.project-tag {
    padding: 5px 10px;
    border-radius: var(--border-radius);
    z-index: 2;
    font-size: 0.8em;
    transition: all var(--transition-speed) ease;
}

.filter-desc a {
    color: var(--primary-color);
}

.tag-black {
    background-color: black;
}

.tag-blue {
    background-color: darkblue;
}

.tag-red {
    background-color: darkred;
}

.tag-orange {
    background-color: rgb(154, 85, 0);
}

.tag-black, .tag-black a,
.tag-blue, .tag-blue a,
.tag-red, .tag-red a,
.tag-orange, .tag-orange a {
    color: var(--tertiary-color);
}

.blog-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin: 0 10px;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.blog-header {
    border: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: baseline;
    transition: all var(--transition-speed) ease;
}

.blog-item {
    position: relative;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
}

[data-theme="dark"] {
    --primary-color: #eee;
    --secondary-color: #384b8a;
    --tertiary-color: #111;
    --quaternary-color: #aaa;
    --quinary-color: #1c1c1c;
    --button-active-color-bg: var(--primary-color);
    --button-active-color-fg: var(--quinary-color);
    --button-inactive-color-bg: var(--quinary-color);
    --button-inactive-color-fg: var(--primary-color);
    --section-header-color-bg: var(--quinary-color);
    --section-header-color-fg: var(--primary-color);
    --section-color-border: var(--primary-color);
    --skill-inactive-color-bg: var(--quinary-color);

    .tag-black {
        background-color: #fff;
    }

    .tag-blue {
        background-color: #4242d9;
    }

    .tag-red {
        background-color: #c57e7e;
    }

    .tag-orange {
        background-color: #e0a170;
    }

    .tag-blue, .tag-blue a {
        color: var(--primary-color);
    }

    .project-header {
        background-color: var(--quinary-color);
    }

    #theme-toggle::before {
        transform: translateX(24px);
    }

    #theme-toggle .icon-sun {
        opacity: 0;
    }

    #theme-toggle .icon-moon {
        opacity: 1;
    }
}

@media (max-width: 1000px) {
    .content {
        padding: 30px 0;
    }

    .horizontal-padded {
        padding: 0 10px;
        gap: 20px;
    }
}

@media (hover: none) {
    .ots-banner a:hover {
        background-color: var(--secondary-color);
        color: white;
    }

    .ots-banner a:active {
        background: white;
        color: var(--secondary-color);
    }

    .top-button:hover,
    .nav-button a:hover {
        background: var(--button-active-color-fg);
        color: var(--button-active-color-bg);
    }

    .top-button:active,
    .nav-button a:active {
        background: var(--button-active-color-bg);
        color: var(--button-active-color-fg);
    }

    .skill-item:hover,
    .skill-icon:hover {
        background: var(--button-active-color-bg);
        color: var(--button-active-color-fg);
    }

    .skill-item:active,
    .skill-icon:active {
        background: var(--button-active-color-fg);
        color: var(--button-active-color-bg);
    }

    [data-theme="dark"] {
        .skill-item:hover,
        .skill-icon:hover {
            background: var(--button-active-color-fg);
            color: var(--button-active-color-bg);
        }
        .skill-item:active,
        .skill-icon:active {
            background: var(--button-active-color-bg);
            color: var(--button-active-color-fg);
        }
    }
}

/* Markdown */
.markdown ul {
    padding-left: 1em;
    list-style: disc;
}

.markdown p a {
    text-decoration: underline;
    color: var(--quaternary-color);
}

.markdown p a:before {
    content: "↗ ";
}

/* Intro */
.intro-section {
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: justify;
    text-justify: inter-word;
    padding: 10px;
    margin: 25px 10px 25px;
    border-radius: 15px;
    max-width: 600px;
}

.intro-section h2 {
    padding: 0;
    font-size: 1.4rem;
}