@font-face {
    font-family: 'PolycoreTitle';
    src: url('fonts/title.otf') format('opentype');
}

@font-face {
    font-family: 'PolycoreBody';
    src: url('fonts/normal.otf') format('opentype');
}

:root {
    --bg: #050505;
    --text: #ffffff;
    --dim: #666666;
    --border: #1a1a1a;
    --title-font: 'PolycoreTitle', sans-serif;
    --body-font: 'PolycoreBody', sans-serif;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    /* Fix: min-height allows the page to grow if content is long */
    min-height: 100vh; 
    /* Fix: Allow scrolling but hide horizontal "shaking" */
    overflow-x: hidden;
    overflow-y: auto;
    /* Remove default browser gaps */
    margin: 0;
    padding: 0;
}

/* --- UPDATED NAV CONTAINER --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px; /* Reduced padding for mobile safety */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.5); /* Slight tint so it's visible */
    backdrop-filter: blur(10px);
}

.logo img {
    height: 35px;
    cursor: pointer;
    transition: opacity 0.3s;
}

/* --- THE NAVIGATION LINKS --- */
.nav-links {
    display: flex;
    gap: 15px;
}

/* Desktop Centering Logic */
@media (min-width: 769px) {
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-links button {
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--title-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
}

.nav-links button:hover { opacity: 1; }

/* --- THE HAMBURGER (3 LINES) --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* --- MOBILE SPECIFIC LOGIC --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show 3 lines */
    }

    .nav-links {
        display: none; /* TRIPLE CHECK: This hides the list initially */
        position: absolute;
        top: 70px;
        left: 5%;
        width: 90%;
        flex-direction: column;
        background: rgba(20, 20, 20, 0.8);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 40px 0;
        align-items: center;
        transform: translateY(-10px);
        opacity: 1;
        transition: all 0.3s ease;
    }

    /* THE MAGIC CLASS: Added by JavaScript */
    .nav-links.mobile-active {
        display: flex !important; /* Forces it to show */
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links button {
        margin: 15px 0;
        opacity: 1; /* Make text fully visible on mobile */
        font-size: 14px;
    }
}

.page {
    display: none;
    height: 100vh;
    width: 100vw;
    padding: 100px 10%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; 
}


.page.active { 
    display: flex; 
    animation: fadeIn 0.8s ease forwards; 
}


h1, h2, h3, h4, .section-heading, .custom-title {
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-heading {
    font-size: 12px;
    letter-spacing: 8px;
    color: var(--dim);
    margin-bottom: 50px;
}


.page.scrollable.active {
    display: block; 
    overflow-y: auto;
    height: 100vh; 
    padding: 0; 
}


.careers-hero {
    height: 80vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle, #0f0f0f 0%, #050505 100%);
}

.big-logo {
    width: 700px; 
    height: auto;
    margin-bottom: 20px;
    animation: float 4s infinite ease-in-out;
    image-rendering: -webkit-optimize-contrast; 
}

.scroll-indicator {
    font-family: var(--title-font);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 4px;
}


.content-wrapper { 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto;
    padding: 100px 20px;
}

.custom-emoji {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    object-fit: contain;
}

.careers-gallery {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 100px 0;
}

.gallery-item img {
    width: 300px;
    height: 450px; 
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.02); border-color: #fff; }

.values-grid, .roles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.value-item, .role-box {
    border-radius: 20px; 

    background: #080808;
    padding: 40px;
    border: 1px solid var(--border);
    text-align: left;
}

.role-list { list-style: none; margin-top: 20px; }
.role-list li { color: var(--dim); margin-bottom: 12px; font-size: 1rem; }
.role-list li::before { content: "— "; color: #fff; }


.reveal {
    opacity: 1; 
    transform: translateY(0); 
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

footer {
    position: fixed;
    bottom: 30px;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

footer p { 
    font-family: var(--body-font);
    font-size: 9px; 
    letter-spacing: 3px; 
    color: var(--dim); 
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-container { 
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('test123.jpg') center/cover no-repeat;
}

.hero-title { 
    font-size: 7rem; 
    letter-spacing: 30px; 
    margin-right: -30px; 
    font-weight: 900; 
    z-index: 2; 
}

.hero-subtitle { 
    /* Change 'white' to any color you like, e.g., #00ff88 for neon green */
    color: #ffffff00; 
    
    /* font-weight: 700 or 900 makes it bold */
    font-weight: 900; 
    
    letter-spacing: 5px; 
    margin-top: 20px; 
    z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    
    /* Optional: Makes it look more like a professional UI */
    text-transform: uppercase; 
}

.hero-container { 
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('test123.jpg') center/cover no-repeat;
}

.hero-title { 
    font-size: 7rem; 
    letter-spacing: 30px; 
    margin-right: -30px; 
    font-weight: 900; 
    z-index: 2; 
    position: relative;
}

.hero-subtitle { 
    /* Change 'white' to any color you like, e.g., #00ff88 for neon green */
    color: #ffffff00; 
    
    /* font-weight: 700 or 900 makes it bold */
    font-weight: 900; 
    
    letter-spacing: 5px; 
    margin-top: 20px; 
    z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    
    /* Optional: Makes it look more like a professional UI */
    text-transform: uppercase; 
}


.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('test123.png') center/cover no-repeat;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: fadingBlur 3s ease-in-out forwards;
}

@keyframes fadingBlur {
    from { opacity: 0; }
    to { opacity: 0.5; } 
}


.careers-hero {
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('test123.jpg') center/cover no-repeat;
}

/* 1. THE BASE (Keep your existing code) */
.careers-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    filter: blur(15px) brightness(1.2);
    opacity: 0;
    z-index: 1;
    animation: blurFadeIn 2s ease-out forwards;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 2. PAGE SPECIFIC OVERRIDES */

/* Games Page */
#games .careers-hero::before {
    background-image: url('backgrounds/background2.png');
}

/* Careers Page (If you want a specific one here) */
#careers .careers-hero::before {
    background-image: url('backgrounds/background3.png');
}

/* News Page */
#news .careers-hero::before {
    background-image: url('backgrounds/background4.png');
}

/* About Page */
#about .careers-hero::before {
    background-image: url('backgrounds/background5.png');
}

