/* --- Basic Setup & Variables --- */
:root {
    --bg-color: #01041b; /* Dark Space Blue */
    --primary-text: #f0f0f0;
    --accent-cyan: #00d1ff;
    --accent-magenta: #e040fb;
    --card-bg: #0d1234;
    --border-color: rgba(0, 209, 255, 0.3);
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(1, 4, 27, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    flex-wrap: wrap; /* Allow wrapping for mobile layout */
}

.logo-img {
    height: 60px; /* Standardize logo height */
    display: block;
}

#live-datetime-container {
    color: var(--primary-text);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    /* Move to the right on desktop, will be centered on mobile */
    margin-left: auto; 
    margin-right: 2rem;
}

.nav-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem; /* Slightly reduced gap to accommodate new menu item */
}

.nav-wrapper ul li a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap; /* Prevent menu items from breaking into two lines */
}

.nav-wrapper ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-wrapper ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(1, 4, 27, 0.7), rgba(1, 4, 27, 0.9)), url('mv.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 81px; /* Offset for fixed header height */
}

.hero-logo-img {
    max-width: min(80%, 600px);
    height: auto;
    margin-bottom: 2rem;
    animation: image-glow 1.5s ease-in-out infinite alternate;
}

.release-date {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid var(--accent-cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

@keyframes image-glow {
    from { filter: drop-shadow(0 0 10px #00aaff) drop-shadow(0 0 15px #00aaff); }
    to { filter: drop-shadow(0 0 20px var(--accent-cyan)) drop-shadow(0 0 30px var(--accent-cyan)); }
}

/* --- General Content Section --- */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- About Section --- */
.about-content {
    text-align: left;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* --- Game Details Section --- */
.game-details {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: left;
    max-width: 800px; /* Constrain width for better readability */
    margin: 0 auto; /* Center the container */
}

.game-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-details ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.game-details ul li:last-child {
    border-bottom: none;
}

.game-details ul li strong {
    color: var(--accent-cyan);
    margin-right: 0.75rem;
    display: inline-block;
    width: 120px; /* Align the text */
}

/* --- Trailer Section --- */
.video-container {
    display: inline-block; /* Makes container shrink to fit the video */
    background: #000;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
    line-height: 0; /* Prevents extra space below the video */
    overflow: hidden; /* Ensures border-radius is applied to the video */
}

.video-container video {
    display: block; /* Removes any default spacing */
    max-width: 100%; /* Ensures video is responsive and does not overflow */
    height: auto;
    border-radius: 13px; /* Match container radius minus border width */
}

/* --- Title Grid Section --- */
.title-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.game-card img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.game-card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* --- Character Grid Section --- */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: rgba(15, 23, 67, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.5);
}

.card-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #0c123b;
}

.card-image-container img {
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-text);
    font-weight: 700;
}

/* --- Special Art Section (MODIFIED) --- */
.art-container {
    display: inline-block; /* Make container fit the image's width */
    line-height: 0; /* Remove extra space from line height */
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.2);
    transition: box-shadow 0.3s ease;
}

.art-container:hover {
    box-shadow: 0 0 50px rgba(0, 209, 255, 0.4);
}

.art-container img {
    max-width: 100%; /* Prevent overflow on small screens */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove bottom space */
}

/* --- Scroll Animation & Footer --- */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* --- Responsive Design --- */
@media (max-width: 1100px) {
    /* Adjust Nav for more items */
    .nav-wrapper ul {
        gap: 1rem;
    }
    .nav-wrapper ul li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .content-section {
        padding: 4rem 1.5rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger */
    }

    #live-datetime-container {
        margin: 0;
        order: 3; /* Move below logo */
        width: 100%;
        text-align: center;
        padding-top: 0.5rem;
    }

    .nav-wrapper {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        order: 4; /* Appear at the bottom */
    }

    .nav-wrapper.active {
        max-height: 400px; /* Increased height to accommodate more items */
        padding-top: 1rem;
    }

    .nav-wrapper ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-wrapper ul li a {
         font-size: 1.1rem; /* Reset font size for mobile menu */
    }

    .hero {
        margin-top: 120px; /* Adjust for taller mobile header */
    }

    .release-date {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .game-details ul li strong {
        display: block; /* Stack label on top of value */
        width: auto;
        margin-bottom: 0.25rem;
    }
}
/* --- Language Selector Screen --- */
#language-selector-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    text-align: center;
}

.language-selector-content h1 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.language-buttons .lang-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--primary-text);
    padding: 1rem 2rem;
    margin: 0 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 50px;
}

.language-buttons .lang-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-color);
}

/* --- Intro Video Screen --- */
#intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 199;
    /* Set to flex and center content */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Hide by default using visibility */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#intro-video-container.is-visible {
    visibility: visible;
    opacity: 1;
}

#capcom-intro {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}