/* 
   Game Company Website Design System 
   Theme: Dark/Cyberpunk/Premium
*/

:root {
    /* DEFAULT THEME: RED / DARK */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #161616;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    /* Red Accent Colors */
    --accent-primary: #d60000;
    --accent-secondary: #8a0000;
    --accent-hover: #ff1a1a;
    --glow-color: 214, 0, 0;

    --text-accent: #d60000;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;

    /* Effects */
    --glow: 0 0 20px rgba(var(--glow-color), 0.3);
    --glass: rgba(20, 20, 20, 0.85);
    /* Slightly more opaque for readability */
    --glass-border: rgba(255, 255, 255, 0.1);
    --item-border: rgba(255, 255, 255, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-tertiary: #ffffff;

    --text-primary: #121212;
    --text-secondary: #555555;

    /* Keep Red Accents but maybe slightly adjusted for light mode if needed? 
       Using same red usually works fine for contrast on white. */
    --accent-primary: #d60000;
    --accent-secondary: #a00000;

    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --item-border: rgba(0, 0, 0, 0.1);

    --glow: 0 0 15px rgba(214, 0, 0, 0.15);
    /* Softer glow in light mode */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    /* Global transition for theme switch */
}

html {
    overflow-y: scroll;
    /* Forces scrollbar to prevent layout shift between pages */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--text-accent);
    text-shadow: var(--glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);



    transition: var(--transition-medium);
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn:hover {
    background: var(--accent-primary);
    color: white;
    /* Always white text on filled button */
    box-shadow: var(--glow);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(var(--glow-color), 0.5);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--text-primary);
    /* Visible border */
    padding: 10px 24px;
    /* Added padding */
    border-radius: 30px;
    /* Rounded pill shape */
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Remove the underline effect */
.btn-text::after {
    display: none;
}

.btn-text:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    /* Inverts based on theme */
    gap: 12px;
    box-shadow: 0 0 20px rgba(128, 128, 128, 0.4);
    transform: translateY(-2px);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: #000000;
    /* Force solid black for absolute opacity */
    border-bottom: 1px solid var(--item-border);
    backdrop-filter: none;
    /* Disable blur to ensure solid feel */
}

[data-theme="light"] .header.scrolled {
    background: #ffffff;
    /* White background for light mode */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Essential for absolute positioning of nav */
}

.logo {
    text-decoration: none;
    display: inline-block;
}

.logo-vertical-stack {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start;
    line-height: 1;
}

.logo-main {
    font-size: 1.6rem;
    /* Slightly smaller main text */
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 0.9;
    /* Tighten line height */
    margin-bottom: 2px;
}

.logo-sub {
    font-size: 0.5rem;
    /* Much smaller */
    font-weight: 400;
    /* Thinner weight */
    letter-spacing: 2px;
    /* Slightly less spacing to keep it compact but readable */
    color: var(--text-secondary);
    text-transform: lowercase;
    opacity: 0.8;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-primary);
    transition: var(--transition-fast);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

/* New Container for Right Side Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Spacing between small button, lang, and toggle */
}

/* Language Selector */
.lang-selector {
    margin-right: 0;
    /* Removing margin as we use flex gap in .header-actions */
    position: relative;
}

#lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    /* Transparent-ish background */
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 30px 8px 15px;
    /* Extra padding for arrow */
    border-radius: 20px;
    /* More rounded */
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;

    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px auto;
}

#lang-select:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

#lang-select option {
    background-color: var(--bg-secondary);
    /* Dark background for options */
    color: var(--text-primary);
    padding: 10px;
}

/* Light Mode specific tweaks */
[data-theme="light"] #lang-select {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    /* Invert arrow color for light mode (replace FFFFFF with 333333 in the SVG data uri) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

[data-theme="light"] #lang-select option {
    background-color: #ffffff;
    color: #333333;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    /* Reduced margin */
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--glass-border);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    margin-bottom: 0px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
    /* Default Dark BG */
    overflow: hidden;
}

[data-theme="light"] .hero-bg {
    background: radial-gradient(circle at center, #f0f0f0 0%, #ffffff 100%);
}

/* Pseudo-grid background effect */
.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

[data-theme="light"] .hero-bg::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 20px;
    font-size: 5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Featured Games & Tabs */
.featured-games {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition-medium);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.game-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--item-border);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(var(--glow-color), 0.2);
}

.game-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.game-card:hover .placeholder-art {
    transform: scale(1.1);
}

.platform-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    /* Always white on tag */
}

.game-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.genre {
    color: var(--text-secondary);
    /* Gray instead of Red */
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.description {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Studio Section */
.studio-section {
    padding: 100px 0;
    background: var(--bg-tertiary);
    /* Darker background for contrast */
    position: relative;
}

.studio-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.studio-desc {
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--item-border);
    transition: var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-item p {
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--item-border);
    position: relative;
    /* For overlay positioning */
    overflow: hidden;
}

.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    /* Darken slightly on hover if desired, or keep transparent until hover */
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: not-allowed;
}

.contact-form-wrapper:hover .form-overlay {
    opacity: 1;
}

.form-overlay span {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-primary);
    padding: 10px 20px;
    border-radius: 4px;
    transform: rotate(-5deg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(var(--glow-color), 0.05);
}

.form-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

/* Floating Label Logic */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: var(--bg-secondary);
    /* Matches container bg */
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Added for mobile */
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav {
        /* Reset absolute positioning for mobile menu overlay */
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        left: auto;
        transform: none;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: var(--bg-secondary);
        border-left: 1px solid var(--accent-border);
        transition: right 0.3s ease;
        z-index: 1001;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-content {
        /* Ensure toggle button fits in header on mobile */
        padding-right: 20px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .btn {
        display: none;
        /* Hide "Contact Us" text button on mobile if space is tight, or keep it. Let's hide it to save space */
    }

    .theme-toggle-btn {
        margin-left: 0;
        /* Reset margin for mobile layout */
    }
}

/* Newsletter Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(var(--glow-color), 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.modal-header i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.modal-header h3 {
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

#newsletter-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
}

#newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Light Mode tweaks for modal */
[data-theme="light"] .modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

color: #333;
}

/* Contact Page Styles - Restored and Corrected */
/* Contact Page Styles - Restored and Corrected */
.contact-hero {
    padding: 200px 0 80px !important;
    /* Force padding with important to ensure it clears header */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    /* Extra margin just in case */
}