/* 1. Register your custom premium font here */
@font-face {
    font-family: 'SloopScript';
    src: url('sloop-script.ttf') format('truetype'); /* Make sure this matches your exact file name! */
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section {
    flex-direction: row; 
    justify-content: space-between; 
    padding: 0 5vw; 
}

.center-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
}

.main-logo {
    width: 40vw; 
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
        /* Flips the black bull to pure white, and the white background to pure black */
    filter: invert(100%); 
    /* Forces the browser to render the vector math as surgically sharp as possible */
    shape-rendering: geometricPrecision; 
    overflow: visible;
}

.side-text {
    width: 25vw; 
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative; /* Crucial: traps the curtain inside this exact box */
}

.side-text p {
    opacity: 0; /* Hides the text so the curtain can cover it before it appears */
}

/* The God-Tier Block Curtain */
.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff; /* Pure white block */
    z-index: 10;
}

.left-text { text-align: left; }
.right-text { text-align: right; }

.projects-wrapper {
    position: absolute;
    bottom: 5vh; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    flex-direction: row; 
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
}

.projects-text {
    opacity: 0; 
}

.so-far-text {
    position: absolute; 
    left: 100%; 
    top: -45%; 
    margin-left: 15px; 
    white-space: pre; 
    font-family: 'Playfair Display', serif; 
    font-weight: normal; 
    font-size: 2.8rem; 
    font-style: italic; 
    opacity: 0; /* Hidden initially for the curtain reveal */
}

.bottom-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 10;
}

.logicook-logo { font-size: 3rem; }
.logicook-description { font-size: 1.5rem; margin-top: 20px; }

/* --- SCROLL DOWN INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5vw; /* Perfectly aligns with your 5vw side padding */
    display: flex;
    flex-direction: row; /* Locks text and arrow on the same row */
    align-items: center;
    color: rgba(0, 0, 0, 0.4); /* A clean, minimalist lighter shade than solid black */
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 20;
}

.scroll-indicator svg {
    width: 18px; /* Shrunk slightly for elegance */
    height: 18px;
    margin-left: 8px; /* Spacing between the text and arrow */
    animation: floatDown 2s infinite ease-in-out;
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); } /* A very subtle downward nudge */
}


.dots {
    letter-spacing: 12px; /* Keeps the dots perfectly spaced out */
    /* Pulls "so far" backward to cancel out the final dot's 12px gap. Tweak this number if you want it even tighter! */
    margin-right: -8px;    
}


/* 2. The Floating Orange Glass Container */
.logicook-glass-banner {
    position: relative; 
    width: 96vw;           
    margin: 30px auto;     
    min-height: 160px;     
    border-radius: 24px;   
    padding: 0 40px; /* Changed to left/right padding so the text doesn't hit the walls */
    
    display: flex;
    justify-content: space-between; /* Pushes Zone 1 and Zone 3 to opposite ends */
    align-items: center;
    overflow: hidden; 
    
    /* Premium Orange Glass-morphism */
    background: rgba(255, 136, 0, 0.15); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 136, 0, 0.3); 
    
    text-decoration: none; 
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10; 
}

.logicook-glass-banner:hover {
    background: rgba(255, 136, 0, 0.25);
}

.logicook-banner-logo {
    height: 100px; 
    width: auto;
    /* Absolute positioning locks the logo dead-center regardless of how long your text is */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* --- THE HOVER REVEAL MICRO-ANIMATIONS --- */

.banner-content {
    opacity: 0;
    transform: translateY(15px); /* Starts slightly pushed down */
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
}

/* When the banner is hovered, target the hidden content and slide it up */
.logicook-glass-banner:hover .banner-content {
    opacity: 1;
    transform: translateY(0); 
}

.banner-left {
    max-width: 30%; /* Prevents your text from stretching into the center logo */
    text-align: left;
}

.banner-left p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- ZONE 3 REBUILD (Badges & Text) --- */
.banner-right {
    display: flex;
    flex-direction: column; 
    align-items: center; /* Centers the text and badges horizontally in their half */
    justify-content: center;
    gap: 12px; /* Space between the text and the row of badges */
    width: 35%; /* Pulls it away from the right wall into the middle of the space */
}

.available-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.5px;
}

