.main {
    min-height: calc(100vh - 3rem);
    margin-bottom: 2rem;
    width: 100vw;
    margin-left: calc(-1 * var(--page-padding));
    overflow: hidden;
}



.main .backg {
    z-index: -1 !important;


    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgb(0, 0, 0) 85%);
    width: 100vw;
    height: 125%;
}



.main img {
    margin-top: 4rem;
    max-width: 35rem;
    width: 90%;
    position: relative;
}

.main>div[data-moonParallax] {
    z-index: -1;
}

.main h1 {
    font-size: var(--h1-big);
}

#nbody::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(max(min(750px, 35vw), 250px) 750px at 2vw 850px, rgba(39, 179, 255, .15) 0, transparent 100%), radial-gradient(max(min(600px, 30vw), 200px) 1000px at 5vw 1800px, rgba(149, 110, 212, .1) 0, transparent 100%), radial-gradient(max(min(1000px, 50vw), 350px) 800px at 100vw 300px, rgba(250, 157, 169, .25) 0, transparent 100%), radial-gradient(max(min(600px, 30vw), 200px) 600px at 115vw 800px, rgba(255, 198, 18, .17) 0, transparent 100%), radial-gradient(max(min(800px, 30vw), 300px) 600px at 95vw 2700px, rgba(250, 157, 169, .08) 0, transparent 100%), radial-gradient(max(min(600px, 20vw), 200px) 800px at 100vw 3000px, rgba(149, 110, 212, .08) 0, transparent 100%), radial-gradient(max(min(600px, 20vw), 200px) 600px at -2vw 4000px, rgba(255, 198, 18, .07) 0, transparent 100%), radial-gradient(max(min(750px, 25vw), 250px) 750px at 5vw 4400px, rgba(39, 179, 255, .1) 0, transparent 100%), radial-gradient(max(min(1000px, 35vw), 350px) 800px at 0 5100px, rgba(250, 157, 169, .15) 0, transparent 100%), radial-gradient(max(min(600px, 20vw), 200px) 600px at 95vw 5800px, rgba(255, 198, 18, .17) 0, transparent 100%), radial-gradient(max(min(700px, 23vw), 230px) 1000px at 100vw 6400px, rgba(149, 110, 212, .1) 0, transparent 100%), radial-gradient(max(min(700px, 23vw), 230px) 400px at -5vw 6800px, rgba(255, 198, 18, .05) 0, transparent 100%), radial-gradient(max(min(750px, 25vw), 250px) 750px at 110vw 7000px, rgba(39, 179, 255, .07) 0, transparent 100%), radial-gradient(max(min(1000px, 35vw), 350px) 800px at 0 7100px, rgba(250, 157, 169, .05) 0, transparent 100%), radial-gradient(max(min(800px, 30vw), 300px) 1200px at -5vw 7000px, rgba(149, 110, 212, .05) 0, transparent 100%), radial-gradient(max(min(750px, 25vw), 250px) 700px at 100vw 7800px, rgba(39, 179, 255, .15) 0, transparent 100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    perspective: 1000;
    background-size: 100% 10000px;
}


h1.massive {
    z-index: -5;

    background: linear-gradient(180deg, rgb(100, 100, 100), black 65%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;

    font-size: 50vw;
    font-family: var(--p-font);
}

h1.massive.story {
    background: linear-gradient(180deg, rgb(36, 36, 36), black 85%);
    -webkit-background-clip: text;
    background-clip: text;

}



.bubble {
    --size: 8rem;
    position: absolute;
    width: var(--size);
    height: var(--size);
    object-fit: cover;
    border-radius: 50%;
    background-size: cover;

    z-index: -1;
    animation: float 4s ease-in-out infinite;

    transition: all .5s ease, transform 0s;

    /* box-shadow: inset 0 0 .5rem rgb(0, 0, 0); */

    opacity: .2;
}

@keyframes float {

    /* simulate translateY without transform */
    0% {
        margin-top: 0;
    }

    50% {
        margin-top: -1rem;
    }

    100% {
        margin-top: 0;
    }
}


.trusted {
    gap: 2rem;
}

.trusted img {
    height: 5rem;
    width: auto;
    opacity: .5;
}

@media screen and (max-width: 700px) {
    .trusted {
        gap: 1rem;
    }

    .trusted img {
        height: 3.5rem !important;
    }
}



/* Portfolio */

.portfolio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0 calc(-1 * var(--padding));
    margin-left: calc(-1 * var(--padding) - 8rem);

    transform: rotateZ(5deg);
    position: relative;

    /* margin-top: 10rem; */
}

.portfolio-wrapper h2:not(.exclude) {
    white-space: nowrap;
    line-height: 2;
}

.portfolio-wrapper .textrow {
    margin-left: -40rem;
}

.portfolio-wrapper .img {
    width: 35rem;
    aspect-ratio: 1.81;
    background-size: cover;
    border-radius: 1rem;

    box-shadow: 0 0 3rem var(--shadow), inset 0 0 2rem white;
    position: relative;

    cursor: pointer;

}

.portfolio-wrapper .img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient1);
    border-radius: 1rem;
    z-index: -1;
    filter: blur(0rem);
    transition: all 0.5s ease-in-out;
}

.portfolio-wrapper .img:hover::after {
    filter: blur(1.5rem);
}

.portfolio-wrapper .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;

    transition: all .5s ease, transform 0s;
}


