/* --- CORE THEME --- */
:root {
    --bg-deep: #050507;
    --bg-panel: #0e0e12;
    --gold-accent: #c4a96e; /* Silksong-ish gold */
    --gold-accent-deep: #a18446; /* Silksong-ish gold */
    --silver-accent: #a0a5b0;
    --text-main: #f0f0f5;
    --text-muted: #8a8d99;
    --hero-overlay: linear-gradient(to bottom, rgba(5,5,7,0.3), var(--bg-deep));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Updated to Orbitron for a tech/time-travel vibe */
h1, h2, h3, .brand-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
ul { list-style: none; }

/* --- FADE ANIMATIONS --- */
.fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 5, 7, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand {
    font-size: 1.2rem;
    color: var(--gold-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* ================= STUDIO HOME STYLES ================= */
.studio-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #1a1c29 0%, var(--bg-deep) 70%);
    text-align: center;
    padding: 0 1rem;
}

.studio-logo-large {
    width: 150px;
    height: 150px;
    background: #1a1c29;
    border: 2px solid var(--gold-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 3rem;
    color: var(--gold-accent);
    box-shadow: 0 0 50px rgba(196, 169, 110, 0.1);
}

.studio-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.studio-hero p {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.game-card-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 5rem auto; /* Added bottom spacing between games */
}

/* Remove bottom margin from the very last game card to keep spacing clean */
.game-card-container:last-child {
    margin-bottom: 0;
}

/* --- AUTOMATIC ALTERNATING LAYOUT --- */
/* This targets every 'odd' child div. 
   Since the <div class="section-header"> is usually the 1st child, 
   this effectively targets the 2nd Game Card, 4th Game Card, etc.
*/
.game-card-container:nth-child(odd) .game-preview-card {
    grid-template-columns: 1fr 1.5fr; /* Swap columns: Text left, Image right */
}

.game-card-container:nth-child(odd) .card-image {
    order: 2; /* Move Image to the right */
}

.game-card-container:nth-child(odd) .card-content {
    order: 1; /* Move Text to the left */
    /*text-align: right; /* Optional: Align text towards the image */
}

.game-preview-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.game-preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.card-image {
    background-color: #222;
    background-image: url('Feature Graphics 1024x500.png'); 
    background-size: cover;
    background-position: center;
    min-height: 300px;
    position: relative;
}

.card-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-outline {
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 0.8rem 2rem;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-accent);
    color: var(--bg-deep);
}


/* ================= GAME PAGE STYLES ================= */
.game-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #050507;
    overflow: hidden;
}

/* Background Video Styles */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0;
    opacity: 0.8; 
}

.game-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay); 
    z-index: 1; 
}

.game-hero-content {
    position: relative;
    z-index: 2; 
    padding: 2rem;
    max-width: 900px;
}

.game-logo-text {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0,0,0,0.8);
    color: #fff; 
}

.game-hero p {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.btn-solid {
    background: var(--gold-accent); /* Main Gold Theme */
    color: var(--bg-deep);          /* Dark Text */
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 250px; /* Ensures buttons are same size */
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-solid:hover {
    background: var(--gold-accent-deep);
    transform: scale(1.05);
}

/* --- NEW: STORE BUTTONS --- */
.store-btn-group {
    display: flex;
    gap: 1.5rem; /* Space between buttons */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.divider {
    height: 1px;
    width: 100px;
    background: var(--gold-accent);
    margin: 0 auto;
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    color: var(--silver-accent);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- MEDIA --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.media-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #222;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.media-item:hover {
    border-color: var(--gold-accent);
    transform: scale(1.02);
    z-index: 10;
}

.media-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: 0.5s;
}

.media-item:hover img { filter: grayscale(0%); }

.media-large { grid-column: span 2; }

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links i {
    color: var(--text-muted);
    transition: 0.3s;
    cursor: pointer;
}

.social-links i:hover { color: var(--gold-accent); }

.copyright {
    color: #444;
    font-size: 0.8rem;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .studio-hero h1, .game-logo-text { font-size: 2.5rem; }
    .game-preview-card { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .media-large { grid-column: auto; }
    .navbar { padding: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.8rem; }

}
