/* =========================================================================
   AHOY PORTAL STYLES – BRAND FAITHFUL REDESIGN
   Street Kitchen: Bold Yellow (#FFB600) Industrial
   Asia: Deep Red (#C41E3A) Atmospheric
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Street Kitchen Brand */
    --street-yellow: #FFB600;
    --street-yellow-dark: #CC9200;
    --street-black: #0e0d0b;
    --street-dark: #1a1806;

    /* Asia Brand */
    --asia-red: #C41E3A;
    --asia-red-light: #e8254a;
    --asia-dark: #0a0608;
    --asia-cream: #f5ede0;

    /* Shared */
    --bg-dark: #0a0a0a;
    --text-main: #f5f5f0;
    --text-muted: rgba(245, 245, 240, 0.6);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --trans-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --trans-spring: 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s ease;
}

body.hovering-street .cursor { background-color: var(--street-yellow); }
body.hovering-street .cursor-follower { border-color: var(--street-yellow); }
body.hovering-asia .cursor { background-color: var(--asia-red-light); }
body.hovering-asia .cursor-follower { border-color: var(--asia-red-light); }

a, button { cursor: none; }

/* =========================================================================
   PRELOADER
   ========================================================================= */
.loader {
    position: fixed;
    inset: 0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-logo {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
}

.loader-logo span.yellow { color: var(--street-yellow); }
.loader-logo span.red { color: var(--asia-red); }

.progress-bar {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    overflow: hidden;
    opacity: 0;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--street-yellow), var(--asia-red));
}

/* =========================================================================
   SPLIT LAYOUT
   ========================================================================= */
.split-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    opacity: 0;
}

.split-pane {
    flex: 1;
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: flex var(--trans-spring);
    /* GPU layer promotion */
    transform: translateZ(0);
    will-change: flex;
}

.split-pane:hover {
    flex: 1.35;
}

/* =========================================================================
   BACKGROUNDS
   ========================================================================= */
.pane-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Only animate transform – filter transition is expensive */
    transition: transform var(--trans-smooth);
    will-change: transform;
}

.street-bg {
    /* Bold industrial texture – dark with yellow undertones */
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(255, 182, 0, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, #1c1600 0%, #100e00 40%, #0a0900 100%);
}

.asia-bg {
    /* Dark atmospheric – red lantern mood */
    background: 
        radial-gradient(ellipse at 70% 40%, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(196, 30, 58, 0.07) 0%, transparent 50%),
        linear-gradient(160deg, #0f0305 0%, #080206 40%, #050205 100%);
}

.split-pane:hover .pane-bg {
    transform: scale(1.06);
}

/* =========================================================================
   OVERLAY GRADIENTS
   ========================================================================= */
.pane-overlay {
    position: absolute;
    inset: 0;
    transition: opacity var(--trans-smooth);
}

.street-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.asia-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

/* Colored glow on hover */
.pane-street::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(255,182,0,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--trans-smooth);
    pointer-events: none;
}
.pane-street:hover::after { opacity: 1; }

.pane-asia::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(196,30,58,0.18) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--trans-smooth);
    pointer-events: none;
}
.pane-asia:hover::after { opacity: 1; }

/* =========================================================================
   PANE CONTENT
   ========================================================================= */
.pane-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    /* Lock width so flex expansion doesn't cause reflow */
    width: 420px;
    max-width: 90vw;
    flex-shrink: 0;
}

/* ---- STREET KITCHEN SIDE ---- */
.street-badge {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--street-yellow);
    border: 1px solid rgba(255, 182, 0, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--trans-smooth), transform var(--trans-smooth);
}

.split-pane:hover .street-badge {
    opacity: 1;
    transform: translateY(0);
}

.street-title {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    /* Prevent text reflow on pane resize */
    white-space: nowrap;
}

.street-title .line-normal {
    font-size: 4.2rem;
    display: block;
    color: #fff;
    line-height: 1;
}

.street-title .line-boxed {
    /* block + auto margin: centering doesn't shift on width change */
    display: block;
    font-size: 3.8rem;
    background: var(--street-yellow);
    color: #000;
    padding: 0.05em 0.3em;
    margin-top: 0.2em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* ---- ASIA SIDE ---- */
.asia-script-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.asia-script-logo .script-text {
    font-family: 'Brush Script MT', 'Dancing Script', cursive;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 400;
    color: #f5e6c8;
    line-height: 1;
    text-shadow: 0 0 40px rgba(196, 30, 58, 0.5);
    transition: text-shadow var(--trans-smooth);
}

.split-pane:hover .asia-script-logo .script-text {
    text-shadow: 0 0 60px rgba(196, 30, 58, 0.8);
}

.asia-script-logo .asia-sub {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    letter-spacing: 0.8rem;
    text-transform: uppercase;
    color: var(--asia-red);
    margin-top: -0.3em;
}

/* ---- SHARED TAGLINE ---- */
.tagline {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    transform: translateY(12px);
    opacity: 0.7;
    transition: opacity var(--trans-smooth), transform var(--trans-smooth), color var(--trans-smooth);
    font-style: italic;
}

.split-pane:hover .tagline {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-main);
}

