@property --scale {
    syntax: "<number>";
    initial-value: 1;
    inherits: true;
}

:root {
    --scroll-multiplier: 300px;
    --section-spacing: 20vh;
    --title-y-offset: 92vh;
}

body {
    overflow-x: hidden;
    width: 100vw;
}

.body-width {
    max-width: 80%;
    margin: 0 auto;
}

.slide-left {
    margin-right: calc(var(--scroll-multiplier) * (1 - var(--first-scroll)));
    opacity: var(--first-scroll);
}

.slide-right {
    margin-left: calc(var(--scroll-multiplier) * (1 - var(--first-scroll)) + 20px);
    opacity: var(--first-scroll);
}



#small-logo {
    position: fixed;
    top: 20px;
    left: 50px;
    width: 120px;
    z-index:80;
}

#static-background {
    width: 100vw;
    position: absolute;
    top:0;
    left:0;
    background-image: url('../sources/trial-img.webp');
    background-attachment: fixed;
    height: 120vh;
    z-index: 90;
}

#splash-screen-container {
    background-color: var(--white);
    padding: 100px;
    border-radius:50%;
    width: 500px;
    height: 500px;
    margin: 45vh auto 0 auto;
    transform: translateY(-50%);
}

@media (max-width: 500px){
    #splash-screen-container {
        width: 98vw;
        height: 98vw;
    }
}

#splash-screen {
    margin-top: 50%;
    transform: translate(-50%,-50%);
    max-width: none;
    width: 135%;
    margin-left: 50%;
    object-fit: cover;
}

#splash-screen-title {
    position: absolute;
    font-family: terminaTest;
    top: var(--title-y-offset);
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    left: 0;
    z-index: 100;
    color: white;
    font-size: 10vh;
}

.animate-bottom{
    animation: animatebottom 2s;
}

@keyframes animatebottom {
    from{transform:translateY(20vh);opacity:0;} to {transform:translateY(-50%);opacity:1;}
}

#first-container img {
    left: 15px;
    top: calc(300px * (1 - var(--first-scroll)) + 60px);
    position: relative;
}

#first-container {
    margin: auto;
    margin-top: calc(135vh);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100vw;
    margin-left: calc(-10vw * var(--scale));
    gap: 3vw;
}

#first-container * {
    min-width: 0;
}

#first-container > * {
    margin: 20px;
}

#first-container .slide-left {
    margin-bottom: auto;
}

#first-container #img-background {
    flex: 1 1 auto;
    height: auto;
    max-width: min(500px, 33%);
    opacity: var(--first-scroll);
    /* margin-top: calc(200px * (1 - var(--first-scroll)) + 60px); */
    clip-path: circle(49%);
    background-image: url("../sources/trial-img-vertical.webp");
    position: relative;
    padding: 10px 15px 0px 15px;
}


#first-container p {
    margin-top: 30px;
    font-size: 3.5rem;
    font-family: Montserrat;
    width: 48rem;
    line-height: 130%;
    
}

#first-container h1 {
    font-size: 17rem;
    width: 55rem;
}

#first-container #last-text {
    margin-top: 480px;
    text-align: right;
}

#expertise {
    margin-top: var(--section-spacing);
    margin-bottom: 60px;
}

.slide-left2 {
    position: relative;
    right: calc(var(--scroll-multiplier) * (1 - var(--second-scroll)));
    opacity: var(--second-scroll);
}

#skill-bar-parent {
    position: relative;
    left: calc(-10vw * var(--scale));
    margin-bottom: var(--section-spacing);
}

.skill-bar:hover {
    background-color: var(--blue);
}

.skill-bar:hover img {
    filter: grayscale(100%) brightness(500%);
}

.skill-bar:hover p {
    display: none;
}

.skill-bar:hover .progress-bar {
    display: block;
}

.skill-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    padding-left: calc(10vw * var(--scale));
    width: 100vw;
}

.skill-bar p {
    color: var(--purple);
    font-size: 6rem;
    font-family: myGothicDemi;
    letter-spacing: 10px;
    margin-left: 4vw;
}

.skill-bar img {
    transition: .3s;
    width: 100px;
}

#footer {
    width: 100vw;
    background-color: var(--orange);
    margin-left: calc(-10vw * var(--scale));
}

#footer p {
    color: white;
    font-size: 14px;
    margin-left: 10px;
}

.progress-bar {
    display: none;
    border-radius: 15px;
    background-color: #D5D4CF;
    height: 70px;
    width: 100%;
    margin-left: 4vw;
    margin-right: 10%;
}

.progress {
    border-radius: inherit;
    background-color: var(--orange);
    width: 0%;
    height: 100%;
}

