/* Combine @import statements to reduce HTTP requests */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Caudex:wght@400;700&display=swap');

/* Simplify global styles */
body {
    background-color: #e6e6e6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.headertitle {
    z-index: 10;
    color: black;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
}

header {
    position: fixed;
    z-index: 15;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    border-bottom: 1px solid #000;
    width: 100%;
    padding: 0.75vh 15vw;
    transition: background-color 0.3s ease-in-out;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding-right: 25rem;
    margin: 0;
}

header nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: "Caudex", serif;
    font-weight: 700;
}

.star {
    color: black;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 8vw;
}

.star2 {
    color: rgb(222, 219, 209);
    font-family: "DM Serif Display", serif;
    padding-top: 5vh;
    font-weight: 400;
    font-style: normal;
    font-size: 5vw;
    z-index: 2;
}

.headshit{
    display:flex;
    padding-top: 8.25vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.expertise {
    display: flex;
    padding-top: 15vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kirbo{
    max-height: 200px;
    height: 7vw;
}

.star-centering{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.heading {
    color: #000;
    font-size: 7vw;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal;
}

.shit1 {
    display: flex;
    padding-top: 15vw;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.head2 {
    color: rgb(241, 238, 209);
    font-size: 5vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.head3 {
    color: #fff;
    text-align: center;
    font-size: 5vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.head4 {
    color: #c3baa4;
    text-align: center;
    font-size: 5vw;
    max-width: 25vw;
    padding-inline: 10vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.head5 {
    color: #fff;
    text-align: center;
    font-size: 5vw;
    max-width: 35vw;
    padding-inline: 20vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
}




.desc1 {
    color: #fff;
    padding-top: 2vh;
    font-size: 2.5vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    max-width: 60vw;
}




.desc2 {
    color: #fff;
    padding-top: 5vh;
    font-size: 1.75vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    max-width: 60vw;
}

.desc_proj {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #191814;
}

.aboutme {
    color: rgb(222, 219, 209);
    padding-top: 10vh;
    padding-left: 10vw;
    font-size: 2.5vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    text-align: left;
    max-width: 50vw;
}

.aboutme-centering {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
}

.sticker1 {
    position: relative;
    z-index: 5;
    opacity: 0;
    top: 25vh;
    left: 5vw;
    width: 15vw;
}

    .sticker1.in-view {
        position: relative;
        z-index: 5;
        top: 25vh;
        opacity: 1;
        left: 5vw;
        width: 15vw;
        animation-duration: 0.5s;
        animation-delay: 0.25s;
        animation-name: animate-fade;
        animation-timing-function: cubic-bezier(.26,.53,.74,1.48);
        animation-fill-mode: backwards;
        animation-name: animate-splat;
    }

.sticker2 {
    z-index: 5;
    opacity: 0;
    top: 5rem;
    position: relative;
    width: 8vw;
}

    .sticker2.in-view {
        z-index: 5;
        top: 5rem;
        opacity: 1;
        position: relative;
        width: 8vw;
        animation-duration: 0.5s;
        animation-name: animate-fade;
        animation-timing-function: cubic-bezier(.26,.53,.74,1.48);
        animation-fill-mode: backwards;
        animation-name: animate-splat;
    }



@keyframes animate-splat {
    0% {
        opacity: 0;
        transform: scale(0, 0) rotate(20deg) translate(0, -30px);
    }

    70% {
        opacity: 1;
        transform: scale(1.1, 1.1) rotate(15deg);
    }

    85% {
        opacity: 1;
        transform: scale(1.1, 1.1) rotate(15deg) translate(0, -10px);
    }

    100% {
        opacity: 1;
        transform: scale(1, 1) rotate(0) translate(0, 0);
    }
}

.bg-video {
    position: absolute;
    overflow: hidden;
    left: 0;
    top: -10px;
    user-select: none;
    pointer-events: none;
    opacity: 0.45;
    z-index: -10;
    width: 100%;
    aspect-ratio: 16/9;
}

.flowah {
    position: absolute;
    z-index: -1;
    top: 20.5vw;
    left: 39vw;
    height: 30vw;
    max-width: 500px;
    opacity: 0.5;
    filter: grayscale(0.8);
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
}

canvas{
    overflow:hidden;
    min-width: 0;
}

.back {
    position: absolute;
    top: 47vw;
    left: -5px;
    z-index: 0;
    background-color: rgb(22, 22, 22);
    overflow:hidden;
    width: 100vw;
    height: 60rem;
}

.back2 {
    position: absolute;
    top: 120vw;
    left: -5px;
    z-index: -1;
    background-color: rgb(25, 24, 20);
    overflow: hidden;
    width: 100vw;
    height: 200vw;
}

.back3 {
    position: relative;
    min-width: 0;
    max-width: --webkit-fill-available;
    left: -10px;
    z-index: -1;
    background-color: rgb(25, 25, 25);
    overflow: auto;
    width: 100vw;
    height: 50vw;
}

.contact-stuff {
    position: relative;
    background-color: rgb(25, 25, 25);
    overflow: auto;
    width: 100vw;
    z-index: 2;
    height: auto;
    display:flex;
    flex-direction:row;
    gap: 5vw;
    padding-top: 5vw;
    padding-bottom: 5vw;
}

.github{
    cursor: pointer;
    z-index: 1;
    width: 5vw;
    fill:white;
}

.insta {
    z-index: 1;
    cursor: pointer;
    width: 5vw;
    fill: white;
}

.linkedin {
    z-index: 1;
    cursor: pointer;
    width: 5vw;
    fill: white;
}

.bg1 {
    position: absolute;
    left: 0;
    user-select: none;
    pointer-events: none;
    filter: grayscale(1) brightness(0.5);
    z-index: 0;
    width: 100%;
    aspect-ratio: 16/9;
}

.projects {
    display: flex;
    padding-top: 25vw;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 2vw;
}

.pictures {
    display: flex;
    padding-top: 10vw;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
    padding-inline: 10vw;
    gap: 50px;
}

.desc3 {
    display: flex;
    padding-top: 10vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 10vw;
    gap: 50px;
}

a {
    color: #fff;
    text-decoration: none;
}

.d1 {
    color: #fff;
    padding-top: 5vh;
    font-size: 3.5vw;
    z-index: 2;
    font-family: "Caudex", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    max-width: 60vw;
}

.d2 {
    color: #fff;
    padding-top: 5vh;
    font-size: 3.5vw;
    z-index: 2;
    font-family: "Caudex", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    max-width: 60vw;
}

.d3 {
    color: #fff;
    padding-top: 5vh;
    font-size: 3.5vw;
    z-index: 2;
    font-family: "Caudex", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    max-width: 60vw;
}

.chess {
    max-width: 500px;
    width: 25vw;
    border-radius: 5vh;
}

.btb1 {
    max-width: 600px;
    border-radius: 5vh;
    width: 30vw;
}

.btb2 {
    max-width: 600px;
    border-radius: 5vh;
    width: 30vw;
}

.epik {
    max-width: 600px;
    border-radius: 5vh;
    width: 32vw;
}

.card {
    width: 30vw;
    height: 15vw;
    margin: 0 auto;
    background-color: #111111;
    border-radius: 8px;
    z-index: 1;
}

.tools {
    display: flex;
    align-items: center;
    padding: 9px;
}

.circle {
    padding: 0 4px;
}

.box {
    display: inline-block;
    align-items: center;
    width: 10px;
    height: 10px;
    padding: 1px;
    border-radius: 50%;
}

.red {
    width: 0.5vw;
    height: 0.5vw;
    background-color: #ff605c;
}

.yellow {
    width: 0.5vw;
    height: 0.5vw;
    background-color: #ffbd44;
}

.green {
    width: 0.5vw;
    height: 0.5vw;
    background-color: #00ca4e;
}

.pre {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-inline: 3vh;
    text-wrap: nowrap;
    white-space: pre;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 1vw;
}

    .pre code:nth-child(1) {
        color: #575757;
    }

    .pre code:nth-child(2) {
        color: #e34ba9;
    }

.cmd {
    height: 1vw;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    flex-direction: row;
}

    .cmd::before {
        content: attr(data-cmd);
        position: relative;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        background-color: transparent;
        animation: inputs 8s steps(40) infinite;
    }

    .cmd::after {
        content: "";
        position: relative;
        display: block;
        height: 100%;
        overflow: hidden;
        background-color: transparent;
        border-right: 0.15em solid #e34ba9;
        animation: cursor 0.5s step-end infinite alternate, blinking 0.5s infinite;
    }




.project-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    width: 600px;
    height: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
    opacity: 0.9;
}

.project-info {
    padding: 1rem;
    color: #fff;
    text-align: center;
}

.project-title {
    font-size: 1.5rem;
    font-family: "Caudex", serif;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ccc;
    line-height: 1.5;
}


.project-card-ctf {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    max-height: 35vh;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-card-ctf:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.project-image-ctf {
    width: 100%;
    height: 135px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-card-ctf:hover .project-image-ctf {
    opacity: 0.9;
}

.project-info-ctf {
    padding: 1vw;
    color: #fff;
    text-align: center;
}

.project-title-ctf {
    font-size: 1.5vw;
    font-family: "Caudex", serif;
    margin-bottom: 0.5rem;
}

.project-description-ctf {
    font-size: 1vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ccc;
    line-height: 1.5;
}


.ctf-github {
    position: relative;
    background: #1f1d1d;
    top: -50vw;
    width: 110%;
    left: -6vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}


.ctf-section {
    background: #1f1d1d;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    max-height: 70vw;
}

.ctf-image1 {
    position: relative;
    width: 110%;
    right: 5%;
    top: -8vw;
    filter: grayscale(1) brightness(1);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.ctf-image2 {
    width: 50%;
    right: 5%;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.ctf-heading {
    font-size: 3vw;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 1.5rem;
    color: #ffcccc;
}

.ctf-description {
    max-width: 80%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    font-size: 2vw;
    font-weight: 600;
    line-height: 1.8;
    top: -50vw;
    color: #e8b9b9;
}


.scroller {
    max-width: 75vw;
    z-index: 10;
    padding-top: 10vh;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient( 90deg, transparent, white 20%, white 80%, transparent );
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

    .scroller[data-animated="true"] .scroller__inner {
        width: max-content;
        flex-wrap: nowrap;
        animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    }

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

@keyframes blinking {
    20%, 80% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0);
    }
}

@keyframes cursor {
    50% {
        border-right-color: transparent;
    }
}

@keyframes inputs {
    0%, 100% {
        width: 0;
    }

    10%, 90% {
        width: 100px;
    }

    30%, 70% {
        width: 400px;
        max-width: max-content;
    }
}


::-webkit-scrollbar {
    height: 0px;
    width: 5px;
    background: rgb(0,0,0);
}


::-webkit-scrollbar-track {
    box-shadow: inset 0 0 1px rgb(0, 0, 0);
    border-radius: 10px;
}


::-webkit-scrollbar-thumb {
    background: rgb(241, 238, 238);
    border-radius: 10px;
}





