:root {
    --bg-dark: #07090F; /* Deep space dark blue/black */
    --text-main: #FFFFFF;
    --text-muted: #8B949E;
    
    /* Cyber/Tech Palette */
    --neon-cyan: #00F0FF;
    --neon-purple: #D500F9;
    --border-dim: rgba(255, 255, 255, 0.1);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body.cyber-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
.cyber-heading-massive {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.cyber-section-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cyber-heading-small {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin: 0.5rem 0 1rem;
}

.cyber-subheading {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 2rem auto;
    font-weight: 500;
}

.gradient-text-purple {
    background: linear-gradient(90deg, #FFFFFF, var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 1000;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.logo .brand-sp {
    color: var(--neon-cyan);
}

.nav-links-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

/* --- Buttons --- */
.btn-cyber-outline {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cyber-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-pill {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pill:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('hero-bg.jpg') center/cover no-repeat;
}

/* Hero Overlay to darken image */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(7,9,15,0.4) 0%, rgba(7,9,15,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
}

.scroll-down-icon {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-cyan);
    font-size: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- Sections --- */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

/* --- Games Bento Card & Scroll Track --- */
.scroll-track {
    /* Height controls how long the pin lasts. 300vh gives enough room to scroll 2 full screens. */
    height: 300vh;
    position: relative;
}

.sticky-frame {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.horizontal-strip {
    display: flex;
    gap: 15vw; /* Large gap so they enter sequentially */
    padding-left: 100vw; /* Starts the first card entirely off-screen to the right */
    padding-right: 50vw; /* Gives some trailing space after the last card */
    align-items: center;
    height: 100%;
    will-change: transform;
}

.bento-card {
    display: flex;
    background: #0D1117;
    border: 1px solid #1F242F;
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
    width: 1200px; /* Fixed massive width for horizontal scroll */
    flex-shrink: 0; /* Prevents squishing */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: border-color 0.4s;
}

.bento-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.bento-image-wrapper {
    flex: 0 0 45%;
    position: relative;
    border-right: 1px solid #1F242F;
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: url('images/app-icon.png') center/cover;
}

/* Faux glow inside the game cover container */
.bento-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset -50px 0 50px rgba(13, 17, 23, 1);
}

.bento-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-tags {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.bento-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.view-game-link {
    display: inline-flex;
    align-items: center;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    transition: transform 0.3s;
}

.view-game-link:hover {
    transform: translateX(10px);
}

/* --- Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Legal Pages --- */
.legal-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}
.legal-page .page-content {
    padding: 10rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}
.policy-section {
    margin-bottom: 3rem;
}
.policy-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.policy-section p, .policy-section ul {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}
.policy-section ul {
    padding-left: 2rem;
}

@media (max-width: 1024px) {
    .bento-card { width: 85vw; }
}

@media (max-width: 768px) {
    .cyber-heading-massive { font-size: 3.5rem; }
    .cyber-heading-small { font-size: 1.8rem; }
    .cyber-section-heading { font-size: 1.5rem; }
    
    .navbar { padding: 1rem; }
    .logo { font-size: 1rem; letter-spacing: 1px; }
    .btn-cyber-outline { padding: 0.6rem 1rem; font-size: 0.8rem; }
    .nav-links-container { display: none; }
    
    /* Disable horizontal scroll on mobile */
    .scroll-track { height: auto; }
    
    /* Make space for absolute heading */
    .sticky-frame { position: static; height: auto; overflow: visible; display: block; padding-top: 2rem; }
    #games-heading-container { position: relative !important; top: 0 !important; margin-bottom: 2rem; }
    
    .horizontal-strip { flex-direction: column; padding: 0 1.5rem; transform: none !important; }
    
    .bento-card { width: 100%; height: auto; flex-direction: column; margin-bottom: 3rem; border-radius: 20px; }
    .bento-image-wrapper { height: 350px; flex: none; border-right: none; border-bottom: 1px solid #1F242F; border-radius: 20px 20px 0 0; overflow: hidden; }
    .bento-image-wrapper::after { box-shadow: inset 0 -40px 40px rgba(13, 17, 23, 1); }
    .bento-content { padding: 1.5rem; }
    
    .bento-platforms { flex-wrap: wrap; gap: 0.5rem; }
    .btn-pill { flex: 1 1 100%; justify-content: center; padding: 0.8rem 1.5rem; }
}

/* Modal and footer overrides */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid #1F242F;
    background: #000;
}
