@font-face {
    font-family: "Plain Light";
    src: url(./fonts/plain-regular-webfont.ttf);
}
@font-face {
    font-family: "Plain Light";
    src: url(./fonts/plain-light-webfont.ttf);
}
@font-face {
    font-family: "silk serif";
    src: url(./fonts/silkserif-regularitalic-webfont.ttf);
}
@font-face {
    font-family: "silk serif";
    src: url(./fonts/silkserif-lightitalic-webfont.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plain Light";
    color: #fff;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    overflow-x: hidden;
}

.mousefollower {
    border: 2px solid #fff;
    background-color: #fff;
    scale: 2;
    mix-blend-mode: difference;
}

#loader {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 9999;
    background-color: #030303;
    padding: 25vh 10vw;
}

.line {
    height: fit-content;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3vw;
}

#line1-part1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
}

#line1-part1 h5,
#line1-part1 h6 {
    font-size: 3vw;
    font-weight: 100;
    font-family: 'silk serif';
}

#line1-part1 h5 {
    width: 5vw;
    text-align: right;
}

.line h1 {
    font-size: 6.5vw;
    text-transform: uppercase;
    font-weight: 900;
}

.line h2 {
    font-size: 5vw;
    text-transform: uppercase;
    font-weight: 900;
    opacity: 0;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes loaderAnime {
    0% {
        font-family: "plain light";
        -webkit-text-stroke: 1px #fff;
        color: #fff;
        font-weight: 500;
        opacity: 1;
    }
    48% {
        font-family: "plain light";
        -webkit-text-stroke: 1px #fff;
        color: #fff;
        font-weight: 500;
        opacity: 0;
    }
    50% {
        font-family: 'silk serif';
        -webkit-text-stroke: 1px #fff;
        font-weight: 500;
        color: transparent;
        opacity: 1;
    }
    100% {
        font-family: 'silk serif';
        -webkit-text-stroke: 1px #fff;
        font-weight: 500;
        color: transparent;
        opacity: 0;
    }
}

/* Main Layout */
#main {
    position: relative;
    background-color: #151515;
    z-index: 99;
}

#page1 {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 100;
}

#page1 #nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.3vw 5.5vw;
}

#nav-part2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
}

#nav-part2 h4 {
    font-size: 0.8vw;
    font-weight: 500;
}

.hero {
    width: 72%;
    margin-left: 27%;
    height: fit-content;
    overflow-y: hidden;
    display: flex;
    align-items: center;
}

.hero:nth-child(2) {
    margin-top: 18vh;
}

.hero h1,
.hero h2 {
    font-size: 7.2vw;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 7.2vw;
    position: relative;
}

#hero1::before {
    content: "01";
    position: absolute;
    font-size: 3vw;
    font-weight: 100;
    font-family: "silk serif";
    left: 20%;
    top: 29%;
}

.hero h2 {
    border-bottom: 0.5vw solid #fff;
}

.hero h2:hover {
    -webkit-text-stroke: 2px #fff;
    color: transparent;
    font-weight: 500;
    border-bottom: 0.5vw solid #ffffff00;
}

/* Page 2 */
#page2 {
    height: 100vh;
    width: 100%;
    padding-top: 17vh;
    position: relative;
}

#video-container {
    height: 66vh;
    width: 71vw;
    position: relative;
    left: 28%;
    background-color: red;
    background-image: url(https://obys.agency/wp-content/uploads/2022/11/Showreel-2022-preview-1.jpg);
    background-size: cover;
    background-position: center;
}

#video-container video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0;
}

#video-cursor {
    background-color: #FFA63D;
    height: 9vw;
    width: 9vw;
    border-radius: 50%;
    position: absolute;
    top: -15%;
    left: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#video-cursor i {
    font-size: 2vw;
}

/* Page 3 */
#page3 {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 17vh 2vw;
    margin-bottom: 20vh;
    margin-top: 20vh;
}

#page3 h1 {
    font-size: 7vw;
    text-transform: uppercase;
    position: relative;
    margin-left: 28vw;
}

#page3 h1::before {
    content: "02";
    position: absolute;
    font-size: 3vw;
    font-weight: 100;
    font-family: "silk serif";
    left: -12%;
    top: 8%;
}

#page3 .underline {
    margin-left: 28vw;
}

#image-div-container {
    padding: 1vw;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.image-div {
    height: 42vw;
    width: 31vw;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 1vw;
}

.image-div:nth-child(1) {
    height: 29vw;
    width: 21vw;
}