.badge-row {
    display: flex;
    gap: 15px; /* Space between the Apple and Google pill buttons */
}

.store-badge {
    height: 50px; 
    transition: transform 0.2s ease; 
    cursor: pointer;
}

/* This makes the giant buttons pop up slightly when your mouse actually touches them */
.store-badge:hover {
    transform: scale(1.05); 
}

.sweep-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 120px; /* Adjust this to match the height of your side paragraphs */
    background-color: #ffffff;
    opacity: 0; 
    z-index: 5;
}

/* --- EXPANDED HERO CONTAINER ARROW --- */
.close-logicook {
    position: absolute;
    top: 32px; /* Pushed down slightly to center align with the larger logo */
    left: 32px;
    width: 26px; /* Shrunk down for elegance */
    height: 26px;
    cursor: pointer;
    opacity: 0; 
    pointer-events: none; 
    z-index: 20;
}

.close-logicook svg {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.close-logicook:hover svg {
    transform: scale(1.1) translateX(-3px);
}

/* --- EXPANDED TOP BAR ELEMENTS --- */
.expanded-center-logo {
    position: absolute;
    top: 16px; /* Pulled up slightly so it aligns on the same visual row as the back button */
    left: 50%;
    transform: translateX(-50%);
    height: 58px; /* Scaled up significantly to command the top bar */
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.expanded-store-badges {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.expanded-badge {
    height: 40px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.expanded-badge:hover {
    transform: scale(1.05);
}

.expanded-content {
    position: absolute;
    top: 100px; /* Sits nicely below the back arrow */
    left: 5%;
    width: 90%;
    opacity: 0; 
    pointer-events: none; /* Prevents interaction when closed */
    z-index: 15;
}

.expanded-content p {
    font-size: 1.6rem; /* Shrunk down for a more refined, app-like read */
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    text-align: center; /* Kept perfectly left-aligned */
}

/* --- EXPANDED LEGAL FOOTER --- */
.expanded-legal-links {
    position: absolute;
    bottom: 8px; /* Pushed all the way down to the bottom edge of the glass */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.expanded-legal-links a {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.expanded-legal-links a:hover {
    color: #ffffff;
}

.link-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* --- LOGICOOK SCREENSHOT CARDS --- */
.cards-container {
    position: absolute;
    bottom: 250px; /* Lifted up exactly 50 more pixels */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 55%; 
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1000px;
    pointer-events: none; 
}

.screenshot-card {
    position: absolute;
    width: 180px;  /* Enlarged! */
    height: 360px; /* Enlarged! */
    border-radius: 20px; /* Slightly smoothed out for the bigger size */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transform-origin: center 250%; 
    opacity: 0; 
    will-change: transform;
    cursor: pointer;
    background-color: #111; 
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; 
}
/* --- HOVER DESCRIPTION TEXT --- */
.card-description-box {
    position: absolute;
    bottom: 10px; /* Lowered by exactly 20px (from 50px to 30px) */
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 800px;
    height: 140px; 
    opacity: 0; 
    pointer-events: none; 
    z-index: 20;
    
    /* Strict Top-Down Alignment */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; 
    text-align: center;
}

.card-title {
    color: #FF4500;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-detail {
    color: rgba(255, 255, 255, 0.56); 
    font-size: 0.95rem; 
    line-height: 1.5;
    font-weight: 400;
    max-width: 420px; /* Chokes the width to force ~10 words per line */
    margin: 0 auto; /* Keeps the narrowed block perfectly centered */
}
/* --- GLOBAL STUDIO FOOTER --- */
.studio-footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    background-color: #000000; /* Blends seamlessly into the final Act's background */
    z-index: 10;
}

.studio-footer a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.studio-footer a:hover {
    color: #ffffff;
}

/* --- MOBILE RESPONSIVENESS (PHONES & SMALL TABLETS) --- */
@media (max-width: 768px) {
    /* 1. Prevent the website from scrolling sideways */
    body, html {
        overflow-x: hidden;
    }

    /* 2. Re-arrange the Hero Section */
    .hero-section {
        flex-direction: column;
        justify-content: space-evenly;
        padding: 20px 0;
    }

    /* 3. Stack the left and right text so they don't crush the logo */
    .side-text {
        position: relative !important;
        width: 90% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 0 auto;
        text-align: center;
        font-size: 14px; 
    }

        .right-text {
        order: 1;
    }
    .center-content {
        order: 2;
        margin: 40px 0; 
    }
    .left-text {
        order: 3;
    }
        
    .projects-wrapper {
        bottom: 2vh !important; 
    }

    /* 4. The Mobile Resting State (Sleek Pill) */
    .logicook-glass-banner {
        flex-direction: column;
        justify-content: center;
        padding: 0;
        height: 160px; 
        overflow: hidden; 
    }

    /* Physically rip the extra text out of the document flow (Flutter Offstage equivalent) */
    .banner-left, .banner-right {
        position: absolute !important;
        opacity: 0;
        pointer-events: none;
    }

    /* Lock logo dead center */
    .logicook-banner-logo {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }

    /* --- THE NATIVE APP EXPANDED STATE --- */
    .logicook-glass-banner.mobile-expanded {
        overflow-y: auto !important; /* Enables vertical scrolling inside the banner */
        justify-content: flex-start !important;
        padding: 30px 0 !important;
    }

        /* Stops Flexbox from crushing ANY of the elements inside the expanded banner */
    .logicook-glass-banner.mobile-expanded > * {
        flex-shrink: 0 !important;
    }

    /* Hide both logos entirely to save precious vertical space */
    .mobile-expanded .logicook-banner-logo,
    .mobile-expanded .expanded-center-logo {
        display: none !important;
    }

    /* Stack 1: The Back Arrow */
    .mobile-expanded .close-logicook {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        align-self: flex-start !important;
        margin-left: 20px !important;
        margin-bottom: 20px !important;
        order: 1;
    }

    /* Stack 2: The Pitch Text */
    .mobile-expanded .expanded-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        padding: 0 20px !important;
        margin-bottom: 30px !important;
        order: 2;
    }

    /* Stack 3: The Carousel */
    .mobile-expanded .cards-container {
        order: 3;
        margin-bottom: 40px !important;
    }

    /* Stack 4: The Badges */
    .mobile-expanded .expanded-store-badges {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        justify-content: center !important;
        order: 4;
        margin-bottom: 40px !important;
    }

    /* Stack 5: Legal Links */
    .mobile-expanded .expanded-legal-links {
        position: relative !important;
        bottom: auto !important;
        order: 5;
        /* Kill the desktop absolute-positioning math */
        transform: none !important;
        left: auto !important;
        /* Use native Flexbox to center it perfectly */
        width: 100% !important;
        justify-content: center !important;
        padding-bottom: 20px !important; /* Gives it a nice cushion at the bottom of the scroll */
    }

    /* 6. The Mobile Scroll Indicator */
    .scroll-indicator {
        position: absolute !important;
        bottom: 15vh !important; /* Lifted up to clear mobile browser URL bars */
        right: 5vw !important;
        font-size: 0.65rem !important; 
        z-index: 20 !important;
    }

        /* 7. The Mobile Swipeable Carousel */
    .cards-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 360px !important; 
        margin-top: 30px;
        
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch; 
        scroll-snap-type: x mandatory; 
        gap: 20px;
        padding: 0 5vw; 
        pointer-events: auto !important;
    }

    .cards-container::-webkit-scrollbar {
        display: none;
    }

    .screenshot-card {
        position: relative !important;
        flex: 0 0 auto !important; 
        width: 160px !important; 
        height: 320px !important;
        transform: none !important; 
        scroll-snap-align: center;
    }

    /* 8. Hide the Hover Box completely */
    .card-description-box {
        display: none !important;
    }
}