/* Contact Page */
#contact .careers-hero::before {
    background-image: url('backgrounds/background6.png');
}


.careers-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.05); 
    z-index: 2;
}

.hero-logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.polycore-loader-text {
    font-family: var(--title-font);
    font-size: 110px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 25px; 
    margin-right: -25px; 
    color: #ffffff;
    
    animation: polyFloat 5s infinite ease-in-out;
    

}

.loader-line {
    width: 600px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: "";
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: loadingBar 3s infinite ease-in-out;
}

.scroll-indicator {
    font-family: var(--title-font);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 6px;
    text-transform: uppercase;
}


@keyframes polyFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.95; }
    50% { transform: translateY(-10px) scale(1.02); opacity: 1; }
}

@keyframes loadingBar {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

@keyframes blurFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 0.7; transform: scale(1); }
}

.hero-logo-container {
    position: relative;
    z-index: 10; 
    text-align: center;
}

.big-logo {
    width: 700px;
    height: auto;
    margin-bottom: 20px;
    animation: float 4s infinite ease-in-out;
    image-rendering: -webkit-optimize-contrast; 
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
}

.scroll-indicator {
    font-family: var(--title-font);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 4px;
    position: relative;
}

@keyframes blurFadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

.hero-logo-container {
    position: relative;
    z-index: 2; 
    text-align: center;
}

.big-logo {
    width: 700px;
    height: auto;
    margin-bottom: 20px;
    animation: float 4s infinite ease-in-out;
    image-rendering: -webkit-optimize-contrast; 
}

.hero-title { 
    font-size: 7rem; 
    letter-spacing: 30px; 
    margin-right: -30px; 
    font-weight: 900; 
    z-index: 2; 
}

.hero-subtitle { 
    /* Change 'white' to any color you like, e.g., #00ff88 for neon green */
    color: #ffffff00; 
    
    /* font-weight: 700 or 900 makes it bold */
    font-weight: 900; 
    
    letter-spacing: 5px; 
    margin-top: 20px; 
    z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    
    /* Optional: Makes it look more like a professional UI */
    text-transform: uppercase; 
}

.hero-bg {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; 
    height: 120%;
    background: url('backgrounds/background.png') center/cover no-repeat;
    filter: blur(10px); 
    opacity: 0.4; 
    z-index: 1; 
    pointer-events: none;
}
.hero-title { font-size: 7rem; letter-spacing: 30px; margin-right: -30px; font-weight: 900; }
.hero-subtitle { 
    /* Change 'white' to any color you like, e.g., #00ff88 for neon green */
    color: #ffffff; 
    
    /* font-weight: 700 or 900 makes it bold */
    font-weight: 900; 
    
    letter-spacing: 5px; 
    margin-top: 20px; 
    z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    
    /* Optional: Makes it look more like a professional UI */
    text-transform: uppercase; 
}


