@import url("https://use.typekit.net/niq4hew.css"); /* Fonts */

/****************** BEGIN CSS RESET ******************/
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

hr {
    margin: 1em 0;
}

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

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

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

button {
    font-weight: 600;
    cursor: pointer;
    background-color: var(--bg);
    color: var(--fg);
    border-radius: 8px;
    border: none;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin-bottom: .2em;
}

p {
    text-overflow: ellipsis;
    overflow-y: hidden;
}

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

a:hover:not(.no-underline) {
    text-decoration: underline;
}

/****************** END OF CSS RESET ******************/

:root {
    --bg: #011B0E;
    --fg: #F2F8F6;
    --pr: #37FF8B;
    --p-m: 48px;
    --p-s: 24px;
    --p-xs: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'source-sans-pro', Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
}


h1, h2, h3 {
    font-family: 'source-serif-pro', Arial, Helvetica, sans-serif;
}

.icon {
    font-style: normal;
    font-family: 'Material Symbols Outlined';
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    user-select: none;
}

.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    width: 24px;
    border-radius: var(--p-xs);
    margin: auto var(--p-xs);
}

.h-logo div {
    border-radius: 32px;
    overflow: hidden;
}

.h-logo {
    position: fixed;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    top: var(--p-m);
    left: var(--p-m);
    border-radius: 32px;
    box-shadow: 0px 0px 8px rgba(27, 5, 1, 0.50);
    overflow: hidden;
    z-index: 100;
}

footer {
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--fg);
    padding: var(--p-xs);
}

h1.display {
    font-size: 64px;
}

h2.display {
    position: relative;
    font-size: 48px;
    width: fit-content;
}

h2.before-hr, h2.after-hr {
    max-width: calc(100% - 88px);
}

h2.after-hr::after {
    content: '';
    position: absolute;
    display: block;
    top: 51%;
    right: -88px;
    height: 1px;
    width: 64px;
    background-color: var(--fg);
}

h2.before-hr {
    margin-left: auto;
    text-align: right;
}

h2.before-hr::before {
    content: '';
    position: absolute;
    display: block;
    top: 51%;
    left: -88px;
    height: 1px;
    width: 64px;
    background-color: var(--fg);
}

.content-box {
    padding: 0 var(--p-m);
}

.flex {
    display: flex;
}

.justify-space-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}

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

.self-img {
    width: 100%;
    max-width: 320px;
    border-radius: 160px;
    box-shadow: 0px 0px 128px 2px rgba(55, 255, 139, 0.50);
    float: right;
    margin-left: var(--p-m);
}

.h-logo #nav {
    border-radius: 0;
}

@media screen and (max-width: 764px) {
    #projects-container {
        float: none;
    }

    :root {
        --p-m: 24px;
        --p-s: 16px;
        --p-xs: 12px;
    }
    
    .self-img {
        float: initial;
        margin: 0 auto;
    }

    .h-logo:has(.open) {
        border-radius: 0;
        padding: var(--p-m);
        left: 0;
        top: 0;
        width: 100%;
    }

    .h-logo ul {
        padding-left: 0;
        padding-right: 0;
    }

    #nav.open {
        padding-bottom: 0 !important;
    }
    
    :has(#skills) {
        float: none;
    }

    #proj-conn-container {
        grid-template: repeat(2, 1fr) / 1fr !important;
    }
}

@media (any-pointer: fine) {
    #mouse-follower {
        position: fixed;
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 32px;
        background: #70ADE2;
        mix-blend-mode: exclusion;
        filter: contrast(150%);
        z-index: 999;
        pointer-events: none;
    }
}

.b-pr {
    background-color: var(--pr);
    color: var(--bg);
}

.b-pr h1.before-hr::before, .b-pr h2.before-hr::before {
    background-color: var(--bg);
}

.b-pr h1.after-hr::after, .b-pr h2.after-hr::after {
    background-color: var(--bg);
}

#nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .2s ease-in-out;
}

nav {
    overflow: hidden;
}

#nav.open {
    grid-template-rows: 1fr;
    padding-bottom: var(--p-xs);
}


nav > ul {
    list-style: none;
    padding: var(--p-xs) var(--p-s);
    padding-bottom: 0;
    font-weight: 600;
}

.float-right {
    float: right;
}

.cf:before,
.cf:after {
  content: ""; /* 1 */
  display: table; /* 2 */
}

.cf:after {
  clear: both;
}

.talign-right {
    text-align: right;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-content: space-between;
    align-items: end;
    padding: .4em 0;
}

.skill {
    display: flex;
    width: max-content;
    gap: 8px;
}

.skill > [role=progressbar] {
    height: 24px;
    width: 24px;
    display: block;
    /* border: 1px solid var(--bg); */
    border-radius: 50%;
}

.skill [progress="100%"] {
    background-color: var(--bg);
}

.skill [progress="85%"] {
    background-image: conic-gradient(from 0deg, transparent 15%, var(--bg) 15%);
}

.skill [progress="75%"] {
    background-image: conic-gradient(from 0deg, transparent 25%, var(--bg) 25%);
}

.skill [progress="60%"] {
    background-image: conic-gradient(from 0deg, transparent 40%, var(--bg) 40%);
}

.skill [progress="50%"] {
    background-image: conic-gradient(from 0deg, transparent 50%, var(--bg) 50%);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: var(--p-xs);
    left: 11px;
    display: block;
    width: 2px;
    bottom: var(--p-xs);
    background-color: var(--fg);
}

.b-pr .timeline::before {
    background-color: var(--bg);
}

.event {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    margin-bottom: var(--p-xs);
}

.event:last-of-type {
    margin-bottom: 0;
}

.event::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    background-color: var(--fg);
    left: -36px;
    border-radius: 12px;
    transform: translateY(var(--p-xs));
}

.no-transform-event .event:last-of-type::after {
    transform: none;
}

.no-transform-event .event::before {
    transform: none;
}

.event:last-of-type::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--bg);
    left: -25px;
    top: 24px;
    bottom: var(--p-xs);
    transform: translateY(var(--p-xs));
    z-index: 1;
}

.b-pr .event::before {
    background-color: var(--bg);
}

.b-pr .event:last-of-type::after {
    background-color: var(--pr);
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo-container > img {
    background-color: var(--fg);
    border-radius: 50%;
    border: 1px solid var(--bg);
}

.logo-container > b {
    font-weight: 600;
}

#projects-container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--p-s);
}

.card > legend {
    font-weight: 600;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    padding: var(--p-s);
    background-color: var(--bg);
    border: 1px solid var(--fg);
    border-radius: 8px;
}

.card.row-card {
    flex-direction: row;
}

.pixel {
    image-rendering: pixelated;
}

#proj-conn-container {
    display: grid;
    grid-template: 1fr / repeat(2, 1fr);
    gap: var(--p-s);
    margin-bottom: var(--p-s);
}

#connect-container > h2, #projects-container > h2 {
    margin-bottom: var(--p-xs);
}

#connect-container > div {
    height: max-content;
    gap: var(--p-s);
    flex-grow: 1;
}

#connect-container, #connect-container > div {
    padding: 0;
}

#connect-container > div > a {
    width: 100%;
    flex-grow: 1;
    margin: 0;
}

.row-card.icon-btn {
    justify-content: left;
    gap: 12px;
}

a.card {
    transition: background-color .2s ease-in, color .2s ease-in, box-shadow .2s ease-in;
}

a.card:hover {
    text-decoration: none;
    background-color: var(--pr);
    border: 1px solid var(--pr);
    color: var(--bg);
    box-shadow: 0 0 0 4px var(--pr);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

form button {
    background-color: var(--pr);
    color: var(--bg);
    padding: calc(var(--p-xs) / 2) var(--p-xs);
}

