/* --- 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-color: #000;
}

/* New class to control GIF opacity */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* OPACITY SETTING */
    opacity: 0.6; 
    z-index: 0;
}

/* Ensure overlay stays on top of the GIF */
.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;
}

/* Ensure text stays on top of everything */
.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; }
}

/* --- GALLERY SECTIONS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item { text-align: center; }

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover Effect for Zoomable Images */
.zoomable-image { cursor: zoom-in; }
.gallery-item img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.gallery-item p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- MEDIA SECTION --- */
.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;
    margin-bottom: 30px;
}

.video-container-local video {
    width: 100%;
    display: block;
}

.video-container-local.small {
    margin-bottom: 20px;
}

.col-video h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.col-video p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- DOWNLOAD & LINKS (From Game2) --- */
.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);
}

.spacer-top { margin-top: 80px; }

/* --- PROJECT NAVIGATION (From Game2) --- */
.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);
}

/* --- LIGHTBOX (GALLERY MODAL) --- */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

#lightbox-caption {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 300;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover { color: var(--accent); }

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2-col, .gallery-grid, .gallery-grid.three-col { grid-template-columns: 1fr; gap: 40px; }
    
    .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; }
}