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

html,body{
    height: 100%;
    width: 100%;
    overflow: hidden; /* Locomotive Scroll controls scrolling on #main */
}

#main{
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden; /* Locomotive manages scrolling on #main */
    background-color: #000000;
    width: 100%;
    height: 100vh; /* CRITICAL: Fixed height for Locomotive Scroll */
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Locomotive Scroll will manage the scrolling */
}

#main.scroll-enabled{
    overflow-y: scroll; /* Enable scrolling after image loads */
}

@font-face{
    font-family: a;
    src: url(./assets/fonts/jost-variable.ttf);
}
@font-face{
    font-family: b;
    src: url(./assets/fonts/KFOLCnqEu92Fr1MmEU9fBBc4\ \(1\).ttf);
}
@font-face{
    font-family: c;
    src: url(./assets/fonts/KFOmCnqEu92Fr1Mu4mxK\ \(1\).ttf);
}

#page1{
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: visible;
    background-color: #2d0000; /* Very dark red background */
}

.hero-blastoise-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 20 !important; /* High while on page1 */
    overflow: hidden !important; /* CRITICAL: Clip the image so it can't move outside */
    pointer-events: none;
    /* Ensure container is visible */
    visibility: visible !important;
    opacity: 1 !important;
}

#hero-blastoise{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 55% 45%; /* Shift image slightly right and up to avoid bottom-left text */
    /* transform-origin is set dynamically by JavaScript based on entry-portal position */
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 15; /* Very high to ensure it's on top */
    /* Force visibility */
    pointer-events: auto;
    /* Don't force transform - let GSAP control it */
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 640px) {
    #hero-blastoise{
        object-position: 50% 50%; /* Keep centered on small screens */
    }
    .bottom-page1{
        bottom: 25% !important; /* Move text higher on mobile */
    }
    .bottom-page1>h1{
        font-size: clamp(1.5rem, 7vw, 3rem);
    }
}

.entry-portal{
    position: absolute;
    width: 100px;
    height: 180px;
    left: 18%;
    top: 42%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,1) 100%);
    border-radius: 25% 25% 35% 35%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.1);
    z-index: 2;
    box-shadow: inset 0 0 100px rgba(0,0,0,1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.zoom-target{
    position: absolute;
    width: 50px;
    height: 50px;
    /* Position is set dynamically by JavaScript based on actual displayed image dimensions */
    /* This ensures it stays in the same spot relative to the image regardless of screen size */
    left: 0; /* Will be set by JavaScript */
    top: 0; /* Will be set by JavaScript */
    pointer-events: none;
    opacity: 0;
    z-index: 20; /* Higher than image (z-index: 15) so it appears on top */
    border: none;
    background: transparent;
    box-sizing: border-box;
    box-shadow: none;
}

#page1-5-entry{
    position: relative;
    min-height: 0;
    width: 100vw;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 40%,
        #0a0a0a 70%, 
        #000 100%);
    z-index: 30; /* Ensure entry content renders above hero layer */
    padding-top: 0;
    margin-top: 0;
    height: auto;
}


