@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,700;1,400;1,700&family=Jersey+10&display=swap');

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100vh;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 2rem;
    background: linear-gradient(0deg, #22235D 0%, #0F0E14 100%);
}

/* Mobile: overflow hidden; overlay triggered by touch/wheel gesture in JS */
@media (max-width: 767.98px) {

    html,
    body {
        overflow: hidden;
        height: 100vh;
    }

    body {
        /* padding-bottom: 4rem; */
    }

    .tag-line-wrapper {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) {
    body {
        padding: 3rem 5rem 5rem;
    }
}

.font-4636 {
    font-family: "Jersey 10", sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    color: #EEFF00;
    line-height: 0.5;
}

.font-digital {
    font-family: "Bodoni Moda", serif;
    font-style: italic;
    font-size: clamp(2rem, 3.25vw, 3.5rem);
    color: #ffffff;
    line-height: 0.5;
}

@media (max-width: 768px) {
    .font-4636 {
        font-size: 3rem;
    }

    .font-digital {
        font-size: 2.5rem;
    }
}

/* ── Shapes background canvas ─────────────────────────────── */
#shapes-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Hero fills all space below the nav */
.hero-section {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.hero-mobile-intro {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    margin-top: 0;
    padding-top: 5rem;
}

.hero-mobile-intro.is-visible {
    opacity: 1;
}

/* Center tagline in viewport: horizontally and vertically in hero area */
.tag-line-centered {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .tag-line-wrapper.tag-line-centered {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .md-h6 {
        font-size: 1rem;
    }

    .hero-mobile-intro {
        position: relative;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.6s ease;
        margin-top: 0;
        padding-top: 3rem;
    }
}

/* Ghost heading reserves space so typed text doesn't shift layout */
.tag-line-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

.tag-line-ghost {
    visibility: hidden;
    display: block;
    margin: 0;
    padding: 0;
}

/* Visible typing content overlays ghost so no layout shift */
.tag-line-visible {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.tag-line-visible .tag-line-stroke,
.tag-line-visible .tag-line-accent {
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .row {
    height: 100%;
}

/* Establish containing block for the portal image on mobile */
.hero-phone {
    position: relative;
}

/* Desktop: columns fill the full hero height so space-between works,
   phone is lifted out of flow and centered on the viewport */
@media (min-width: 768px) {

    .hero-left,
    .hero-phone {
        height: 100%;
    }

    .hero-phone {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 0;
        width: 40vw;
        height: 80vh;
    }
}

#phone-canvas {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    display: block;
}


.tag-line-heading {
    display: block;
    margin: 0;
    padding: 0;
}

/* Stroke-only text (no fill) like mockup */
.tag-line-stroke {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #7D79F1;
    text-stroke: 2px #7D79F1;
    line-height: .6;
    font-size: clamp(2rem, 8vw, 14rem);
    margin: 0;
    padding: 0;
    /* position: absolute;
    top: 0;
    left: 0; */
}

/* Accent word: italic, yellow, overlaps the line above */
.tag-line-accent {
    display: block;
    font-style: italic;
    color: #EEFF00;
    line-height: .3;
    font-size: clamp(2rem, 13vw, 20rem);
    margin: 0;
    padding: 0;
    /* position: absolute;
    top: 250px;
    left: 0; */
}

/* Emojis in accent never italicized */
.tag-line-accent .tagline-emoji {
    font-style: normal;
}

@media (max-width: 768px) {
    .tag-line-stroke {
        font-size: clamp(1.25rem, 12vw, 12rem);
        -webkit-text-stroke: 1.5px #7D79F1;
    }

    .tag-line-accent {
        font-size: clamp(1.5rem, 20vw, 18rem);
    }
}


/* Font classes */
.font-jersey10 {
    font-family: "Jersey 10", sans-serif;
}

.font-bodoni {
    font-family: "Bodoni Moda", serif;
}

/* Ensure navbar sits above canvas */
.menubar {
    position: relative;
    z-index: 2;
}

/* Menubar - Bootstrap navbar overrides (image styling only) */
.menubar .wordmark-img,
.menubar .logo-img {
    max-height: clamp(3rem, 6vw, 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.menubar .logo-img {
    max-height: clamp(3rem, 5vw, 6rem);
}

.menubar .nav-link {
    color: #898CF1;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.menubar .nav-link:hover {
    color: #ffff00;
}

/* Mobile bottom menu bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    /* background: linear-gradient(0deg, rgba(15, 14, 20, 0.95) 0%, rgba(15, 14, 20, 0.85) 100%); */
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
}

.mobile-nav-link {
    color: #898CF1;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
}

.mobile-nav-link:hover {
    color: #ffff00;
}

/* ── Nav overlay ─────────────────────────────────────────── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(0deg, #EF0 0%, #A1AD00 100%);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Slide in from bottom */
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.is-open {
    transform: translateY(0);
}

.nav-overlay-close {
    position: absolute;
    top: 4rem;
    right: 4rem;
    background: none;
    border: none;
    color: #333333;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    outline: none;
}

.nav-overlay-close:hover {
    color: #ffffff;
}

.nav-overlay-title {
    display: block;
    color: #eeff00;
    /* -webkit-text-stroke: 1px #7D79F1;
    text-stroke: 1px #7D79F1; */
    font-size: clamp(2rem, 10vw, 12rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    font-family: "Bodoni Moda", serif;
    font-style: italic;
}

.nav-overlay-text {
    color: #333333;
    font-weight: 400;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
    /* font-family: "Bodoni Moda", serif;
    font-style: italic; */
}

/* Responsive width utility for hero intro text */
.w-md-25 {
    width: 100%;
}

@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }
}

@media (max-width: 768px) {
    .nav-overlay-close {
        top: 1rem;
        right: 1rem;
    }

    .nav-overlay-title {
        font-size: clamp(1.5rem, 12vw, 12rem);
    }

    .nav-overlay-text {
        font-size: 1rem;
        padding: 1rem;
    }
}