/* CSS RESTART */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* ROOT */

:root {
    --backgroundColor: #0a0b15;
    --backgroundGray: #3f3f44;
}

@font-face {
    font-family: 'michroma';
    src: url(../Font/Michroma-Regular.ttf);
}

@keyframes scale {
    100% {
        transform: scale(.8);
    }
}

@keyframes slider1 {
    0% {
        right: calc(100% - 350px);
    }

    22% {
        right: calc(100% - 350px);
    }

    28% {
        right: calc(100% + 20px);
    }

    28.000000000001% {
        right: -370px;
    }

    72% {
        right: -370px;
    }

    78% {
        right: 0;
    }

    94% {
        right: 0;
    }

    100% {
        right: calc(100% - 350px);
    }
}

@keyframes slider2 {
    0% {
        right: 0;
    }

    22% {
        right: 0;
    }

    28% {
        right: calc(100% - 350px);
    }

    47% {
        right: calc(100% - 350px);
    }

    53% {
        right: calc(100% + 20px);
    }

    53.000000000001% {
        right: -370px;
    }

    94% {
        right: -370px;
    }

    100% {
        right: 0;
    }
}

@keyframes slider3 {
    0% {
        right: -370px;
    }

    22% {
        right: -370px;
    }

    28% {
        right: 0;
    }

    47% {
        right: 0;
    }

    53% {
        right: calc(100% - 350px);
    }

    72% {
        right: calc(100% - 350px);
    }

    78% {
        right: calc(100% + 20px);
    }

    78.000000000001% {
        right: -350px;
    }

    100% {
        right: -370px;
    }
}

@keyframes slider4 {
    0% {
        right: -370px;
    }

    47% {
        right: -370px;
    }

    53% {
        right: 0;
    }

    72% {
        right: 0;
    }

    78% {
        right: calc(100% - 350px);
    }

    94% {
        right: calc(100% - 350px);
    }

    99.99999999% {
        right: calc(100% + 20px);
    }

    100% {
        right: -370px;
    }
}

@keyframes rotate3d-1 {

    50% {
        perspective: 900px;
        transform: rotateX(-45deg) rotateZ(-15deg) rotateY(-30deg);
    }

    100% {
        perspective: 900px;
        transform: rotateX(-85deg) rotateZ(-85deg)rotateY(-30deg);
    }
}

@keyframes rotate3d-2 {


    100% {
        transform: perspective(900px) rotateX(0deg) rotateZ(0deg) rotateX(360deg);
    }
}

@keyframes rotate3d-0 {
    100% {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    }
}

@keyframes opacity {
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* FIRST SECTION  */

.firstSection {
    width: 100%;
    height: 120vh;
    background-color: var(--backgroundColor);

    >img {
        width: 980px;
        height: 800px;
        position: relative;
        top: 100px;
        left: calc(100% - 1050px);
        animation: scale 1s linear;
        animation-timeline: view();
        animation-range-start: 800px;
    }

    >div {
        position: absolute;
        top: 365px;
        left: 80px;
        width: 735px;
        height: 450px;
        padding: 50px;
        display: flex;
        flex-direction: column;
        background-color: rgba(69, 69, 69, .43);
        backdrop-filter: blur(17px);
        border-radius: 10px;
        transform-style: preserve-3d;
        transform: perspective(800px) rotateX(-90deg) rotateY(-20deg);
        animation: rotate3d-0 1.5s 1s ease;
        animation-fill-mode: forwards;

        >* {
            font-family: michroma;
            color: white;
        }

        >h2 {
            font-size: 60px;
        }

        >span {
            font-size: 15px;
            margin-top: 40px;
            line-height: 25px;
        }

        >a {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: black;
            background-color: white;
            border-radius: 10px;
            width: 145px;
            height: 40px;
            transition: .4s;

            &:hover {
                background-color: var(--backgroundGray);
                border: .8px solid white;
                color: white;
            }


        }
    }
}

/* SLIDER */

.slider {
    width: 100%;
    height: 60vh;
    background-color: var(--backgroundColor);

    >hgroup {
        display: flex;
        flex-direction: column;
        width: 560px;
        height: 300px;
        background-color: var(--backgroundColor);
        position: relative;
        top: 85px;
        left: 100px;
        transform: translateY(30px);
        opacity: 0;
        animation: opacity 1s ease;
        animation-fill-mode: forwards;
        animation-timeline: view();
        animation-iteration-count: 1;

        >* {
            font-family: michroma;
            color: white;
        }

        >h2 {
            font-size: 40px;

        }

        >p {
            margin-top: 30px;
            font-size: 12px;
            line-height: 25px;

        }

        >a {
            margin-top: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: white;
            color: black;
            border-radius: 10px;
            width: 200px;
            height: 40px;
            transition: .4s;

            &:hover {
                background-color: var(--backgroundGray);
                border: .8px solid white;
                color: white;
            }
        }
    }

    >div {
        overflow: hidden;
        display: flex;
        position: relative;
        top: calc(-100% + 310px);
        right: calc(-100% + 820px);
        width: 720px;
        height: 280px;

        >div {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: absolute;
            right: -350px;
            width: 350px;
            height: 280px;
            background-color: var(--backgroundGray);
            border-radius: 10px;
            padding-inline: 20px;
            padding-block: 40px;

            &:nth-of-type(1) {
                right: calc(100% - 350px);
                animation: slider1 20s ease-in-out infinite;
            }

            &:nth-of-type(2) {
                right: 0;
                animation: slider2 20s ease-in-out infinite;
            }

            &:nth-of-type(3) {
                right: 0;
                animation: slider3 20s ease-in-out infinite;
            }

            &:nth-of-type(4) {
                right: 0;
                animation: slider4 20s ease-in-out infinite;
            }

            >h2 {
                color: white;
                font-size: 30px;
                font-family: michroma;
            }

            >div {
                display: flex;
                justify-content: start;
                gap: 30px;
                height: 50px;

                >i {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 5px;
                    font-size: 30px;
                    background-color: white;
                    color: var(--backgroundGray);
                    border-radius: 10px;

                }

                >p {
                    font-family: michroma;
                    color: white;
                    font-size: 13px;
                }
            }
        }
    }
}

/* ABOUT SECTION */

.aboutSection {
    position: relative;
    width: 100%;
    height: 855px;

    >img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform-style: preserve-3d;

    }

    >hgroup {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 455px;
        height: 497px;
        position: absolute;
        top: 185px;
        right: 100px;
        background-color: var(--backgroundGray);
        border-radius: 10px;
        padding: 30px;
        animation: rotate3d-1 1s linear;
        animation-timeline: view();
        animation-range-start: 600px;

        >* {
            font-family: michroma;
            color: white;

        }

        >h2 {
            font-size: 40px;

        }

        >p {
            font-size: 12px;
            line-height: 30px;
        }
    }
}

