.pinWrapper {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 11;
}

.scrollmagic-pin-spacer {
    position: absolute !important;
    clip: rect(auto, auto, auto, auto);
}

.event {
    position: relative;
    overflow: hidden;
    height: 100svh;
    width: 100vw;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.event-1 {
    height: 45svh;
}

.event::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#section2.event::before {
    background-color: rgb(21 22 28 / 34%);
}

#section3.event::before {
    background-color: rgb(86 82 76 / 57%);
}

#section2 {
    background-image: url("../images/home/category_floor_1.jpg");
}

#section3 {
    background-image: url("../images/home/category_cabinet.jpg");
}

.image {
    height: 100%;
    width: 100%;
    top: 0%;
    left: 0%;
    position: absolute;
    background-size: cover;
    background-position: center center;
    transition: width 1s, height 1s;
    box-shadow: 2px 2px 10px 10px rgb(0 0 0 / 12%);
    transform-origin: center;
    z-index: 8888;
    overflow: hidden;
    border-radius: 0;
}

.image:not(#loaderVideo) {
    top: -50%;
    width: 500px;
    height: 500px;
    left: auto;
    right: 100px;
    position: absolute;
    border-radius: 12px;
    transform: translate(0%, -50%);
}

#section1 .image video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

#section2 .image {
    background-image: url("../images/home/category_floor_1_small.jpg");
}

#section3 .image {
    background-image: url("../images/home/category_cabinet_small.jpg");
}

/* Section Text */
.text {
    position: absolute;
    top: -50%;
    left: 0;
    transform: translate(100px, -50%);
    width: 43%;
    color: #fff;
}

.text h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.08rem;
    margin-bottom: 35px;
}

.text h2 small {
    font-size: 24px;
}

.text p {
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.08rem;
    margin-bottom: 30px;
}

.text a {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.08rem;
    color: #fff;
    border: 1px solid #fff;
    padding: 6px 25px;
    position: relative;
}

.text a::before {
    content: '';
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: .4s ease-in-out;
}

.text a i {
    display: inline-block;
    transform: translateX(0);
    transition: .5s ease-in-out;
}

.text a:hover {
    color: #D13239;
}

.text a:hover i {
    transform: translateX(6px);
    transition: .5s ease-in-out;
}

.text a:hover::before {
    width: 100%;
    transition: .4s ease-in-out;
}

/* Scroll Button */
.scrollBtn {
    position: absolute;
    bottom: 2.5%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
    transition: all ease-in-out 0.35s;
}

.scrollBtn.move {
    visibility: hidden;
    opacity: 0;
}

.scrollBtn span {
    width: 12px;
    height: 12px;
    display: block;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    animation: animate 2s infinite;
    margin: auto;
}

.scrollBtn h6 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    font-family: "Titillium Web", sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

@-webkit-keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Preloader */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s;
}

#preloader img,
#preloader video {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

#preloader::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    z-index: 1;
}

.text-wrapper {
    text-align: center;
    height: 24px;
    overflow: hidden;
    transition: opacity 1s;
}

#first-text {
    animation: moveUp 1s 1s forwards;
}

#second-text {
    opacity: 0;
    transform: translateY(-30px);
    animation: scrollup 1s 1.2s forwards, moveUpAgain 1s 2.2s forwards;
}

@keyframes moveUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@-webkit-keyframes moveUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes scrollup {
    100% {
        transform: translateY(-54px);
    }
}

@-webkit-keyframes scrollup {
    100% {
        transform: translateY(-54px);
    }
}

@keyframes moveUpAgain {
    0% {
        transform: translateY(-54px);
        opacity: 1;
    }

    60% {
        transform: translateY(-54px);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px);
        opacity: 0;
    }
}

@-webkit-keyframes moveUpAgain {
    0% {
        transform: translateY(-54px);
        opacity: 1;
    }

    60% {
        transform: translateY(-54px);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px);
        opacity: 0;
    }
}

/* Media Query */
@media screen and (max-width: 1399px) {
    h2 {
        font-size: 22px;
    }

    p {
        font-size: 38px;
    }

    .text {
        transform: translate(60px, -50%);
        -webkit-transform: translate(60px, -50%);
    }

    .image:not(#loaderVideo) {
        height: 450px;
        width: 450px;
        right: 80px;
        transform: translate(0%, -50%);
        -webkit-transform: translate(0%, -50%);
    }
}

@media screen and (max-width: 1199px) {
    h2 {
        font-size: 20px;
    }

    p {
        font-size: 34px;
    }

    .text {
        transform: translate(40px, -50%);
        -webkit-transform: translate(40px, -50%);
        width: 44%;
    }

    .image:not(#loaderVideo) {
        height: 400px;
        width: 400px;
        right: 60px;
        transform: translate(0%, -50%);
        -webkit-transform: translate(0%, -50%);
    }
}

@media screen and (max-width: 991px) {
    h2 {
        font-size: 18px;
    }

    p {
        font-size: 26px;
    }

    .text {
        transform: translate(24px, -50%);
        -webkit-transform: translate(24px, -50%);
        width: 44%;
    }

    .image:not(#loaderVideo) {
        height: 310px;
        width: 310px;
        right: 40px;
        transform: translate(0%, -50%);
        -webkit-transform: translate(0%, -50%);
    }
}

@media screen and (max-width: 769px) {
    .event-1 {
        height: 30svh;
    }

    h2 {
        font-size: 16px;
    }

    p {
        font-size: 22px;
    }

    .image:not(#loaderVideo) {
        height: 220px;
        width: 220px;
    }
}

@media screen and (max-width: 576px) {
    .text {
        top: -36%;
        width: 100%;
        width: calc(100% - 80px);
        margin-top: 20px;
    }

    #section1 .text {
        top: 64%;
    }

    .text h2 {
        font-size: 26px;
        margin-bottom: 15px;
        line-height: 1;
    }

    .text h2 small {
        font-size: 20px;
    }

    .text p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .text a {
        font-size: 14px;
    }

    .image:not(#loaderVideo) {
        top: -75%;
        left: 24px;
        right: auto;
        transform: translate(0%, -25%);
        -webkit-transform: translate(0%, -25%);
    }

    .event-1 {
        height: 55svh;
    }
}