/* ---- CTA BUTTON ---- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--trans-smooth), transform var(--trans-smooth), box-shadow var(--trans-fast), scale var(--trans-fast);
}

.split-pane:hover .cta-btn {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn:hover {
    scale: 1.04;
}

.cta-btn i {
    transition: transform var(--trans-fast);
}

.cta-btn:hover i {
    transform: translateX(6px);
}

.cta-btn.street-cta {
    background: var(--street-yellow);
    color: #000;
    box-shadow: 0 0 0 rgba(255, 182, 0, 0);
}
.cta-btn.street-cta:hover {
    box-shadow: 0 8px 30px rgba(255, 182, 0, 0.4);
}

.cta-btn.asia-cta {
    background: var(--asia-red);
    color: #fff;
    box-shadow: 0 0 0 rgba(196, 30, 58, 0);
}
.cta-btn.asia-cta:hover {
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.5);
}

/* ---- TOP LABELS ---- */
.pane-label {
    position: absolute;
    top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.35;
    transition: opacity var(--trans-smooth);
}

.pane-street .pane-label { left: 2rem; color: var(--street-yellow); }
.pane-asia .pane-label { right: 2rem; color: var(--asia-red); }

.split-pane:hover .pane-label {
    opacity: 0.7;
}

/* ---- EST badge corner ---- */
.est-badge {
    position: absolute;
    bottom: 2.5rem;
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.4;
}
.pane-street .est-badge { left: 2rem; }
.pane-asia .est-badge { right: 2rem; }

/* =========================================================================
   DECORATIVE ELEMENTS – Street Kitchen Side
   ========================================================================= */
.street-decor-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.street-decor-lines::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    border-right: 1px solid rgba(255, 182, 0, 0.06);
    transform: skewX(-8deg);
}

.street-decor-lines::after {
    content: '';
    position: absolute;
    top: -20%;
    right: 15%;
    width: 30%;
    height: 140%;
    border-right: 1px solid rgba(255, 182, 0, 0.04);
    transform: skewX(-8deg);
}

/* =========================================================================
   DECORATIVE ELEMENTS – Asia Side
   ========================================================================= */
.asia-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Lantern glow hints – no expensive blur(), use large soft radial gradient instead */
.asia-decor::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 120px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(196, 30, 58, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    will-change: transform, opacity;
    animation: lanternPulse 4s ease-in-out infinite alternate;
}

.asia-decor::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 18%;
    width: 100px;
    height: 140px;
    background: radial-gradient(ellipse, rgba(196, 30, 58, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    will-change: transform, opacity;
    animation: lanternPulse 5s ease-in-out infinite alternate-reverse;
}

@keyframes lanternPulse {
    0% { opacity: 0.5; transform: translateY(0px); }
    100% { opacity: 1; transform: translateY(10px); }
}

/* =========================================================================
   CENTER DIVIDER
   ========================================================================= */
.portal-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 20;
    pointer-events: none;
}

.divider-line {
    width: 1px;
    height: 12vh;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}

.divider-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.divider-logo-text {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.5rem;
    color: #fff;
    opacity: 0.9;
}

.divider-choose {
    font-family: var(--font-primary);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 0.2rem;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--street-yellow), var(--asia-red));
}

/* =========================================================================
   RESPONSIVE – Mobile
   ========================================================================= */
@media (max-width: 900px) {
    body { overflow: hidden; }
    
    .split-layout {
        flex-direction: column;
    }

    .split-pane:hover {
        flex: 1.2;
    }

    .portal-divider {
        flex-direction: row;
        gap: 1.2rem;
    }

    .divider-line {
        height: 1px;
        width: 12vw;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    }

    .divider-logo {
        gap: 0.15rem;
    }

    .divider-logo-text {
        font-size: 1rem;
        letter-spacing: 0.3rem;
    }

    .street-title .line-normal { font-size: 2.5rem; }
    .street-title .line-boxed { font-size: 2.2rem; }

    .cta-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .street-badge {
        opacity: 1;
        transform: translateY(0);
    }

    .pane-label { display: none; }
    .est-badge { display: none; }

    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    a, button { cursor: pointer; }
}

@media (max-width: 480px) {
    .pane-content { padding: 1.5rem 1rem; }
    .tagline { font-size: 0.8rem; }
    .cta-btn { font-size: 0.75rem; padding: 0.75rem 1.5rem; }
}
