:root {
  --mobile-card-max-height: calc(100% - calc(2.5rem + 3em + 32px));
}

.ofelia-display {
    font-family: "ofelia-display", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-variation-settings: "wdth" 110, "wght" 300;
    font-size: 48.03px;
}

.ofelia-font {
    font-family: "ofelia-display", sans-serif;
    font-weight: 300;
    font-style: normal;
}

blockquote, figure, h1, h2, h3, h4, h5, h6, p, pre {
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior: none;
    /* overflow: hidden; */
}

body.loading {
    overflow-y: hidden;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #bdbdbd #ffffff;
    scroll-behavior: smooth;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: scrollbar-width;
}

html.loading {
    scrollbar-width: none;
}

main {
    /* padding: 8rem 0 0 0;
    height: calc(100vh - 8rem); */
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#main-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0);
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: opacity;
}

.link-text {
    font-size: 24px;
    /* line-height: 24px; */
    margin: 0px;
    color:#ffffff;
    white-space: nowrap;
}

.link-decoration {
    background-color: #ffffff;
    height: 2.5px;
    width: 0%;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-property: width;
}

.hover-card .link-text {
    color:#000000;
}

#section-background {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow: hidden;
}

#cubic-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#cubic-background {
    height: 100%;
    width: 100%;
    transform: scale(1.2);
    display: block;
    filter: blur(10px);
}

#cubic-background-mobile {
    height: 100%;
    width: auto;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    filter: blur(10px);
}

#background-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, rgba(220, 65, 178, 0.7), rgba(220, 65, 178, 0.3) 30.71%, rgba(220, 65, 178, 0) 50%), 
    linear-gradient(315deg, rgba(149, 31, 212, 0.7), rgb(149, 31, 212, 0.3) 30.71%, rgb(149, 31, 212, 0) 50%), 
    linear-gradient(270deg, rgb(80, 53, 233, 1), rgb(80, 53, 233, 0.7) 30%, rgba(233, 53, 53, 0));
    /* backdrop-filter: blur(10px); */
}

#section-container {
    position: relative;
    
}

#section-content-container {
    padding: 8rem 0 0 0;
    height: calc(100vh - 8rem);
}

#page-title {
    width: 100%;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
}

.page-title-column {
    display: flex;
    flex-direction: column;
}

#page-title .h1 {
    text-align: center;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
    color: transparent;
    font-weight: 400;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, rgb(193, 236, 255), #ffffff 25%, #ffffff 75%, rgb(250, 164, 255));
}

.title-underline {
    background-image: linear-gradient(to right,rgb(193, 235, 254), #ffffff, rgb(255, 164, 253));
    /* background-image: linear-gradient(to right, rgb(148, 26, 26), rgb(121, 26, 148), rgb(44, 34, 152)); */
    width: 5rem;
    height: 0.25rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

#carousel-section {
    height: calc(100% - calc(2.5rem + 32px));
    width: 100vw;
    display: flex;
    flex-direction: column;
}

#carousel-container {
    height: calc(100% - calc(2.5rem + 3em + 32px));
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#carousel-section-row {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 600px;
    height: 100%;
    perspective: 500px;
    transform-style: preserve-3d;
}

.carousel-section {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--offset) * 50deg)) scaleY(calc(1 + var(--abs-offset) * -0.4)) translateZ(calc(var(--abs-offset) * -30rem)) translateX(calc(var(--direction) * -8rem));
    filter: blur(calc(var(--abs-offset) * 1rem));
    transition: all 0.3s ease-out;
}

.testimonial-card-container {
    margin: 0;
    height: 100%;
    width: 100%;
    /* aspect-ratio: 16 / 9; */
    /* backdrop-filter: blur(10px); */
}

.testimonial-card {
    backdrop-filter: blur(20px);
    padding: 2rem;
    height: calc(100% - 4rem);
    width: calc(100% - 4rem);
    
    background-image: linear-gradient(to bottom right, hsla(224, 73%, calc(30% - var(--abs-offset) * 15%), 0.7), hsla(256, 67%, calc(30% - var(--abs-offset) * 15%), 0.7));
    box-shadow: inset -4px -4px white, inset 4px 4px #ffffff, inset -4px 4px #ffffff, inset 4px -4px #ffffff, 0 0.3px 0.7px rgba(0, 0, 0, 0.126), 0 0.9px 1.7px rgba(0, 0, 0, 0.179), 0 1.8px 3.5px rgba(0, 0, 0, 0.224), 0 3.7px 7.3px rgba(0, 0, 0, 0.277), 0 10px 20px rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.card-content-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    width: 100%;
    opacity: var(--active);
}

.card-content-text {
    /* text-align: center; */
    color: white;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 300;
}

