/* Core Reset & Background */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling to anchors */
}

body {
    /* Removed overflow: hidden to allow scrolling */
    background: linear-gradient(to bottom, #000000 0%, #03092e 100vh); /* Fixed gradient height */
    background-attachment: fixed; /* Keeps the gradient from stretching wildly */
    color: #E0E0E0;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

/* Header & Logo Outlines */
.brand-header {
    position: fixed; 
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

/* .logo {
    font-family: sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}
    */

.logoImg {
    width: 100%;
    max-width: 250px; /* Strict max-width instead of vh to prevent overlap */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); /* Optional: Adds a nice shadow to separate it from scrolling text */
}

.greyfrog {
    color: #FFFFFF;
    -webkit-text-stroke: 2px #4CAF50;
}

.games {
    color: #2ce932;
    -webkit-text-stroke: 2px #179f17;
}

/* Fixed Mascot Background */
.hero-image {
    position: fixed; /* Locks the skeleton in place */
    top: 0; 
    left: 0; 
    width: 70vw;
    height: 100vh; 
    display: flex;
    z-index: 0;
    pointer-events: none; /* Prevents image from blocking clicks */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: 0;
    /* Smooth 0.8s fade-in when the random image loads */
    animation: fadeInImage 0.8s ease forwards; 
}

@keyframes fadeInImage {
    to { opacity: 1; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem 0 2rem;
    max-width: 600px;
    margin-left: auto; /* Keeps it on the right side of the screen */
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.25rem;
    color: #E0E0E0;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background-color: transparent;
    color: #00ff08;
    border: 2px solid #00ff08;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 8, 0.1);
}

.btn-primary:hover {
    background-color: #00ff08;
    color: #000000;
    box-shadow: 0 0 25px rgba(0, 255, 8, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInImage {
    to { opacity: 1; }
}

/* -----------------------------
   SCROLLING CONTENT AREAS 
------------------------------ */
.content-scroll-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Screen 1: Landing Height */
.landing-screen {
    height: 100vh;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 4rem 0 2rem;
    max-width: 500px;
    margin-left: auto;
}

.anchor-section {
    min-height: 100vh;
    width: 80%;
    height: 100%;
    padding: 14rem 4rem 4rem 2rem;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.6); /*  darkens background slightly as you scroll down */
    backdrop-filter: blur(5px);
    border-left: auto;
}

.section-title {
    margin-bottom: 3rem;
    text-align: right;
}

/* -----------------------------
   ASSET TILES & GRIDS 
------------------------------ */
.grid-bundles {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Across */
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-assets {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Across */
    gap: 1.5rem;
}

.itch-tile {
    background-color: rgba(37, 40, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tile-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.itch-tile h4 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.itch-tile p {
    font-size: 0.9rem;
    color: #A0A0A0;
    line-height: 1.4;
}

.itch-tile:hover {
    transform: translateY(-5px);
    border-color: #00ff08;
    box-shadow: 0 5px 15px rgba(0, 255, 8, 0.15);
}

.itch-tile:hover h4 {
    color: #00ff08; /* Green hover text */
}

.nav-box {
    background-color: rgba(37, 40, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 6px solid #00ff08;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(12px);
    transform: translateX(100vw);
    opacity: 0;
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: var(--animation-delay);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, padding-left 0.3s ease;
}

@keyframes slideInFromRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-box:hover {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    border-color: rgba(0, 255, 8, 0.6);
    padding-left: 3.5rem;
    transform: translateX(-10px);
}

.nav-box h3 {
    font-family: sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.nav-box p {
    font-size: 1.1rem;
    color: #d1d5db;
}

footer {
    display: block; 
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.85); /* Gives it a solid dark background so it's easy to read */
    position: relative;
    z-index: 10;
}

footer a {
    color: #00ff08;
}

/* -----------------------------
   MOBILE RESPONSIVENESS 
------------------------------ */
@media (max-width: 1024px) {
    body {
        background: #151515; 
    }
    
    .hero-image {
        position: relative; 
        width: 100%;
        height: 60vh;
    }

.brand-header {
        top: 1.5rem;
        left: 1.5rem;
        z-index: 100;
    }

    .logoImg {
        max-width: 180px; /* Shrinks the logo on mobile */
    }

    .asset-container {
        padding-top: 8rem; /* Reduces the gap on mobile since the logo is smaller */
    }

    .nav-container {
        padding: 2rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0; 
    }

    .landing-screen {
        height: auto;
    }

    .anchor-section {
        min-height: 100vh;
        width: 100%;
        margin-left: 0;
        padding: 8rem 4rem 4rem 4rem;
        backdrop-filter: blur(10px);
        border-left: none;
    }

    .section-title {
        margin-bottom: 3rem;
        text-align: left;
    }

    .grid-bundles, .grid-assets {
        grid-template-columns: 1fr; /* Stack everything on mobile */
    }

    /* Mobile Footer - Visible */
    footer {
        display: block;
        text-align: center;
        padding: 2rem;
        color: #888;
        font-size: 0.9rem;
    }

    
}


/* -----------------------------
   INDIVIDUAL ASSET PAGES
------------------------------ */

.seamless-header {
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-bottom: 10rem;
    
    /* Matches the dark blue of the asset-body and fades to invisible */
    background: linear-gradient(to bottom, #03092e 40%, rgba(3, 9, 46, 0) 100%);
    
    /* Let clicks pass through the invisible gradient so you can click the page */
    pointer-events: none; 
}

.seamless-header a {
    /* Re-enable clicking exclusively for the logo link */
    pointer-events: auto; 
    display: inline-block;
}

/* Adjusting the body background for content pages so it's a solid dark gradient without the fixed hero image */
.asset-body {
    background: linear-gradient(to bottom, #03092e 0%, #000000 100vh);
}

.asset-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12rem 2rem 4rem 2rem; /* Top padding clears the fixed logo */
}

/* Showcase Grid (2 columns on desktop) */
.asset-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.asset-info h1 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.asset-tagline {
    font-size: 1.2rem;
    color: #E0E0E0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    color: #A0A0A0;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

/* Asset Media Styling */
.showcase-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle Divider */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 4rem 0;
}

/* Tutorial Section */
.asset-tutorial {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.asset-tutorial h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.asset-tutorial p {
    color: #A0A0A0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Responsive 16:9 Video Embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff08; /* Subtle green border to tie it to the brand */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Responsiveness for Asset Page */
@media (max-width: 900px) {
    .asset-showcase {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .feature-list li {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .asset-info {
        order: 2; /* Puts text below the image on mobile */
    }
    
    .asset-media {
        order: 1; /* Puts image on top on mobile */
    }
}