* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 500vh; /* Keep this if you need a tall page */
    background: #000;
    font-family: "PP Neue Montreal";
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: scroll; /* Enable vertical scrolling */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
body::-webkit-scrollbar {
    width: 0; /* Hide the scrollbar */
}

h1 {
    margin: 0.25em 0;
    font-size: 80px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

p {
    font-size: 24px;
    font-weight: 400;
    line-height: 175%;
}

nav {
    position: fixed;
    top: 0;
    width: 100vw;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.links {
    display: flex;
    align-items: center;
    gap: 2em;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.logo a {
    font-size: 28px;
}

.lottie-container .animation {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    z-index: -1;
    filter: saturate(2);
    overflow: hidden; /* Hide any overflow content */
}

.animation:after {
    content: "";
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png");
    width: 200%;
    height: 200%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.1;
    animation: animateGrain 8s steps(10) infinite;
}

.gradient {
    width: 100vw;
    height: 200vh;
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
}

.website-content {
    position: relative;
    width: 100%;
    height: 300vh;
    padding: 2em;
    background: #000;
    color: #fff;
    z-index: 1;
    overflow: auto;
}
.website-content::-webkit-scrollbar {
    width: 0; /* Hide the scrollbar */
}

.end-lottie {
    position: absolute;
    top: 100vh;
    width: 100%;
    height: 1px;
}

.scroll-text {
    position: fixed;
    top: 50%;
    left: 25%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    color: #dddddd;
    opacity: 0; /* Start with hidden text */
    z-index: 10;
    pointer-events: none; /* Ensure it doesn't interfere with scrolling */
    font-size: 100px; /* Adjust this value to increase text size */
}

.mouse {
    position: fixed; /* Keep this as fixed to position it relative to the viewport */
    display: inline-block;
    width: 1.875rem;
    height: 3.125rem;
    border-radius: 10rem;
    border: 2px solid #fff;
    left: 50%; /* Center horizontally */
    bottom: 20px; /* Adjust this value to position the mouse above the bottom edge */
    transform: translateX(-50%); /* Center horizontally */
}

.mouse::after {
    box-sizing: border-box;
    -webkit-transform: translate(-50%, 0);
    -moz-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    content: "";
    position: absolute;
    display: block;
    top: 25%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    -webkit-animation: mouse 2s linear infinite;
    -moz-animation: mouse 2s linear infinite;
    animation: mouse 2s linear infinite;
}

.scrolling-text-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide text outside the container */
}

.scrolling-text {
    font-size: 100px;
    color: #dddddd;
    white-space: nowrap;
    animation: scrollSideways 25s linear infinite;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 200vh;
}

.text {
    font-size: 10vw;
    letter-spacing: -.01em;
    line-height: 100%;
    margin: 0;
    width: 100%;
    color: rgb(182, 182, 182, 0.2);
    background: linear-gradient(to right, #b6b6b6, #b6b6b6) no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 0%;
    transition: background-size cubic-bezier(.1,.5,.5,1) 0.5s;
    border-bottom: 1px solid #2F2B28;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

span {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #4246ce;
    color: #0D0D0D;
    clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
    transform-origin: center;
    transition: all cubic-bezier(.1,.5,.5,1) 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text:hover > span {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Adjust the styling for the slider */
.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 60%;
    height: 25%; /* Adjust this value based on your layout */
    overflow: hidden; /* Hide images outside of the container */
    margin: 0 auto;
}

.slider ul {
    display: flex; /* Makes the list items align in a row */
    transition: transform 1s ease-in-out;
    width: 100%; /* Ensure that all images are visible at once */
}

.slider ul li {
    min-width: 100%; /* Each image takes full slider width */
    list-style: none;
}

.slider ul li img {
    width: 100%;
    height: auto;
    display: block;
}

.slider ul li img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

@keyframes scrollSideways {
    0% {
        transform: translateX(100%); /* Start from the right */
    }
    100% {
        transform: translateX(-100%); /* Move to the left */
    }
}

@-webkit-keyframes mouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

@-moz-keyframes mouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

@keyframes mouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes animateGrain {
    0%,
    100% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-5%, -10%);
    }
    20% {
        transform: translate(-15%, -20%);
    }
    30% {
        transform: translate(-5%, -10%);
    }
    40% {
        transform: translate(-15%, -20%);
    }
    50% {
        transform: translate(-5%, -10%);
    }
    60% {
        transform: translate(-15%, -20%);
    }
    70% {
        transform: translate(-5%, -10%);
    }
    80% {
        transform: translate(-15%, -20%);
    }
    90% {
        transform: translate(-5%, -10%);
    }
    100% {
        transform: translate(-15%, -20%);
    }
}

/* Media Queries for iPhone and Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    p {
        font-size: 18px;
    }

    .mouse {
        width: 1.5rem;
        height: 3rem;
    }

    .scroll-text {
        font-size: 50px;
    }

    .container {
        height: auto;
    }

    .text {
        font-size: 12vw;
    }

    .slider {
        width: 90%;
        height: 50%;
    }

    .slider ul {
        transition: transform 0.8s ease-in-out;
    }
}