.modern-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}


.modern-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.modern-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
}

.modern-card:hover::before {
    transform: translateX(100%);
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    transition: 0.4s;
}

.modern-card:hover .card-glow {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.modern-banner {
    margin: 100px 0;
    padding: 60px;
    text-align: center;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
}

.modern-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto 0;
    color: var(--dim);
    line-height: 1.8;
}

.modern-card h4 {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 2px;
}

.modern-card p {
    color: var(--dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.role-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--dim);
    list-style: none;
}

.role-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #fff;
    box-shadow: 0 0 5px #fff; 
}


.scrollable {
    -ms-overflow-style: none;  
    scrollbar-width: none;     
}

.scrollable::-webkit-scrollbar {
    display: none;             
}

@keyframes cardPulse {
    0% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
    50% { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); }
    100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0px rgba(255, 255, 255, 0); }
}

.pulsing {
    animation: cardPulse 4s infinite ease-in-out;
}

.careers-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.role-card {
    position: relative;
    height: 450px; 
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: 0.5s;
}

.role-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

.role-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 3;
}

.role-overlay h4 {
    font-family: var(--title-font);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.role-overlay p {
    font-size: 11px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.role-card:hover {
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.role-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}


.role-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05), transparent);
    z-index: 2;
    pointer-events: none;
}


.modern-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    position: relative;
}

.side-box-container {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 100px;
}

.side-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-image-block {
    position: relative;
    width: 100%;
    max-width: 500px; 
    margin: 0 auto;
}

.modern-img-glow {
    width: 100%;
    height: auto;
    display: block;
    

    border-radius: 60px; 
    

    overflow: hidden; 
    

    border: 1px solid rgba(255, 255, 255, 0.1); 
    

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(255, 255, 255, 0.05);
    
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}


.modern-img-glow:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(255, 255, 255, 0.1);
}


.value-item-modern {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    transition: 0.3s;
    border-radius: 20px; 

}

.value-item-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #fff;
}

.value-item-modern h4 {
    font-family: var(--title-font);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #fff;
}

.value-item-modern p {
    color: var(--dim);
    font-size: 0.9rem;
    line-height: 1.6;
}


.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.benefit-card {
    border-radius: 20px; 

    text-align: left;
    padding: 40px;
}

.benefit-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px #fff;
}


@media (max-width: 900px) {
    .side-box-container { flex-direction: column; }
    .benefits-grid { grid-template-columns: 1fr; }
}



.game-card-hero {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px; /* Super curved */
    padding: 60px 40px 40px 40px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}



.corner-thumb-wrapper {
    position: absolute;
    top: 20px;          
    left: 20px;         
    width: 100px;       
    height: 100px;      
    border-radius: 25px; 
    overflow: hidden;    
    z-index: 5;
}


.corner-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    border-radius: inherit; 
}
.game-card-hero:hover .corner-thumb-wrapper {
    opacity: 1;
    transform: scale(1.05) translate(-10px, 10px);
}



.game-header-center {
    text-align: left;    
    margin-left: 140px;  
    max-width: 80%;      
}
 
.hero-project-title {
    font-size: 32px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #fff;
    text-align: left;    
}

.game-desc-hero {
    font-size: 16px;
    line-height: 1.6;
    color: #aaa;
}


.game-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    z-index: 2;
}


.live-indicator-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    color: #00ff88;
    font-weight: bold;
    font-size: 13px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}


.stats-group {
    display: flex;
    gap: 30px;
    text-align: center;
}

