*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: gilroy;
}
html,body{
    height: 100%;
    width: 100%;
}
#main{
    position: relative;
    overflow: hidden;
}
#page{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page1{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page2{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
#page3{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #f1f1f1;
}
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;
}
#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;
}
#page>h3{
    position: absolute;
    top: 55%;
    font-family: gilroy;
    font-weight: 400;
    color: #7c7c7c;
    left: 5%;
}
#page>h4{
    position: absolute;
    top: 62%;
    left: 25%;
    font-family: gilroy;
    font-weight: 500;
}
#page1>#right-text{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page1>#right-text>h3{
    font-weight: 400;
    color: #7c7c7c;
}
#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;
}
#page1>#left-text>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page2>#text1{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page2>#text1>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page2>#text1>h1{
    font-size: 60px;
    line-height: 1.5;
}
#page2>#text2{
    position: absolute;
    top: 55%;
    right: 10%;
    text-align: end;
}
#page2>#text2>p{
    color: #7c7c7c;
    font-weight: 400;
}
#page3>#text3{
    position: absolute;
    top: 40%;
    right: 10%;
    text-align: end;
}
#page3>#text3>h3{
    color: #7c7c7c;
    font-weight: 400;
}
#page3>#text3>h1{
    font-size: 70px;

}
/* --- New Kritifolio Components --- */

/* Ensure the button shows a pointer and is clickable over Locomotive layers */
#secure-btn {
    cursor: pointer;
    z-index: 100; /* Sits above the nav h3 */
    transition: all 0.3s ease;
}

#secure-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Modal Styles for smooth appearance */
#form-modal {
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px); /* Adds a premium blur to the background */
}

/* Style for the Form Inputs */
#waitlist-form input:focus, 
#waitlist-form select:focus {
    outline: none;
    border-color: #fff !important;
}

/* Style for the 'Claim My Spot' Button */
#waitlist-form button {
    transition: transform 0.2s active;
}

#waitlist-form button:hover {
    background-color: #e0e0e0;
}

/* Fix for Toast Notifications to ensure they sit on top */
#notification-toast {
    pointer-events: none; /* Allows user to click through the toast if it overlaps something */
}

/* Mobile Responsiveness for the Nav */
@media (max-width: 600px) {
    #nav {
        padding: 0px 15px;
    }
    #nav>h3 {
        font-size: 16px;
    }
    #waitlist-stat {
        display: none; /* Hide counter on very small screens to save space */
    }
}
canvas {
    pointer-events: none;
}

/* --- MOBILE RESPONSIVENESS FIXES --- */

@media (max-width: 768px) {
    /* Fix Nav spacing for smaller screens */
    #nav {
        padding: 0px 15px;
        height: 60px;
    }
    
    #nav>h3 {
        font-size: 18px;
    }

    /* Hide the counter on mobile to save space for the button */
    #waitlist-stat {
        display: none;
    }

    #nav>button {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Adjust the big loop text so it doesn't overlap everything */
    #loop {
        top: 25%;
        font-size: 40px; /* Much smaller for mobile */
    }

    /* Fix text positioning on Page 1, 2, and 3 */
    #page1>#right-text, #page2>#text1 {
        left: 5%;
        top: 15%;
        width: 90%;
    }

    #page1>#left-text, #page2>#text2, #page3>#text3 {
        right: 5%;
        bottom: 10%;
        top: auto; /* Push to bottom on mobile */
        width: 90%;
        text-align: right;
    }

    #page1 h1, #page2 h1, #page3 h1 {
        font-size: 30px !important;
        line-height: 1.2;
    }

    /* MODAL FORM MOBILE FIX */
    #form-modal > div {
        width: 95% !important;
        padding: 25px 20px !important;
        max-height: 90vh;
        overflow-y: auto; /* Allows scrolling inside form if screen is tiny */
    }

    #form-modal h2 {
        font-size: 20px;
    }

    /* Adjust Canvas to be centered */
    canvas {
        object-fit: contain;
    }
}