/* --- CORE VARIABLES --- */
:root {
    --bg-color: #0b0b0b;
    --text-main: #f5f5f7;
    --text-light: #a1a1a6;
    --accent: #2997ff; /* Professional Tech Blue */
    --card-bg: #1d1d1f;
    --border-color: rgba(255, 255, 255, 0.05);
}

/* --- RESET & BASICS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

img, video {
    display: block;
    max-width: 100%;
    border-radius: 8px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- CINEMATIC HERO SECTION --- */
.cinematic-hero {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(11,11,11,1) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
    margin-top: 40px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.dot {
    color: var(--accent);
}

/* --- STANDARD SECTIONS --- */
.cs-section {
    padding: 100px 8%;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.intro-section {
    padding-top: 60px;
}

.cs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.cs-label {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cs-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    line-height: 1.1;
    color: var(--text-main);
}

.cs-text-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
}

.cs-text-block strong {
    color: var(--text-main);
}

/* --- META GRID --- */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}

.meta-item h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sub-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

/* --- DETAILS GRID --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.col-left p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.outcome-list { list-style: none; }
.outcome-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
    color: var(--text-light);
    line-height: 1.6;
}
.outcome-list strong { color: var(--text-main); }

@media(max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 40px; }
    .cinematic-hero { height: 70vh; }
}

/* Info Lists (Character Profile) */
.info-list-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.info-item h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Spacers */
.mb-60 { margin-bottom: 60px; }
.mt-40 { margin-top: 40px; }
.spacer-top { margin-top: 80px; }

/* --- IMAGES & MEDIA --- */
.media-container-elegant img, 
.rounded-shadow {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.caption {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.7;
}

/* Sprites Row */
.sprites-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.sprite-box {
    text-align: center;
}

.sprite-box img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.sprite-box p {
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-light);
}

/* --- ENVIRONMENT GRID --- */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.env-item {
    background: transparent;
}

.env-item img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.env-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.env-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.row-tight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.row-tight img {
    width: 100%;
    height: auto;       /* Ensures aspect ratio is preserved */
    object-fit: cover;  /* Ensures the image fills the grid cell neatly */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Added subtle shadow for depth */
}

/* --- NPC GRID --- */
.npc-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.npc-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.npc-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.npc-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.npc-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.npc-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.npc-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- VIDEO & OUTCOMES --- */
.media-section {
    text-align: center;
}

.video-container-local {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #000;
}

.video-container-local video {
    width: 100%;
    display: block;
}

.caption-top {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Level Videos Grid */
.level-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.vid-box {
    text-align: left;
}

.vid-box video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vid-box h4 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.vid-box p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- DOWNLOAD & LINKS --- */
.download-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.doc-link-elegant {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.doc-link-elegant:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: rgba(41, 151, 255, 0.1);
}

.link-arrow {
    color: var(--accent);
    transition: transform 0.3s;
}

.doc-link-elegant:hover .link-arrow {
    transform: translateX(5px);
}

/* --- IMPACT SECTION --- */
.sub-heading-center {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.text-center-limit {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.impact-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content span {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- PROJECT NAVIGATION --- */
.project-navigation {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 80px 8%;
    position: relative;
    z-index: 2;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 45%;
    transition: all 0.3s ease;
}

.nav-item.prev { align-items: flex-start; text-align: left; }
.nav-item.next { align-items: flex-end; text-align: right; }

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 10px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: white;
    font-weight: 600;
}

.nav-item:not([style*="default"]):hover .nav-label {
    opacity: 1;
    color: var(--accent);
}

.nav-item:not([style*="default"]):hover .nav-title {
    opacity: 0.8;
}

.nav-divider {
    width: 1px;
    height: 60px;
    background-color: var(--border-color);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .col-left {
        order: -1; /* Ensure text comes after image or specific order depending on section */
    }
    
    .env-grid, .level-videos-grid, .meta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .npc-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .nav-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .nav-item {
        width: 100%;
        align-items: center !important;
        text-align: center !important;
    }
    
    .nav-divider {
        width: 60px;
        height: 1px;
    }
}