.unit-label {
    display: block;
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.unit-value {
    font-size: 18px;
    color: #fff;
    font-weight: 800;
}


.premium-launch-btn {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    transition: 0.3s;
}

.premium-launch-btn:hover {
    background: #00ff88;
    transform: scale(1.05);
}

.game-stats-footer {
    display: flex;
    gap: 15px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.pill-label {
    font-size: 9px;
    color: #888;
    margin-bottom: 2px;
}

.pill-value {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}


.launch-link-btn {
    background: #fff;
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: 0.3s;
}

.launch-link-btn:hover {
    background: #ccc;
    transform: scale(1.05);
}


@media (max-width: 900px) {
    .game-card-long {
        flex-direction: column;
    }
    .game-thumb-side {
        width: 100%;
        min-width: 100%;
    }
}


.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0; 
    transition: 0.4s ease;
    z-index: 5;
    text-align: center;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

.game-desc {
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: var(--body-font);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.launch-btn {
    padding: 12px 28px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: var(--title-font);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.launch-btn:hover {
    transform: scale(1.05);
    background: #00ff64; 
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.4);
}


.live-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 100, 0.4);
    z-index: 10;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ff64;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff64;
    animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #00ff64; }
    50% { transform: scale(1.4); opacity: 0.4; box-shadow: 0 0 15px #00ff64; }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 5px #00ff64; }
}


.game-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    font-family: var(--title-font);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #fff;
}

.game-stats-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.code-container {
    width: 360px;          
    height: 400px;         
    background: #0a0a0a;
    padding: 12px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;

    overflow: hidden !important; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;       
    overflow-y: hidden;    
    position: relative;
    text-align: left;      
}

.lua-code {
    margin: 0;
    white-space: pre;      
    line-height: 1.3;
    color: #d4d4d4;
}


.lua-keyword { color: #c586c0 !important; }
.lua-func { color: #dcdcaa !important; }
.lua-string { color: #ce9178 !important; }
.lua-comment { color: #6a9955 !important; }

.code-header {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; }


.hero-stats-wrapper {
    display: flex;
    flex-wrap: wrap;       
    justify-content: center;
    gap: 15px;             
    margin: 40px auto 0 auto;
    padding: 20px;
    
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px);           
    -webkit-backdrop-filter: blur(15px);
    
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;

    width: 90%;            
    max-width: 400px;      
}
.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1px;
    height: 100px;
    background: rgba(15, 15, 15, 0.6); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    

    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1); 
}

.stat-label {
    font-size: 9px;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 28px;
    color: #ffffff; 
    font-weight: 900;
    font-family: var(--title-font);
}


.about-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('about-bg.jpg'); 
    background-size: cover;
    background-position: center;
}


.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('contact-bg.jpg'); 
    background-size: cover;
    background-position: center;
}

.contact-card-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 40px auto;
    backdrop-filter: blur(10px);
}

.contact-item {
    margin: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.news-hero {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), 
                url('news-bg.jpg'); 
    background-size: cover;
    background-position: center;
}


.news-timeline {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.news-card {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.news-date {
    font-family: 'Consolas', monospace;
    color: #888;
    font-size: 12px;
    min-width: 80px;
    padding-top: 5px;
    letter-spacing: 1px;
}

.news-content h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
}

.news-content p {
    margin: 0;
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}


@media (max-width: 600px) {
    .news-card {
        flex-direction: column;
        gap: 10px;
    }
}


:root {
    --bg: #050505;
    --text: #ffffff;
    --dim: #666666;
    --border: #1a1a1a;
    --title-font: 'PolycoreTitle', sans-serif;
    --body-font: 'PolycoreBody', sans-serif;
    --container-width: 1100px;
}

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



nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: clamp(20px, 5vw, 40px) clamp(20px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(5,5,5,0.8), transparent);
    backdrop-filter: blur(5px);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-links {
        position: static;
        transform: none;
        display: none; 
    }
    nav { justify-content: center; } 
}

.careers-hero {
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.big-logo {
    width: 90%;
    max-width: 700px; 
    height: auto;
    margin-bottom: 20px;
}

.polycore-loader-text, .hero-title {
    font-size: clamp(40px, 10vw, 110px); 
    letter-spacing: clamp(10px, 3vw, 25px);
    margin-right: clamp(-10px, -3vw, -25px);
    line-height: 1;
}

.loader-line {
    width: 80%;
    max-width: 600px;
}

.game-card-hero {
    width: 95%;
    max-width: var(--container-width);
    margin: 40px auto;
    padding: clamp(30px, 8vw, 60px);
    border-radius: clamp(20px, 5vw, 40px);
    min-height: auto;
}

@media (min-width: 769px) {
    .game-header-center {
        margin-left: 140px;
        text-align: left;
    }
    .corner-thumb-wrapper {
        left: 40px;
        top: 60px;
    }
}

@media (max-width: 768px) {
    .game-card-hero {
        text-align: center;
        padding-top: 100px; 
    }
    .corner-thumb-wrapper {
        left: 50%;
        transform: translateX(-50%);
        top: 30px;
        width: 80px;
        height: 80px;
    }
    .game-header-center {
        margin-left: 0;
        max-width: 100%;
    }
    .game-footer-row {
        flex-direction: column;
        gap: 30px;
    }
    .stats-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.benefits-grid, .values-grid, .careers-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 3vw, 30px);
    width: 100%;
}