.entry-content{
    padding: 8vh 5vw 4vh;
    color: #fff;
    font-family: a;
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

@media (max-width: 768px) {
    .entry-content{
        padding: 6vh 4vw 3vh;
        gap: 6vh;
    }
}

.entry-section{
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    will-change: opacity, transform;
    visibility: hidden;
}

.entry-section--apps{
    text-align: left;
}

.entry-section--apps > h2{
    text-align: center;
}

.entry-section--apps > .divider{
    text-align: center;
}

.entry-section--apps .download-buttons{
    justify-content: flex-start;
}

.app-block{
    margin-top: 2rem;
}

.app-title{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.coming-soon-badge{
    font-family: a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.waitlist-button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-family: a;
    font-size: 1rem;
    background: transparent;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.waitlist-button:hover{
    opacity: 0.85;
    transform: translateY(-1px);
}

.entry-section h2{
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 100;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.entry-section h3{
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 100;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.2;
}

.entry-section p{
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.divider{
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.5;
    margin: 2rem 0;
    text-align: center;
}

.download-buttons{
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-store-link{
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-store-link:hover{
    opacity: 0.8;
    transform: translateY(-2px);
}

.app-store-badge{
    height: clamp(40px, 8vw, 60px);
    width: auto;
    display: block;
    max-width: 100%;
}

.download-btn{
    padding: 12px 28px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: 1.2vw;
    font-family: a;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-btn:hover{
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#page1>nav{
    position: absolute;
    align-items: center;
    justify-content: space-between;
    padding: 0px 30px;
    display: flex;
    height: 10vh;
    width: 100vw;
}

#page1>nav>img{
    width: 9%;
    margin-top: -1.7vw;
}

#right-nav{
    display: flex;
    gap: 1vw;
    align-items: center;
}

#right-nav>button{
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #fff;
    background-color: #0b48ed;
    color: #fff;
    font-family: a;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#right-nav>button:hover{
    background-color: #0c52ff;
    transform: translateY(-1px);
}

#right-nav>button:last-child{
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-page1{
    position: absolute;
    bottom: 8%; /* Fallback - will be overridden by JavaScript */
    height: auto;
    width: auto;
    left: 5%;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2vw;
    z-index: 25;
    opacity: 1;
    transition: opacity 0.5s ease;
    /* Ensure it doesn't overlap with hero image */
    max-width: 40%;
    pointer-events: none;
}

.bottom-page1>h1{
    font-family: a;
    font-size: 5vw;
    font-weight: 100;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1vw;
    text-align: left;
}

.bottom-page1-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: a;
    gap: 2vw;
    width: 100%;
}

.bottom-page1-inner>button{
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    background-color: #fff;
    color: #0b48ed;
    font-size: 16px;
    font-family: b;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.bottom-page1-inner>button:hover{
    transform: translateY(-2px);
    background-color: #f0f0f0;
}

.bottom-page1-inner>h4{
    font-size: 1.2vw;
    font-weight: 100;
    color: #fff;
    line-height: 1.5;
    flex: 1;
    margin-right: 2vw;
}

#page2{
    display: flex;
    align-items: start;
    font-family: a;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
    padding: 8vw 10vw;
    color: #fff;
    background-color: #0a3cce;
}

#page2>h2{
    margin-bottom: 2vw;
    font-weight: 100;
    font-size: 2.5vw;
    line-height: 1.2;
}

#page2>h1{
    font-weight: 100;
    line-height: 1.4;
    width: 85%;
    font-size: 3.5vw;
    color: #dadada69;
}

#page3{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: black;
}

#page3>canvas{
    max-height: 100vh;
    max-width: 100vw;
    position: relative;
}

#page4{
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #2D0202;
    font-family: a;
    padding: 8vw 10vw;
}

#page4>h3{
    margin-bottom: 2vw;
    font-weight: 100;
    color: #fff;
    font-size: 2.5vw;
    line-height: 1.2;
}

#page4>h1{
    width: 75%;
    font-size: 3vw;
    font-weight: 100;
    line-height: 1.4;
    color: #ffffff80; 
}

#page5{
    position: relative;
    height: 100vh;
    width: 100vw;
}

#page5>canvas{
    position: relative;
    max-height: 100vh;
    max-width: 100vw;
}

#page6{
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #0a3cce;
    font-family: a;
    padding: 8vw 10vw;
}

#page6>h3{
    font-weight: 100;
    color: #fff;
    margin-bottom: 2vw;
    font-size: 2.5vw;
    line-height: 1.2;
}

#page6>h1{
    font-size: 3vw;
    width: 75%;
    font-weight: 100;
    line-height: 1.4;
    color: #ffffff6c;
}

#page7{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #0a3cce;
}

#page7>canvas{
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
}

.page7-cir{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 9;
    height: 30vw;
    width: 30vw;
    border-radius: 50%;
    border: 1px solid #fff;
}

.page7-cir-inner{
    position: absolute;
    height: 70%;
    width: 70%;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: transparent;
}

#page8{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #0a3cce;
}

#page8>video{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.page8-bottom{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: a;
}

.page8-bottom>h1{
    color: #fff;
    margin-bottom: 2vw;
    font-size: 5vw;
    font-weight: 100;
    line-height: 1.2;
}

.page8-bottom>button{
    padding: 20px 40px;
    border-radius: 50px;
    border: none;
    background-color: #fff;
    color: #0a3cce;
    cursor: pointer;
    font-size: 16px;
    font-family: a;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page8-bottom>button:hover{
    transform: translateY(-2px);
    background-color: #f0f0f0;
}

#page9{
    display: flex;
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #0a3cce;
}

.left9{
    height: 100%;
    width: 40%;
    position: relative;
    font-family: a;
}