#featured-work {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: myGothicDemi;
    text-align: center;
    font-size: 9rem;
    background-image: url("../sources/trial-img-cropped.webp");
    background-attachment: fixed;
    background-size: cover;
    color: white;
    padding: 180px calc((var(--third-scroll) * 50vw) + 80px);
    border-radius: 180px;
    transform: translateX(-50%);
    margin-left: calc(-10vw * var(--scale) + 50vw);
    min-height: 105vh;
}

#featured-work-img-only {
    width: auto;
    text-align: center;
}

#featured-work-image {
    position: relative;
}

.arrow {
    position: absolute;
    color: white;
    width: 10rem;
    user-select: none;
}

.image-number {
    position: absolute;
    font-size: 6rem;
    text-orientation: sideways;
    writing-mode: horizontal-tb;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.arrow:hover {
    cursor: grab;
}

.prev {
    left: 10px;
    transform:translateY(-50%) rotate(180deg);
}

.next {
    right: 10px;
    transform:translateY(-50%);
}

#featured-work-img-only img {
    max-height: 85vh;
    max-width: 85vw;
    border-radius: 15px;
}

#featured-work-text {
    line-height: calc(var(--third-scroll) * 15vw + 15rem);
    letter-spacing: calc(3rem * var(--third-scroll));
    opacity: calc(1 - var(--third-scroll));
    padding-top: 20px;
    height: fit-content;
}

#featured-work-text #work {
    letter-spacing: calc(5rem * var(--third-scroll));
}

#see-more {
    text-align: center;
    font-family: myGothicBold;
    color: var(--white);
    letter-spacing: 10px;
    margin: auto;
    margin-bottom: 100px;
    width: 80%;
    
}

#angle-bracket {
    width: 50vw;
    margin: 20px auto;
}

#see-more-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 7vw;
    /* margin-left: calc(-10vw * var(--scale)); */
    width: 100vw;
}

#see-more-container a {
    font-size: 8rem;
    padding: 20px 70px;
}

@media (max-width: 1100px)  {
    #see-more-container a {
        font-size: 5.5rem;
    }
}

#see-more-container a:hover {
    color: var(--orange);
    background-color: white;
}

#last-section {
    width: 100vw;
    margin-left: calc(-10vw * var(--scale));
    padding: 150px 0;
    margin-top: var(--section-spacing);
    background-image: url("../sources/trial-img.webp")
}


@media (max-width: 768px) {
    html {
        font-size: 25% !important;
    }

    :root {
        --scale: 1;
    }

    .body-width {
        max-width: 80%;
    }

    #angle-bracket {
        display: none;
    }

    #splash-screen-title {
        font-size: 12vw;
    }

    #see-more-container {
        flex-direction: column;
        gap: 20px;
    }

    #see-more-container a {
        font-size: 6vw;
        padding: 20px 30px;
        width: fit-content;
        margin: auto;
    }

    #small-logo {
        display: none;
    }

    .skill-bar img {
        width: 70px;
    }

    .progress-bar {
        height: 50px;
    }

    .skill-bar p {
        font-size: 5rem;
    }

    #first-container {
        flex-direction: column;
    }

    #first-container > *{
        width: 80vw;
        margin: auto;
    }

    #first-container p {
        font-size: 3.5rem;
        text-align: center;
        width: 80%;
        margin: auto;
    }

    #first-container h1 {
        width: 100%;
        margin: auto;
        text-align: center;
    }

    #first-container #last-text {
        margin-top: 5rem;
        text-align: center;
    }

    #first-container #img-background {
        max-width: 300px;
    }
    /*

    #first-container div {
        max-width: 100%;
    }

    

    

    .skill-bar p {
        margin-left: 10px;
    }

    #see-more {
        margin-top: 100px;
        margin-bottom: 15px;
    }

    

    #splash-screen {
        margin: 120px auto 80px auto;
        max-width: 95%;
    }

    #first-container {
        margin-top: 100px;
        gap: 20px;
    }

    #first-container p {
        margin-top: 10px;
    }

    #expertise {
        margin-top: 100px;
        margin-bottom: 20px;
    }

    #featured-works {
        margin-top: 100px;
    } */
} 

@media (max-width: 1919px){
    :root {
        --title-y-offset: 98vh;
    }
}

@media (min-width: 1080px) {
    :root {
        --scale: 2;
    }

    .body-width {
        width: 60%;
    }

    /*
    #skill-bar-parent {
        left: -20vw;
    }

    .skill-bar {
        padding-left: 20vw;
    } 


    #footer {
        margin-left: -20vw;
    }

    #featured-works {
        left: -20vw;
    }

    #see-more-container {
        margin-left: -20vw;
    } */
}