@import url('https://fonts.googleapis.com/css2?family=Geist+Pixel&family=Geist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Geist", sans-serif;
}

body {
    overflow: hidden;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: #121212;
    color: #FFFFFF;
}

.halftone-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle at center, #000000 1px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.2;
}

.dark-mode .halftone-bg {
    background-image: radial-gradient(circle at center, #FFFFFF 1px, transparent 1.5px);
}

.mask-gradient {
    -webkit-mask-image: radial-gradient(ellipse at top left, #000000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top left, #000000 0%, transparent 70%);
}

.dark-mode .mask-gradient {
    -webkit-mask-image: radial-gradient(ellipse at top left, #FFFFFF 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top left, #FFFFFF 0%, transparent 70%);
}

.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 225px;
    height: 100vh;
    background: #FFFFFF;
    border-right: solid 1px rgb(220, 220, 220);
}

.desktop-nav ul {
    list-style-type: none;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px 20px;
    width: 225px;
    background-color: #FFFFFF;
    border-right: solid 1px rgb(220, 220, 220);
}

li a {
    display: block;
    color: #737373;
    padding: 4px 16px;
    text-decoration: none;
    font-family: "Geist Pixel", sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-top: 10px;
}

.desktop-nav p,
.mobile-nav p {
    padding: 4px 16px;
    color: #737373;
    font-size: 12px;
    font-weight: 400;
}

li a:hover {
    color: #000000;
    font-weight: 600;
}

.navbar-brand {
    color: #000000;
    font-weight: 600;
}

.head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.button-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: solid 1px #000000;
    background-color: #000000;
    margin: 0;
    padding: 4px 8px;
    font-family: "Geist Pixel", sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #737373;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: normal;
}

.button-cv:hover {
    border: solid 1px #000000;
    color: #FFFFFF;
}

.head-link,
.head-actions a:not(.button-cv) {
    display: inline-flex;
    align-items: center;
    font-family: "Geist Pixel", sans-serif;
    font-size: 12px;
    color: #737373;
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
    line-height: normal;
}

.head-link:hover,
.head-actions a:not(.button-cv):hover {
    color: #000000;
}

.head-actions p,
.head-actions a p {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
    line-height: normal;
}

.dark-mode .button-cv {
    background-color: #1e1e1e;
    color: #737373;
    border: solid 1px #333333;
    margin: 0;
}

.dark-mode .button-cv:hover {
    color: #FFFFFF;
    border: solid 1px #737373;
}

.dark-mode .head-link,
.dark-mode .head-actions a:not(.button-cv),
.dark-mode .head-actions p,
.dark-mode .head-actions a p {
    color: #aaaaaa;
}

.dark-mode .head-link:hover,
.dark-mode .head-actions a:not(.button-cv):hover,
.dark-mode .head-actions a:hover p {
    color: #ffffff;
}

.contact .email a {
    text-decoration: none;
    font-family: "Geist Pixel", sans-serif;
    font-weight: 600;
    color: #000000;
}

.contact button {
    border: solid 1px rgb(220, 220, 220);
    background-color: #FFFFFF;
    margin-left: 15px;
    margin-bottom: 10px;
    padding: 4px 8px;
    font-family: "Geist Pixel", sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #737373;
}

.contact button:hover {
    border: solid 1px #000000;
    color: #000000;
}

.dark-mode .contact button {
    background-color: #1e1e1e;
    color: #737373;
    border: solid 1px #333333;
    margin-bottom: 10px;
}

.dark-mode .contact button:hover {
    color: #FFFFFF;
    border: solid 1px #737373;
}

.desktop-nav .contact {
    margin-top: auto;
}

.navbar-toggler {
    border: none;
    box-shadow: none;
    outline: none;
    padding: 0;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none;
    outline: none;
}

.navbar-toggler {
    height: 36px;
    border-radius: 0;
    background: #FFFFFF;
}

.navbar-toggler-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: #000000;
    background-image: none;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #000000;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

.navbar-toggler:hover {
    border-color: #000000;
}

.btn-close {
    position: relative;
    padding: 0;
    opacity: 1;
    background-image: none;
}

.btn-close::before,
.btn-close::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 4px;
    width: 20px;
    height: 2px;
    background: #000000;
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

.btn-close:hover {
    opacity: 0.55;
}

main {
    min-height: 100vh;
    margin-left: 226px;
    padding: 48px;
    box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container {
    width: min(720px, 100%);
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.head img {
    height: 80%;
}

.head h2 {
    font-size: 24px;
    font-family: "Geist Pixel", sans-serif;
    font-weight: 500;
    margin-bottom: 0;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.name-container svg:hover {
    cursor: pointer;
}

.head-text {
    text-align: justify;
    font-size: 14px;
    color: #737373;
}

.text {
    text-align: justify;
    font-size: 12px;
    color: #737373;
}

.text-heavy {
    font-size: 14px;
    font-weight: 600;
}

.head a {
    text-decoration: none;
}

.head a p {
    font-family: "Geist Pixel", sans-serif;
    font-size: 12px;
}

.head a p:hover {
    color: #000000;
}

.tags p,
.tags a {
    font-family: "Geist Pixel", sans-serif;
    font-size: 14px;
    color: #737373;
}

.tags a {
    text-decoration: none;
}

.tags a:hover {
    color: #000000;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card {
    border-top: solid 1px rgb(220, 220, 220);
    border-bottom: solid 1px rgb(220, 220, 220);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 10px;
    margin: 0;
}

.bottom {
    border: none;
    border-bottom: solid 1px rgb(220, 220, 220);
    border-radius: 0;
    padding: 10px 10px;
    margin: 0;
}

.card:hover {
    background-color: #eeeeee;
}

.card .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
}

.card .row p {
    margin: 0;
}

.card .text {
    font-family: "Geist Pixel", sans-serif;
}

.tags .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
}

.row a p:hover {
    color: #000000;
}

.stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 20px;
}

.stack-container a {
    text-decoration: none;
}

.link-card {
    border: dashed 1px rgb(220, 220, 220);
    border-radius: 5px;
    text-align: center;
    padding: 5px 10px;
}

.link-card:hover {
    border: dashed 1px #737373;
}

.stacks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


.stack-card {
    border: solid 1px rgb(220, 220, 220);
    background-color: #FFFFFF;
    border-radius: 5px;
    text-align: center;
    padding: 5px 10px;
}

.stack-card:hover {
    border: solid 1px #737373;
    cursor: pointer;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left;
}

.cert-card {
    width: 225px;
    height: 150px;
    border: none;
    border-radius: 10px;
    text-align: center;
    padding: 5px;
    background-color: #FFFFFF;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transform: scale(1);
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.cert-card:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    transform: scale(1.05); 
}

.inner-cert-card {
    width: 215px;
    height: 140px;
    border: solid 1px rgb(220, 220, 220);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.inner-cert-card p {
    text-align: center;
    margin: 0;
}

.inner-cert-card a {
    text-decoration: none;
}

.inner-cert-card a p {
    font-family: "Geist Pixel", sans-serif;
    color: #000000;
}

.inner-cert-card a:hover {
    font-weight: 600;
}

@media (min-width: 768px) {
    .mobile-nav {
        opacity: 0;
        pointer-events: none;
    }

    .desktop-nav {
        opacity: 1;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    main {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    main {
        margin-left: 0;
        padding: 72px 20px 32px;
    }

    .container {
        width: 100%;
        height: auto;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 1;
        background-color: #FFFFFF;
        border-bottom: solid 1px rgb(220, 220, 220);
        padding: 8px 16px;
    }

    .desktop-nav {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-nav .navbar-brand {
        margin: 0 !important;
    }

    .mobile-nav .container-fluid {
        padding: 0;
    }

    .mobile-nav .offcanvas {
        width: min(225px, 85vw);
    }

    .cert-card {
        width: 100%;
    }

    .inner-cert-card {
        width: 100%;
    }

    .github-graph {
        width: 100%;
        overflow-x: auto;
        direction: rtl;
    }

    .github-graph img {
        direction: ltr;
    }
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .desktop-nav,
.dark-mode .desktop-nav ul,
.dark-mode .mobile-nav,
.dark-mode .offcanvas,
.dark-mode .navbar-toggler {
    background-color: #121212;
    border-color: #333333;
}

.dark-mode .desktop-nav p,
.dark-mode .mobile-nav p,
.dark-mode .text,
.dark-mode .head-text,
.dark-mode li a,
.dark-mode .tags p,
.dark-mode .tags a {
    color: #aaaaaa;
}

.dark-mode .navbar-brand,
.dark-mode h2,
.dark-mode .text-heavy,
.dark-mode .contact .email a,
.dark-mode li a:hover,
.dark-mode .tags a:hover,
.dark-mode .row a p:hover {
    color: #ffffff;
}

.dark-mode .card,
.dark-mode .bottom,
.dark-mode .stack-card,
.dark-mode .link-card {
    border-color: #333333;
    background-color: #121212;
}

.dark-mode .cert-card {
    background-color: #121212;
    box-shadow: rgba(0, 0, 0, 0.8) 0px 8px 24px;
}

.dark-mode .cert-card:hover {
    box-shadow: rgba(0, 0, 0, 1) 0px 50px 100px -20px, rgba(0, 0, 0, 0.9) 0px 30px 60px -30px;
}

.dark-mode .inner-cert-card {
    border: solid 1px #333333;
}

.dark-mode .card:hover {
    background-color: #1e1e1e;
}

.dark-mode .stack-card:hover {
    border: solid 1px #737373;
}

.dark-mode .link-card:hover {
    border: dashed 1px #737373;
}

.dark-mode .navbar-toggler-icon,
.dark-mode .navbar-toggler-icon::before,
.dark-mode .navbar-toggler-icon::after,
.dark-mode .btn-close::before,
.dark-mode .btn-close::after {
    background-color: #ffffff;
}

.dark-mode .github-graph img {
    filter: invert(1) hue-rotate(180deg);
}