.left9>h1{
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 5vw;
    font-weight: 100;
    color: #fff;
    line-height: 1.2;
    padding-right: 2vw;
}

.right9{
    height: 100%;
    width: 60%;
    position: relative;
}

.right9-center{
    height: 60%;
    width: 85%;
    background-color: black;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(https://thisismagma.com/wp-content/uploads/2023/04/magma.wp2.cubdev.com-home-1.jpeg);
    background-size: cover;
    left: 5%;
}

#page10{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #0a3cce;
    padding: 6vw 10vw;
    display: flex;
    align-items: center;
}

.right10{
    height: auto;
    width: 60%;
    position: relative;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

.right10-inner{
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    width: 100%;
    font-family: a;
    color: #fff;
}

.right10-inner>h3{
    font-size: 2vw;
    margin-bottom: 1.5vw;
    line-height: 1.3;
    font-weight: 100;
}

.right10-inner>p{
    margin-top: 0;
    font-size: 1.2vw;
    width: 85%;
    line-height: 1.6;
}

#page11{
    position: relative;
    min-height: 100vh;
    width: 100vw;
    background-color: #fff;
    font-family: a;
    padding: 6vw 10vw;
}

#page11>h1{
    font-size: 4vw;
    color: black;
    font-weight: 100;
    margin-bottom: 4vw;
    line-height: 1.2;
}

.page11-inner{
    display: flex;
    position: relative;
    margin-bottom: 4vw;
    min-height: 200px;
    width: 100%;
    gap: 3vw;
    align-items: center;
}

.left11{
    position: relative;
    height: 200px;
    width: 35%;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.left11>img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.right11{
    color: black;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1vw 0;
}

.right11>h4{
    font-weight: 100;
    margin-bottom: 1vw;
    font-size: 1vw;
    opacity: 0.7;
}

.right11>h1{
    font-size: 2vw;
    line-height: 1.3;
    font-weight: 100;
}

#page12{
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: #2D0202;
    font-family: a;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10vw;
}

.page12-inner{
    color: #fff;
    max-width: 50%;
    text-align: right;
}

.page12-inner>h1{
    font-size: 5vw;
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 2vw;
}

.page12-inner>p{
    font-size: 1.2vw;
    line-height: 1.6;
    opacity: 0.9;
}

#page13{
    position: relative;
    min-height: 50vh;
    width: 100vw;
    background-color: black;
    color: #fff;
    font-family: a;
    padding: 8vw 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page13>h1{
    font-size: 5vw;
    line-height: 1.2;
    font-weight: 100;
    margin-bottom: 3vw;
}

#page13>button{
    padding: 18px 40px;
    border: none;
    background-color: #0a3cce;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-family: a;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.3s ease;
}

#page13>button:hover{
    background-color: #0b48ed;
}

#page14{
    position: relative;
    min-height: 30vh;
    width: 100vw;
    background-color: black;
}

.page14-inner{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0vw 5vw;
    font-family: a;
    min-height: 15vh;
    width: 100%;
    color: #fff;
    border-top: .3px solid #ffffff5c;
    border-bottom: .3px solid #ffffff5c;
}

.page14-inner>i{
    font-size: 2.4vw;
    font-weight: 100;
    position: relative;
    z-index: 9999;
}

.page14-inner a{
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1vw;
    transition: opacity 0.3s ease;
}

.page14-inner a:hover{
    opacity: 0.7;
}

.footer-links{
    display: flex;
    align-items: center;
    gap: 3vw;
    justify-content: flex-start;
}

.footer-links p{
    margin: 0;
    font-size: 1.2vw;
    opacity: 0.7;
}

.footer-links a{
    font-size: 1.2vw;
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover{
    opacity: 1;
}

.page14-inner>h1{
    font-size: 3vw;
    font-weight: 100;
    position: relative;
    z-index: 9999;
}

.center14{
    height: 0%;
    width: 100%;
    background-color: #2d0000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    transition: all ease .5s;
}

.page14-inner:hover .center14{
    height: 100%;
}

.naruu{ 
    margin-left: 38%;
}

.dattebayo{
    color: #0b48ed;
}

#page15{
    position: relative;
    min-height: 20vh;
    width: 100vw;
    background-color: black;
    display: flex;
    align-items: center;
}

/* Hide Locomotive Scroll indicator */
[data-scroll-container]::before,
[data-scroll-container]::after,
.c-scrollbar,
.c-scrollbar_thumb {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