/* CUSTOMERS NOTE */

.customerNote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 640px;
    background-color: var(--backgroundColor);
    padding-block: 100px;
    padding-inline: 85px;

    >h3 {
        font-size: 45px;
        color: white;
        font-family: michroma;
    }

    >div {
        display: flex;
        justify-content: space-between;

        >div {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 310px;
            height: 270px;
            background-color: var(--backgroundGray);
            border-radius: 10px;
            padding: 30px;
            transform: translateY(30px);
            opacity: 0;
            animation: opacity 1s ease;
            animation-fill-mode: forwards;
            animation-timeline: view();
            animation-iteration-count: 1;

            >* {
                font-family: michroma;
                color: white;
                font-size: 11px;

            }

            >p {
                line-height: 30px;

            }
        }
    }

}

/* OFFER BACKGROUND */

@keyframes offer {
    0% {
        top: -600px;
    }

    100% {
        top: 600px;
    }
}

.offerBackground {
    position: relative;
    height: 140vh;
    width: 100%;
    z-index: -1;
    top: -600px;
    animation: offer 1s linear;
    animation-timeline: view();
    animation-range-start: 600px;

    >img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* OFFER BOX */

.offerBox {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin-top: -140vh;

    >div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 660px;
        height: 430px;
        padding-inline: 85px;
        border-radius: 10px;
        background-color: rgba(69, 69, 69, .43);
        backdrop-filter: blur(17px);
        transform-style: preserve-3d;
        transform: perspective(900px) rotateX(-70deg) rotateZ(90deg);
        animation: rotate3d-2 .1s linear;
        animation-fill-mode: forwards;
        animation-timeline: view();
        animation-range-end: 600px;


        >* {
            color: white;
            font-family: michroma;
            text-align: center;

        }

        >h2 {
            margin-top: 65px;
            font-size: 40px;


        }

        >p {
            margin-top: 55px;
            font-size: 18px;

        }

        >a {
            display: flex;
            width: 230px;
            height: 50px;
            border-radius: 10px;
            justify-content: center;
            align-items: center;
            margin-top: 25px;
            color: black;
            background-color: white;
            transition: .6s;

            &:hover {
                background-color: var(--backgroundGray);
                border: .8px solid white;
                color: white;
            }
        }
    }

}

/* FOOTER */