.side-box-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    flex-wrap: wrap; 
}

@media (max-width: 900px) {
    .side-box-container {
        flex-direction: column;
        text-align: center;
    }
    .side-image-block {
        max-width: 100%;
    }
}



.stat-card {
    width: clamp(140px, 45%, 180px);
}



.contact-card-container {
    width: 90%;
    padding: clamp(20px, 5vw, 40px);
}

.news-card {
    flex-direction: row;
}

@media (max-width: 600px) {
    .news-card {
        flex-direction: column;
        text-align: left;
    }
    .news-date {
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 5px;
    }
}


.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none; 
        position: absolute;
        top: 80px;    
        left: 5%;
        width: 90%;
        background: rgba(255, 255, 255, 0.05); 
        backdrop-filter: blur(20px);          
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }

    .nav-links.mobile-active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


* {
    box-sizing: border-box;
}




* {
    box-sizing: border-box; 
}







/* Ensure the 'home' page is the scroll container */
#home.active {
    display: block;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Force the Title/Stats to take up the full first screen */
.hero-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Add some padding to the top of the games list so it doesn't touch the stats */
.content-wrapper {
    padding: 60px 20px;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.2); /* Optional: slight background to separate sections */
}


/* This makes the Home/Games combo behave like a scrollable app */
#home-games-container.active {
    display: block !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Forces Home and the Games Hero to each take up exactly one full screen */
#home-top, .games-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure the game cards list can be as long as needed */
#games-section {
    min-height: 100vh;
}




.game-card-hero {
    background: rgba(15, 15, 15, 0.8); /* Increased opacity slightly to hide background mess */
    backdrop-filter: blur(10px); /* This makes it look premium */
    
    /* FIX: Ensure no double borders */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 15px; /* Matches the 'modern' look */
    
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 900px;
}

/* Hide all pages by default unless they have the 'active' class */
.page {
    display: none;
    height: 100vh;
    width: 100%;
}

/* When a page is active, show it */
.page.active {
    display: block;
}

/* Special rule for the Home tab to allow scrolling down to Games */
#home.active {
    display: block;
    overflow-y: auto; 
    scroll-behavior: smooth;
}

/* Keep the Hero sections full screen */
.hero-container, .games-hero {
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Make sure the games list can be as long as it needs to be */
.games-section {
    min-height: 100vh;
}



#home-games-wrapper {
    overflow-y: auto;
    height: 100vh; 
    scroll-behavior: smooth;
}

#home, .games-hero {
    height: 100vh;
    width: 100%;
}

#games {
    min-height: 100vh;
}



/* Ensure the body doesn't overflow horizontally on small screens */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Critical for mobile */
}

/* Home Section Scaling */
.hero-container {
    min-height: 100vh; /* Takes full height of any screen */
    width: 100%;
    padding: 2rem;     /* Use 'rem' for spacing - it scales better than px */
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

/* Scaling the Game Card */
.game-card-hero {
    width: 95%;        /* Takes up almost full width on small screens */
    max-width: 900px;  /* Stops growing on desktop so it doesn't look stretched */
    height: auto;      /* Lets the content define the height */
    margin: 0 auto;    /* Keeps it centered */
}

/* Text Scaling */
.hero-title {
    font-size: clamp(2rem, 8vw, 5rem); /* Magic code: Min 2rem, Scales with screen, Max 5rem */
}

/* This code only runs on screens smaller than 768px (Phones/Tablets) */
@media (max-width: 768px) {
    .hero-stats-wrapper {
        flex-direction: column; /* Stack stats vertically on mobile */
        gap: 20px;
    }
    
    .game-header-center {
        text-align: center;
        padding: 10px;
    }

    .premium-launch-btn {
        width: 100%; /* Full width button for easy thumb-tapping */
    }
}
html, body {

    scrollbar-width: none;

    -ms-overflow-style: none;

}



html::-webkit-scrollbar,

body::-webkit-scrollbar {

    display: none;

}



#home {

    scrollbar-width: none;

    -ms-overflow-style: none;

}



#home::-webkit-scrollbar {

    display: none;

}