.portfolio-wrapper .row:nth-child(3) {
    margin-left: 10rem;
}

.portfolio-wrapper .row:nth-child(4) {
    margin-left: -32rem;
}

.portfolio-wrapper .row:nth-child(1) {
    margin-left: 60rem;
}


#globeMain {
    user-select: none;
    position: relative;
    z-index: -1;
    margin-right: -20rem;
}

#globeMain * {
    transition: none !important;
}








:root {
    --point-spacing: .75rem;
    --story-spacing: 10rem;
}

.line {
    width: .15rem;
    content: "";
    border-radius: .25rem;
    background: var(--primary-more);
    height: calc(100% + var(--story-spacing));
    position: absolute;
    top: 0;
}

.line>div {
    width: 100%;
    background: var(--primary);
    box-shadow: 0 0 3rem var(--primary-more);

    height: 0;
    transition: height 1s ease;
}

.line.aos-animate>div {
    height: 100%;
}

.point::before {
    content: "";
    position: absolute;
    top: -.5rem;
    left: -.5rem;
    right: -.5rem;
    bottom: -.5rem;
    border-radius: 50%;
    filter: blur(1rem);

    background: var(--gradient-smooth-r);
    background-size: 150% 100%;
    animation: scroll 2000s linear infinite;

    opacity: 0;
}

.point {
    --size: 1.5rem;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;

    position: relative;
    z-index: 100;

    opacity: .1;

}

.point.aos-animate {
    opacity: 1;
}

.point.aos-animate::before {
    opacity: .7;
}



.story-splitter {
    display: grid;
    grid-template-columns: 1fr 9fr;
    gap: 2rem;
    margin-top: var(--story-spacing);
}

.story-splitter>div:nth-child(1) {
    position: relative;
}

.story-splitter img {
    max-width: 30rem;
    border-radius: .5rem;
    margin-top: 1rem;

}

.story-splitter .text {
    transform: translateY(calc(-1 * var(--point-spacing)));
}

.story-splitter .text p {
    max-width: 50rem;
}





/* Social Icons */

:root {
    --horizontal-social-icon-pos: -7.5rem;
    --vertical-social-icon-pos: -7.5rem;
}

.moveToMouse {
    --size: 6rem;
    font-size: var(--size);
    cursor: pointer;
    color: var(--primary);

}

@media screen and (max-width: 1200px) {
    :root {
        --horizontal-social-icon-pos: 0rem;
    }
}

@media screen and (max-width: 900px) {
    .moveToMouse {
        --size: 5rem;
    }

    :root {
        --horizontal-social-icon-pos: 1rem;
    }
}

.moveToMouse:hover {
    /* text glow */

    text-shadow: 0 0 3rem var(--primary-more);
}


div.moveToMouse:hover {
    box-shadow: 0 0 3rem var(--primary);
}


#typeCursor {
    animation: blink 1s infinite;
    margin-right: 1rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}








/* Stats by the globe */


#new-stats {
    display: none;


    --border-style: solid 1px var(--primary-more);
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-top: var(--border-style);
    border-bottom: var(--border-style);
    backdrop-filter: blur(1rem);
    width: calc(100vw - var(--scrollbar));
    margin-top: -12.5rem;
}



/* Contact Bubble */

.contact-bubble {

    --size: 10rem;

    background: var(--primary);
    color: var(--back);
    border-radius: 50%;


    width: var(--size);
    height: var(--size);


    /* animation: float 5s ease-in-out infinite; */
}

.contact-bubble.active {
    --size: 150vh;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    transform: none !important;
}

.contact-bubble:not(.active)>h3 {
    opacity: 1;
}

.contact-bubble:not(.active)>div {
    opacity: 0;
    display: none;
}


.contact-bubble.active>h3 {
    opacity: 0;
    display: none;

}

.contact-bubble.active>div {
    opacity: 1;
}

.contact-bubble h3 {
    font-size: 1.25rem;
}

.contact-bubble * {
    color: var(--back);
}

.contact-bubble input,
.contact-bubble textarea {
    background: rgba(0, 0, 0, 0.05);
}

.contact-bubble button {
    background: var(--back);
    color: var(--primary)
}



.moveToMouse {
    transition: all var(--global-transition), transform 0s !important;
}




/* Scroll Container for the Scroll */

.scrollcontainer {
    width: calc(100vw - .5rem) !important;
    margin-left: calc(-1 * var(--page-padding));
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    padding: 1rem 0;
    gap: 2rem;
    scroll-behavior: auto;
}

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



.ip:not(.active) {
    display: none;
}

.reveal {
    cursor: pointer;
}

.reveal.active {
    display: none;
}


@media screen and (max-width: 800px) {
    .main img {
        margin-top: 0 !important;
    }

    .main p.semibig {
        display: none !important;
    }

    .main button .gradient-bubble {
        display: none !important;
    }


    #trusted-wrapper {
        margin-top: 3rem !important;
    }

    #stats {
        display: none;
    }

    #new-stats {
        display: flex;
    }

    #globeMain {
        margin-right: 0;
        margin-top: -10rem;
    }

    #funny {
        display: none;
    }

    .story-splitter img {
        max-width: 17.5rem;
    }

    .portfolio-wrapper {
        display: none;
    }

    .postfooter .gradient-bubble {
        display: none;
    }

    h1.massive {
        font-size: 75vw;
    }

}