.footer {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    height: 90vh;
    background-color: var(--backgroundColor);
    padding: 100px;
    padding-bottom: 10px;

    >h4 {
        font-family: michroma;
        font-size: 60px;
        color: white;

    }

    >div:nth-of-type(1) {
        width: 545px;
        height: 535px;
        background-color: var(--backgroundGray);
        border-radius: 10px;
        padding: 30px;
        transform: translateY(30px);
        opacity: 0;
        animation: opacity 1s ease;
        animation-fill-mode: forwards;
        animation-timeline: view();
        animation-iteration-count: 1;
        animation-range-end: 500px;

        >span {
            font-size: 15px;
            color: white;
            font-family: michroma;

        }

        >form {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;

            >div {
                position: relative;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 483px;
                height: 75px;

                input:focus {
                    border: none;
                    border-bottom: 1px solid white;
                    outline: none;
                }

                textarea:focus {
                    border: none !important;
                    border-bottom: 1px solid white !important;
                    outline: none;
                }

                &:nth-of-type(1) {
                    width: 234px;
                    margin-top: 25px;
                }

                &:nth-of-type(2) {
                    width: 234px;
                    margin-top: 25px;
                }

                &:nth-of-type(4) {
                    height: 125px;
                    margin-top: 30px;

                    >textarea {
                        margin-bottom: 15px;
                        height: 80px;
                        background-color: #00000000;
                        border: none;
                        border-bottom: 1px solid rgba(255, 255, 255, .5);
                        caret-color: white;
                        color: white;
                        resize: none;
                    }
                }

                &:nth-of-type(3) {
                    margin-top: 30px;
                }

                &:nth-of-type(5) {
                    >label {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background-color: white;
                        color: black;
                        border-radius: 10px;
                        height: 50px;
                        transition: .4s;

                        &:hover {
                            background-color: rgb(174, 174, 174);
                        }


                    }

                    >input {
                        display: none;
                    }

                }

                >label {
                    font-size: 15px;
                    color: white;
                    font-family: michroma;


                }

                >input {
                    margin-bottom: 15px;
                    height: 30px;
                    background-color: #00000000;
                    border: none;
                    border-bottom: 1px solid rgba(255, 255, 255, .5);
                    caret-color: white;
                    color: white;

                }
            }
        }

    }

    >div:nth-of-type(2) {
        position: absolute;
        right: 70px;
        top: 290px;
        width: 680px;
        height: 420px;
        background-color: rgba(69, 69, 69, .43);
        backdrop-filter: blur(17px);
        border-radius: 10px;
        z-index: 100;
        transform-style: preserve-3d;
        transform: perspective(800px) rotateX(-90deg) rotateY(-20deg);
        animation: rotate3d-0 1.5s 1s ease;
        animation-fill-mode: forwards;
        animation-timeline: view();
        animation-range-start: -150px;
        animation-range-end: 400px;

        >figure {
            position: relative;
            top: 40px;
            left: 40px;
            width: 150px;
            height: 150px;
            border: 1px solid white;
            border-radius: 31% 69% 27% 73% / 72% 76% 24% 28%;
            overflow: hidden;

            >img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        >h2 {
            position: absolute;
            left: 220px;
            top: 50px;
            color: white;
            font-family: michroma;
            font-size: 45px;

            &:nth-of-type(2) {
                top: 100px;
                color: #91b82b;
            }
        }
        >div {
            width: 300px;
            height: 30px;
            position: absolute;
            left: 50px;
            bottom: 50px;
            display: flex;
            justify-content: space-evenly;
            transition: .4s ease;
            >a{
                &:hover {
                    >svg{
                        color: #91b82b;
                        scale: 1.3;
                    }
                }
                >svg {
                    color: white;
                }
            }
        }
        > strong {
            position: absolute;
            top: 220px;
            color: white;
            font-family: michroma;
            font-size: 14px;
            margin-left: 40px;

        }
        > span {
            margin-left: 40px;
            position: absolute;
            top: 250px;
            color: white;
            font-family: michroma;
            font-size: 12px;
        }
    }
}

.fancyBorder {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    height: 200px;
    z-index: 999;

    >img {
        scale: .8;
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        position: absolute;
        right: 5px;
        bottom: 5px;
        z-index: 4;
    }

    >div:first-of-type {
        position: absolute;
        background-color: #91b82b;
        border-radius: 36% 64% 46% 54% / 53% 80% 20% 47%;
        animation: spin 5s linear infinite;
        right: 0;
        bottom: 0;
        z-index: 2;
        scale: .8;
        width: 150px;
        height: 150px;
    }

    >div:nth-of-type(2) {
        position: absolute;
        scale: .8;
        width: 150px;
        height: 150px;
        background-color: #eae3d2;
        border-radius: 82% 18% 46% 54% / 53% 49% 51% 47%;
        animation: spin 6s linear infinite;
        right: 0;
        bottom: 0;
        z-index: 2;
    }

    >div:nth-of-type(3) {
        position: absolute;
        scale: .8;
        width: 150px;
        height: 150px;
        background-color: #bf7f59;
        border-radius: 71% 29% 66% 34% / 53% 43% 57% 47%;
        animation: spin 7s linear infinite;
        right: 0;
        bottom: 0;
        z-index: 2;
    }

    >a {
        >svg {
            color: #91b82b;
            transition: .2s;

            &:hover {
                scale: 1.3;
            }
        }
    }

    >a:nth-of-type(1) {
        position: absolute;
        right: 140px;
        top: 40px;
        transition: .25s;
    }

    >a:nth-of-type(2) {
        position: absolute;
        top: 85px;
        right: 165px;
        transition: .5s;
    }

    >a:nth-of-type(3) {
        position: absolute;
        top: 130px;
        right: 165px;
        transition: 1s;
    }

    >a:nth-of-type(4) {
        position: absolute;
        top: 175px;
        right: 140px;
        transition: 1.8s;

    }

    &:not(:hover) {
        width: 150px;
        height: 160px;

        >a {
            top: 80px;
            right: 85px;
        }
    }


}