.image-div img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.page3-circle1,
.page3-circle2 {
    height: 23vw;
    width: 23vw;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.page3-circle1 {
    margin-top: 23vh;
    margin-left: 10vw;
}

.page3-circle2 {
    margin-top: 2vw;
    margin-right: 3vw;
}

.page3-circle1 svg,
.page3-circle2 svg {
    height: 30%;
}

.page3-circle2 svg {
    rotate: -45deg;
}

.circle-in {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease 0.5s;
    scale: 0;
    border-radius: 50%;
}

.circle-in p {
    font-size: 0.95vw;
    color: #000;
    font-weight: 500;
    width: 60%;
    scale: 0;
    transition: all ease 0.5s;
    transition-delay: 0.3s;
    opacity: 0;
}

.page3-circle1:hover .circle-in,
.page3-circle2:hover .circle-in {
    scale: 1;
}

.page3-circle1:hover p,
.page3-circle2:hover p {
    scale: 1;
    opacity: 1;
}

/* Page 4 */
#page4 {
    min-height: 100vh;
    position: relative;
    width: 100%;
    padding: 7vh 0;
}

#page4-content {
    width: 72vw;
    position: relative;
    margin-left: 28%;
}

#page4-content h1 {
    font-size: 7vw;
    text-transform: uppercase;
    position: relative;
}

#page4-content h1::before {
    content: "03";
    position: absolute;
    font-size: 3vw;
    font-weight: 100;
    font-family: "silk serif";
    left: -12%;
    top: 8%;
}

#page4-content .underline {
    height: 1px;
    width: 100%;
    background-color: #fff;
    margin: 5vw 0;
}

#page4-content > p {
    font-size: 2.05vw;
    width: 50%;
    margin-bottom: 3vw;
}

#page4-flex {
    display: flex;
}

#page4-flex img {
    width: 48%;
}

#page4-flex p {
    font-size: 0.9vw;
    width: 19%;
    margin-left: 1vw;
}

#page4-blue-div {
    background-color: #3F7DF4;
    width: 33vw;
    padding: 3vw;
    position: relative;
    margin-top: -35vh;
    margin-left: 26vw;
}

.blue-div-elem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.7vw 0;
    border-bottom: 2px solid #ffffff94;
}

.blue-div-elem h4 {
    font-size: 1.4vw;
    font-weight: 500;
}

.blue-div-elem p {
    width: 40%;
    font-size: 0.8vw;
}

/* Page 5 */
#page5 {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.elem,
.elem2 {
    white-space: nowrap;
    overflow-x: hidden;
    margin-bottom: -2vw;
}

.elem h1,
.elem2 h1 {
    font-size: 7vw;
    -webkit-text-stroke: 1px #fff;
    font-weight: 400;
    text-transform: uppercase;
    color: transparent;
    display: inline-block;
    margin-right: 16px;
    animation-name: anime;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.elem h1 {
    animation-duration: 17s;
}

.elem2 h1 {
    transform: translateX(calc(-100% - 20px));
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes anime {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 20px));
    }
}

.elem span,
.elem2 span {
    font-style: italic;
    font-family: "silk serif";
    color: transparent;
}

/* Footer */
#footer {
    height: 85vh;
    width: 100%;
    position: relative;
    padding-left: 28vw;
    margin-top: 5vw;
    padding-right: 2vw;
}

#footer h1 {
    font-size: 7.2vw;
    text-transform: uppercase;
    position: relative;
}

#footer-text {
    position: relative;
}

#footer-text h2 {
    font-size: 7.2vw;
    text-transform: uppercase;
    position: absolute;
    top: -10%;
    font-weight: 500;
    left: 0;
    font-family: "silk serif";
}

#footer-text h2 span {
    font-family: "silk serif";
    opacity: 0;
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

#footer-text::before {
    content: "04";
    position: absolute;
    font-size: 3vw;
    font-weight: 100;
    font-family: "silk serif";
    left: -13%;
    top: 6%;
}

.underline {
    height: 1px;
    width: 100%;
    background-color: #fff;
    margin: 3vw 0;
}

#footer-div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-right: 15vw;
    padding-top: 4vw;
    margin-bottom: 6vw;
}

#footer-div h6 {
    font-size: 0.9vw;
    margin-bottom: 1.5vw;
    font-weight: 500;
}

.box {
    width: 20%;
}

#footer-div h5 {
    font-size: 1.4vw;
    font-weight: 500;
}

