* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: gilroy;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}


#main {
    position: relative;
    overflow: hidden;
}

#page, #page1, #page2, #page3 {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #f1f1f1, #e2e2e2);
}

canvas {
    position: relative;
    z-index: 9;
    max-width: 100vw;
    max-height: 100vh;
}

#loop {
    display: flex;
    position: absolute;
    top: 30%;
    height: 25%;
    width: 100%;
    font-size: 100px;
    white-space: nowrap;
    font-family: gilroy;
}

#loop > h1 {
    font-weight: 400;
    animation-name: anim;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

#loop > h1 > span {
    -webkit-text-stroke: 1.2px #000;
    color: transparent;
    font-weight: 500;
}

@keyframes anim {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7%;
    width: 100%;
    position: fixed;
    z-index: 99;
    padding: 0px 30px;
    opacity: 45%
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#nav > h3 {
    font-family: gilroy;
    font-weight: 400;
    font-size: 22px;
}

#nav > button {
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #000;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

#nav > button:hover {
    background-color: #333;
}

#page > h3, #page1 > #right-text > h3, #page1 > #left-text > h3, #page2 > #text1 > h3, #page2 > #text2 > p, #page3 > #text3 > h3 {
    font-family: gilroy;
    font-weight: 400;
    color: #7c7c7c;
    transition: color 0.3s ease;
}

#page > h3:hover, #page1 > #right-text > h3:hover, #page1 > #left-text > h3:hover, #page2 > #text1 > h3:hover, #page2 > #text2 > p:hover, #page3 > #text3 > h3:hover {
    color: #000;
}

#page > h4, #page1 > #right-text > h1, #page1 > #left-text > h1, #page2 > #text1 > h1, #page3 > #text3 > h1 {
    font-family: gilroy;
    font-weight: 500;
    transition: transform 0.3s ease;
}

#page > h4:hover, #page1 > #right-text > h1:hover, #page1 > #left-text > h1:hover, #page2 > #text1 > h1:hover, #page3 > #text3 > h1:hover {
    transform: scale(1.05);
}


#page1 > #right-text {
    position: absolute;
    top: 30%;
    left: 10%;
}

#page1 > #right-text > h1 {
    line-height: 1.5;
    font-size: 50px;
}

#page1 > #left-text {
    position: absolute;
    top: 50%;
    right: 10%;
    text-align: end;
}

#page1 > #left-text > h1 {
    font-size: 50px;
    line-height: 1.5;
}

#page2 > #text1 {
    position: absolute;
    top: 30%;
    left: 10%;
}

#page2 > #text1 > h1 {
    font-size: 60px;
    line-height: 1.5;
}

#page2 > #text2 {
    position: absolute;
    top: 55%;
    right: 10%;
    text-align: end;
}

#page3 > #text3 {
    position: absolute;
    top: 40%;
    right: 5%;
    text-align: end;
}

#page3 > #text3 > h1 {
    font-size: 70px;
}
#page3 > #text4 {
    position: absolute;
    top: 35%;
    left: 8%;
    text-align: end;
}
#page3 > #text4 > h1 {
    font-size: 70px;
}

#page3 > #text4 > p {
    font-size: 18px;
    color: #7c7c7c;
    line-height: 1.6;
    transition: color 0.3s ease, transform 0.3s ease;
}

#page3 > #text4 > p:hover {
    color: #000;
    transform: scale(1.05);
}

