/* ==========================================================================
   VOIDGRAIN STUDIOS - STARK MONOCHROME / BLACK & WHITE TACTICAL THEME
   ========================================================================== */

:root {
    --bg-dark: #030303;
    --bg-card: #0a0a0a;
    --bg-card-hover: #121212;
    --bg-nav: rgba(3, 3, 3, 0.95);
    
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-dim: #555555;
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-bright: rgba(255, 255, 255, 0.85);
    
    --font-heading: 'Cinzel', 'Orbitron', serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* GRAIN NOISE EFFECT OVERLAY */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Force grayscale on images for cohesive B&W look while retaining raw grit */
    filter: grayscale(100%) contrast(1.15);
}

/* LAYOUT */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.align-center { align-items: center; }
.center-content { display: flex; justify-content: center; align-items: center; }
.center { text-align: center; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 4px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.title-bar {
    width: 50px;
    height: 1px;
    background: var(--text-primary);
    margin: 15px auto 0 auto;
}

.section-header:not(.center) .title-bar {
    margin-left: 0;
}

/* MONOCHROME BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--border-bright);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-mono-solid {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-mono-solid:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-mono-outline {
    background: transparent;
    color: #ffffff;
    border-color: var(--border-color);
}

.btn-mono-outline:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.btn-mono {
    background: #000000;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-mono:hover {
    border-color: #ffffff;
}

/* INTRO SCREEN */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.intro-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10001;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-nav);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 38px;
    width: auto;
    filter: brightness(2);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name small {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-sub);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 1px;
    background-color: #fff;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.3) brightness(0.4);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 10%, var(--bg-dark) 90%),
                linear-gradient(to bottom, rgba(3, 3, 3, 0.5), var(--bg-dark));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    margin-bottom: 25px;
}

.hero-game-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(2);
}

.badge-tag {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255,255,255,0.15);
    margin-bottom: 5px;
}

.hero-tagline {
    font-family: var(--font-sub);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 35px auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-quote {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sub);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.floating {
    animation: floatAnim 2s infinite ease-in-out;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 35px;
    position: relative;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

/* BLACKTIDE SECTION */
.banner-frame {
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.frame-img {
    filter: grayscale(100%) contrast(1.3);
    transition: transform 0.5s ease;
}

.banner-frame:hover .frame-img {
    transform: scale(1.03);
}

.frame-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #000;
    border: 1px solid #fff;
    padding: 4px 12px;
    font-family: var(--font-sub);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.lead-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.feature-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bullet-item {
    display: flex;
    gap: 18px;
}

.bullet-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bullet-item h4 {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.bullet-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* FEATURES GRID */
.feature-card .card-icon {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ABOUT SECTION */
.about-text p {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-plus {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.stat-label {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-top: 6px;
}

.about-logo {
    max-width: 360px;
    filter: brightness(1.2) contrast(1.2) grayscale(100%);
    opacity: 0.95;
}

/* DEVLOG SECTION */
.devlog-card {
    display: flex;
    flex-direction: column;
}

.devlog-tag {
    font-family: var(--font-sub);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.devlog-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.devlog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.devlog-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    text-decoration: underline;
}

/* CTA BOX */
.cta-box {
    background: #000;
    border: 1px solid var(--border-bright);
    padding: 60px 30px;
    max-width: 850px;
    margin: 0 auto;
}

.cta-logo {
    width: 60px;
    margin: 0 auto 20px auto;
    filter: brightness(2);
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 30px auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* FOOTER */
.footer {
    background-color: #000000;
    padding: 70px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(2);
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-sub);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.disclaimer {
    font-size: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .nav-menu {
        position: fixed;
        top: 69px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 69px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}