.card-content-client {
    text-align: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 400;
    margin-top: 1rem;
}

.carousel-button-flex {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.arrow-container {
    width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arrow-container.arrow-left {
    margin-left: 20px;
    transform: scale(-1);
}

.arrow-container.arrow-right {
    margin-right: 20px;

}

#carousel-selection-container {
    height: 3rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    position: relative;
}

#carousel-selection-container > .carousel-button-flex {
    display: none;
}

.arrow-icon .cls-1 {
    fill: #fff;
    stroke: #ffffff00;
    stroke-width: 2px;
    transition: all 0.3s ease-out;
}

.arrow-icon:hover .cls-1 {
    fill: rgb(127, 255, 195);
}

@media only screen and (max-width: 1020px) {
    #cubic-background {
        height: 100%;
        width: 100%;
        transform: scale(1.2);
        display: none;
        filter: blur(10px);
    }

    #cubic-background-mobile {
        height: 100%;
        width: auto;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        filter: blur(10px);
    }

    #background-blur {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(220, 65, 178, 0.7), rgba(220, 65, 178, 0.3) 30.71%, rgba(220, 65, 178, 0) 50%), 
        linear-gradient(225deg, rgba(149, 31, 212, 0.7), rgb(149, 31, 212, 0.3) 30.71%, rgb(149, 31, 212, 0) 50%), 
        linear-gradient(180deg, rgb(80, 53, 233, 1), rgb(80, 53, 233, 0.7) 30%, rgba(233, 53, 53, 0));
        /* backdrop-filter: blur(10px); */
    }

    #mobile-header {
        display: inline;
        position: fixed;
        width: 100vw;
        /* background-color: white; */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 50;
        transform: translateY(0%);
        animation-duration: 1600ms;
        animation-delay: 0001ms;
        animation-timing-function: cubic-bezier(0.17, 0.17, 0.24, 1);
        animation-iteration-count: 1;
        animation-direction: normal;
        animation-fill-mode: forwards;
        animation-play-state: paused;
        animation-name: header-drop;
    }

    #mobile-header:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        opacity: 1;
        background-color: rgba(255, 255, 255, 0);
        transition-duration: 0.4s;
        transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
        transition-property: opacity;
    }

    #section-content-container {
        position: relative;
        padding: 6rem 0 0 0;
        max-height: min-content;
    }

    #page-title {
        width: 100%;
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        position: relative;
    }

    #page-title .h1 {
        text-align: center;
        font-weight: 400;
        font-size: 2rem;
        line-height: 1;
        color: transparent;
        font-weight: 400;
        -webkit-background-clip: text;
        background-clip: text;
        background-image: linear-gradient(to right, rgb(193, 236, 255), #ffffff 25%, #ffffff 75%, rgb(250, 164, 255));
    }

    #carousel-section {
        position: relative;
        padding: 0 10px;
        max-height: min-content;
        width: calc(100vw - 20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    #carousel-container {
        height: var(--mobile-card-max-height);
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .testimonial-card {
        backdrop-filter: blur(20px);
        padding: 2rem;
        height: min-content;
        width: calc(100% - 4rem);
        
        background-image: linear-gradient(to bottom right, hsla(224, 73%, calc(30% - var(--abs-offset) * 15%), 0.7), hsla(256, 67%, calc(30% - var(--abs-offset) * 15%), 0.7));
        box-shadow: inset -4px -4px white, inset 4px 4px #ffffff, inset -4px 4px #ffffff, inset 4px -4px #ffffff, 0 0.3px 0.7px rgba(0, 0, 0, 0.126), 0 0.9px 1.7px rgba(0, 0, 0, 0.179), 0 1.8px 3.5px rgba(0, 0, 0, 0.224), 0 3.7px 7.3px rgba(0, 0, 0, 0.277), 0 10px 20px rgba(0, 0, 0, 0.4);
        border-radius: 0.75rem;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: row;
    }

    .card-content-wrap {
      display: flex;
      flex-direction: column;
      height: min-content;
      justify-content: center;
      width: 100%;
      opacity: var(--active);
  }

    .card-content-text {
        /* text-align: center; */
        color: white;
        font-size: 1rem;
        line-height: 1.25rem;
        font-weight: 300;
    }

    .card-content-client {
        text-align: center;
        color: white;
        font-size: 1.25rem;
        font-weight: 400;
        margin-top: 1rem;
    }

    #carousel-selection-container {
        height: 4rem;
        width: 100%;
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        margin-bottom: 0;
    }

    .arrow-container {
        width: 25px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #carousel-selection-container > .carousel-button-flex {
        display: flex;
    }

    #carousel-container > .carousel-button-flex {
        display: none;
    }

}