#footer > h5 {
    font-weight: 500;
    font-size: 1vw;
}

._canvas_container {
    z-index: 999999 !important;
    pointer-events: none;
}

#flag {
    height: 25vw;
    position: absolute;
    top: 0;
    opacity: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

#hero3 {
    z-index: 999;
    position: relative;
}

/* Responsive Styles */
@media (max-width:600px) {
    #loader {
        height: 100%;
        width: 100%;
        position: fixed;
        z-index: 999999;
        background-color: #030303;
        padding: 25vh 5vw;
    }
    .line {
        height: fit-content;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 3vw;
        flex-direction: column;
    }
    #line1-part1 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1vw;
    }
    #line1-part1 h5,
    #line1-part1 h6 {
        font-size: 4vw;
        font-weight: 100;
        font-family: 'silk serif';
    }
    #line1-part1 h5 {
        width: 5vw;
        text-align: right;
    }
    .line h1 {
        font-size: 8.5vw;
        text-transform: uppercase;
        font-weight: 900;
    }
    .line h2 {
        font-size: 8vw;
        text-transform: uppercase;
        font-weight: 900;
        opacity: 0;
        animation-duration: 2s;
        animation-iteration-count: infinite;
    }
    #page1 {
        height: 60vh;
        width: 100%;
        position: relative;
        z-index: 100;
        padding-top: 1px;
    }
    #page1 #nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 4.3vw 5vw;
        position: fixed;
        width: 100%;
        top: 0;
    }
    #nav svg {
        scale: 0.8;
    }
    #nav-part2 {
        display: none;
    }
    .hero {
        width: 72%;
        margin-left: 5%;
        height: fit-content;
        overflow-y: hidden;
        display: flex;
        align-items: center;
    }
    .hero:nth-child(2) {
        margin-top: 25vh;
    }
    .hero h1 {
        font-size: 9.8vw;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 10.5vw;
        position: relative;
    }
    #hero1::before {
        content: "01";
        position: absolute;
        font-size: 5vw;
        font-weight: 100;
        font-family: "silk serif";
        left: 5%;
        top: 35%;
    }
    .hero h2 {
        font-size: 9.8vw;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 10.5vw;
        border-bottom: 0.6vw solid #fff;
    }
    #page2 {
        height: 58vh;
        width: 100%;
        padding-top: 6vh;
        position: relative;
    }
    #video-container {
        height: 52vh;
        width: 100vw;
        position: relative;
        left: 0%;
        background-color: red;
        background-image: url(https://obys.agency/wp-content/uploads/2022/11/Showreel-2022-preview-1.jpg);
        background-size: cover;
        background-position: center;
    }
    #video-container video {
        height: 100%;
        width: 100%;
        object-fit: cover;
        opacity: 0;
    }
    #video-cursor {
        background-color: #FFA63D;
        height: 25vw;
        width: 25vw;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        transform: translate(-50%, -50%);
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    #video-cursor i {
        font-size: 5vw;
    }
    #page3 {
        min-height: 100vh;
        width: 100%;
        position: relative;
        padding: 17vh 3vw 0 3vw;
        margin-bottom: 0vh;
        margin-top: 0vh;
    }
    #page3 h1 {
        font-size: 9.5vw;
        text-transform: uppercase;
        position: relative;
        margin-left: 2vw;
        margin-bottom: 5vw;
    }
    #page3 h1::before {
        content: "02";
        position: absolute;
        font-size: 5vw;
        font-weight: 100;
        font-family: "silk serif";
        left: 0%;
        top: -66%;
    }
    #page3 .underline {
        margin-left: 2vw;
        width: 94%;
    }
    #image-div-container {
        margin-top: 10vw;
        padding: 1vw;
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .image-div {
        height: 110vw;
        width: 90vw;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        margin: 1vw;
        margin-bottom: 8vw;
    }
    .image-div:nth-child(1) {
        height: 110vw;
        width: 90vw;
    }
    .image-div img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    .page3-circle1,
    .page3-circle2 {
        display: none;
    }
    .circle-in {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all ease 0.5s;
        scale: 0;
        border-radius: 50%;
    }
    .circle-in p {
        font-size: 0.95vw;
        color: #000;
        font-weight: 500;
        width: 60%;
        scale: 0;
        transition: all ease 0.5s;
        transition-delay: 0.3s;
        opacity: 0;
    }
    .page3-circle1:hover .circle-in,
    .page3-circle2:hover .circle-in {
        scale: 1;
    }
    .page3-circle1:hover p,
    .page3-circle2:hover p {
        scale: 1;
        opacity: 1;
    }
    #page4 {
        min-height: 100vh;
        position: relative;
        width: 100%;
        padding: 10vh 5vw;
    }
    #page4-content {
        width: 90vw;
        position: relative;
        margin-left: 0%;
    }
    #page4-content h1 {
        font-size: 9.5vw;
        text-transform: uppercase;
        position: relative;
    }
    #page4-content h1::before {
        content: "03";
        position: absolute;
        font-size: 3vw;
        font-weight: 100;
        font-family: "silk serif";
        left: -12%;
        top: 8%;
    }
    #page4-content .underline {
        height: 1px;
        width: 100%;
        background-color: #fff;
        margin: 9vw 0 14vw 0;
    }
    #page4-content > p {
        font-size: 5.8vw;
        width: 90%;
        margin-bottom: 3vw;
    }
    #page4-flex {
        display: flex;
        flex-direction: column;
    }
    #page4-flex img {
        width: 100%;
        margin: 5vw 0 8vw 0;
    }
    #page4-flex p {
        font-size: 4vw;
        width: 90%;
        margin-left: 0vw;
        margin-bottom: 5vw;
    }
    #page4-blue-div {
        background-color: #3F7DF4;
        width: 90vw;
        padding: 5vw;
        padding-bottom: 15vw;
        position: relative;
        margin-top: 0vh;
        margin-left: 0vw;
    }
    .blue-div-elem {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 4.7vw 0;
        border-bottom: 2px solid #ffffff94;
    }
    .blue-div-elem h4 {
        font-size: 3.9vw;
        font-weight: 500;
    }
    .blue-div-elem p {
        width: 50%;
        font-size: 3.6vw;
    }
    #page4-content .underline:nth-last-child(1) {
        margin: 26vw 0 7vw 0;
    }
    #page5 {
        min-height: 60vh;
        width: 100%;
        position: relative;
    }
    .elem,
    .elem2 {
        white-space: nowrap;
        overflow-x: hidden;
        margin-bottom: -2vw;
    }
    .elem h1 {
        font-size: 12vw;
        -webkit-text-stroke: 1px #fff;
        font-weight: 400;
        text-transform: uppercase;
        color: transparent;
        display: inline-block;
        margin-right: 16px;
        animation-name: anime;
        animation-duration: 20s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }
    .elem2 h1 {
        font-size: 12vw;
        -webkit-text-stroke: 1px #fff;
        font-weight: 400;
        text-transform: uppercase;
        color: transparent;
        display: inline-block;
        transform: translateX(calc(-100% - 20px));
        animation-name: anime;
        animation-duration: 25s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-direction: reverse;
    }
    .elem span,
    .elem2 span {
        font-style: italic;
        font-family: "silk serif";
        color: transparent;
    }
    #footer {
        height: 108vh;
        width: 100%;
        margin-top: 20vw;
        position: relative;
        padding: 5vw 5vw;
        padding-bottom: 5vw;
    }
    #footer h1 {
        font-size: 9.7vw;
        text-transform: uppercase;
        position: relative;
    }
    #footer h1::before {
        content: "04";
        position: absolute;
        font-size: 5vw;
        font-weight: 100;
        font-family: "silk serif";
        left: 0%;
        top: -70%;
    }
    #footer-text {
        position: relative;
    }
    #footer-text h2 {
        font-size: 9.7vw;
        position: absolute;
        top: -10%;
        font-weight: 500;
        opacity: 0;
        left: 0;
        font-family: "silk serif";
    }
    #footer-text h2 span {
        font-family: "silk serif";
        opacity: 0;
        -webkit-text-stroke: 1px #fff;
        color: transparent;
    }
    .underline {
        height: 1px;
        width: 100%;
        background-color: #fff;
        margin: 8vw 0;
    }
    #footer-div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding-right: 15vw;
        padding-top: 4vw;
        margin-bottom: 6vw;
    }
    #footer-div h6 {
        font-size: 4.9vw;
        margin-bottom: 3.5vw;
        font-weight: 500;
    }
    .box {
        width: 30%;
        margin-bottom: 5vw;
    }
    #footer-div h5 {
        font-size: 5.4vw;
        margin-bottom: 1.5vw;
        font-weight: 500;
    }
    #footer > h5 {
        font-weight: 500;
        margin-bottom: 4vw;
        font-size: 4vw;
    }
}